Keywords

1 Introduction

Due to the interactions between the traditional passive network and also of active power electronic components via dedicated communication networks, smart grids tend exhibit a high degree of complexity [10]. Sophisticated automation and information technology, corresponding control algorithms and data analytics methods are also of high importance for the reliable operation and optimization of such cyber-physical energy systems. This is so as to cope with a high(er) penetration of fluctuating renewable generation and controllable loads. As a result of these developments the validation on the system level, i.e., the testing of the integration and interaction of the connected components and algorithms, becomes today much more important during the whole engineering and deployment process [27, 41]. In earlier development stages and for larger system configurations laboratory-based testing is not always an option. Simulation in the domain of power systems is fundamental in order to understand system behaviour under normal but also in emergency situations. It also avoids costly and time-consuming real-world laboratory testing or field trials [41]. Due to recent developments, simulation-based approaches are an important tool in the development, implementation, and roll-out of smart grid solutions [29].

This paper provides a comprehensive discussion of the current state of simulation-based validation approaches in the domain of power and energy systems and addresses smart grid validation needs. It identifies shortcomings in today’s practice and outlines the necessary future research and development steps.

The rest of this paper is organized as follows: Sect. 2 briefly outlines main challenges in the validation of smart grid systems. A comprehensive overview of simulation-based smart grid development and validation approaches is given in Sect. 3.2 followed by a discussion of future research needs and directions. Section 5 concludes the paper with the key findings.

2 Validation Challenges

Traditionally, the separate domains of power system and Information and Communication Technology (ICT)/automation have been analysed individually. In the context of the smart grid advancement, and for the first time, new requirements now demand simultaneous coverage of both domains in a comprehensive system-level validation. As already pointed out in the introduction, simulation-based approaches play a vital role in enabling this [27, 29].

Figure 1 shows the state-of-the-art in smart grid simulation and corresponding validation. The system complexity grows with the extension of the analysed network part. Smart grid systems will demand modelling of the interaction of different network levels but also the integrated analysis of ICT issues.

Fig. 1.
figure 1

Growing gap between system complexity and performance of simulations

A fast growing gap can be observed between the system complexity and the performance of known methods for system simulation (see Fig. 1). It still remains that for the hardware-accelerated simulation, a feature of real-time hardware-in-the-loop simulations, the interaction of network levels can only be analysed at very coarse granularity. Todays tools still stem from the phase where single domains were in the focus. As soon as they get coupled with tools from other domains (ICT/automation, energy markets, customer behaviour, etc.), the performance is usually considerably reduced due to the necessary data exchange and format conversion.

In the following sections an overview of different simulation approaches is provided and future research needs and directions are derived in order to overcome the above mentioned gap.

3 Simulation-Based Validation Approaches

Simulation approaches used in the power and energy domain can generally be divided into the following three areas: (i) multi-domain simulation, (ii) cooperative simulation (also known as co-simulation), and (iii) real-time simulation and hardware-in-the-loop. An overview of all these approaches is given below.

3.1 Multi-domain Simulation

Pure simulation tools are suitable in the early development stages for concept design and proof-of-concept validation. Purely analytical or numerical tools are suitable for concept analysis, but if there is no clear separation of the solution (e.g., an embedded control system) the simulation results cannot serve as a means of validation. The validation of embedded systems solutions will require the integration of heterogeneous simulation components as both the systems complexity and heterogeneity is increasing and specialized and validated simulation models are typically developed in a single domain. The simulation framework Ptolemy II [8] offers a rigorous solution to this integration by focusing on the determinism of simulation outcome – a feature particularly important for validation purposes. Another important multi-domain simulation has been developed with the Modelica language [9]. It is also based on first principles approaches in the declaration of models, strictly separating an object and interface-oriented approach to “modelling” from “solving”, which is performed in a compilation step. Modelica is supported by both active open source development [11] as well as commercial packages. The third example for a purpose-built multi-domain simulator for smart grid algorithms is IPSYS [5, 17] and it is meant for performance-assessment of hybrid power system control strategies. Multi-domain simulators are each built on generalized principles of interaction.

