A German engineer who killed and ate a willing victim in a case that shocked the country must remain in prison even though he has served 15 years for murder, a court ruled on Friday.