SlideShare a Scribd company logo
CURENT Seminar Series
The University of Tennessee, Knoxville, August 22nd 2017
Prof. Luigi Vanfretti
Rensselaer Polytechnic Institute, ECSE, Troy, NY
Web: ALSETLab.com
Email: vanfrl@rpi.edu - luigi.vanfretti@gmail.com
Dr. Phillip Top
Lawrence Livermore National Lab
Web: https://software.llnl.gov
Email: top1@llnl.gov
OpenIPS
L
Modeling and Simulation of Electrical Power Systems using
OpenIPSL.org and GridDyn
Agenda
• About Me (Luigi)
• My Research.
• Recruiting for: ALSETLab
• Part 1: (Luigi Vanfretti)
 Introduction:
 Modeling and Simulation Generalities and
Modelica
 The OpenIPSL
 Recent developments
• Part 2: (Phillip Top)
 Applications of the OpenIPSL library
and the FMI in
 GRIDDYN
• Latter today: Tutorial: (Me + You!)
 Hands-on-Tutorial:
 Overview of the OpenIPSL library
 Overview of the OpenModelica
environment
 Hans-on-Example
 Do the “preparatory work” so that
everything is ready to go in your
computer!
2
About Me - http://ALSETLab.com - Dr. Luigi!
3
Other facts and numbers:
- Guatemalan and Italian Citizenships.
- Speak/write Spanish (native), English, Italian (spoken, poorly written), Norwegian (Basic)
- 36 years, married (March 4th, 2017) - no kids yet… but really want a dog!
- Close family, brother and wife, live in Woodstock, NY; run Dolce Caffe in Kingston’s Historical Roundout
- Lived in 4 countries, worked in 5…
2016 - 2017
Consultant.
2000 – 2005.
5 year Electrical Power
Engineering program @
Universidad de San Carlos
de Guatemala.
YOB.
1981
Guatemala
Visiting Researcher
@ The University of
Glasgow, Scotland
2006 – 2009
MSc and PhD @ RPI
2010
Post-Doc @ RPI
Fall 2004
Intern at INDE (National
Electrification Institute),
Substations Engineering
2010 – 2017, KTH Royal Inst. Of Tech.,
Stockholm, Sweden
2010: Associate Professor
2012: Docent (Habilitation)
2013: Associate Professor (‘tenured’)
2011 – 2017, SmarTS Lab. Research
Group
2011 -External
Scientific Advisor
(Consultant)
2011 – 2016
Special Advisor
R&D Division
All @ Statnett SF, Oslo, Norway
(Power System Operator)
My Research – Cyber-Physical Power Systems
44
Implementation &
Rapid Prototyping
(software-in-the-loop
real-time simulation)
Implementation &
Testing
(hardware-in-the-loop
real-time simulation)
System Performance
(deployment and demonstration)
Validation
Verification
Testing
Testing Against Use Cases
Testing with other elements
and within the environment
Testing each component
in isolation and
with other elements
Unit Design
Models
Units
(SW, HW, Data)
Component
Design Models
Components
(SW, HW, Data)
Device Models Subsystems
Overall System
Models (incl. grid)
User
Requirements &
Models
Operational
System
User Cases and Requirements
(HLA Design using UML Spec and CIM)
System Level
Design & Specifications
(physical modeling and
off-line simulation)
Implementation
(Production Code
Generation)
Integrated
Systems
Subsystem
Integration & Tests
(hardware-in-the-loop
real-time simulation)
Model-and-Measurement-Based Systems Engineering of Power System and Synchrophasor Technologies
Recruiting @ ALSETLab
• I’m looking for graduate students to join my team!
• If you know someone that would be interested, please tell them to
check my website
• See: http://ALSETLab.com
5
New Course! Spring 2018 - CPS Modeling, Simulation and Analysis
• Understand cyber-physical systems and
how to model them.
• Lean about standardized modeling
languages and compliant tools
• Learn and become proficient with the
Modelica language
• Learn and apply model-based systems
engineering concepts and tools (UML,
SysML using Papyrus RT)
• Apply identification, control and
optimization techniques to CPS systems
• Apply its use for analysis of:
 Power systems
 Energy efficient building automation
 Multi-domain energy systems
 Cyber-physical systems design and
analysis 6
Modeling and Simulation of Electrical Power Systems using
OpenIPSL.org and OpenModelica.org
Part 1: Introduction
Prof. Luigi Vanfretti
Rensselaer Polytechnic Institute, ECSE, Troy, NY
Web: ALSETLab.com
Email: vanfrl@rpi.edu luigi.vanfretti@gmail.com
Outline
o The role of models and simulation
 Generalities
 In power electrical systems
o Modelica and power systems
o The OpenIPSL Project
o The OpenIPSL Library
o Continuous Integration
o On-going developments
8
A Fundamental Question: Why do we develop models and perform simulations?
• To reduce the lifetime cost of a system
 In requirements: trade-off studies
 In test and design: fewer proto-
types
 In training: avoid accidents
 In operation: anticipate problems!
 Crucial for electrical power systems!
