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

Similar documents
From Physical Modeling to Real-Time Simulation : Feed back on the use of Modelica in the engine control development toolchain

Functional Mockup Interface for Tool and Model Interoperability

Importing Models from Physical Modeling. Tools Using the FMI Standard

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

INTEROPERABILITY WITH FMI TOOLS AND SOFTWARE COMPONENTS. Johan Åkesson

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

Multi-Physics RecurDyn Style Interoperability

Scicos/Modelica for modeling and simulation

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

Model Based Systems Engineering Engine Control: from concept to validation. Jan Smolders Technical Account Manager

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

FMI for Industrial Programmable Logic Controllers Rüdiger Kampfmann

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

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

Parallel Execution of Functional Mock-up Units in Buildings Modeling

FMI Kit for Simulink version by Dassault Systèmes

EFFICIENT DEVELOPMENT OF COMPLEX SYSTEMS USING A UNIFIED MODULAR APPROACH

Consistent Simulation Environment with FMI based Tool Chain

The Functional Mockup Interface for Tool independent Exchange of Simulation Models

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.

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

How Real-Time Testing Improves the Design of a PMSM Controller

Modeling Structural - Dynamics Systems in MODELICA/Dymola, MODELICA/Mosilab and AnyLogic

Dymola Dynamic Modeling Laboratory

High-Performance-Computing meets OpenModelica: Achievements in the HPC-OM Project

Simulation-based development of automotive control software with Modelica

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

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

Dymola Dynamic Modeling Laboratory

Ensuring quality for ADAS applications with a model-based approach

EtherCAT with MORPHEE 2, D2T s Automation System A fast and reliable communication with the test bed

Prototyping and Deployment of Real- Time Signal Processing Algorithms for Engine Control and Diagnosis

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

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

Extending the IPG CarMaker by FMI Compliant Units

Experiences with the new FMI Standard Selected Applications at Dresden University

Mathieu Dutré - Application Specialist MBSE. Analysis and optimization of physical models for HIL simulation

Interoperability in Aerospace Public Use Case of CRYSTAL project

raceability Support in OpenModelica Using Open Services for Lifecycle Collaboration (OSLC)

FMI Toolbox User's Guide 2.3

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

PAPYRUS TOOL SUPPORT FOR FMI

Practical approaches for re-architecture with benefits for AUTOSAR or non-autosar implementations Dave Hoadley Principle Pilot Engineer

External Interface(s) Application Guide

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

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

External Interface(s) Application Guide

Exploitable Results by Third Parties

Using Cost Effective Distributed HIL for Rapid Prototyping

FMI Toolbox User's Guide 2.6.4

A Pattern-supported Parallelization Approach

Functional Mockup Interface for Model Exchange and Co-Simulation

Engine Calibration Process for Evaluation across the Torque- Speed Map

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

RT-MaG: an open-source SIMULINK Toolbox for Linux-Based Real-Time Robotic Applications

Click to edit Master title style SECRET

Dymola Dynamic Modeling Laboratory

Introducing Overdecomposition to Existing Applications: PlasComCM and AMPI

Handling Challenges of Multi-Core Technology in Automotive Software Engineering

Generation of Functional Mock-up Units from Causal Block Diagrams

Real-time transient stability simulation tool

Virtual Integration of Engine, Vehicle and AT Systems: Approaches, Challenges & Benefits

Interfacing Chrono & Matlab. Chrono units for MATLAB and SIMULINK

Virtual Validation of Cyber Physical Systems

Enhancement of the building simulation software TRNSYS by coupling to the VEPZO model programmed in Modelica

Model-Based Dynamic Optimization with OpenModelica and CasADi

OVERVIEW OF TRENDS IN ONBOARD DIAGNOSTICS WITH RESPECT TO MULTICORE SYSTEMS COMPUTING PERFORMANCES

Co-simulation of cyber-physical systems using a DEVS wrapping strategy in the MECSYCO middleware

SIMulation Workbench and HIL testing at Ford Motor Company

FMI for physical models on automotive embedded targets

Sensor Fusion with RTMaps on an Embedded Platform

Parallelism paradigms

Virtual engineering at work: the challenges for designing mechatronic products