Despite the powerful uses in performance assessment, system-level validation is questionable, as a multi-domain simulator typically requires the candidate system to be adapted or even reformulated to comply with the respective simulator architecture.

3.2 Co-simulation

Overview and Distinction with Other Simulation Types

Co-simulation is defined as the coordinated execution of two or more models that differ in their representation as well as in their runtime environment [37]. Representation in this context means the underlying modelling paradigm. For example, models may be represented as differential equation systems, discrete automata, etc. A runtime environment is a software system that solves model equations or generally allows the model execution. The models in a co-simulation system, therefore, have been developed as well as implemented independently. A number of simulation concepts are related to co-simulation, but differ slightly in their definitions [12]. Setups with combined development and implementation of all model systems are used for “classic” simulation. If models are developed jointly but are then separated into different runtime environments, one speaks of distributed or parallel simulation. Joint implementation and execution of models with different representation is sometimes called hybrid or merged simulation. The different types of simulation are depicted in Fig. 2.

Fig. 2.
figure 2

Distinction between co-simulation and other simulation types [12, 37]

It is important to note that co-simulation implies the interaction of hardware and software components in some domains. In general, all components of a co-simulation setup may be either hardware or software. If hardware/software co-simulation is conducted for hardware testing, it is typically called “Hardware-in-the-Loop” (HIL) [16].

The major benefit of co-simulation is the separation of the modelling and simulation processes. Different researchers or even institutes may develop and implement simulation models representing different systems. Co-simulation users may then employ these models to analyse the dynamics of larger “systems of systems”. In other words, co-simulation supports reuse of simulation models. Ideally, these models have been created by experts of the particular domain, are properly validated, and thus acknowledged.

Generic vs. Specific Co-simulation

The driving force behind co-simulation is the fact that the involved subdomains already utilise numerous established technologies and simulation tools. Independently, the interactions of each subdomain are not yet fully understood. Many co-simulation approaches feature manual coupling of a small number of tools ad-hoc. Mainly power system and communication network simulation frameworks are regarded [13, 14, 20, 23] since they are considered the major determining factors in smart grid dynamics.

Other co-simulation projects, however, support a more generic approach with a stronger inclusion of different system components. Generic co-simulation approaches involve a middleware that is responsible for data exchange and temporal synchronization of several models. A software fulfilling these tasks is called a co-simulation framework. It typically provides a set of interfaces that may be implemented to establish a connection between the framework and a given model. A connected model can then indirectly exchange data with all other connected tools. The frameworks synchronization algorithm provides a common time frame for this exchange. Therefore, individual coupling between simulation tools is not necessary. This greatly reduces the likelihood of coupling errors and allows easy reuse of tools in various co-simulation studies. The difference between the manual ad-hoc coupling and the framework coupling is shown in Fig. 3.

Fig. 3.
figure 3

Difference between specific and generic co-simulation [39]

Model Instantiation

An important concept in co-simulation is model instantiation. That means that several virtual objects are derived from the same model to simulate the behaviour of a number of similar systems. Such an object is called entity or instance. One example is that of several virtual Photovoltaic (PV) panels that are all derived from the same simulation model. The instantiation is important since each entity might receive different inputs from a spatial resolved solar irradiation model. In other words, instantiation is used in co-simulation to account for complex inputs and boundary conditions affecting relatively simple component models. Sometimes, however, the implementation of a simulation tool does not allow for multiple instantiation of it’s models. These models are then called singletons.

Interfaces for Simulator Abstraction