• The prospective pilot sat in the top section
of this device and was required to line up a
reference bar with the horizon. 1910.
• More than half the pilots who died in WW1
were killed in training.
9
A Failure to Anticipate  Huge Costs!
10
Others: WECC 1996 Break-up, European Blackout (4-Nov.-2006), London (28-Aug-2003), Italy (28-Sep.-2003), Denmark/Sweden (23-Sep.-2003)
Failure!
Existing modeling and
simulation (and associated)
tools were unable to predict
this (and other) events.
There are many examples of failures to anticipate problems in power system operation!
The Multiple Roles of Modeling and Simulation in building:
Complex Cyber-Physical ”Systems-of-Systems”
11
Large Number of Vendors for the Final System
A Flying Micro-Grid!
M&S used to test
prototypes in variety of
environments.
M&S are used to train users in
the operational environment –
enhancing learning.
Simulation costs 1/10 of
running actual scenarios.
Scale of networks: cost-
prohibitive or technically
impossible for field tests.
M&S used to test and
validate networking
protocols in laboratory -
environment acting as a test
bed.
The Multiple Roles of Modeling and Simulation to develop
Cyber-Physical Power Systems (aka ‘smart grids’)
12
Implementation &
Rapid Prototyping
(software-in-the-loop
real-time simulation)
Implementation &
Testing
(hardware-in-the-loop
real-time simulation)
System Performance
(deployment and demonstration)
Validation
Verification
Testing
Testing Against Use Cases
Testing with other elements
and within the environment
Testing each component
in isolation and
with other elements
Unit Design
Models
Units
(SW, HW, Data)
Component
Design Models
Components
(SW, HW, Data)
Device Models Subsystems
Overall System
Models (incl. grid)
User
Requirements &
Models
Operational
System
User Cases and Requirements
(HLA Design using UML Spec and CIM)
System Level
Design & Specifications
(physical modeling and
off-line simulation)
Implementation
(Production Code
Generation)
Integrated
Systems
Subsystem
Integration & Tests
(hardware-in-the-loop
real-time simulation)
Conceptual Application for the Development of a WT Synchro phasor-Based Controller
Are today’s power system modeling and simulation approaches/tools fit to meet the challenges of the
cyber-physical world?
Dangers of Models and Simulation
• Falling in love with a model
The Pygmalion effect (forgetting that model is
not the real world)
• From the Greek myth of Pygmalion, a sculptor who fell
in love with a statue he had carved.
• Forcing reality into the constraints of a
model
The Procrustes effect (e.g. economic theories)
• Procrustes: "the stretcher [who hammers out the
metal]”, a rogue smith from Attica that physically
attacked people by cutting/stretching their legs, so as to
force them to fit the size of an iron bed.
• A Procrustean bed is an arbitrary standard to which
exact conformity is forced.
• Forgetting the model’s level of accuracy
Simplifying assumptions forgotten more than
yesterday’s pudding…
13
Power system dynamics challenges for simulation
the tyranny of multiple time-scales
14
10-7 10-6 10-5 10-4 10-3 10-2 10-1 1 10 102
103 104
Lightning
Line switching
SubSynchronous Resonances, transformer
energizations…
Transient stability
Long term dynamics
Daily load following
seconds
Electromechanical Transients
Electromagnetic Transients
Quasi-Steady State
Dynamics
Models are simplified (averaged) to allow
for simulation of very large networks.
Ad-hoc solvers have been developed to
reduce simulation time, but usually the
“model” is “interlaced” with the solver
(inline integration)
Generally there are no discrete events.
(Ad-hoc DAE solvers)
This is usually deal with by
discretizing the model and to solve it
using discrete solvers.
The presence of large time
constants and small time constants
and large amount of discrete
switches.
Difficult to simulate very large
networks (in the past?)
The models are simplified further by neglecting most
dynamics (replacing most differential equations by
algebraic equations).
(Ad-hoc DAE solvers)
Power System Phenomena Modeled and Discussed from this point on:
power system electromechanical dynamics
15
10-7 10-6 10-5 10-4 10-3 10-2 10-1 1 10 102
103 104
Lightning
Line switching
SubSynchronous Resonances, transformer
energizations…
Transient stability
Long term dynamics
Daily load following
seconds
Electromechanical Transients
Electromagnetic Transients
Quasi-Steady State
Dynamics
Positive Sequence / RMS / or
Phasor Time-Domain Simulation
Electromechanical Dynamics in the Western US (1996)
• What was measured: • What was simulated:
16
2 3 4 5 6 7 8 9
-2
-1.5
-1
-0.5
0
0.5
1
P(pu)
Time (sec)
Measured Response
Model Response
Electromechanical dynamic modeling help to capture ”wide-area” behavior across
geographical sparse interconnected networks such as these type of oscillations.
Good models are crucial for planning and operation of electrical power networks.
Before Model
Calibration
After Model
Calibration
Power Systems General DAE Model
17[Ref.] F. Milano, Power System Modeling and Scripting, Springer, 2010.
• The power system needs to be in balance, i.e. after a disturbance it must converge to an equilibrium
(operation point).
- Q: How can we find this equilibrium?
- A: Set derivatives to zero and solve for all unknown variables!
• Some observations that can be made:
- The algebraic equations in corresponded to having the fast differential equations at equilibrium all the time (in the
model and in the timescale considered).
- Finding the equilibrium when most of the variables are unknown is very difficult if when we try to solve this equation
system simultaneously.
- NB: power system tools do not generally do this!
- Hence, we attempt to sequentially solve the equation system for each t.
- First, we need to solve the algebraic equations that only depend on the algebraic
variables… this is were power systems deviates from other fields.
Finding the ”Power Flow” Steady State ”Equilibria”
18
Modelica –compliant tools
attempt to solve this problem
• Equation set g is separated in two sets of
algebraic equations:
(1) Is the part which governs how dynamic models will evolve, since they depend on both x and
y , e.g. generators and their control systems.
(2) Is the network model, consisting of transmission lines and other passive components which
only depends on algebraic variables, y.
Simulation: Starting from a solution of (2) only, equations (1) are solved at equilibrium
individually; to compute the starting guess of an ad-hoc DAE solver that iterates for (1)-(2) at
each time step.
Power System Modeling and Simulation Approach
19
Hypotheses
& Simplifications
Physical
System
Models
Equations
Analytical
Methods
Analyses
Specialized
M&S
Platform
Physical
System
User Defined Models
in Platform Specific
Language
Models with
Fixed
Equations
Available
(Limited)
Numerical
Algorithms
Analyses
Numerical
Methods
Fundamental Implications of the Conventional Power Systems Approach
20
Hypotheses
(assumptions)
Simplifications
(approximations)
General Approach Power Systems Approach
Closed-Form
Solution
Numerical
Solution
User:
Modeler and
Analyst Duality
Specialized Modeler Familiar with
the Domain Specific Platform
Specialized Analyst
Familiar with
the Domain
Specific Platform
Fixed Model is
”interlaced” with
one specific solver
Practical Implications of the Conventional Power Systems Approach
21
10-7 10-6 10-5 10-4 10-3 10-2 10-1 1 10 102
103 104
Lightning
Line switching
SubSynchronous
Resonances, transformer
energizations…
Transient stability
Long term dynamics
Daily load
following
seconds
Phasor Time-
Domain Simulation
PSS/EStatus Quo:
Multiple simulation tools, with their own interpretation
of different model features and data “format”.
Implications of the Status Quo:
- Dynamic models can rarely be shared in a
straightforward manner without loss of
information on power system dynamics.
- Simulations are inconsistent without drastic
and specialized human intervention.
Beyond general descriptions and parameter
values, a common and unified modeling
language would require a formal mathematical
description of the models – but this is not the
practice to date.
Why open standard-based modeling languages?
• Modeling tools first gained adoption as
engineers looked for ways to simplify
SW development and documentation.
• Today’s modeling tools and their
use cases have evolved.
• Now: need for addressing both system
level design and SW
development/construction.
22
(2015)
Why equation-based modeling?
Equation—based modeling:
• Defines an implicit (not explicit) relation between variables.
• The data-flow between variables is defined right before simulation of the
model (not during the modelling process!)
• A system can be seen as a complete model or a set of individual
components.
• The user is (in principle) only concerned with the model creation,
and does not have to deal with the underlying simulation engine (only if
desired).
• It also allows decomposing complex systems into simple sub-models
easier to understand, share and reuse
23
CSSL (1967) introduced a special
form of “equation”:
variable = expression
v = INTEG(F)/m
Programming languages usually
do not allow equations!
Graphical Equation-Based Modeling
• Each icon represents a physical component
(i.e. a generator, wind turbine, etc.)
• Composition lines represent the actual
interconnections between components (e.g.
generator to transformer to line to …)
• Physical behavior of each component is
described by equations.
• There is a hierarchical decomposition of each
component.
24
Key: standardized and open language specification
is a (computer) modeling language, it is not a tool!
• Modelica is a free/libre object-oriented modeling
language with a textual definition to describe physical
systems using differential, algebraic and discrete
equations.
• A Modelica modeling environment is needed to edit
or to browse a Modelica model graphically in form of
a composition diagram (= schematic).
• A Modelica translator is needed to transform a
Modelica model into a form (usually C-code) which
can be simulated by standard tools.
• A Modelica modeling and simulation environment
provides both of the functionalities above, in addition
to auxiliary features (e.g. plotting)
25
http://modelica.readthedocs.io/en/latest/#
modeling and simulation environment (tool) tasks
26
Modelica Model
Flat model
Hybrid DAE
Sorted equations
C Code
Executable
Optimized sorted
equations
Modelica
Model
Modelica
Graphical Editor
Modelica
Source code
Translator
Analyzer
Optimizer
Code generator
C Compiler
Simulation
Modelica
Textual Editor
Frontend
Backend
"Middle-end"
Modeling
Environment
Acasual Modeling and it’s Implications on Model/Tool Development
• Acasual Modeling implicitly leads to faster
development and lower maintenance for models (and
even tools)
• The acausality makes Modelica library classes more
reusable than traditional classes containing assignment
statements where the input-output causality is fixed.
• Modelica Compiler performs Causalization
o It flattens the model and then transform and sort all
equations that give the model description.
o Aim is to match each equation to a variable, hence
the term “matching” process, doing an Index
reduction of the DAEs and transform them to
ODEs
27
Approach used by
Modelica Tools
Approach used
by Power System
Tools
User Defined Models
in some PS Tools and
Generic Tools
(Simulink)
Present
Modeling
and
Simulation
issues
Causal
Modeling
Model
Exchange
Inconsis-
tency
Modeling
limitations
• The order of computations is decided at
modelling time
• Models are black boxes whose parameters are shared
in a specific “data format”
• For large models this requires translation into the
internal data format of each program
• There is no guarantee that the same standardized
model is implemented in the same way across
different tools
• Even in Common Information Model (CIM) v15, only
block diagrams are provided instead of equations
• Most tools make no difference between “solver”
and “model” – in many cases solver is implanted in
the model
Acausal Causal
R*I = v; i := v/R;
v := R*i;
R := v/i;
Why for power systems?
28
• Previous and Related Efforts
o Modelica for power systems was first attempted in the early 2000’s (Wiesmann & Bachmann, Modelica 2000) - “electro-
magnetic transient (EMT) modeling” approach.
 SPOT (Weissman, EPL-Modelon) and its close relative PowerSystems (Franke, 2014); supports multiple modeling
approaches –i.e. 3phase, steady-state, “transient stability”, etc.
o Electro-mechanical modeling or “transient stability” modeling:
 Involves electro-mechanical dynamics, and neglects (very) fast transients
 For system-wide analysis, easier to simulate/analyze - domain specific tools approach
o ObjectStab (Larsson, 2002; Winkler, 2015) adopts ”transient stability” modeling.
o The PEGASE EU project (2011) developed a small library of components in Scilab, which where ported to proper Modelica in
the FP7 iTesla project (2012-2016).
o The iPSL - iTesla Power Systems Library (Vanfretti et al, Modelica 2014, SoftwareX 2016), was released during 2015. Most
models validated against typical power system tools.
o F. Casella (OpenModelica 2016, Modelica 2017) presents the challenges of dealing with large power networks using
Modelica, and a dedicated library to investigate them using the Open Modelica compiler.
OpenIPSL takes iPSL as a starting point and moves it forward (this presentation).
and Power Systems
29
(3) Decrease of avoidance forces
• SW-to-SW validation gives quantitatively an similar
answer than domain specific tools.
• Accuracy (w.r.t. to de facto tools) more important
than performance
and Power Systems
Why another library for power systems?
Social Aspects (Vanfretti et al, Modelica 2014)
• Resistance to change: an irrational and
dysfunctional reaction of users (and
developers?)
o Users of conventional power system tools are
skeptical about any other tools different to the
one they use (or develop), and are averse
about new technologies (slow on the uptake)
• Change agents contribute (+/-) to address resistance
through actions and interactions.
30
A never-ending effort!
• The library has served to bridge the gap between
the Modelica and power systems community by:
• Addressing resistance to change (see above)
• Interacting with both communities – different levels
of success…
(2) Propose
a common human and computer-readable
mathematical “description”: use of Modelica for
unambiguous model exchange.
(1) Strategy do not impose the use of a specific
simulation environment (software tool), instead,
The OpenIPSL Project
• http://openipsl.org
• Built using the Modelica language:
• Distributed with the MPL2 license:
31
Free as in Puppy!
Needs a lot of your love and care to grow and be happy!
• KTH SmarTS Lab (my former research team) actively participated in the group or
partners developing iPSL until the end of the iTesla project (March 2016)
• iPSL is a nice prototype, but we identified the following issues:
o Development: Need for compatibility with OpenModelica, (better) use of object
orientation and proper use of the Modelica language features.
o Maintenance: Poor harmonization, lack of code factorization, etc.
o Human issues: The development workflow was complex
 Different parties with disparate objectives, levels of knowledge, philosophy, etc.
