Modeling of thermal calculation of induction motors and line start permanent magnet motors