Next to software for co-simulation orchestration and execution, interfaces for simulator abstraction are an important concept in co-simulation research. The most popular standard in this context is the Functional Mockup Interface (FMI) [6]. It has been defined in the industrially led MODELISAR project in coordination with the modelling language Modelica. Thus, FMI is supported by Modelica environments like Dymola [7] or SimulationX [26], but also by independent tools and languages like Matlab and Python. Some tool-specific co-simulation approaches employ FMI as well for interface descriptions in order to facilitate future extensibility of their setups [3]. The FMIs benefit is not just given by its formalism in model description. The standard allows users to make their models and simulation tools accessible in the form of so-called Functional Mock-up Units (FMU) that contain an FMI-based formalization as well as some form of representation of the tool in question. This representation depends on the type of FMI employed. The FMI standard is divided into two main parts: (i) FMI for Model Exchange and (ii) FMI for Co-Simulation. The essential difference is that FMUs of the former standard expect to be solved by a given master algorithm. FMUs of the latter standard, on the other hand, contain a solver so that the master algorithm is only required for the coordination of data exchange. In other words, models standardized with FMI for Co-Simulation are co-simulation-ready components while those standardized with FMI for Model Exchange are not.

All in all, it can be said that co-simulation frameworks (popular tools are Mosaik [34, 38], Ptolemy II [30], and C2WT-TE [24]) and standards are subjects to active, ongoing research. Many tools and concepts already exist with varying foci, features, and degrees of usability and popularity.

3.3 Real-Time Simulation and Hardware-in-the-Loop

A simulation where a fixed time-step of the simulator, required for achieving a solution and performing I/O activities, is equal to the actual wall-clock time is commonly referred to as a real-time simulation. For validation purposes, the real-time simulation is commonly coupled with a Hardware-under-Test (HUT), adding the complexity of the hardware to the assessment procedure [16]. This advanced testing method, HIL, allows for an extensive analysis of the HUT while under a simulated broad range of operating conditions, reducing the risk associated with performing tests on an actual network and at the same time reduces the cost and time required for performing validation of power system components and energy systems.

Depending on the characteristics of the HUT and the properties of interface between HUT and the real-time simulation, HIL can be classified as controller or power HIL (shown in Fig. 4).

  • Controller-HIL (CHIL), the HUT exchanges low voltage signals (\(+/-\)10 V) with the real-time simulation. The HUT in CHIL is typically a controller device, although real-time simulations coupled to other devices such as relays, PMU or monitoring components are usually classified as CHIL. This devices are validated in a closed-loop environment under different dynamic and fault conditions, therefore enhancing the validation of control and protection systems for power systems and energy components [40].

  • Power-HIL (PHIL), the exchanged signals between simulation and HUT are of high power and therefore a dedicated power interface for amplifying the exchanged signals and injecting or absorbing power is required for coupling high power HUT with software simulation. Different approaches can be selected for exchanging the signals, known as interface algorithms, depending on the application and the compromise between stability and accuracy of the simulation [33]. The addition of the power interface introduces inaccuracies into the process as the power interface cannot achieve unity gain with infinite bandwidth and zero time delay, therefore the stability and accuracy of PHIL experiments needs to be assessed before an experiment takes place. A number of compensation methods for improving the stability and the inaccuracies are frequently used within PHIL simulations [15, 42]. Hardware components without detailed simulation models are now capable of being tested through PHIL simulations.

Fig. 4.
figure 4

Overview of the CHIL and PHIL simulation concepts

CHIL techniques have been successfully used for testing protection relays [1], novel control algorithms for power system devices [21], PMU and other low power devices. However, sometimes the fidelity to represent the dynamics of complex power components such as power electronics converters have to be compromised due to the fixed time-step of real-time simulatons, limiting the size of the simulations and the transient performance [19]. For this purpose, PHIL simulations have been carried out for testing the integration of converter connected generation into power systems or validating novel power converter structures [18].

4 Future Research Needs and Directions

Simulation techniques are essential in the engineering and validation of smart grid system development. As outlined above, different approaches are useful for different design stages. However, there are still several open issues related to the usage of simulations in the domain of power and energy systems. In the following, the most important research needs and target directions are discussed.

4.1 Representative Models and Model Exchange