• OpenIPSL started as a fork of iPSL in 2016, and has now largely evolved!
• OpenIPSL is hosted on GitHub at http://openipsl.org
• OpenIPSL is actively developed by ALSETLab (formerly SmarTS Lab) members
and friends, as a research and education oriented library for power systems
 it is ok to try things out !
New research requirements and the experiences from previous effort indicated:
- a clear need for a different development approach –
one that should address a complex development & maintenance workflow!
The OpenIPSL Project - Origins
32
Fork: copy of a project going in a
different development direction
The OpenIPSL Library – Key Feautures
OpenIPSL is an open-source Modelica library for
power systems
• It contains a set of power system
components for phasor time domain
modeling and simulation
• Models have been validated against a number
of reference tools (mainly PSS/E)
OpenIPSL enables:
• Unambiguous model exchange
• Formal mathematical description of models
• Separation of models from tools/IDEs and
solvers
• Use of object-oriented paradigms
33
The OpenIPSL Library – WT Example
34
The OpenIPSL Library – Network Example
35
Resulting Parameter Declaration
Resulting Class Instantiation
Class Connections
Many Application Examples Developed!!!
The OpenIPSL Library – Application Examples
36
Klein-Rogers-Kundur 2-Area 4-Machine System
IEEE 9 Bus IEEE 14 Bus
Namsskogan Distribution Network
The OpenIPSL Library – providing a good “initial guess”
• An initial guess for all algebraic, continuous and discrete variables need
to be provided to solve a numerical problem!
• When solving differential equations, one needs to provide the initial value of
the state variables at rest.
• In Modelica, initial values can be either solved or specified in many ways,
we use the following
• Using the ”initial equation” construct:
 initial equation
• x = some_value OR x = expression to solve
• Setting the (fixed=true, start=x0) attribute when instantiating a model
when the start value is known (or possible to calculate)
• If nothing is specified, set the default would be a guess value (start= 0,
fixed=false).
• In the OpenIPSL models we do the following:
• The initial guess value is set with (fixed = false) for initialization.
• Model attributes are treated as parameters with value (fixed = true),
37
• In OpenIPSL we use a power flow
solution from an external tool (e.g.
PSAT or PSS/E) as a starting point to
compute initial guess values through
parameters within each model.
• The power flow solution is NOT
the initial guess value itself.
• Aim is to provide a better “initial
guess” to find the initial values of
the DAE system.
Third order model
from PSAT
implemented in
OpenIPSL
The OpenIPSL Library – “initial guess” example
38
The OpenIPSL Project Documentation
• Documentation of the code changes:
• Explicit messages in commits
and pull-requests
• Documentation of the project
 Presentation
 User guide
 Dev. guidelines & How to contribute
 The documentation is written in reStructuredText
(reST) hosted on http://openipsl.readthedocs.io/
• Note: Model documentation is not included, users
are referred to literature, textbooks and the
proprietary documentations.
39
The OpenIPSL’s Project - Continuous Integration (CI) Service
40
• A CI service was implemented and integrated to the repository. The Modelica support was
achieved with the following architecture:
• Travis as CI service provider
• Docker as the “virtualization” architecture
• DockerHub to host a Docker image with Python & OpenModelica
• The CI performs automated syntax checks on the library.
New changes are
submitted as a
new pull request
to the master
branch
The pull request
triggers the Travis
CI
The tailored
Docker image is
pulled
The reference
traces are
pulled from a
dedicated
server
The latest version of
the library containing
the changes is pulled
from GitHub
The Docker is
instantiated to
create a
replicable
environment
where the tests
are carried out
The pass / fail flag
from the tests on
Travis is sent to
Github
Go to the OpenIPSL Github repo
https://github.com/openipsl , see runTest.py
The OpenIPSL’s CI Commit Output (Syntax Check Workflow)
41
Click to see the IO from Travis
Results from CI testing on
syntax check on several
“Application Examples”
•OpenIPSL.org organization in Github! (Prof. Dietmar Winkler)
•Website will be also hosted there!
The OpenIPSL – Ongoing Developments and Future Work!
• Library Improvements (Tin Rabuzin, Maxime Baudette)
• 100% Compatibility with OM (100% Syntax Check, ~100%
Simulation for components) through efforts in Continuous
Integration adoption
• Change in the models to include inheritance (code factorizing)
• Fixing and validating network models – application examples (thanks
to CI)
• ENTSO-E IOP Models (Francisco Gomez Lopez)
• Proof of concept and test model
• Excitation system and small network model
42
The OpenIPSL – Ongoing Developments and Future Work!
• Efforts within the openCPS project
• New Component Models
• New components for the OpenIPSL being developled:
• Process noise (stochastic) pdf-based load models
• Frequency estimation models
• PMU “Container” Block (frequency estimation + packaging)
• Control systems for islanded operation and automated resynch
• Multi-domain modeling for gas turbines and power systems
• Based on ThermoPower and OpenIPSL
• Miguel Aguilera, et al.
• More!
• Joint modeling and simulation of transmission (positive sequence)
and distribution (three-phase) power networks
• Marcelo de Castro Fernandez and Prof. Janaina Gonçalvez (UFJF, Brazil)
43
The OpenIPSL – Ongoing Developments (CI+R)
• CI + Regression Testing
• A two-stage process
o Modelica syntax check
(against Modelica language
implementation in OM)
o Model validation check
(against reference simulation
results of “trusted” model)
• Fully automated through online CI
services
• Diagnostic help to the developers
to locate the error!
44
Prototype Implementation in the
“modelValidation-CI” branch
The OpenIPSL – Ongoing Developments (CI+R)
45
OR
Syntax Error
Model Error
Merging Blocked
All OK !
Merging
Allowed
Multi-domain modeling for gas turbines and power systems
46
 OpenIPSL
 OpenIPSL
 ThermoPower
Interface!
Multi-domain modeling for gas turbines and power systems
47
=
Stochastic Load Model and Influence in
Single-Domain and Multi-Domain Model Response
Load varies d_P in the time interval
between t1 and t1+d_t.
Noise model can be added as real input u.
Noise Model
• Expectation value
• Standard deviation
• Sample Period
Sine wave or ramp containing
the noise can be used to model
the “normal” load variation
Mechanical Power
Joint modeling and simulation of transmission and
distribution power networks
• Work together with Marcelo de Castro Fernandez ,
Prof. Janaina Gonçalvez (UFJF, Brazil) and
Maxime Baudette
• Hybrid single-phase three- phase model for power
flow simulation using Modelica as modeling
language. The formulation of such model was
proposed by Jose Mauro Marinho and Glauco Nery
Taranto in the paper:
• [ref]Jose Mauro T. Marinho and Glauco Nery Taranto. A Hybrid Three-
Phase Single-Phase Power Flow Formulation Published in: IEEE
Transactions on Power Systems (Volume: 23, Pages: 1063:1070,
Issue: 3, Aug. 2008)
49
Implementation of DigSilentPowerFactory
Component Models
 MSc Thesis work by Harish Krishnappa
H.Krishnappa@student.tudelft.nl
IEPG, TU Delft
• Models include:
o Synchronous Gen.
o Loads
o Transformer
o Transmission Line
o Exciter
o OEL
o Speed governor
o Steam turbine
o OLTC
o Induction motor
50
51
Luigi Vanfretti Tin RabuzinAchour
Amazouz
Mohammed
Ahsan Adib
Murad
Francisco
José Gómez
Jan Lavenius Le Qi Maxime
Baudette
Mengjia
Zhang
Tetiana
Bogodorova
Giusseppe
Laera
Joan Russiñol
Mussons
The OpenIPSL can be found online
• http://openipsl.org
RaPId, a system identification software that uses OpenIPSL can be
found at:
• https://github.com/ALSETLab/RaPId
• http://dx.doi.org/10.1016/j.softx.2016.07.004
Thanks to all my current and former
students, friends and developers that
have supported the effort!
Our work on OpenIPSL has been published in the
SoftwareX Journal:
• http://dx.doi.org/10.1016/j.softx.2016.05.001
Marcelo Castro Miguel Aguilera
Part 2: (Phillip Top)
Applications of the OpenIPSL library
and the FMI in GRIDDYN
52
Ad

More Related Content

What's hot (20)

power flow and optimal power flow
power flow and optimal power flowpower flow and optimal power flow
power flow and optimal power flow
Ahmed M. Elkholy
 
HVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptx
HVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptxHVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptx
HVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptx
MuthuKumar158260
 
Forecasting & Planning
Forecasting & PlanningForecasting & Planning
Forecasting & Planning
linsstalex
 
Substation Automation
Substation AutomationSubstation Automation
Substation Automation
skullbreaker
 
Smart grid technologies after midsem slides
Smart grid technologies after midsem slidesSmart grid technologies after midsem slides
Smart grid technologies after midsem slides
IIIT Bhubaneswar
 
Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...
Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...
Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...
Francisco Gonzalez-Longatt
 
ETAP corporate overview
ETAP corporate overviewETAP corporate overview
ETAP corporate overview
Himmelstern
 
Atp draw-tutorial
Atp draw-tutorialAtp draw-tutorial
Atp draw-tutorial
Gilberto Mejía
 
Different simulation softwares in power system
Different simulation softwares in power systemDifferent simulation softwares in power system
Different simulation softwares in power system
Jitendra Bhadoriya
 
Comparision of svc and statcom
Comparision of svc and statcomComparision of svc and statcom
Comparision of svc and statcom
jawaharramaya
 
PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...
PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...
PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...
Trinh Quoc Nam
 
Functions and performance requirements of excitation systems
Functions and performance requirements of excitation systemsFunctions and performance requirements of excitation systems
Functions and performance requirements of excitation systems
Rajshekar Naregal
 
Power System Protection course - Part I
Power System Protection course - Part IPower System Protection course - Part I
Power System Protection course - Part I
Slides Hub
 
Example: Modal analysis using DIgSILENT PowerFactory.
Example: Modal analysis using DIgSILENT PowerFactory. Example: Modal analysis using DIgSILENT PowerFactory.
Example: Modal analysis using DIgSILENT PowerFactory.
Francisco Gonzalez-Longatt
 
Selection Of Circuit Breaker
Selection Of Circuit BreakerSelection Of Circuit Breaker
Selection Of Circuit Breaker
Raviraj solanki
 
Overcurrent and Distance Protection in DigSilent PowerFactory
Overcurrent and Distance Protection in DigSilent PowerFactoryOvercurrent and Distance Protection in DigSilent PowerFactory
Overcurrent and Distance Protection in DigSilent PowerFactory
Areeb Abdullah
 
Hvdc
HvdcHvdc
Hvdc
rounak077
 
Protection Relays Numbering (ANSI)
Protection Relays Numbering (ANSI)Protection Relays Numbering (ANSI)
Protection Relays Numbering (ANSI)
AHMED MOHAMED HEGAB
 
Grid interfacing-converter-systems
Grid interfacing-converter-systemsGrid interfacing-converter-systems
Grid interfacing-converter-systems
Leonardo ENERGY
 
Selective Coordination
Selective CoordinationSelective Coordination
Selective Coordination
michaeljmack
 
power flow and optimal power flow
power flow and optimal power flowpower flow and optimal power flow
power flow and optimal power flow
Ahmed M. Elkholy
 
HVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptx
HVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptxHVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptx
HVE UNIT IV MEASUREMENT OF HIGH VOLTAGES AND HIGH CURRENTS.pptx
MuthuKumar158260
 
Forecasting & Planning
Forecasting & PlanningForecasting & Planning
Forecasting & Planning
linsstalex
 
Substation Automation
Substation AutomationSubstation Automation
Substation Automation
skullbreaker
 
Smart grid technologies after midsem slides
Smart grid technologies after midsem slidesSmart grid technologies after midsem slides
Smart grid technologies after midsem slides
IIIT Bhubaneswar
 
Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...
Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...
Creating and Using Study Cases in DIgSILENT PowerFactory. Case P.M. Anderson ...
Francisco Gonzalez-Longatt
 
ETAP corporate overview
ETAP corporate overviewETAP corporate overview
ETAP corporate overview
Himmelstern
 
Different simulation softwares in power system
Different simulation softwares in power systemDifferent simulation softwares in power system
Different simulation softwares in power system
Jitendra Bhadoriya
 
Comparision of svc and statcom
Comparision of svc and statcomComparision of svc and statcom
Comparision of svc and statcom
jawaharramaya
 
PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...
PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...
PhD thesis presentation - Advanced Control Strategies for UPQC to Improve Pow...
Trinh Quoc Nam
 
Functions and performance requirements of excitation systems
Functions and performance requirements of excitation systemsFunctions and performance requirements of excitation systems
Functions and performance requirements of excitation systems
Rajshekar Naregal
 
Power System Protection course - Part I
Power System Protection course - Part IPower System Protection course - Part I
Power System Protection course - Part I
Slides Hub
 
Example: Modal analysis using DIgSILENT PowerFactory.
Example: Modal analysis using DIgSILENT PowerFactory. Example: Modal analysis using DIgSILENT PowerFactory.
Example: Modal analysis using DIgSILENT PowerFactory.
Francisco Gonzalez-Longatt
 
Selection Of Circuit Breaker
Selection Of Circuit BreakerSelection Of Circuit Breaker
Selection Of Circuit Breaker
Raviraj solanki
 
Overcurrent and Distance Protection in DigSilent PowerFactory
Overcurrent and Distance Protection in DigSilent PowerFactoryOvercurrent and Distance Protection in DigSilent PowerFactory
Overcurrent and Distance Protection in DigSilent PowerFactory
Areeb Abdullah
 
Protection Relays Numbering (ANSI)
Protection Relays Numbering (ANSI)Protection Relays Numbering (ANSI)
Protection Relays Numbering (ANSI)
AHMED MOHAMED HEGAB
 
Grid interfacing-converter-systems
Grid interfacing-converter-systemsGrid interfacing-converter-systems
Grid interfacing-converter-systems
Leonardo ENERGY
 
Selective Coordination
Selective CoordinationSelective Coordination
Selective Coordination
michaeljmack
 

Similar to Modeling and Simulation of Electrical Power Systems using OpenIPSL.org and GridDyn (20)

The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
Luigi Vanfretti
 
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Luigi Vanfretti
 
Power System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesPower System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and Challenges
Luigi Vanfretti
 
Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...
Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...
Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...
Luigi Vanfretti
 
Lecture 1-2 Introduction to mechnical.pptx
Lecture 1-2 Introduction to mechnical.pptxLecture 1-2 Introduction to mechnical.pptx
Lecture 1-2 Introduction to mechnical.pptx
furqanasghar7
 
Discrete and other examples with great intrest
Discrete and other examples with great intrestDiscrete and other examples with great intrest
Discrete and other examples with great intrest
AssadLeo1
 
Introduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.pptIntroduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.ppt
QasimAli493018
 
Network simulation software
Network simulation softwareNetwork simulation software
Network simulation software
Kartik Kalpande Patil
 
Modeling distribution networks with neplan
Modeling distribution networks with neplanModeling distribution networks with neplan
Modeling distribution networks with neplan
Yusuf A. KHALIL
 
Construction of Structurally and Stratigraphically Consistent Structural Mode...
Construction of Structurally and Stratigraphically Consistent Structural Mode...Construction of Structurally and Stratigraphically Consistent Structural Mode...
Construction of Structurally and Stratigraphically Consistent Structural Mode...
Laurent Souche
 
lecture 1.pptx
lecture 1.pptxlecture 1.pptx
lecture 1.pptx
AmnaMuneer9
 
From APECE to ASML A Semiconductor Journey
From APECE to ASML A Semiconductor JourneyFrom APECE to ASML A Semiconductor Journey
From APECE to ASML A Semiconductor Journey
IEEE Student Branch Chittagong University
 
Simulation
SimulationSimulation
Simulation
abubacker siddiq
 
Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...
Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...
Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...
IJPEDS-IAES
 
Software Engineering Research: Leading a Double-Agent Life.
Software Engineering Research: Leading a Double-Agent Life.Software Engineering Research: Leading a Double-Agent Life.
Software Engineering Research: Leading a Double-Agent Life.
Lionel Briand
 
Model-Based Risk Assessment in Multi-Disciplinary Systems Engineering
Model-Based Risk Assessment in Multi-Disciplinary Systems EngineeringModel-Based Risk Assessment in Multi-Disciplinary Systems Engineering
Model-Based Risk Assessment in Multi-Disciplinary Systems Engineering
Emanuel Mätzler
 
AOFW CHG433_Part I_wip_Nov2023.pdf presentation
AOFW CHG433_Part I_wip_Nov2023.pdf presentationAOFW CHG433_Part I_wip_Nov2023.pdf presentation
AOFW CHG433_Part I_wip_Nov2023.pdf presentation
polymaththesolver
 
CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...
CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...
CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...
Luigi Vanfretti
 
Recorded Lecture 1-2 Introduction to energy systems.pptx
Recorded Lecture 1-2 Introduction to energy systems.pptxRecorded Lecture 1-2 Introduction to energy systems.pptx
Recorded Lecture 1-2 Introduction to energy systems.pptx
furqanasghar7
 
OPAL-RT real-time simulation at RTE
OPAL-RT real-time simulation at RTEOPAL-RT real-time simulation at RTE
OPAL-RT real-time simulation at RTE
OPAL-RT TECHNOLOGIES
 
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
Luigi Vanfretti
 
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Luigi Vanfretti
 
Power System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesPower System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and Challenges
Luigi Vanfretti
 
Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...
Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...
Model-Simulation-and-Measurement-Based Systems Engineering of Power System Sy...
Luigi Vanfretti
 
Lecture 1-2 Introduction to mechnical.pptx
Lecture 1-2 Introduction to mechnical.pptxLecture 1-2 Introduction to mechnical.pptx
Lecture 1-2 Introduction to mechnical.pptx
furqanasghar7
 
Discrete and other examples with great intrest
Discrete and other examples with great intrestDiscrete and other examples with great intrest
Discrete and other examples with great intrest
AssadLeo1
 
Introduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.pptIntroduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.ppt
QasimAli493018
 
Modeling distribution networks with neplan
Modeling distribution networks with neplanModeling distribution networks with neplan
Modeling distribution networks with neplan
Yusuf A. KHALIL
 
Construction of Structurally and Stratigraphically Consistent Structural Mode...
Construction of Structurally and Stratigraphically Consistent Structural Mode...Construction of Structurally and Stratigraphically Consistent Structural Mode...
Construction of Structurally and Stratigraphically Consistent Structural Mode...
Laurent Souche
 
Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...
Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...
Co-Simulation Interfacing Capabilities in Device-Level Power Electronic Circu...
IJPEDS-IAES
 
