thermal simulation of permanent magent synchronous motor ...