The document presents a real-time simulation of a modular multilevel converter (MMC) based hybrid energy storage system (HESS) using a battery and ultracapacitor (UC). The proposed MMC HESS offers advantages over traditional HESS topologies like higher efficiency, reliability, and comparable cost. It allows independent control of power from the battery and UC. Real-time simulation results validate the control framework and show the MMC output voltage and HESS smoothing of PV power fluctuations.