Software Engineering Research: Leading a Double-Agent Life.
Software Engineering Research: Leading a Double-Agent Life.Software Engineering Research: Leading a Double-Agent Life.
Software Engineering Research: Leading a Double-Agent Life.
Lionel Briand
 
Model-Based Risk Assessment in Multi-Disciplinary Systems Engineering
Model-Based Risk Assessment in Multi-Disciplinary Systems EngineeringModel-Based Risk Assessment in Multi-Disciplinary Systems Engineering
Model-Based Risk Assessment in Multi-Disciplinary Systems Engineering
Emanuel Mätzler
 
AOFW CHG433_Part I_wip_Nov2023.pdf presentation
AOFW CHG433_Part I_wip_Nov2023.pdf presentationAOFW CHG433_Part I_wip_Nov2023.pdf presentation
AOFW CHG433_Part I_wip_Nov2023.pdf presentation
polymaththesolver
 
CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...
CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...
CIM to Modelica Factory - Automated Equation-Based Cyber-Physical Power Syste...
Luigi Vanfretti
 
Recorded Lecture 1-2 Introduction to energy systems.pptx
Recorded Lecture 1-2 Introduction to energy systems.pptxRecorded Lecture 1-2 Introduction to energy systems.pptx
Recorded Lecture 1-2 Introduction to energy systems.pptx
furqanasghar7
 
OPAL-RT real-time simulation at RTE
OPAL-RT real-time simulation at RTEOPAL-RT real-time simulation at RTE
OPAL-RT real-time simulation at RTE
OPAL-RT TECHNOLOGIES
 
Ad

More from Luigi Vanfretti (20)

Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...
Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...
Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...
Luigi Vanfretti
 
Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...
Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...
Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...
Luigi Vanfretti
 
Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...
Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...
Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...
Luigi Vanfretti
 
Monitoring of Transmission and Distribution Grids using PMUs
Monitoring of Transmission and Distribution Grids using PMUsMonitoring of Transmission and Distribution Grids using PMUs
Monitoring of Transmission and Distribution Grids using PMUs
Luigi Vanfretti
 
Hands-on-OpenIPSL.org using OpenModelica!
Hands-on-OpenIPSL.org using OpenModelica!Hands-on-OpenIPSL.org using OpenModelica!
Hands-on-OpenIPSL.org using OpenModelica!
Luigi Vanfretti
 
Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...
Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...
Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...
Luigi Vanfretti
 
Real-Time Testing of a Decentralized PMU Data-Based Power Systems Mode Estim...
Real-Time Testing of a Decentralized PMU Data-Based  Power Systems Mode Estim...Real-Time Testing of a Decentralized PMU Data-Based  Power Systems Mode Estim...
Real-Time Testing of a Decentralized PMU Data-Based Power Systems Mode Estim...
Luigi Vanfretti
 
A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...
A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...
A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...
Luigi Vanfretti
 
A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...
A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...
A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...
Luigi Vanfretti
 
Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...
Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...
Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...
Luigi Vanfretti
 
Open Source Software Tools for Synchrophasor Applications
Open Source Software Tools for  Synchrophasor ApplicationsOpen Source Software Tools for  Synchrophasor Applications
Open Source Software Tools for Synchrophasor Applications
Luigi Vanfretti
 
Synchrophasor Applications Facilitating Interactions between Transmission and...
Synchrophasor Applications Facilitating Interactions between Transmission and...Synchrophasor Applications Facilitating Interactions between Transmission and...
Synchrophasor Applications Facilitating Interactions between Transmission and...
Luigi Vanfretti
 
Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...
Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...
Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...
Luigi Vanfretti
 
Real-Time Simulation for MBSE of Synchrophasor Systems
Real-Time Simulation for MBSE of Synchrophasor SystemsReal-Time Simulation for MBSE of Synchrophasor Systems
Real-Time Simulation for MBSE of Synchrophasor Systems
Luigi Vanfretti
 
Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...
Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...
Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...
Luigi Vanfretti
 
Workshop on Synchrophasors and Control Applications for Power Systems
Workshop on  Synchrophasors and Control Applications for Power SystemsWorkshop on  Synchrophasors and Control Applications for Power Systems
Workshop on Synchrophasors and Control Applications for Power Systems
Luigi Vanfretti
 
Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...
Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...
Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...
Luigi Vanfretti
 
Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...
Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...
Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...
Luigi Vanfretti
 
PMU-Based Real-Time Damping Control System Software and Hardware Architecture...
PMU-Based Real-Time Damping Control System Software and Hardware Architecture...PMU-Based Real-Time Damping Control System Software and Hardware Architecture...
PMU-Based Real-Time Damping Control System Software and Hardware Architecture...
Luigi Vanfretti
 
06 2015 pesgm_wllv_vsc
06 2015 pesgm_wllv_vsc06 2015 pesgm_wllv_vsc
06 2015 pesgm_wllv_vsc
Luigi Vanfretti
 
Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...
Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...
Hopf Bifurcation Control of Power Systems Nonlinear Dynamics Via a Dynamic St...
Luigi Vanfretti
 
Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...
Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...
Hopf Bifurcation Control of Power System Nonlinear Dynamics via a Dynamic Sta...
Luigi Vanfretti
 
Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...
Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...
Vulnerability of Synchrophasor-based WAMPAC Applications’ to Time-Synchroniza...
Luigi Vanfretti
 
Monitoring of Transmission and Distribution Grids using PMUs
Monitoring of Transmission and Distribution Grids using PMUsMonitoring of Transmission and Distribution Grids using PMUs
Monitoring of Transmission and Distribution Grids using PMUs
Luigi Vanfretti
 
Hands-on-OpenIPSL.org using OpenModelica!
Hands-on-OpenIPSL.org using OpenModelica!Hands-on-OpenIPSL.org using OpenModelica!
Hands-on-OpenIPSL.org using OpenModelica!
Luigi Vanfretti
 
Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...
Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...
Phasor State Estimation Weighting Coefficients for AC and Hybrid Networks wit...
Luigi Vanfretti
 
Real-Time Testing of a Decentralized PMU Data-Based Power Systems Mode Estim...
Real-Time Testing of a Decentralized PMU Data-Based  Power Systems Mode Estim...Real-Time Testing of a Decentralized PMU Data-Based  Power Systems Mode Estim...
Real-Time Testing of a Decentralized PMU Data-Based Power Systems Mode Estim...
Luigi Vanfretti
 
A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...
A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...
A SGAM-Based Architecture for Synchrophasor Applications Facilitating TSO/DSO...
Luigi Vanfretti
 
A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...
A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...
A Three-Phase VSC-HVDC Average Value Model Implementation using Modelica and ...
Luigi Vanfretti
 
Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...
Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...
Impact of GPS Signal Loss and Spoofing on Power System Synchrophasor Applicat...
Luigi Vanfretti
 
Open Source Software Tools for Synchrophasor Applications
Open Source Software Tools for  Synchrophasor ApplicationsOpen Source Software Tools for  Synchrophasor Applications
Open Source Software Tools for Synchrophasor Applications
Luigi Vanfretti
 
Synchrophasor Applications Facilitating Interactions between Transmission and...
Synchrophasor Applications Facilitating Interactions between Transmission and...Synchrophasor Applications Facilitating Interactions between Transmission and...
Synchrophasor Applications Facilitating Interactions between Transmission and...
Luigi Vanfretti
 
Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...
Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...
Optimal Multisine Probing Signal Design for Power System Electromechanical Mo...
Luigi Vanfretti
 
Real-Time Simulation for MBSE of Synchrophasor Systems
Real-Time Simulation for MBSE of Synchrophasor SystemsReal-Time Simulation for MBSE of Synchrophasor Systems
Real-Time Simulation for MBSE of Synchrophasor Systems
Luigi Vanfretti
 
Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...
Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...
Vedran Peric's PhD Defense Presentation: Non-intrusive Methods for Mode Estim...
Luigi Vanfretti
 
Workshop on Synchrophasors and Control Applications for Power Systems
Workshop on  Synchrophasors and Control Applications for Power SystemsWorkshop on  Synchrophasors and Control Applications for Power Systems
Workshop on Synchrophasors and Control Applications for Power Systems
Luigi Vanfretti
 
Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...
Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...
Binding CIM and Modelica for Consistent Power System Dynamic Model Exchange a...
Luigi Vanfretti
 
Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...
Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...
Real-Time Hardware-in-the-Loop Testing of an Excitation Control System for Os...
Luigi Vanfretti
 
PMU-Based Real-Time Damping Control System Software and Hardware Architecture...
PMU-Based Real-Time Damping Control System Software and Hardware Architecture...PMU-Based Real-Time Damping Control System Software and Hardware Architecture...
PMU-Based Real-Time Damping Control System Software and Hardware Architecture...
Luigi Vanfretti
 
Ad

Recently uploaded (20)

Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
Oil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdfOil-gas_Unconventional oil and gass_reseviours.pdf
Oil-gas_Unconventional oil and gass_reseviours.pdf
M7md3li2
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Level 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical SafetyLevel 1-Safety.pptx Presentation of Electrical Safety
Level 1-Safety.pptx Presentation of Electrical Safety
JoseAlbertoCariasDel
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Raish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdfRaish Khanji GTU 8th sem Internship Report.pdf
Raish Khanji GTU 8th sem Internship Report.pdf
RaishKhanji
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)QA/QC Manager (Quality management Expert)
QA/QC Manager (Quality management Expert)
rccbatchplant
 

