<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Model Driven Design of IT Systems for Smart Grids</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>David Oudart y EDF R</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Palaiseau</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>France</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>-Smart Grids are complex systems interfacing power grids with information and communication technologies in order to automate decision making and balancing between production and consumption. In order to facilitate the IT engineering of these systems, we aim to provide a framework relying on executable modeling and simulation. Our main challenge is to interconnect models of the different business aspects of Smart Grids: physical models of the Energy Management System (EMS), models of the telecommunication infrastructure and behaviour models of the producers and consumers. Our solution complies with Model Driven Engineering (MDE) principles. Indeed, we rely on standards, like fUML for executable modeling and FMI for cosimulation, and model transformations to improve reusability, scalability and consistency. Our framework will be tested on the case study of the EMS of an island power grid mixing battery storage, renewable and fossil energy production.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>
        A common way to see a Smart Grid is as an electric grid
which is augmented by information and communication
technologies, allowing prevention, better reactivity and improved
response to events such as electrical failures. As it involves
many technical domains, a Smart Grid is a complex system
to design and simulation is therefore valuable to evaluate
various behavioral assumptions. MDE principles are
wellsuited to address design and development issues of complex
industrial systems by reasoning from executable models all
along the life cycle of the system [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. However there lacks
a general approach to interconnect models from different
technical domains for complex systems. These models are
designed using different tools (such as State machines, Activity
Diagrams, Modelica, Discrete Events, statistical models), and
the accuracy of the predictive value of the simulation depends
on the proper combination of their meaning and on the correct
synchronization of their execution. It is therefore mandatory
to ensure the macroscopic alignment of the models with the
business processes, and to maintain the consistency of the
global model while refining the individual models toward an
implementation.
      </p>
      <p>This paper proposes a framework of methods and tools
based on MDE principles and focusing on computational
and applicative development. IT models are integrated in
simulations that execute all the models of the Smart Grid
in order to perform predictive analysis. These models are
refined towards their real implementation by successive model
transformations. To achieve these goals, it is necessary to
ensure that our models have consistent interfaces: they must
share a common meaning of the exchanged values. Moreover
the business processes have to be integrated to the simulations,
to synchronize the execution of the models and validate their
alignment to global and strategical concerns.</p>
      <p>
        In the electrical community, the challenge of simulating
Smart Grids is not new. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] sets up an environment to
cosimulate Smart Grids with distributed control. Their approach
uses software and hardware-in-the-loop simulations, with real
controllers controlling a Matlab simulation of the plant through
UDP and TCP communications. They particularly addressed
the issue of the adaptation between event-driven and
continuous components.
      </p>
      <p>
        [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] explains how a power grid simulator should be designed
in order “to accommodate the requirement for
interoperability”. He developed his own power grid simulator based on
numerical algorithms instead of only equations to combine
discrete and continuous simulations in one engine. Sensors,
controllers and electro-mechanical components are all
modeled and simulated with that engine and a component library
written in C++. The simulator also implements an interface
for time management and the injection of discrete data at
runtime. To integrate a communication simulator, the power
grid models are wrapped in components for the OMNET++
or NS2 simulators. This approach is efficient but provides
a very specific solution for the cosimulation of smart grids
and therefore lacks extensibility. New behaviors and control
equipments are defined by writing C++ code, so there is little
support for managing the refinement of the components during
design. Also, using code as models prevents the use of MDE
techniques for generating the wrappers used to interconnect
the different simulators and to check the consistency of the
whole simulation.
      </p>
      <p>
        [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] developed a framework called VPNet for Smart Grid
simulation. The VPNet framework provides a cosimulation
coordinator implemented in C# to interface the OPNET
communication simulator with VTB, a simulator for power grids
with automated control. The two simulators are also both
extended with interface modules to allow exchanges with
the coordinator. This approach takes into account only the
communication and the power aspects of a grid. The control
part is integrated in the electrical simulation and there is
no support for the IT aspect, which goes beyond “classical”
control in smart grids. Moreover, this approach is tied to two
specific simulators while our goal is to build a framework
allowing (with specific development effort) the integration
of any simulator. This is necessary because companies have
developed specific simulators for handling technical aspects
such as transients, harmonics and unbalanced networks. These
legacy tools capture business knowledge that can be used
during the design and analysis of a smart grid.
      </p>
      <p>
        [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] notes that current Smart Grid simulation environments
generally focus on one domain of the system, and expresses the
need for a fully integrated environment handling multi-agent
control, and interactions between these agents and the power
system components. The paper presents a list of requirements
for appropriate smart grid simulation tools, such as using
timestepped simulations, or allowing different paradigms in the
models that are integrated. The authors conclude that there
is a general lack of interoperability, and particularly of “a
standardized and lightweight simulator API to enable syntactic
interoperability (how is data exchanged), a standardized
semantic description to achieve semantic interoperability (what
is the meaning of exchanged data), and a well-defined
modelindependent scenario description language (what components
are to be simulated and how are they interconnected)”.
      </p>
      <p>
        The existing solutions for the simulation of smart grids
