SAN FRANCISCO - A convicted rapist who spent 13 years in prison and nearly 14 years in a state mental hospital while awaiting a trial that never came was ordered released Wednesday by a state appeals court.The First District Court of Appeal in San Francisco agreed with a lower court judge who said there had been a “systemic breakdown in the management” of Terrance Butler’s case, the San Francisco Chronicle reported.However, Butler will remain confined while prosecutors decide whether to appeal, the paper said.Butler was convicted in 1993 of raping two women and attempting to rape a minor.