Troubleshooting a 3-phase permanent magnet AC motor