non compos mentis

Etymology
From +  +.

Adjective

 * 1)  Insane; not of sound mind; not in control of oneself.