Fault Analysis Of Permanent Magnet Synchronous Machines For Safety Critical Applications