A method for modeling a common-mode impedance for the AC motor