Activate model of a permanent magnet synchronous motor (PMSM) with vector control for speed or torque.