target Tt(t) is greater than torque limit Tref_lim (t) (Output NO block 550), the method sets the torque reference Tref(t) with the torque target Tt(t), i.e.performs Tref(t)=Tt (t) (block 560). When the motor speed is positive (Output YES block 540) and torque target Tt(t) is lower or equal to torque limit Tref_lim(t) (output YES block 550), the method sets the torque reference Tref(t) with the torque limit Tref_lim(t)), i.e. performs Tref(t)=Tref_lim (t) (block 570). In this case, the active voltage limiter 115 limits the DC-link capacitor voltage within the predetermined voltage range by imposing the torque limit Tref_lim as torque reference used by the torque/flux regulator system 114 (block 610). Moreover, when the motor speed is negative (co<0) (output NO block 540) and the torque target Tt(t) is lower than torque limit Tref_lim(t) (Output YES block 580), the method sets the torque reference Tref with the torque target Tt(t), i.e.performs Tref(t)=Tt(t)(block 590). Moreover, when the motor speed is negative (co<0) (Output NO block 540) and the torque target Tt(t) is greater than, or equal to, the torque limit Tref_lim(t)(Ouput NO block 580), the method sets the torque reference Tref(t) with the torque limit Tref_lim(t), i.e. perform Tref(t)=Tref_lim(t) (block 600). In this case, the active voltage limiter 115 limits the DC-link capacitor voltage within the predetermined voltage range by imposing the torque limit Tref_lim as torque reference used by the torque/flux regulator system 114 (block 610).