20
PROPULSION SIL in CI 1 Continuous Integration and Validation Using Closed-Loop SiL Simulation for Propulsion Control and Calibration Mattias Eriksson, Johannes Foufas, Neda Nickmehr Volvo Cars, Göteborg, Sweden Michael Hartmann QTronic GmbH, Berlin, Germany

PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

PROPULSION SIL in CI

1

Continuous Integration and Validation Using Closed-Loop SiL Simulation for Propulsion Control and Calibration

Mattias Eriksson, Johannes Foufas, Neda NickmehrVolvo Cars, Göteborg, Sweden

Michael HartmannQTronic GmbH, Berlin, Germany

Page 2: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

• Started 2002

• 10 model developers

• SourceSafe/Vault

• Used as a network storage

• Manual starting bat files for code gen and building

In the beginning

Page 3: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

History

• Prior to the current engine generation, most tests done in car

• During the development of the current engine generation, automatic unit and system tests were introduced.

• Aftertreatment SW solely developed in Sil platform.

• One senior SW developer said: now I know it will work when we test in the car...

CAE Engineers use Silver to run plantmodels

2009 2014

Sil Pilot on

current

Engine

plattform

2015 2016 2017

Pilot withExplorative tests on nextEngine plattform

Server automation and education

Ramp up to 100 users, now also in moreprojects

Gating CI system based on git/gerrit/zuul. The first for modelbased developmentat Volvo Cars Corporation

2018

Page 4: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

• The Software in current generation ECMs is structured into around 500 modules

• A small part of the application code is still made by the HW suppliers

Software in the engine control Module

Page 5: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

ISSUE DATE 5

CI/CD System• Ensuring the integrity is not dependent on a single

individual making the right call. It is ensured by the system.

• Fast Feedback, small changes often, automatic testing• Transparency, Follow your commit• CI/CD system as code, using Python plugin Jenkins job

builder and YAML files as pipeline configuration

Page 6: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

ISSUE DATE 6

CI/CD SystemCI system structureBuild dll, unit tests, Merge tests and Exploratory tests executed by Silver and TestWeaver

Page 7: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

CI/CD System

Page 8: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

CI/CD System

Page 9: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

CI/CD System

Page 10: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

CI/CD System

Page 11: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

SIL, the core of the CI system

5/8/2019 11

EP CD FPD HIL SIL

Physical Testing

Virtual Testing

Number of tests

Page 12: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

SIL Test levels

5/8/2019 12

Unit SIL testOpen-loop

Module SIL testOpen-loop

Module SIL testClosed-loop

ECM SIL testClosed-loop

• Unit-, Module- and ECM-level tests• ECM includes supplier SW• With or without plant models

Page 13: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

Test execution framework

5/8/2019 13

• All SIL tests – from open-loop unit tests to closed-loop ECM tests are using the same toolchain

• Tests defined in TestWeaver• Stimulus files in Python• Test-level invariant requirement watchers (RML)

• Test execution in Silver

Page 14: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

ECM SIL - Engine plant model

Engine Control Module

SIL dll

sensors

actuators

Page 15: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

Engine plant model - parts

• In-house developed Dymola model for torque, air-charge and cooling systems

• Supplier catalyst models, blackbox• Data-driven emission models

ETAS ASCMO, Neural networks

Fortran

ASCMO

Page 16: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

Transmission

ECM SIL – the full system

Engine Control

Module

SIL dll

Engine

Vehicle Driver

Page 17: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

Transmission

ECM SIL – the full system

Engine Control

Module

SIL dll

Engine

Vehicle Driver

ASCMO

Fortran

Matlab Simulink

How to integrate and simulate all this together?• Plant models run as

Functional Mockup Units (FMU:s)https://fmi-standard.org/

• Integrated in QTronic Silver

Page 18: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

Results, Wltc

• WLTC cycle comparison• ECM SIL vs. Prototype vehicle rig measurement• Input: WLTC velocity profile• Including emissions • Focus on triggering software functionality, not absolute quantities

Vehicle speed, WLTC

Page 19: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

Results, Wltc

Ad-blue dosing NOx Tailpipe

LNT NOx storageLNTmode

NOx Engine out

EGR flow

Page 20: PROPULSION SIL in CI - Synopsys...Sil Pilot on current Engine plattform 2015 2016 2017 Pilot with Explorative tests on next Engine plattform Server automation and education Ramp up

Thank You!