A drive system for a machine having an engine, a generator, a trolley drive arrangement, a motor, wheels and auxiliary devices is provided. The drive system includes an inverter circuit and an auxiliary driver both being operatively connected to the trolley drive arrangement. The inverter circuit may be coupled to each of the generator and the motor. The auxiliary driver may be coupled to each of the generator and the auxiliary devices. The inverter circuit and the auxiliary driver may be configured to automatically communicate power from the trolley drive arrangement and any power from the auxiliary devices to the motor in a trolley propel mode, and automatically communicate power from the motor to the engine, the trolley drive arrangement, and optionally to a hybrid system if applicable, in a dynamic braking mode, while attached to trolley lines so as to eliminate fuel consumption while attached to the trolley lines.