Condition monitoring and analysis of a permanent magnet synchronous machine drive system