Functional Mockup Interface for Tool and Model Interoperability

Similar documents
Functional Mockup Interface (FMI) A General Standard for Model Exchange and Simulator Coupling

INTEROPERABILITY WITH FMI TOOLS AND SOFTWARE COMPONENTS. Johan Åkesson

Functional Mockup Interface for Model Exchange and Co-Simulation

The Functional Mockup Interface for Tool independent Exchange of Simulation Models

POTENTIAL AND BENEFITS OF FUNCTIONAL MOCK-UP INTERFACE - FMI FOR VIRTUAL VEHICLE INTEGRATION

The Functional Mockup Interface for Tool independent Exchange of Simulation Models

FMI Kit for Simulink version by Dassault Systèmes

SIMULATOR TO FMU: A PYTHON UTILITY TO SUPPORT BUILDING SIMULATION TOOL INTEROPERABILITY

Multi-Physics RecurDyn Style Interoperability

Decoupling Test Cases from Real and Virtual Test Systems with ASAM HIL API

Development of Custom Workflows for Simulation and Analysis of Functional Mock-up Units

Simulation-based development of automotive control software with Modelica

EFFICIENT DEVELOPMENT OF COMPLEX SYSTEMS USING A UNIFIED MODULAR APPROACH

Experiences with the new FMI Standard Selected Applications at Dresden University

How to Improve FMI Compliance

Multi-core Simulation of Internal Combustion Engines using Modelica, FMI and xmod

Automatic Regression Testing of Simulation Models and Concept for Simulation of Connected FMUs in PySimulator

Simulation-based development of automotive control software with Modelica

FMI to NI VeriStand & LabVIEW Add-on. User Guide

Generation of Functional Mock-up Units from Causal Block Diagrams

1 Although other ways of exporting like using the 2 s 1

Functional Mockup Interface 2.0: The Standard for Tool independent Exchange of Simulation Models

Consistent Simulation Environment with FMI based Tool Chain

Vision of Building Simulation

FMI for Industrial Programmable Logic Controllers Rüdiger Kampfmann

Real-time transient stability simulation tool

SysML and FMI in INTO-CPS

Anticipatory Shifting Optimization of a Transmission Control Unit for an Automatic Transmission through Advanced Driver Assistance Systems

MA-Project System Structure and Parameterization Current Status and Plans

Functional Mock-up Interface for Model Exchange MODELICA Association Project FMI

Modelica-Association-Project System Structure and Parameterization Early Insights

Release Presentation ASAM AE XIL-MA Generic Simulator Interface for Simulation Model Access 2016 / 02 / 22

Dymola Dynamic Modeling Laboratory

Yosuke Ogata 1) Bruno Loyer 2) Antoine Viel 3)

This is the published version of a paper presented at IEEE PES General Meeting 2013.

Getting Started with the MapleSim FMI Connector

From versatile analysis methods to interactive simulation with a motion platform based on SimulationX and FMI

Dymola Dynamic Modeling Laboratory

Integrated Simulation and Hardware-test Environment for Microcontroller Development

Model-Based Development of Multi-Disciplinary Systems Challenges and Opportunities

Experience with Industrial In-House Application of FMI

Exploitable Results by Third Parties

ASAM AE XIL-MA v2.1 Release Presentation. Dr. Rainer Rasche, dspace GmbH

Modelica Association Project Distributed Co-Simulation Protocol. Martin Krammer DCP MAP Leader

Real-Time Simulation of Modelica-based Models

FMI WORKSHOP. INCOSE International Workshop, Los Angeles, CA, Contents. Introduction

VeriStand. FMI to NI VeriStand Add-on. User Guide

D6.1 INITIAL SIMULATION ENVIRONMENT

Generic FMI-compliant Simulation Tool Coupling

Using SPARK as a Solver for Modelica. Michael Wetter Philip Haves Michael A. Moshier Edward F. Sowell. July 30, 2008

Lecture Notes on CASE-Tools: TogetherJ

Ensuring quality for ADAS applications with a model-based approach

AVS: A Test Suite for Automatically Generated Code

Conference Dynamic Simulation in Vehicle Engineering Realtime Simulation of Vehicles Containing Detailed Components

FMI Toolbox User's Guide 2.3

Parallel Execution of Functional Mock-up Units in Buildings Modeling

Design Approach for a Generic and Scalable Framework for Parallel FMU Simulations

TERRA support for architecture modeling. K.J. (Karim) Kok. MSc Report. C e Dr.ir. J.F. Broenink Z. Lu, MSc Prof.dr.ir. A. Rensink.

Extending the IPG CarMaker by FMI Compliant Units

Importing Models from Physical Modeling. Tools Using the FMI Standard

FMI Toolbox User's Guide 2.6.4

