Electrical machine analysis using free software