Modeling and Simulation of Electrical Power Systems using OpenIPSL.org and GridDyn

  • 1. CURENT Seminar Series The University of Tennessee, Knoxville, August 22nd 2017 Prof. Luigi Vanfretti Rensselaer Polytechnic Institute, ECSE, Troy, NY Web: ALSETLab.com Email: [email protected] - [email protected] Dr. Phillip Top Lawrence Livermore National Lab Web: https://software.llnl.gov Email: [email protected] OpenIPS L Modeling and Simulation of Electrical Power Systems using OpenIPSL.org and GridDyn
  • 2. Agenda • About Me (Luigi) • My Research. • Recruiting for: ALSETLab • Part 1: (Luigi Vanfretti)  Introduction:  Modeling and Simulation Generalities and Modelica  The OpenIPSL  Recent developments • Part 2: (Phillip Top)  Applications of the OpenIPSL library and the FMI in  GRIDDYN • Latter today: Tutorial: (Me + You!)  Hands-on-Tutorial:  Overview of the OpenIPSL library  Overview of the OpenModelica environment  Hans-on-Example  Do the “preparatory work” so that everything is ready to go in your computer! 2
  • 3. About Me - http://ALSETLab.com - Dr. Luigi! 3 Other facts and numbers: - Guatemalan and Italian Citizenships. - Speak/write Spanish (native), English, Italian (spoken, poorly written), Norwegian (Basic) - 36 years, married (March 4th, 2017) - no kids yet… but really want a dog! - Close family, brother and wife, live in Woodstock, NY; run Dolce Caffe in Kingston’s Historical Roundout - Lived in 4 countries, worked in 5… 2016 - 2017 Consultant. 2000 – 2005. 5 year Electrical Power Engineering program @ Universidad de San Carlos de Guatemala. YOB. 1981 Guatemala Visiting Researcher @ The University of Glasgow, Scotland 2006 – 2009 MSc and PhD @ RPI 2010 Post-Doc @ RPI Fall 2004 Intern at INDE (National Electrification Institute), Substations Engineering 2010 – 2017, KTH Royal Inst. Of Tech., Stockholm, Sweden 2010: Associate Professor 2012: Docent (Habilitation) 2013: Associate Professor (‘tenured’) 2011 – 2017, SmarTS Lab. Research Group 2011 -External Scientific Advisor (Consultant) 2011 – 2016 Special Advisor R&D Division All @ Statnett SF, Oslo, Norway (Power System Operator)
  • 4. My Research – Cyber-Physical Power Systems 44 Implementation & Rapid Prototyping (software-in-the-loop real-time simulation) Implementation & Testing (hardware-in-the-loop real-time simulation) System Performance (deployment and demonstration) Validation Verification Testing Testing Against Use Cases Testing with other elements and within the environment Testing each component in isolation and with other elements Unit Design Models Units (SW, HW, Data) Component Design Models Components (SW, HW, Data) Device Models Subsystems Overall System Models (incl. grid) User Requirements & Models Operational System User Cases and Requirements (HLA Design using UML Spec and CIM) System Level Design & Specifications (physical modeling and off-line simulation) Implementation (Production Code Generation) Integrated Systems Subsystem Integration & Tests (hardware-in-the-loop real-time simulation) Model-and-Measurement-Based Systems Engineering of Power System and Synchrophasor Technologies
  • 5. Recruiting @ ALSETLab • I’m looking for graduate students to join my team! • If you know someone that would be interested, please tell them to check my website • See: http://ALSETLab.com 5
  • 6. New Course! Spring 2018 - CPS Modeling, Simulation and Analysis • Understand cyber-physical systems and how to model them. • Lean about standardized modeling languages and compliant tools • Learn and become proficient with the Modelica language • Learn and apply model-based systems engineering concepts and tools (UML, SysML using Papyrus RT) • Apply identification, control and optimization techniques to CPS systems • Apply its use for analysis of:  Power systems  Energy efficient building automation  Multi-domain energy systems  Cyber-physical systems design and analysis 6
  • 7. Modeling and Simulation of Electrical Power Systems using OpenIPSL.org and OpenModelica.org Part 1: Introduction Prof. Luigi Vanfretti Rensselaer Polytechnic Institute, ECSE, Troy, NY Web: ALSETLab.com Email: [email protected] [email protected]
  • 8. Outline o The role of models and simulation  Generalities  In power electrical systems o Modelica and power systems o The OpenIPSL Project o The OpenIPSL Library o Continuous Integration o On-going developments 8
  • 9. A Fundamental Question: Why do we develop models and perform simulations? • To reduce the lifetime cost of a system  In requirements: trade-off studies  In test and design: fewer proto- types  In training: avoid accidents  In operation: anticipate problems!  Crucial for electrical power systems! • The prospective pilot sat in the top section of this device and was required to line up a reference bar with the horizon. 1910. • More than half the pilots who died in WW1 were killed in training. 9
  • 10. A Failure to Anticipate  Huge Costs! 10 Others: WECC 1996 Break-up, European Blackout (4-Nov.-2006), London (28-Aug-2003), Italy (28-Sep.-2003), Denmark/Sweden (23-Sep.-2003) Failure! Existing modeling and simulation (and associated) tools were unable to predict this (and other) events. There are many examples of failures to anticipate problems in power system operation!
  • 11. The Multiple Roles of Modeling and Simulation in building: Complex Cyber-Physical ”Systems-of-Systems” 11 Large Number of Vendors for the Final System A Flying Micro-Grid! M&S used to test prototypes in variety of environments. M&S are used to train users in the operational environment – enhancing learning. Simulation costs 1/10 of running actual scenarios. Scale of networks: cost- prohibitive or technically impossible for field tests. M&S used to test and validate networking protocols in laboratory - environment acting as a test bed.
  • 12. The Multiple Roles of Modeling and Simulation to develop Cyber-Physical Power Systems (aka ‘smart grids’) 12 Implementation & Rapid Prototyping (software-in-the-loop real-time simulation) Implementation & Testing (hardware-in-the-loop real-time simulation) System Performance (deployment and demonstration) Validation Verification Testing Testing Against Use Cases Testing with other elements and within the environment Testing each component in isolation and with other elements Unit Design Models Units (SW, HW, Data) Component Design Models Components (SW, HW, Data) Device Models Subsystems Overall System Models (incl. grid) User Requirements & Models Operational System User Cases and Requirements (HLA Design using UML Spec and CIM) System Level Design & Specifications (physical modeling and off-line simulation) Implementation (Production Code Generation) Integrated Systems Subsystem Integration & Tests (hardware-in-the-loop real-time simulation) Conceptual Application for the Development of a WT Synchro phasor-Based Controller Are today’s power system modeling and simulation approaches/tools fit to meet the challenges of the cyber-physical world?
  • 13. Dangers of Models and Simulation • Falling in love with a model The Pygmalion effect (forgetting that model is not the real world) • From the Greek myth of Pygmalion, a sculptor who fell in love with a statue he had carved. • Forcing reality into the constraints of a model The Procrustes effect (e.g. economic theories) • Procrustes: "the stretcher [who hammers out the metal]”, a rogue smith from Attica that physically attacked people by cutting/stretching their legs, so as to force them to fit the size of an iron bed. • A Procrustean bed is an arbitrary standard to which exact conformity is forced. • Forgetting the model’s level of accuracy Simplifying assumptions forgotten more than yesterday’s pudding… 13
  • 14. Power system dynamics challenges for simulation the tyranny of multiple time-scales 14 10-7 10-6 10-5 10-4 10-3 10-2 10-1 1 10 102 103 104 Lightning Line switching SubSynchronous Resonances, transformer energizations… Transient stability Long term dynamics Daily load following seconds Electromechanical Transients Electromagnetic Transients Quasi-Steady State Dynamics Models are simplified (averaged) to allow for simulation of very large networks. Ad-hoc solvers have been developed to reduce simulation time, but usually the “model” is “interlaced” with the solver (inline integration) Generally there are no discrete events. (Ad-hoc DAE solvers) This is usually deal with by discretizing the model and to solve it using discrete solvers. The presence of large time constants and small time constants and large amount of discrete switches. Difficult to simulate very large networks (in the past?) The models are simplified further by neglecting most dynamics (replacing most differential equations by algebraic equations). (Ad-hoc DAE solvers)
  • 15. Power System Phenomena Modeled and Discussed from this point on: power system electromechanical dynamics 15 10-7 10-6 10-5 10-4 10-3 10-2 10-1 1 10 102 103 104 Lightning Line switching SubSynchronous Resonances, transformer energizations… Transient stability Long term dynamics Daily load following seconds Electromechanical Transients Electromagnetic Transients Quasi-Steady State Dynamics Positive Sequence / RMS / or Phasor Time-Domain Simulation
  • 16. Electromechanical Dynamics in the Western US (1996) • What was measured: • What was simulated: 16 2 3 4 5 6 7 8 9 -2 -1.5 -1 -0.5 0 0.5 1 P(pu) Time (sec) Measured Response Model Response Electromechanical dynamic modeling help to capture ”wide-area” behavior across geographical sparse interconnected networks such as these type of oscillations. Good models are crucial for planning and operation of electrical power networks. Before Model Calibration After Model Calibration
  • 17. Power Systems General DAE Model 17[Ref.] F. Milano, Power System Modeling and Scripting, Springer, 2010.
  • 18. • The power system needs to be in balance, i.e. after a disturbance it must converge to an equilibrium (operation point). - Q: How can we find this equilibrium? - A: Set derivatives to zero and solve for all unknown variables! • Some observations that can be made: - The algebraic equations in corresponded to having the fast differential equations at equilibrium all the time (in the model and in the timescale considered). - Finding the equilibrium when most of the variables are unknown is very difficult if when we try to solve this equation system simultaneously. - NB: power system tools do not generally do this! - Hence, we attempt to sequentially solve the equation system for each t. - First, we need to solve the algebraic equations that only depend on the algebraic variables… this is were power systems deviates from other fields. Finding the ”Power Flow” Steady State ”Equilibria” 18 Modelica –compliant tools attempt to solve this problem
  • 19. • Equation set g is separated in two sets of algebraic equations: (1) Is the part which governs how dynamic models will evolve, since they depend on both x and y , e.g. generators and their control systems. (2) Is the network model, consisting of transmission lines and other passive components which only depends on algebraic variables, y. Simulation: Starting from a solution of (2) only, equations (1) are solved at equilibrium individually; to compute the starting guess of an ad-hoc DAE solver that iterates for (1)-(2) at each time step. Power System Modeling and Simulation Approach 19
  • 20. Hypotheses & Simplifications Physical System Models Equations Analytical Methods Analyses Specialized M&S Platform Physical System User Defined Models in Platform Specific Language Models with Fixed Equations Available (Limited) Numerical Algorithms Analyses Numerical Methods Fundamental Implications of the Conventional Power Systems Approach 20 Hypotheses (assumptions) Simplifications (approximations) General Approach Power Systems Approach Closed-Form Solution Numerical Solution User: Modeler and Analyst Duality Specialized Modeler Familiar with the Domain Specific Platform Specialized Analyst Familiar with the Domain Specific Platform Fixed Model is ”interlaced” with one specific solver
  • 21. Practical Implications of the Conventional Power Systems Approach 21 10-7 10-6 10-5 10-4 10-3 10-2 10-1 1 10 102 103 104 Lightning Line switching SubSynchronous Resonances, transformer energizations… Transient stability Long term dynamics Daily load following seconds Phasor Time- Domain Simulation PSS/EStatus Quo: Multiple simulation tools, with their own interpretation of different model features and data “format”. Implications of the Status Quo: - Dynamic models can rarely be shared in a straightforward manner without loss of information on power system dynamics. - Simulations are inconsistent without drastic and specialized human intervention. Beyond general descriptions and parameter values, a common and unified modeling language would require a formal mathematical description of the models – but this is not the practice to date.
  • 22. Why open standard-based modeling languages? • Modeling tools first gained adoption as engineers looked for ways to simplify SW development and documentation. • Today’s modeling tools and their use cases have evolved. • Now: need for addressing both system level design and SW development/construction. 22 (2015)
  • 23. Why equation-based modeling? Equation—based modeling: • Defines an implicit (not explicit) relation between variables. • The data-flow between variables is defined right before simulation of the model (not during the modelling process!) • A system can be seen as a complete model or a set of individual components. • The user is (in principle) only concerned with the model creation, and does not have to deal with the underlying simulation engine (only if desired). • It also allows decomposing complex systems into simple sub-models easier to understand, share and reuse 23 CSSL (1967) introduced a special form of “equation”: variable = expression v = INTEG(F)/m Programming languages usually do not allow equations!
  • 24. Graphical Equation-Based Modeling • Each icon represents a physical component (i.e. a generator, wind turbine, etc.) • Composition lines represent the actual interconnections between components (e.g. generator to transformer to line to …) • Physical behavior of each component is described by equations. • There is a hierarchical decomposition of each component. 24
  • 25. Key: standardized and open language specification is a (computer) modeling language, it is not a tool! • Modelica is a free/libre object-oriented modeling language with a textual definition to describe physical systems using differential, algebraic and discrete equations. • A Modelica modeling environment is needed to edit or to browse a Modelica model graphically in form of a composition diagram (= schematic). • A Modelica translator is needed to transform a Modelica model into a form (usually C-code) which can be simulated by standard tools. • A Modelica modeling and simulation environment provides both of the functionalities above, in addition to auxiliary features (e.g. plotting) 25 http://modelica.readthedocs.io/en/latest/#
  • 26. modeling and simulation environment (tool) tasks 26 Modelica Model Flat model Hybrid DAE Sorted equations C Code Executable Optimized sorted equations Modelica Model Modelica Graphical Editor Modelica Source code Translator Analyzer Optimizer Code generator C Compiler Simulation Modelica Textual Editor Frontend Backend "Middle-end" Modeling Environment
  • 27. Acasual Modeling and it’s Implications on Model/Tool Development • Acasual Modeling implicitly leads to faster development and lower maintenance for models (and even tools) • The acausality makes Modelica library classes more reusable than traditional classes containing assignment statements where the input-output causality is fixed. • Modelica Compiler performs Causalization o It flattens the model and then transform and sort all equations that give the model description. o Aim is to match each equation to a variable, hence the term “matching” process, doing an Index reduction of the DAEs and transform them to ODEs 27 Approach used by Modelica Tools Approach used by Power System Tools User Defined Models in some PS Tools and Generic Tools (Simulink)
  • 28. Present Modeling and Simulation issues Causal Modeling Model Exchange Inconsis- tency Modeling limitations • The order of computations is decided at modelling time • Models are black boxes whose parameters are shared in a specific “data format” • For large models this requires translation into the internal data format of each program • There is no guarantee that the same standardized model is implemented in the same way across different tools • Even in Common Information Model (CIM) v15, only block diagrams are provided instead of equations • Most tools make no difference between “solver” and “model” – in many cases solver is implanted in the model Acausal Causal R*I = v; i := v/R; v := R*i; R := v/i; Why for power systems? 28
  • 29. • Previous and Related Efforts o Modelica for power systems was first attempted in the early 2000’s (Wiesmann & Bachmann, Modelica 2000) - “electro- magnetic transient (EMT) modeling” approach.  SPOT (Weissman, EPL-Modelon) and its close relative PowerSystems (Franke, 2014); supports multiple modeling approaches –i.e. 3phase, steady-state, “transient stability”, etc. o Electro-mechanical modeling or “transient stability” modeling:  Involves electro-mechanical dynamics, and neglects (very) fast transients  For system-wide analysis, easier to simulate/analyze - domain specific tools approach o ObjectStab (Larsson, 2002; Winkler, 2015) adopts ”transient stability” modeling. o The PEGASE EU project (2011) developed a small library of components in Scilab, which where ported to proper Modelica in the FP7 iTesla project (2012-2016). o The iPSL - iTesla Power Systems Library (Vanfretti et al, Modelica 2014, SoftwareX 2016), was released during 2015. Most models validated against typical power system tools. o F. Casella (OpenModelica 2016, Modelica 2017) presents the challenges of dealing with large power networks using Modelica, and a dedicated library to investigate them using the Open Modelica compiler. OpenIPSL takes iPSL as a starting point and moves it forward (this presentation). and Power Systems 29
  • 30. (3) Decrease of avoidance forces • SW-to-SW validation gives quantitatively an similar answer than domain specific tools. • Accuracy (w.r.t. to de facto tools) more important than performance and Power Systems Why another library for power systems? Social Aspects (Vanfretti et al, Modelica 2014) • Resistance to change: an irrational and dysfunctional reaction of users (and developers?) o Users of conventional power system tools are skeptical about any other tools different to the one they use (or develop), and are averse about new technologies (slow on the uptake) • Change agents contribute (+/-) to address resistance through actions and interactions. 30 A never-ending effort! • The library has served to bridge the gap between the Modelica and power systems community by: • Addressing resistance to change (see above) • Interacting with both communities – different levels of success… (2) Propose a common human and computer-readable mathematical “description”: use of Modelica for unambiguous model exchange. (1) Strategy do not impose the use of a specific simulation environment (software tool), instead,
  • 31. The OpenIPSL Project • http://openipsl.org • Built using the Modelica language: • Distributed with the MPL2 license: 31 Free as in Puppy! Needs a lot of your love and care to grow and be happy!
  • 32. • KTH SmarTS Lab (my former research team) actively participated in the group or partners developing iPSL until the end of the iTesla project (March 2016) • iPSL is a nice prototype, but we identified the following issues: o Development: Need for compatibility with OpenModelica, (better) use of object orientation and proper use of the Modelica language features. o Maintenance: Poor harmonization, lack of code factorization, etc. o Human issues: The development workflow was complex  Different parties with disparate objectives, levels of knowledge, philosophy, etc. • OpenIPSL started as a fork of iPSL in 2016, and has now largely evolved! • OpenIPSL is hosted on GitHub at http://openipsl.org • OpenIPSL is actively developed by ALSETLab (formerly SmarTS Lab) members and friends, as a research and education oriented library for power systems  it is ok to try things out ! New research requirements and the experiences from previous effort indicated: - a clear need for a different development approach – one that should address a complex development & maintenance workflow! The OpenIPSL Project - Origins 32 Fork: copy of a project going in a different development direction
  • 33. The OpenIPSL Library – Key Feautures OpenIPSL is an open-source Modelica library for power systems • It contains a set of power system components for phasor time domain modeling and simulation • Models have been validated against a number of reference tools (mainly PSS/E) OpenIPSL enables: • Unambiguous model exchange • Formal mathematical description of models • Separation of models from tools/IDEs and solvers • Use of object-oriented paradigms 33
  • 34. The OpenIPSL Library – WT Example 34
  • 35. The OpenIPSL Library – Network Example 35 Resulting Parameter Declaration Resulting Class Instantiation Class Connections
  • 36. Many Application Examples Developed!!! The OpenIPSL Library – Application Examples 36 Klein-Rogers-Kundur 2-Area 4-Machine System IEEE 9 Bus IEEE 14 Bus Namsskogan Distribution Network
  • 37. The OpenIPSL Library – providing a good “initial guess” • An initial guess for all algebraic, continuous and discrete variables need to be provided to solve a numerical problem! • When solving differential equations, one needs to provide the initial value of the state variables at rest. • In Modelica, initial values can be either solved or specified in many ways, we use the following • Using the ”initial equation” construct:  initial equation • x = some_value OR x = expression to solve • Setting the (fixed=true, start=x0) attribute when instantiating a model when the start value is known (or possible to calculate) • If nothing is specified, set the default would be a guess value (start= 0, fixed=false). • In the OpenIPSL models we do the following: • The initial guess value is set with (fixed = false) for initialization. • Model attributes are treated as parameters with value (fixed = true), 37 • In OpenIPSL we use a power flow solution from an external tool (e.g. PSAT or PSS/E) as a starting point to compute initial guess values through parameters within each model. • The power flow solution is NOT the initial guess value itself. • Aim is to provide a better “initial guess” to find the initial values of the DAE system.
  • 38. Third order model from PSAT implemented in OpenIPSL The OpenIPSL Library – “initial guess” example 38
  • 39. The OpenIPSL Project Documentation • Documentation of the code changes: • Explicit messages in commits and pull-requests • Documentation of the project  Presentation  User guide  Dev. guidelines & How to contribute  The documentation is written in reStructuredText (reST) hosted on http://openipsl.readthedocs.io/ • Note: Model documentation is not included, users are referred to literature, textbooks and the proprietary documentations. 39
  • 40. The OpenIPSL’s Project - Continuous Integration (CI) Service 40 • A CI service was implemented and integrated to the repository. The Modelica support was achieved with the following architecture: • Travis as CI service provider • Docker as the “virtualization” architecture • DockerHub to host a Docker image with Python & OpenModelica • The CI performs automated syntax checks on the library. New changes are submitted as a new pull request to the master branch The pull request triggers the Travis CI The tailored Docker image is pulled The reference traces are pulled from a dedicated server The latest version of the library containing the changes is pulled from GitHub The Docker is instantiated to create a replicable environment where the tests are carried out The pass / fail flag from the tests on Travis is sent to Github
  • 41. Go to the OpenIPSL Github repo https://github.com/openipsl , see runTest.py The OpenIPSL’s CI Commit Output (Syntax Check Workflow) 41 Click to see the IO from Travis Results from CI testing on syntax check on several “Application Examples”
  • 42. •OpenIPSL.org organization in Github! (Prof. Dietmar Winkler) •Website will be also hosted there! The OpenIPSL – Ongoing Developments and Future Work! • Library Improvements (Tin Rabuzin, Maxime Baudette) • 100% Compatibility with OM (100% Syntax Check, ~100% Simulation for components) through efforts in Continuous Integration adoption • Change in the models to include inheritance (code factorizing) • Fixing and validating network models – application examples (thanks to CI) • ENTSO-E IOP Models (Francisco Gomez Lopez) • Proof of concept and test model • Excitation system and small network model 42
  • 43. The OpenIPSL – Ongoing Developments and Future Work! • Efforts within the openCPS project • New Component Models • New components for the OpenIPSL being developled: • Process noise (stochastic) pdf-based load models • Frequency estimation models • PMU “Container” Block (frequency estimation + packaging) • Control systems for islanded operation and automated resynch • Multi-domain modeling for gas turbines and power systems • Based on ThermoPower and OpenIPSL • Miguel Aguilera, et al. • More! • Joint modeling and simulation of transmission (positive sequence) and distribution (three-phase) power networks • Marcelo de Castro Fernandez and Prof. Janaina Gonçalvez (UFJF, Brazil) 43
  • 44. The OpenIPSL – Ongoing Developments (CI+R) • CI + Regression Testing • A two-stage process o Modelica syntax check (against Modelica language implementation in OM) o Model validation check (against reference simulation results of “trusted” model) • Fully automated through online CI services • Diagnostic help to the developers to locate the error! 44 Prototype Implementation in the “modelValidation-CI” branch
  • 45. The OpenIPSL – Ongoing Developments (CI+R) 45 OR Syntax Error Model Error Merging Blocked All OK ! Merging Allowed
  • 46. Multi-domain modeling for gas turbines and power systems 46  OpenIPSL  OpenIPSL  ThermoPower Interface!
  • 47. Multi-domain modeling for gas turbines and power systems 47 =
  • 48. Stochastic Load Model and Influence in Single-Domain and Multi-Domain Model Response Load varies d_P in the time interval between t1 and t1+d_t. Noise model can be added as real input u. Noise Model • Expectation value • Standard deviation • Sample Period Sine wave or ramp containing the noise can be used to model the “normal” load variation Mechanical Power
  • 49. Joint modeling and simulation of transmission and distribution power networks • Work together with Marcelo de Castro Fernandez , Prof. Janaina Gonçalvez (UFJF, Brazil) and Maxime Baudette • Hybrid single-phase three- phase model for power flow simulation using Modelica as modeling language. The formulation of such model was proposed by Jose Mauro Marinho and Glauco Nery Taranto in the paper: • [ref]Jose Mauro T. Marinho and Glauco Nery Taranto. A Hybrid Three- Phase Single-Phase Power Flow Formulation Published in: IEEE Transactions on Power Systems (Volume: 23, Pages: 1063:1070, Issue: 3, Aug. 2008) 49
  • 50. Implementation of DigSilentPowerFactory Component Models  MSc Thesis work by Harish Krishnappa [email protected] IEPG, TU Delft • Models include: o Synchronous Gen. o Loads o Transformer o Transmission Line o Exciter o OEL o Speed governor o Steam turbine o OLTC o Induction motor 50
  • 51. 51 Luigi Vanfretti Tin RabuzinAchour Amazouz Mohammed Ahsan Adib Murad Francisco José Gómez Jan Lavenius Le Qi Maxime Baudette Mengjia Zhang Tetiana Bogodorova Giusseppe Laera Joan Russiñol Mussons The OpenIPSL can be found online • http://openipsl.org RaPId, a system identification software that uses OpenIPSL can be found at: • https://github.com/ALSETLab/RaPId • http://dx.doi.org/10.1016/j.softx.2016.07.004 Thanks to all my current and former students, friends and developers that have supported the effort! Our work on OpenIPSL has been published in the SoftwareX Journal: • http://dx.doi.org/10.1016/j.softx.2016.05.001 Marcelo Castro Miguel Aguilera
  • 52. Part 2: (Phillip Top) Applications of the OpenIPSL library and the FMI in GRIDDYN 52