Variable Structure Modeling for Vehicle Refrigeration Applications

Better Building Controls Through Simulation

V&V: Model-based testing

ECE519 Advanced Operating Systems

Generic FMI-compliant Simulation Tool Coupling

Team-Based Collaboration in Simulink

Automatic Code Generation Technology Adoption Lessons Learned from Commercial Vehicle Case Studies

EXOCHI: Architecture and Programming Environment for A Heterogeneous Multicore Multithreaded System

Applying Multi-Core Model Checking to Hardware-Software Partitioning in Embedded Systems

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

Parallel Programming Environments. Presented By: Anand Saoji Yogesh Patel

Concept Presentation. MAENAD Analysis Workbench

Holistic Assessment of Cyber-physical Energy Systems Facilitated by Distributed Real-time Coupling of Hardware and Simulators

Modelica-Association-Project System Structure and Parameterization Early Insights

Further Developments and Applications of SIMPACK Code Export

Multicore Migration Study in Automotive Powertrain Domain

Visual Analysis of Lagrangian Particle Data from Combustion Simulations

Real-Time Execution in NI VeristandTM

Heterogeneous systems co-simulation: a model-driven approach based on SysML State Machines and Simulink

elektronik Security for Software and IT ECU ENERGY STORAGE TESTING COVER STORY Gasoline Direct Injection in-the-loop

A hybrid slurry CFD model: Euler-Euler to Euler-Lagrange

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

Model-based Calibration of HD Engines. Benjamin Tilch, Rico Möllmann, Axel Steinmann, Dr. Reza Rezaei GT-SUITE Conference, Frankfurt, October 2014

Introduction to Physical Modelling Rory Adams Senior Application Engineer

Guido Sandmann MathWorks GmbH. Michael Seibt Mentor Graphics GmbH ABSTRACT INTRODUCTION - WORKFLOW OVERVIEW

Modern techniques bring system-level modeling to the automation industry

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

Transcription:

CO 2 maîtrisé Carburants diversifiés Véhicules économes Raffinage propre Réserves prolongées Multi-core Simulation of Internal Combustion Engines using Modelica, FMI and xmod Abir Ben Khaled, IFPEN Mongi Ben Gaid, IFPEN Daniel Simon, INRIA Rhône Alpes Nicolas Pernet, IFPEN

2 Outline Introduction, context and motivations Engine modeling using Modelica and models interoperability using FMI Integration and multi-core execution using xmod Test cases and demos Conclusions

3 Context From off-line simulation to real-time simulation Off-line multi-core cosimulation platform Real-time multicore co-simulation platform Control algorithms development (Simulink,...) Controllers or actuators validations Real-time multicore co-simulation platform Physical components models development (OpenModelica, Dymola, AMESim...) virtual Virtual integration et experimentation laboratory Integration of heterogeneous models Validation of physical components on test beds semi-virtual semi-real

Motivations Processors evolution Computational power improvement in today processors is mainly driven by the augmentation of the number of cores per processor Concurrent execution of threads to exploit Thread Level Parallelism (TLP) Core 0 Core 1 Efficient exploitation of resources depends of Splitting applications into tasks Distributed scheduling of tasks Core 2 Core 3 4

5 Motivations Combining real and virtual

6 Motivations Enabling new concepts industrialization Developing new engine concepts that reduce pollutants and consumption requires the ability to simulate, in real-time, the incylinder behaviour (cylinders pressure) Core 0 Core 1 Core 2 Core 3

7 ModEngine library

8 Functional Mock-up interface (FMI) FMI is a set of specifications including FMI for model exchange : describes the software interface of a hybrid ODE (inputs, outputs, parameters, variables, API functions that a solver and an environment needs to call...) FMI for co-simulation : provides a software interface for coupling two or more simulation tools or components, in a master/slave scheme. A slave may be a component integrating both the model and its solver

xmod Concept A platform dedicated to models exploitation Heterogeneous model integration environment Standalone and optimal model exploitation Virtual experimentation laboratory To improve : Model exchange : Having the same tools is no longer necessary to share models improve the collaboration internally and externally 9