show what is technically possible and the kind of results we
can expect. However, we would like to go further and to
provide support for an evolving simulation of smart grids,
from abstract models with coarse physical behaviors, up to
very detailed models of the power grid, the telecommunication
network, and the “smart” control algorithms. The requirements
in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] are also part of our goal.
      </p>
    </sec>
    <sec id="sec-2">
      <title>III. PROPOSED SOLUTION</title>
      <p>
        Our primary concern is to address the diversity of modeling
tools and languages. We choose to consider the FMI standard
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] to perform cosimulations, instead of implementing our
own ad-hoc connectors between simulation engines, in order
to benefit from the reliability of a standard and to improve
the reusability of our models and the modularity of our
cosimulations. Moreover, the interfaces rely on primitives
types which are basic enough to be implemented in a large
variety of domain specific languages (DSL), and the particular
format of FMU protects the intellectual property, valuable in
the industrial context of Smart Grid development.
      </p>
      <p>
        Previous work in our team proposed a framework to model
and execute business processes in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. This framework relies
on the fUML standard, which is an executable subset of UML.
Class diagrams are used for data entities, and activity diagrams
for dynamic behaviors. They developed specific extensions for
the execution engine Moka allowing to integrate software in
the loop, driven by the business process seen as an orchestrator,
and then ensure Business and IT synchronization.
      </p>
      <p>
        In our solution, the business process represents the whole
dynamic behavior of the IT and its interactions with physical
models. We iterate on previous work by using FMI for the
interactions between models, instead of specific connectors.
Business processes are written in fUML and exported to
FMUs through Papyrus and its executable engine Moka,
as described in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Although fUML theoretically supports
the description of a dynamic behavior, in practice from our
experience the language is not adapted to complex behaviors
manipulating a large set of variables, as is the case in smart
grid applications. Model transformations would enable the
refinement of a behavior from a basic one, in the early design
phases, to a more precise and relevant one by switching to a
more suitable paradigm and a different language. Hence we
looked for a solution to delegate an operation from a fUML
model encapsulated in an FMU to a process in another FMU
(figure 1), by synchronizing the execution and the results.
Using the “plug &amp; play” property of an FMU, we should be
able to execute the delegated behavior along its successive
transformations and refinements, and eventually test the final
code of an IT application.
      </p>
      <p>
        The validation of IT behaviors would be ensured by the
global cosimulation. IT, communications and power grid
simulators are wrapped with FMI, and a Master Algorithm of
cosimulation is in charge of managing interactions between
FMU and synchronizing the time-stepped simulations. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]
showed that the size of the step interval can have a significant
impact on the accuracy of the results in case one or more
models follow an event-driven paradigm. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] proposes some
additions to the FMI standard to build a Master Algorithm
with an event detection strategy in order to adapt the time
step at best. The authors implemented this functionality in
the DACCOSIM multi-simulation open source software, so
we chose to use it as our cosimulation environment.
      </p>
    </sec>
    <sec id="sec-3">
      <title>IV. PLAN FOR VALIDATION</title>
      <p>To validate our framework, we want to use it for the
design and development of an EMS for the “Île de Sein”
island power grid use case. Île de Sein is a french island
which has a power grid independent from the mainland, with
its own production equipments. A diesel power plant is the
main energy producer, and is complemented by a photovoltaic
farm and battery storage to balance the production with the
industrial and residential consumptions. Besides distributed
control, the smartness of the grid is handled by a central EMS
which can make decisions based on the knowledge of the state
of all the components of the grid. One of the main purposes
of the software is to optimize the costs and production, by
minimizing diesel energy over renewable energy. The Telecom
network links all the grid control systems to the EMS. IT
systems should be modeled starting from the business process,
with as much automation as possible in order to ease the
implementation of the applications, to ensure business and IT
experts can work together. Then, the relevance of the models
should be analyzed through cosimulations of business, IT,
Telecom and electrical models. Finally, we want to validate the
consistency between IT models and their implementation, by
replacing in the cosimulation the EMS FMU by the final code
of the EMS, itself wrapped in an FMU. In each cosimulation
case, the global results of the cosimulation are our main
criteria to analyze and validate the behavior of the business and
IT components. It implies to consider that the physical models
are correct and that their behavior is known and determined.</p>
      <p>V. EXPECTED CONTRIBUTIONS</p>
      <p>The expected contributions of our work are a methodology
