“…Electric power systems can be modeled with different levels of detail, as can be seen in Ochoa and Martinez [16], where the primary frequency control is studied with two models based on power flows and on the oscillation equation, respectively. Similarly, railway systems, depending on the traction technology and the electrification configuration, can be modeled with different approaches [17], [18], [19], [20], [21], [22], [23], which will depend on the nature of the study (dynamic, mechanical, electrical, electronical, etc.). In this work, the same modeling approach the authors presented in [9] is used (Fig.…”