Design and performance of mechatronic systems depends on many factors and subsystems like gears, hydraulic components and electric motors. These latter are considered as a principle device in electromechanical power conversion, thus their design becomes of a prime importance. This paper aims to build electric motor models along with its control strategy and power electronics component in order to study the impact of the temperature rise in critical areas of this motor on mechatronic systems. This paper focuses on constructing a detailed thermal network of a permanent magnet synchronous machine and comparing it to experimental results in order to evaluate its accuracy. This model, along with the electromechanical model of the machine, the power converter and the control strategy are integrated and simulated in AMESim - an advanced software environment for simulating mechatronic systems.