15
Complex System Engineering Simulation through Distributed Co-simulation SYLVAIN PAGERIT, ANL Phil Sharer, Aymeric Rousseau Argonne National Laboratory Thierry Roudier, Benjamin Boulbene ChiasTek June 1 st , 2016 Automotive Testing Expo 2016 Europe

Complex System Engineering Simulation through Distributed Co

  • Upload
    lydang

  • View
    223

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Complex System Engineering Simulation through Distributed Co

Complex System Engineering Simulation through Distributed Co-simulation

SYLVAIN PAGERIT, ANLPhil Sharer, Aymeric RousseauArgonne National Laboratory

Thierry Roudier, Benjamin BoulbeneChiasTek

June 1st, 2016

Automotive Testing Expo 2016 Europe

Page 2: Complex System Engineering Simulation through Distributed Co

CONTENTS

Overview

• Complex system engineering emerging from MBSE

Objective

• Framework for multi-tool simulation to support complex system engineering

Integrating Models from Expert Tools

• Model Communication & Computing Load

• Plug and Play Architecture to support complex System Engineering

Complex System Engineering Simulation

• Co-Simulation with CosiMate

• Plug and Play Architecture for Model-Based Design with Autonomie

• Integrating Co-Simulation with Plug and Play Architecture

Example with AMESim – Simulink Models

Conclusion and Future Work

Page 3: Complex System Engineering Simulation through Distributed Co

OVERVIEW

– Complex system engineering emerging from MBSE

3

Historically:

Heavy reliance on hardware:

smaller design space

high cost

longer development time

Improvement:

Modeling and simulation to

accelerate the introduction of

advanced technologies

Virtual Engineering Process

Sim: Simulation

RP: Rapid Prototyping

OTRP: On-Target Rapid Prototyping

PCG: Production Code Generation

SIL: Software-in-the-Loop

PIL: Processor-in-the-Loop

HIL: Hardware-in-the-Loop

Need detailed system models for more realistic simulation

Need Plug-and-Play architecture tool to support complex system engineering

Page 4: Complex System Engineering Simulation through Distributed Co

INCREASED COMPUTING RESOURCES ENABLES A MORE COMPLEX MBSE ENVIRONMENT

4

More Complex Simulations Large Scale Simulations

• Leverage computing resources to

run a large set of independent

simulations

• Usually in a single tool, to run:

• Vehicle scenarios

• parametric study

• optimization

• risk analysis

• …

• Leverage computing resources for

more complex / realistic simulation

• Use multiple expert tools due to:

• expert domain preference

• domain solver optimization

• legacy model

• …

• Distribute computing load to get

closer to real-time and / or protect IP

Increased Computing Power

MBSE

LMS AmesimSIEMENS PLM

Engine GT-Power

Transmission AMESim

Veh.DynamicsCarSim

Driver

Environment

Vehicle Controller

Vehicle Propulsion Architecture

Page 5: Complex System Engineering Simulation through Distributed Co

OBJECTIVES

5

Present a framework for multi-tool simulation to support complex system engineering

Complex System Engineering

Expert Model Communication

and Computing Load

Flexible Model

Integration Framework

MBSE

Page 6: Complex System Engineering Simulation through Distributed Co

INTEGRATING MODELS FROM EXPERT TOOLS

MODEL COMMUNICATION & COMPUTING LOAD

Co-simulation improves both model communication and computing load

6

There are usually 2 different paths for expert tool models to communicate together

Expert Tools Export Intermediate Format Import Run

S-Function

Specialized

format, e.g: FMI

Define I/O &

Compile

S-Function block

Specialized S-Function

block, e.g.: FMI Toolbox

Local,

All I/Os through Simulink

Expert ToolsDefine

Communication I/O

Interface to

Communication I/O Run

Add I/O

blocks

Local or remote,

I/Os between multiple tools

Co-s

imula

tion

Inte

rme

dia

ry F

orm

at,

e.g

.: in

Sim

ulin

k

Add I/O

blocks