One of the main challenges the research community faces with respect to single and multi-domain simulations is the availability of representative validated models. It is crucial that the models utilized for the purpose of simulation (offline or real-time) are validated against their representative behaviour. Most domain specific simulation tools offer elementary components required in the development of complex models. These are used by the research community to develop more complex models and novel control solutions. However, the following two challenges need to be addressed:

  • Interoperability: Such validated models made available within one simulator cannot be utilized within other simulation tools. This often requires rebuilding the same model for each of the simulation tools by the prospective user.

  • Intellectual Property (IP): More often than not, validated models are not shared with the wider research community due to the IP issues involved. This acts as a setback to the general progress of research.

FMI provides a potential solution to both the above challenges. FMI for Model Exchange (ME), as a standard, offers a way to develop models independent of the simulation tool, where a model is converted into a C-code, compiled, supplemented with XML-schema representing the model interactions and made available for use. As most simulation tools utilize C as their lower level language, this allows for the developed models to be imported and simulated. Furthermore, it allows for models to be exported as a black-box, protecting the IP. Although FMI-ME is well accepted within the automotive industry, at this present day, many proprietary power systems simulation tools are still yet to incorporate the FMI-ME standard. Furthermore, although the models exported from simulation tool A can be run within simulation tool B (assuming simulation tool A and B support FMI-ME), it requires both simulation tool A and B to be installed on the recipient computer, limiting the capabilities of FMI-ME.

The practice of making a software open source is widely exercised within energy domains, however libraries of models are rarely open source. Open source does provide a variety of advantages that include, but are not limited to, encouraging quality and identification of prospective collaborations.

4.2 Co-simulation

In research, the following topics need to be addressed to meet current and upcoming requirements for co-simulation based validation of smart grid systems:

  • Automated Scenario Generation/Scenario Formalization: Sets of scenarios need to be generated automatically from a relatively high-level description, if employed simulators and parameter values are known. A close-to-reality formalisation of smart grid scenarios, that can be translated into executable co-simulation scenarios (incl. validation of scenario completeness, coherence, etc.), needs to be developed.

  • Simulation Interface/Description Standard: A semantic description of a simulator needs to be specified. A promising interface standard is already given in form of FMI, but an additional layer providing a more direct mapping to the real world would allow automated scenario validation.

  • Additional Research Domains: More research needs to be carried out in terms of integration of communication systems, economic dynamics, social/psychological effects and dynamics, security-related issues, and environmental factors/dynamics into the co-simulation setup. The latter may even lead to a need of spatially resolved, GIS-based co-simulation.

  • Performance Optimization: The execution of different simulators in a single experiment needs to be distributed onto several machines. Parallelization of a co-simulation execution without the requirement of a single common “data hub” in the form of a machine that runs the scheduler needs to be realized. The design of co-simulation scenarios should allow for a formal method to select simulators with a performance as high as possible and an output accuracy as high as necessary. Surrogate modelling should facilitate the automated creation of surrogate replacements of computationally expensive simulators for performance increase.

  • Data Management: Data stream management should allow for analysis, aggregation and monitoring of co-simulation output during the simulation process. Through big data storage, efficient long-term storage of large data sets should be enabled, allowing for data mining operations.

  • Visualization: Improved tools for easy on-line monitoring and demonstration of co-simulation scenarios should be developed. Solutions for feeding co-simulation output into a control room/SCADA setup for the sake of training, testing or development should be realized.

  • Uncertainty Quantification (UQ): The effect of the coupling of different UQ approaches handling different simulators in a co-simulation setup should be researched. Approaches for UQ should be developed, focused on uncertainty sources related with simulator interaction (e.g. different resolutions, data transformation, instable data exchange, etc.). Moreover, useful aggregation and depiction of the output of UQ studies need to be developed.

4.3 Real-Time Simulation and Hardware-in-the-Loop