10 xmod contributions Proficiency : proficiency in simulation design tools is no longer the "entry ticket" for exploiting simulation Help models exploitation by non expert fields Tools choice : Modeling language choice has less impact on users Congregates the benefits of each tool for each specific application, without having to leave its own tools CPU time : xmod allows a parallel and optimized execution reduce the computation time License cost : model exploitation in xmod does not require any license of the original authoring tools if appropriate export features are used reduce license cost

11 xmod functionalities C C++ A.c B.cpp C. mdl D. ame E.mo F.gtm G.fmu A.xmodel B.xmodel C.xmodel D.xmodel E.xmodel F.xmodel G.fmu A.dll B.dll C.dll D.dll xmod Platform E.dll F.dll

12 xmod functionalities Specific interfaces creation Better simulation workspace customized for each engineering field Easy interactivity with the model in real-time Easy to use exchange vector of models Protect models know how

13 xmod functionalities Compatibility to new Functional Mock-up Interface (FMI) standard standard from MODELISAR project FMI-for-model exchange 1.0 Available solvers in xmod : Euler, Runge-Kutta, DASSL, DASKR, CVODE, LSODAR xmod Solver FMU Model FMI-for-cosimulation 1.0 xmod FMU Model Solver

14 Multi-core co-simulation : approach A B C D E F A B D A B D A B D C C C E F E F E F E F E F E F

Multi-core co-simulation : workflow Decompose the global system into subsystems (preferably with weak coupling) Export each subsystem to an FMU Assemble generated FMUs in xmod Each FMU is executed into a separate thread with a dedicated solver (fixed step or variable step) with a dedicated integration step-size with a dedicated communication step-size A global master ensures proper data transfer during communication points according to a well defined model of computation 15

Engine model splitting Partitioning engine model from a physical point of view Engine Simulator AirPath Minimize the number of discontinuities per subsystem Minimize integration interrupts Minimize interaction dynamics ECU Combustion chamber 1 Combustion chamber 2 Combustion chamber 3 Combustion chamber 4 16

Data exchange overview V a ria ble integ ra tion s tep E ng ine s im ula tor OR Fixed integ ra tion s tep C om m unic a tion s tep E ng ine s im ula tor C om m unic a tion s tep Initia liza tion E xc ha ng e 1 E xc ha ng e 2 17 17 C om m unic a tion s tep E C U C ontroller

F4RT Wiebe test case Test case description Gasoline engine Modeled in Modelica/Dymola using IFPEN library ModEngine Split into 5 subsystems : AirPath + 4 cylinders Combustion chambers models are based on a Wiebe combustion model 500 µs communication step LSODAR used for integrating all split sub-models, except controls LSODAR tolerance = 10-4 Global simulator has 87 state variables and 420 event indicators 18

19 F4RT Wiebe test case Benefits of model splitting and co-simulation Events only here On single core, X2 speed-up Almost no events: Forward integration could performed

20 F4RT Wiebe test case Benefits of model splitting and co-simulation step size = max

Complete Diesel Hybrid vehicle demonstrator Test case description Diesel engine 12 gas model Modeled in AMESim using IFP-Engine library Combustion chambers models are based on Barba phenomenological combustion model Vehicle dynamics modeled in AMESim Complete controls Around 300 state variables 21

Complete Diesel Hybrid vehicle demonstrator Comparative results : Simulink & xmod 22 Using Simulink Requires applying a unique solver and step-size Euler solver with step-size of 25 µs applied to the global system Uses only one core of the machine Using xmod Engine model was split into 5 parts : air path + 4 cylinders Air path is integrated using Euler solver with 100 µs Cylinders are integrated using Euler solver with 25 µs Vehicle model is integrated with RK4 solver with 500 µs Remaining models and controls are run with appropriate solvers and step-sizes (from 500 µs to 100 ms) Results A speedup of X25 was observed on a 6-core machine using xmod wrt Simulink Simulation in xmod is 20% faster than real-time

Conclusion Approach for complex systems simulation Similar speed-up results observed with other engine models This approach was successfully to production models from automotive OEM OpenProd remaining objectives Integrating OpenModelica to this toolchain Linux & Xenomaï compatibility 23