A control device detects whether or not an up-converter fails, based on a
DC voltage from a voltage sensor, an output voltage from a voltage
sensor, and a duty ratio in controlling switching of NPN transistors. If
a failure in the up-converter is detected, the control device then
controls an inverter and an AC motor such that regenerative electric
power generation in the AC motor is prohibited.