A 29-year-old man with schizophrenia was sentenced to 40 days in jail Thursday after he admitted that he tried to steal an unattended OC Transpo bus and attacked an unmarked police car with a wrench when the undercover officer inside refused to stop idling.