Variable frequency permanent magnet drive system