This document presents a dynamic model of a permanent magnet synchronous motor. It derives a two-phase d-q model from the three-phase model by transforming the stator variables from the stationary a-b-c frame to the rotating d-q frame. It discusses obtaining the complete set of model parameters from simple laboratory tests, as some parameters are not directly measurable and vary with operating conditions. The model is primarily for interior permanent magnet synchronous motors but can also apply to surface permanent magnet motors.