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

Energy sector integration showing power grids, wind turbines, solar energy, and multi-energy system
By SANDIP R PATEL January 1, 2026
Explore how energy sector integration reshapes modern power grids, improving decarbonization, resilience, and system planning based on CIGRE TB 973 insights.
A practical guide to upcoming NERC Reliability Standards (2026–2028), key effective dates, and compl
By SANDIP R PATEL December 29, 2025
A practical guide to upcoming NERC Reliability Standards (2026–2028), key effective dates, and compliance readiness for inverter-based resource owners.
By SANDIP R PATEL December 26, 2025
Complete technical guide to ERCOT Model Quality Tests (MQT) for inverter-based resources. Covers PRC-029-1, IEEE 2800-2022, PSCAD, SCR testing, and pass/fail criteria.
By SANDIP R PATEL December 26, 2025
PRC-030-1 compliance guide for Generator Owners covering IBR event analysis, corrective action plans, audit requirements, and post-disturbance obligations.
Power lines against a twilight sky with digital network lines overlayed, spanning an open field.
By SANDIP R PATEL December 19, 2025
A practical guide to NERC PRC-029-1 for inverter-based resource owners. Learn ride-through requirements, compliance timelines, exemptions, and how Keentel Engineering supports PRC-029-1 readiness.
Electrical substation with high-voltage equipment, wires, and insulators against a blue sky.
By SANDIP R PATEL November 26, 2025
Learn how to stay compliant with NERC PRC-004-6 and MIDAS reporting. Keentel Engineering provides misoperation analysis, CAP support, and audit-ready documentation.
ISO-NE DDMS Guide
By SANDIP R PATEL November 26, 2025
Technical guide to ISO-NE’s DDMS for power system engineers — model submissions, file formats (RAW/DYR), certification workflow, and annual recertification for MOD-032, MOD-026, MOD-027.
Learn how PRC-004-6 misoperations and MIDAS reporting work.
By SANDIP R PATEL November 15, 2025
Learn how PRC-004-6 misoperations and MIDAS reporting work. A complete NERC compliance guide from Keentel Engineering for utilities and power entities.
Solar panels field and power plant with smokestacks on a cloudy day.
By SANDIP R PATEL October 30, 2025
Learn how Generator and Transmission Owners meet PJM MOD-032 data submission requirements using Gen Model, Model on Demand, and ASPEN tools for NERC compliance.