While tramming out of the pit, the excavator operator noted fire coming from the engine compartment. EE used on-board fire extinguisher to attempt to combat the fire, but was unsuccessful. By the time additional extinguishers were brought to the location, the fire was fully involved. The resulting damage was total loss of the equipment.