At end of shift EE parked excavator in the pit. While completing post-shift inspection, the EE heard a noise and saw smoke from the engine compartment. EE tried to extinguish the fire with an extinguisher but was unsuccessful and evacuated the area. EMS was contacted. Fire continued beyond 30 minutes, at which MSHA Hotline was called. No injuries were associated with this incident.