LMS AmesimSIEMENS PLM

LMS AmesimSIEMENS PLM

Page 7: Complex System Engineering Simulation through Distributed Co

COMPLEX SYSTEM ENGINEERING SIMULATION

CO-SIMULATION WITH COSIMATE

Model Communication:• CosiMate is a communication controller, where all models of a system are simulated in their own

environment.

• Easy to setup the platform: I/O components provided with each simulation SW suite, platform defined

as a XML project file.

• Each simulator / model operates as an independent process running concurrently, synchronizing and

exchanging together.

7

Page 8: Complex System Engineering Simulation through Distributed Co

COMPLEX SYSTEM ENGINEERING SIMULATIONCO-SIMULATION WITH COSIMATE

Model Computing Load:– Simulations can be distributed:

• on multi-core/processor

• on multiple computers, either via standard TCP / UDP protocol, or using MPI (Message Passing

Interface) communication technology for distributed co-simulations over the Cloud.

8

Page 9: Complex System Engineering Simulation through Distributed Co

COMPLEX SYSTEM ENGINEERING SIMULATIONPLUG AND PLAY ARCHITECTURE FOR MODEL-BASED DESIGN WITH AUTONOMIE

9

Integration of expert models in the MBSE process requires a framework which is both transparent and flexible.

Page 10: Complex System Engineering Simulation through Distributed Co

EXAMPLE WITH AMESIM – SIMULINK MODELS

10

Create / Use

Model(s) with

Cosimate I/Os

Import Cosimate

model through a

Wizard

The model(s) are ready to use in

Autonomie, just drag and drop

them on the vehicle systems of

your choice

Model Import

LMS AmesimSIEMENS PLM

+ CosiMate

Page 11: Complex System Engineering Simulation through Distributed Co

EXAMPLE WITH AMESIM – SIMULINK MODELS

11

The CosiMate process

is automatically added

to all the Autonomie

processes (Cycle,

procedure, acceleration,

parametric studies,

SOC Correction…)

All the CosiMate Options are

available to the user, such as:

- Communication protocol

- Time step of the co-

simulation bus

- Core affinity

-…

Process Selection

Page 12: Complex System Engineering Simulation through Distributed Co

EXAMPLE WITH AMESIM – SIMULINK MODELS

12

Autonomie automatically

builds the vehicle Simulink

without the CosiMate

models

Autonomie automatically adds

the matching Cosimate I/Os

to interface with the Cosimate

Model(s)

Autonomie automatically generates the matching

netlist and launches it through Cosimate.exe

Model Building

Page 13: Complex System Engineering Simulation through Distributed Co

CONCLUSION

• The advent of MBSE requires a framework which can leverage all the computing resources available to the

user while being as transparent and flexible as possible, regardless of the expert tools involved in the system

simulation.

• Co-simulation is the most effective solution for its flexibility in model communication.

• CosiMate improves on the co-simulation standard by allowing:

• load balancing on multiple cores or remote computers.

• low impact on the model management (no need to compile or export model).

• higher level of control on the co-simulation communications.

• Autonomie provides a flexible framework for complex system simulation. Minimum work is required to import

expert models into the tool and their usage is completely transparent and independent of their native tool.

• In combination, Autonomie and CosiMate provide a reliable and collaborative system design and simulation

platform that will simplify the development of complex systems, and systems of systems in the future.

13

Page 14: Complex System Engineering Simulation through Distributed Co

Future work will focus on:

- Direct use of Model without manually setting CosiMate I/Os.

- Use CosiMate new MVS (Model Variables Selector) API to automatically add

I/O blocks directly in the expert tool model.

FUTURE WORK

14

LMS AmesimSIEMENS PLM

Page 15: Complex System Engineering Simulation through Distributed Co

THANK YOU FOR YOUR ATTENTION

15

Sylvain Pagerit, Phil Sharer, Aymeric Rousseau

Argonne National Laboratory www.autonomie.net

Thierry Roudier, Benjamin Boulbene

ChiasTek www.chiastek.com