Real-Time Application of Optimization-Enabled Electromagnetic Transient Simulation