for designing and modeling smart grids in an executable way,
and tooling to support this methodology. The methodological
aspects aim to guide the designers in the construction of the
models of the different parts of the grid and in the definition
of the interfaces between these models. The tooling aspect
handles the executability of the models and the proper
orchestration of their executions. It also handles the consistency of
several refinements of a model to allow the simulation of the
whole grid at different levels of detail.</p>
    </sec>
    <sec id="sec-4">
      <title>VI. CONCLUSION AND CURRENT STATUS</title>
      <p>So far we have mostly worked on the tooling aspects and
focused on a cosimulation involving only the power grid
and the business/IT models. Electrical components and their
automated control are modeled in Modelica, with a load-flow
approach (balance between power production and
consumption), and wrapped with FMI (OpenModelica and Dymola
implement the model export to FMU). We managed to simulate a
basic control of the grid FMU with a fUML process wrapped
in another FMU, which amounts to interfacing an event-based
process with a continuous physical system over FMI. This
work is necessary to determine what kind of information must
be available in the models, which has consequences on the
methodology used for their design. However, we have also
worked on some methodological aspects to take into account
the separation of different business types of knowledge in the
design of these models.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>T.</given-names>
            <surname>Blochwitz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Otter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Arnold</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bausch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Clauss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Elmqvist</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Junghanns</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Mauss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Monteiro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Neidhold</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Neumerkel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Olsson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-V.</given-names>
            <surname>Peetz</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Wolf</surname>
          </string-name>
          .
          <article-title>The functional mockup interface for tool independent exchange of simulation models</article-title>
          .
          <source>In Proceedings of the 8th International Modelica Conference; March</source>
          20th-22nd; Technical University; Dresden; Germany, pages
          <fpage>105</fpage>
          -
          <lpage>114</lpage>
          . Linköping University Electronic Press,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Guermazi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Dhouib</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Cuccuru</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Letavernier</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Gérard</surname>
          </string-name>
          .
          <article-title>Integration of UML models in FMI-Based co-simulation</article-title>
          .
          <source>In 2016 Symposium on Theory of Modeling and Simulation (TMS-DEVS)</source>
          , pages
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          ,
          <year>April 2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J.</given-names>
            <surname>Hutchinson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rouncefield</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Whittle</surname>
          </string-name>
          .
          <article-title>Model-driven engineering practices in industry</article-title>
          .
          <source>In 2011 33rd International Conference on Software Engineering (ICSE)</source>
          , pages
          <fpage>633</fpage>
          -
          <lpage>642</lpage>
          , May
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>W.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Monti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Luo</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Dougal. VPNET</surname>
          </string-name>
          :
          <article-title>A co-simulation framework for analyzing communication channel effects on power systems</article-title>
          .
          <source>In 2011 IEEE Electric Ship Technologies Symposium</source>
          , pages
          <fpage>143</fpage>
          -
          <lpage>149</lpage>
          ,
          <year>April 2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Nutaro</surname>
          </string-name>
          .
          <article-title>Designing power system simulators for the smart grid: Combining controls, communications, and electro-mechanical dynamics</article-title>
          .
          <source>In 2011 IEEE Power and Energy Society General Meeting</source>
          , pages
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          ,
          <year>July 2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Rohjans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lehnhoff</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Schütte</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Andrén</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Strasser</surname>
          </string-name>
          .
          <article-title>Requirements for Smart Grid simulation tools</article-title>
          .
          <source>In 2014 IEEE 23rd International Symposium on Industrial Electronics (ISIE)</source>
          , pages
          <fpage>1730</fpage>
          -
          <lpage>1736</lpage>
          ,
          <year>June 2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Rachida</given-names>
            <surname>Seghiri</surname>
          </string-name>
          .
          <article-title>Modeling and simulation of an Entreprise ArchitectureApplication to Smart Grids (in French)</article-title>
          .
          <source>PhD thesis</source>
          , Université ParisSaclay,
          <year>July 2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.-P.</given-names>
            <surname>Tavella</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Caujolle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Vialle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Dad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Tan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Plessis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Schumann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Cuccuru</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Revol</surname>
          </string-name>
          .
          <article-title>Toward an Accurate and Fast Hybrid Multi-Simulation with the FMI-CS Standard</article-title>
          .
          <source>In 21 st International Conference on: Emerging Technologies and Factory Automation (ETFA2016)</source>
          , Berlin, Germany,
          <year>September 2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>C.-H. Yang</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Zhabelova</surname>
            ,
            <given-names>C.-W.</given-names>
          </string-name>
          <string-name>
            <surname>Yang</surname>
            , and
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Vyatkin</surname>
          </string-name>
          .
          <article-title>Cosimulation Environment for Event-Driven Distributed Controls of Smart Grid</article-title>
          .
          <source>IEEE Trans. Industrial Informatics</source>
          ,
          <volume>9</volume>
          (
          <issue>3</issue>
          ):
          <fpage>1423</fpage>
          -
          <lpage>1435</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>