Off-line co-simulation of multiphase PM motor-drives