Modeling and analysis of permanent magnet synchronous motor by taking saturation and core loss into account | Synapse