A Coordinated Electric System Interconnection Review—the utility’s deep-dive on technical and cost impacts of your project.

Challenge: Frequent false tripping using conventional electromechanical relays
Solution: SEL-487E integration with multi-terminal differential protection and dynamic inrush restraint
Result: 90% reduction in false trips, saving over $250,000 in downtime

Guidelines for Using Real-Code in EMT Models for HVDC, FACTS, and Inverter-Based Resources

Solar panels in rows with a power plant featuring smokestacks emitting steam.
Calendar icon. D

january 01, 2026 | Blog

Introduction

As power systems rapidly transition toward inverter-based resources (IBRs), high-fidelity modeling has become a regulatory, operational, and planning necessity rather than a luxury. Utilities, ISOs, and developers increasingly require Electro-Magnetic Transient (EMT) studies that accurately reflect the real behavior of HVDC systems, FACTS devices, and inverter-based generators under normal and abnormal grid conditions.


The IEEE/CIGRE real-code EMT modeling methodology (Technical Brochure 958, February 2025) represents a major step forward in this space. It establishes a standardized, tool-agnostic framework that allows actual controller firmware (“real-code”)—the same code running in field hardware—to be executed directly within EMT and RMS simulation environments.

At Keentel Engineering, we actively support utilities, generation owners, and developers in implementing IEEE/CIGRE-compliant EMT models for interconnection studies, NERC compliance, and advanced grid performance assessments.


Why Real-Code EMT Modeling Matters

Traditional EMT and transient stability models often rely on:

  • Simplified block diagrams
  • Generic control representations
  • Tool-specific implementations

While these approaches can be sufficient for high-level studies, they fall short when:

  • Grid codes demand accurate fault-ride-through and control response
  • Multiple vendors’ equipment must interact realistically
  • Protection, PLLs, current limiters, and fast controls dominate system behavior



The IEEE/CIGRE approach solves these issues by enabling controller source code reuse without exposing intellectual property and without tying models to a single simulation platform.


Overview of the IEEE/CIGRE DLL Modeling Method

The IEEE/CIGRE methodology defines a standardized Dynamic Link Library (DLL) interface that acts as a bridge between:

  • Manufacturer or model-writer controller code, and
  • Any compliant EMT or RMS simulation tool

Key characteristics:

  • Black-box implementation
  • Self-documenting model structure
  • Fixed-step, real-time controller execution
  • Support for EMT and RMS tools
  • Snapshot and multi-instance capability



Although commonly referred to as a “DLL” method, the same concept applies to Linux shared objects (.so), making it suitable for real-time simulators and Linux-based EMT platforms.


Core Benefits of the IEEE/CIGRE Real-Code Approach

1. Highest Possible Model Fidelity

Sector integration enables renewable electricity to displace fossil fuels in transport, heating, and industry through electrification and power-to-X technologies. This is critical because electricity alone accounts for only ~20% of final energy consumption, while heat and transport together exceed 70% globally 

2. Tool Independence

The same DLL model can run in multiple EMT or RMS tools without recompilation, ensuring consistent results across platforms.

3. Intellectual Property Protection

  • Manufacturers retain full control of proprietary code while still delivering high-quality models to utilities and system operators.

4. Long-Term Compatibility

  • Unlike static linking (.lib or .obj files), dynamically linked models avoid compiler and version dependency issues.

5. Regulatory and Compliance Alignment

High-fidelity EMT models are increasingly expected for:

  • Interconnection studies
  • NERC MOD, PRC, and TPL analyses
  • ISO-specific EMT requirements (ERCOT, WECC, CAISO, PJM, etc.)

Architecture of an IEEE/CIGRE DLL Model

Static Model Information

Each model contains a static data structure that defines:

  • Model name, version, and description
  • Input and output signals
  • Parameters, units, limits, and defaults
  • Fixed controller sampling rate
  • Supported EMT/RMS modes
  • Required state variable counts

This makes the model self-describing, allowing simulation tools to automatically generate interfaces.

Dynamic Model Instance

During simulation, an instance structure is used to pass:

  • Real-time inputs (voltages, currents, control signals)
  • Outputs (firing pulses, current commands, trips)
  • Parameters
  • Time information
  • State variables
  • Each instance operates independently, enabling multiple identical controllers within the same study.

State Variables, Snapshots, and Multi-Instance Support

State variables are central to real-code modeling:

  • They store integrator states, internal memory, and output history
  • They enable flat-start initialization for RMS studies
  • They allow EMT simulations to restart from saved snapshots

Proper state management ensures:

  • No cross-talk between identical model instances
  • Accurate continuation from saved simulation states
  • Repeatable and auditable study results

