Modeling and simulation aspects of AC machines