Editor's Notes

  • #14: Pygmalion effect: phenomenon whereby higher expectations lead to an increase in performance. The effect is named after the Greek myth of Pygmalion, a sculptor who fell in love with a statue he had carved. Procrustes - "the stretcher [who hammers out the metal]", rogue smith and bandit from Attica who physically attacked people by stretching them or cutting off their legs, so as to force them to fit the size of an iron bed. A Procrustean bed is an arbitrary standard to which exact conformity is forced.
  • #15: Groupe EDF
  • #16: Groupe EDF
  • #22: Groupe EDF
  • #24: Equality sign was introduced by Robert Recorde in 1557
  • #28: Initialized with proper steady-state values for the correct behaviour of the corresponding time-domain simulation the power flow computation was performed using Eurostag and the same values have been used to initialize the equivalent Modelica model Modelica/acausal modeling allows scalability of models and reuse of models In the 22-bus system, buses voltage, lines, loads, machines and regulators Initial value from the steady-state solution Eurostag power flow solution Initial value from P and Q values for loads.
  • #30: H. Wiesmann B. Bachmann. Advanced modeling of electro- magnetic transients in power systems. In Modelica Workshop 2000, Oct 2000. EPL – Modelon: http://www.modelon.com/products/modelica-libraries/electric-power-library/electric-power-library-release-information/ R. Franke and H. Wiesmann, “Flexible modeling of electrical power systems – the Modelica PowerSystems library,” Modelica 2014, 2014. M. Larsson, "ObjectStab-an educational tool for power system stability studies," in IEEE Transactions on Power Systems, vol. 19, no. 1, pp. 56-63, Feb. 2004.doi: 10.1109/TPWRS.2003.821001 Luigi Vanfretti, Tetiana Bogodorova, Maxime Baudette, A Modelica Power System Component Library for Model Validation and Parameter Identification, Proceedings of the 10th International Modelica Conference; March 10-12; 2014; Lund; Sweden, Volume , Issue 96, 2014-03-10, Pages 1195-1203, ISSN 1650-3740
  • #31: Resistance: an irrational and dysfunctional reaction in change recipients. Resistance can be resource: change agents contribute to resistance through their own actions and interactions
  • #38: Initialized with proper steady-state values for the correct behaviour of the corresponding time-domain simulation the power flow computation was performed using Eurostag and the same values have been used to initialize the equivalent Modelica model In the 22-bus system, buses voltage, lines, loads, machines and regulators Initial value from the steady-state solution Eurostag power flow solution Initial value from P and Q values for loads.
  • #39: Initialized with proper steady-state values for the correct behaviour of the corresponding time-domain simulation the power flow computation was performed using Eurostag and the same values have been used to initialize the equivalent Modelica model In the 22-bus system, buses voltage, lines, loads, machines and regulators Initial value from the steady-state solution Eurostag power flow solution Initial value from P and Q values for loads.