Keentel Engineering places special emphasis on validating correct state variable grouping when reviewing OEM-supplied DLL models.



Roles Defined by the Standard

Model Writers (OEMs or Developers)

  • Wrap controller firmware with a standardized interface
  • Define inputs, outputs, parameters, and state variables
  • Compile the complete package into a DLL or shared object

Simulation Tool Developers

  • Provide DLL import utilities
  • Manage sample-and-hold execution
  • Allocate state variable memory
  • Handle EMT/RMS solver interaction

End Users (Utilities, ISOs, Consultants)

  • Import DLL models into simulation tools
  • Configure parameters
  • Connect models to electrical networks
  • Run EMT and RMS studies

Practical Applications for HVDC, FACTS, and IBRs

IEEE/CIGRE real-code modeling is particularly valuable for:

  • VSC-HVDC converters
  • LCC-HVDC control and protection
  • STATCOMs and SVCs
  • Grid-forming and grid-following inverters
  • Wind, solar PV, and BESS plant controllers

These technologies are dominated by fast digital controls that cannot be accurately represented using simplified RMS models alone.


How Keentel Engineering Supports Real-Code EMT Modeling

Keentel Engineering provides end-to-end support for IEEE/CIGRE-compliant modeling, including:

  • OEM DLL model review and validation
  • EMT model integration into PSCAD, EMTP, RTDS, and other tools
  • Snapshot and multi-instance testing
  • Interconnection and NERC compliance studies
  • Independent verification for utilities and ISOs

Our engineers understand both power electronics control theory and regulatory study expectations, ensuring models are technically sound and acceptable to stakeholders.

Conclusion

The IEEE/CIGRE real-code EMT modeling methodology represents the future of high-fidelity power system analysis. By bridging real controller firmware with modern simulation tools, it enables unprecedented accuracy, repeatability, and confidence in grid studies involving HVDC, FACTS, and inverter-based resources.

Keentel Engineering is proud to support clients at the forefront of this transition—helping ensure reliable, compliant, and resilient power systems.


Frequently Asked Questions (FAQ)

  • 1. What is “real-code” in EMT modeling?

    Real-code refers to the actual controller firmware used in field hardware, executed directly inside simulation tools.


  • 2. How is this different from generic EMT models?

    Generic models approximate behavior, while real-code models replicate exact control logic and timing.

  • 3. Is the IEEE/CIGRE method limited to EMT tools?

    No. It supports both EMT and RMS (transient stability) simulation environments.

  • 4. Why are DLLs used instead of source code?

    DLLs protect intellectual property and avoid compiler compatibility issues.

  • 5. Can the same DLL be used in multiple simulation tools?

    Yes, provided the tools support the IEEE/CIGRE interface.

  • 6. Does this method expose OEM proprietary algorithms?

    No. The implementation is black-box and IP-protected.

  • 7. Are Linux-based simulators supported?

    Yes. The same methodology applies using shared object (.so) files.


  • 8. What types of equipment benefit most from real-code modeling?

    HVDC converters, FACTS devices, and inverter-based generators.


  • 9. How are controller sampling rates handled?

    Sampling rates are defined inside the model and executed independently of solver time steps.

  • 10. What is a snapshot in EMT simulation?

    A snapshot saves all controller states, allowing simulations to restart without re-initialization.

  • 11. Why are state variables critical?

    They ensure accurate dynamics, multi-instance capability, and snapshot functionality.


  • 12. Can multiple identical controllers be modeled simultaneously?

    Yes, provided state variables are correctly implemented.

  • 13. Is this method an official IEEE standard?

    Not yet, but it is widely adopted and referenced by industry and TSOs.

  • 14. Does this replace RMS models entirely?

    No. EMT and RMS models are complementary and used for different study objectives.

  • 15. Are utilities requiring real-code EMT models?

    Increasingly yes, especially for IBR-heavy interconnections.

  • 16. How does this support NERC compliance?

    It enables accurate MOD, PRC, and TPL studies involving fast controls.

  • 17. Can parameters be changed during simulation?

    Yes, unless marked as fixed-value parameters.


  • 18. How are errors and warnings handled?

    Standardized return codes and message fields are provided in the interface.

  • 19. Does this support grid-forming inverters?

    Yes, including advanced PLL-less and virtual synchronous controls.

  • 20. Is real-time simulation supported?

    Yes, especially when compiled for real-time platforms like RTDS or HYPERSIM.

  • 21. What simulation tools commonly support this method?

    Most major EMT tools, including PSCAD, EMTP, and real-time simulators.

  • 22. Can Keentel review OEM-supplied DLL models?

    Yes. Independent validation is a core Keentel service.

  • 23. Is encryption possible for sensitive state variables?

    Yes. The standard allows encrypted or obfuscated state storage.

  • 24. Does this method support future tool upgrades?

    Yes. DLLs remain compatible even as simulation tools evolve.

  • 23. Is encryption possible for sensitive state variables?

    Yes. The standard allows encrypted or obfuscated state storage.

  • 25. How can Keentel Engineering help with real-code EMT studies?

    We provide model validation, integration, compliance studies, and expert consulting for utilities and developers




