1. A system for real-time modeling of uninterruptible power supply (UPS) control elements protecting an electrical system, comprising: a data acquisition component communicatively connected to a sensor configured to acquire real-time data output from the electrical system; an analytics server communicatively connected to the data acquisition component comprising, a virtual system modeling engine configured to generate predicted data output for the electrical system utilizing a virtual system model of the electrical system, an analytics engine configured to monitor the real-time data output and the predicted data output of the electrical system, the analytics engine further configured to initiate a calibration and synchronization operation to update the virtual system model when a difference between the real-time data output and the predicted data output exceeds a threshold, and a UPS transient stability simulation engine configured to store and process patterns observed from the real-time data output and the predicted data output, the UPS transient stability simulation engine further configured to utilize a user-defined UPS control logic model to forecast an aspect of the interaction between UPS control elements and the electrical system during a contingency event; and a client terminal communicatively connected to the analytics server, the client terminal configured to allow a system administrator to create the user-defined UPS control logic model, select the contingency event simulated and display a report of the forecasted aspects.