Model-Based Dynamic Optimization with OpenModelica and CasADi

Further Developments and Applications of SIMPACK Code Export

vcdmstudio Product Information

Virtualizing the TCU of BMW's 8 speed transmission

A new Implementation of the N-D Lookup Tables

SIMPACK - A Tool for Off-Line and Real- Time Simulation

CLOSING THE DESIGN CYCLE LOOP WITH EXECUTABLE REQUIREMENTS AND OSLC

Reuse of Hardware Independent Test Sequences across MiL-, SiL- and HiL-Test Scenarios

Cluster Simulation with Integrated Workflow and Test Management. Chandu Puliroju dspace Inc.

FMI for physical models on automotive embedded targets

On the integration of HLA and FMI for supporting interoperability and reusability in distributed simulation

Improving Interoperability of FMI-supporting Tools with Reference FMUs

Modelica for Embedded Systems

External Interface(s) Application Guide

AUTOMATED TEST OF CVT CONTROL SOFTWARE, USING FMI AND MODELICA MODELS

DAE Tools: An equation-oriented process modelling and optimization software

Effective Team Collaboration with Simulink

ASAM XIL. Datasheet. Generic Simulator Interface AE. Title Category Current Version Release Date Download Application Areas

External Interface(s) Application Guide

Artop (AUTOSAR Tool Platform) Whitepaper

Team-Based Collaboration in Simulink

AUTOSAR design flow. Yoon-Jin Kim Application Engineer. July mentor.com/automotive

Lecture Notes on CASE-Tools: Together

R. Franke, PSP-A24, OpenModelica Annual Workshop 2015 Mathematical Optimization of Dynamic Systems with OpenModelica. ABB February 2, 2015

Applying the ASAM ODS Data Format in the CoCo-80

FULL VIRTUALIZATION OF RENAULT'S ENGINE MANAGEMENT SOFTWARE APPLICATION TO SYSTEM DEVELOPMENT

Documentation of Eclipse Applications with DITA

Variable Structure Modeling for Vehicle Refrigeration Applications

Why should we think about multiple tools? Requirements or how to choose the right tool?

July WATS Client 4.2 Installation Guide. In this document: WATS Client Installation Configure the WATS Client WATS Client Upgrade

Silver + TestWeaver Tools for Simulation-Based Design System Test and Validation

Proceedings of the 4th International Modelica Conference, Hamburg, March 7-8, 2005, Gerhard Schmitz (editor)

Modeling and Simulation for Heterogeneous systems

Forensic and Log Analysis GUI

Defining Domain-Specific Modeling Languages

Lawrence Berkeley National Laboratory Lawrence Berkeley National Laboratory

Title: High-Volume Automated Production Test with NI CompactRIO. Author: Robert Hoffman Signal.X Technologies, LLC

Chapter Outline. Chapter 2 Distributed Information Systems Architecture. Layers of an information system. Design strategies.

Scicos/Modelica for modeling and simulation

Transcription:

Functional Mockup Interface for Tool and Model Interoperability Willi Braun, Bernhard Bachmann Acknowledgements: FMI Development Project is developing FMI. Most slides in this presentation by Martin Otter, Torsten Blochwitz, et al.

FMI Motivation 1 Problems / Needs Reuse of supplier models by OEM: DLL (model import) and/or Tool coupling (co-simulation) Protection of model IP of supplier Added Value supplier2 supplier3 supplier4 supplier5 Component development by supplier Integration by OEM Many different simulation tools Solution supplier1 Early validation of design Increased process efficiency and quality slide from Nick Suyam, Daimler (adapted) OEM? supplier1 supplier2 supplier3 supplier4 supplier5 tool 1 tool 2 tool 3 tool 4 tool 5 OEM FMI supplier1! OEM supplier2 supplier3

FMI Motivation 2 No standards available for: Model interface based on C or binaries Co-simulation between simulation tools Lots of proprietary interfaces: Simulink: S-function Modelica: external function, external object interface QTronic Silver: Silver-Module API SimulationX: External Model Interface NI LabVIEW: External Model Interface, Simulation Interface Toolkit Simpack: uforce routines ADAMS: user routines Solution: Functional Mockup Interface (FMI) standard www.fmi-standard.org

Functional Mock-up Interface (FMI) Overview etc. Engine with ECU Gearbox with ECU Thermal systems Automated Chassis components, cargo doorroadway, ECU (e.g. ESP) functional mockup interface for model exchange and tool coupling courtesy Daimler The FMI development is part of the ITEA2 MODELISAR project. (2008-2011; 29 Partner, Budget 30 Mill. ) FMI development is initiated, organized and headed by Daimler AG Improved Software/Model/Hardware-in-the-Loop Simulation, of physical models from different vendors Open Standard 14 automotive use cases for evaluation in MODELISAR