Man in a blazer and open shirt, looking at the camera, against a blurred background.

About the Author:

Sonny Patel P.E. EC

IEEE Senior Member

In 1995, Sandip (Sonny) R. Patel earned his Electrical Engineering degree from the University of Illinois, specializing in Electrical Engineering . But degrees don’t build legacies—action does. For three decades, he’s been shaping the future of engineering, not just as a licensed Professional Engineer across multiple states (Florida, California, New York, West Virginia, and Minnesota), but as a doer. A builder. A leader. Not just an engineer. A Licensed Electrical Contractor in Florida with an Unlimited EC license. Not just an executive. The founder and CEO of KEENTEL LLC—where expertise meets execution. Three decades. Multiple states. Endless impact.

Four workers in safety vests and helmets stand with arms crossed near wind turbines.

Let's Discuss Your Project

Let's book a call to discuss your electrical engineering project that we can help you with.

Man in a blazer and open shirt, looking at the camera, against a blurred background.

About the Author:

Sonny Patel P.E. EC

IEEE Senior Member

In 1995, Sandip (Sonny) R. Patel earned his Electrical Engineering degree from the University of Illinois, specializing in Electrical Engineering . But degrees don’t build legacies—action does. For three decades, he’s been shaping the future of engineering, not just as a licensed Professional Engineer across multiple states (Florida, California, New York, West Virginia, and Minnesota), but as a doer. A builder. A leader. Not just an engineer. A Licensed Electrical Contractor in Florida with an Unlimited EC license. Not just an executive. The founder and CEO of KEENTEL LLC—where expertise meets execution. Three decades. Multiple states. Endless impact.

Leave a Comment

Related Posts

Keentel Engineering logo with the text “Owner’s Engineer Services in Renewable Energy & Power Infras
By SANDIP R PATEL February 20, 2026
Independent Owner’s Engineer services for renewable energy, substations, transmission, and BESS projects—protecting quality, compliance, and long-term asset value.
WECC logo with the text “Electric Reliability and Security for the West” and title “WECC Interconnec
By SANDIP R PATEL February 20, 2026
Understand WECC interconnection-wide modeling requirements for steady-state and dynamic cases, BES compliance, DER integration, and long-term planning.
Engineer analyzing harmonic distortion in a power substation with current and voltage waveform graph
By SANDIP R PATEL February 20, 2026
Learn why harmonic distortion is rising in modern power systems and how harmonic studies protect grid stability, compliance, and critical assets.
Comparison of issued-for-construction and as-built substation drawings at an electrical substation s
By SANDIP R PATEL February 19, 2026
Learn why as-built substation drawings often differ from construction plans and how stronger QA/QC, constructability reviews, and procurement alignment prevent costly field rework.
BIM-enabled utility substation design showing 3D digital model visualization on tablet and laptop wi
By SANDIP R PATEL February 19, 2026
Discover how BIM transforms substation design into a lifecycle-driven, data-rich utility platform improving engineering, procurement, and operations.
ERCOT PGRR 085 Dynamic Model Improvements: Requirements, PSCAD Benchmarking & Compliance Guide
By SANDIP R PATEL February 17, 2026
Explore ERCOT PGRR 085 dynamic model improvements, PSCAD validation, model quality testing, and compliance requirements for IBRs.
Blog banner showing data centers, utility-scale battery storage, and power transmission infrastructu
By SANDIP R PATEL February 10, 2026
Analysis of how hyperscale data centers and gigawatt-scale loads are transforming U.S. power systems, driving new tariffs, transmission upgrades, and critical power system studies.
Blog banner showing virtual power plants, utility-scale battery storage, solar panels, and wind turb
By SANDIP R PATEL February 10, 2026
Industry update on virtual power plants, large-scale energy storage, long-duration systems, and grid resilience trends reshaping the U.S. power system in 2026.
Aerial view of a large-scale 700 MWh battery energy storage facility with grid-connected solar panel
By SANDIP R PATEL February 10, 2026
Statistical insights into Alliant Energy’s 700 MWh utility-scale battery storage deployment across Wisconsin and Iowa, analyzing grid reliability, EMS integration, solar firming, and decarbonization impact.