Offering a wide range of possibilities for validation and testing of smart grid systems, current HIL technology still has several limitations. In the European project ERIGridFootnote 1, a survey was addressed at the experts in 12 top European research institutions about current limitations and mandatory future improvements of HIL technology (PHIL and CHIL). Current open issues can be classified into four categories:

  • Limited capacity of HIL simulation for complex systems (computing power, complexity and synchronization) and for studies of non-linearity, high harmonics and transient phase.

  • Limited capacity of remote HIL and geographically distributed HIL for joint experiments, mostly due to synchronization (CHIL and PHIL) and power interface stability and accuracy with respect to loop delay (PHIL).

  • Difficulty in integration of HIL technology to the communication layer, particularly related to the synchronization of real-time and offline simulation, as well as continuous and discrete timelines.

  • Lack of a general framework to facilitate the reusability of models, information exchange among different proprietary interfaces or among different partners of a joint HIL experiment.

Due to the aforementioned issues, HIL technology needs several aspects to be improved. Overall, the following research trends can be observed and need to be addressed:

  • Integration of Co-simulation and HIL: It is expected that integrating HIL technology into co-simulation frameworks is an important contribution toward a holistic approach for experimenting with cyber-physical energy systems. Combining the strengths of both approaches, multi-domain experiments can be studied with realistic behaviours from hardware equipment under a variety of complex environments, co-simulated by appropriate and adapted simulators from the relevant domains. It will enable a complete consideration of the electrical grid to be interconnected with other domain. Until now, this is still limited. Most of the current work involving integration of HIL and co-simulation uses only a direct coupling with the real-time simulator [4] or a CHIL setup [36].

  • Remote and Geographically Distributed HIL: Latency strongly influences the accuracy (HIL) and the stability (PHIL) of a HIL test. Moreover, random packet loss due to network congestion outside of LAN may alter the information and cause malfunction at the real-time simulator, including any connected hardware [31]. Up-to-now scientists have investigated the possibility of extending PHIL beyond laboratory geographical boundaries, and mostly, for latency tolerant applications (e.g., monitoring) [22, 28]. These developments could be a first step in enabling the possibility of remote HIL and geograhically distributed HIL.

  • Interoperability and Standardization: Within a HIL-co-simulation test it is crucial to ensure seamless communication among the individual components and simulators. Additionally, when the experiments involve multiple domains or multi-laboratories, it is required to have strong interoperability between different partners [25]. A common information model is necessary to enable seamless and meaningful communication among applications. First attempts have been made towards creating a common reference model to improve interoperability and reusability of HIL experiments [2]. With these efforts towards harmonization and standardization of HIL technology, a standardized and general framework for HIL experiments can be established.

  • Power Interface Stability and Accuracy: Basically, the challenge here is to synchronize and compensate the loop delay, in order to stabilize the system and increase the accuracy of a test. The first step should be selection of appropriate interface algorithms and power amplification. Recommendations from [16] should be used. Secondly, a time delay compensation method could be considered, such as introducing phase shifting, low-pass filter to the feedback signal [18], extrapolation prediction to compensate for time delays [32], phase advance calibration [35] or multi-rate real-time simulation [42].

5 Conclusions

The ongoing transition towards smart grids implies significant changes in the overall energy system’s architecture and infrastructure. A newly arising issue is the continuously increasing level of the system’s complexity, i.e., growing number of components in various subsystems that are interrelated to each other. In order to manage, analyse and understand this novel smart grid system, simulation approaches have to be adopted.

As outlined in the paper mainly three different simulation approaches – multi-domain, co-simulation, and real-time hardware-in-the-loop – are suitable tools for analysis and validating smart grids during various development steps. Despite achievements that have been made in this area, a lot issues are yet to be solved.

The main research directions related to co-simulation can be summarized as usability improvements, standardized interfaces, performance optimization, data management, and visualization. In the domain of real-time simulation and HIL, future research should address PHIL interface improvements, remote HIL, standardization and coupling with co-simulation. In summary, there remains ample space for future research in simulation-based smart grid system validation.