FMI Main Design Idea A component which implements the interface is called Functional Mockup Unit (FMU) Separation of Description of interface data (XML file) Functionality (C code or binary) A FMU is a zipped file (*.fmu) containing the XML description file and the implementation in source or binary form Additional data and functionality can be included

FMI Specifications and Information (www.fmi-standard.org) FMI for Model Exchange (Jan. 2010, Version 1.0) Tool FMU Solver Model FMI for Co-Simulation (Oct. 2010, Version 1.0) Tool FMU Model Solver FMI for Model Exchange and Co-Simulation (July 2014, Version 2.0)

FMI for Model Exchange Tool FMU Solver Model

FMI for Model Exchange: Export/Import/Simulation Export subsystem model as FMU-archive model description (xml-file) executable dll-file containing model equations optionally C source code Simulation Tool 1 User Interface Subsystem 1 Solver Tool 1 Import subsystem model by reading FMU-archive model information from xml-file connecting subsystem variables running system simulation Simulation Tool 2 User Interface Subsystem 2 Solver Tool 2 Subsystem 1.fmu Subsystem 1.fmu

Model Distribution as a zip-file (FMU-archive) XML model description file All model information that is not needed during integration of model, e.g., signal names and attributes. Advantage: Subsystem 2 No overhead for model execution..fmu Tools can read this information (= complicated data structure) with their prefered language (C++, C#, Java,...) Model equations defined by a small set of compiled C-functions: Binary code (DLL) and/or C source code for one or more platforms (Windows, Linux,...) Resources Documentation (html files) Model icon (bitmap file) Maps and tables (read by model during initialization)

FMU-Archive for Model Exchange c o n tro l s im u la t o r G UI re a d s XML schema (.xsd) defined by the FMI specification re fe re n c e s m o d e l.d ll ru n 1 o r m a n y s im u la t o r s o lv e r m o d e ld e s c r ip t io n.x m l.fm u

FMI - Interfaces to Simulation Tool Equation structure: robot from Dymola demo

FMI - Interfaces to Simulation Tool Piecewise continuous system Continuous and discrete states Event indicators

FMI - Interfaces to Simulation Tool

FMI - Interfaces to Simulation Tool Information not needed for execution is stored in one xml-file: Complex data structures give still simple interface. Reduced overhead in terms of memory. robot from Dymola demo

FMI - Interfaces to Simulation Tool Structure of xml-file: Model variables <ModelVariables> <ScalarVariable name="inertia1.j" valuereference="1073741824" description="moment of load inertia" simpletype="modelica.siunits.inertia" causality="parameter" variability="fixed"> <Real start="1"/> </ScalarVariable>

FMI - Interfaces to Simulation Tool Structure of xml-file: Unit definition unit checking possible mapped on 7 SI base units and derived unit rad <UnitDefinitions> <Unit name="rad"> <BaseUnit rad="1"/> <DisplayUnit name="deg" factor="57.2957795130823"/> </Unit> <Unit name="rad/s"> <BaseUnit s="-1" rad="1"/> </Unit> <Unit name="n.m"> <BaseUnit kg="1" m="2" s="-2"/> </Unit> </UnitDefinitions>

FMI for Co-Simulation Tool FMU Model Solver

FMI for Co-Simulation Definition: Coupling of several simulation tools Each tool treats one part of a modular coupled problem Data exchange is restricted to discrete communication points Subsystems are solved independently between communication points Motivation: Simulation of heterogeneous systems Partitioning and parallelization of large systems Multirate integration Hardware-in-the-loop simulation

FMI for Co-Simulation Master/slave architecture Considers different capabilities of simulation tools Support of simple and sophisticated coupling algorithms: Iterative and straight forward algorithms Constant and variable communication step size Allows (higher order) interpolation of continuous inputs Support of local and distributed co-simulation scenarios FMI for Co-Simulation does not define: Co-simulation algorithms Communication technology for distributed scenarios

FMI for Co-Simulation (tool coupling) Use Case Co-Simulation stand alone Co-simulation tool

FMI for Co-Simulation (tool coupling) Use Case Distributed co-simulation scenario Data exchange is handled by a communication layer which is implemented by a special FMI wrapper Master and slave utilize FMI for Co-Simulation only

FMI - Interfaces for Co-Simulation Equation structure: robot from Dymola demo

FMI - Interfaces to Simulation Tool

FMI 2.0 - Model Exchange and Co-Simulation Documents, schema and header files merged - Harmonization Classification of interface variables Variability, Causality, Tunable Improved interface for initialization and events mode Save complete FMU state (Restart of simulation possible) Jacobian matrix (linearization) can be provided as c-function Sparsity pattern of Jacobians can be defined in xml-file Directional derivatives are available (FMU in algebraic loop)...