AVL Embedded Software Model-Based Design Platform Based on MATLAB and Simulink

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

Collaboration in Teams: Simulink Projects Demonstration

Testing, Validating, and Verifying with Model-Based Design Phil Rottier

Release Notes. PREEvision. Version 6.5 SP11 English

Team-Based Collaboration in Simulink

Automated Continuous Verification & Validation for Automobile Software

Effective Team Collaboration with Simulink

Simulator in the-loop Environment for Autocode Verification

Virtual Hardware ECU How to Significantly Increase Your Testing Throughput!

Simulink 를이용한 효율적인레거시코드 검증방안

Verification, Validation, and Test with Model-Based Design

AUTOSAR Software Design with PREEvision

A Model-Based Reference Workflow for the Development of Safety-Related Software

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

ISO Compliant Automatic Requirements-Based Testing for TargetLink

Simulink as Your Enterprise Simulation Platform

AVL SANTORIN MX 2. Unleash data power

AVL SANTORIN MX 2. Product Presentation. AVL List GmbH (Headquarters) Public

Testing TargetLink. Models and C Code with Reactis

Simulation-based Test Management and Automation Sang-Ho Yoon Senior Application Engineer

Techno Expert Solutions An institute for specialized studies! Introduction to Advance QTP course Content

Release Notes. PREEvision. Version 6.5 SP14 English

AVL PUMA Open 2. The ease of automation

GAIO. Solution. Corporate Profile / Product Catalog. Contact Information

ISO compliant verification of functional requirements in the model-based software development process

DESIGN HELPED A MAJOR AND HIGHER SOFTWARE CUSTOMER SUCCESS STORY ABOUT THE CLIENT

DRYING CONTROL LOGIC DEVELOPMENT USING MODEL BASED DESIGN

Release Notes. PREEvision. Version 6.5 SP13 English

Simulink to Embedded Hardware Paul Peeling MathWorks

SYNECT

CS 390 Software Engineering Lecture 3 Configuration Management

Managing HIL, SIL, and MIL Simulation with SIMulation Worbench TM

AVS: A Test Suite for Automatically Generated Code

MIL/SIL/PIL Approach A new paradigm in Model Based Development

Verification and Validation of Models for Embedded Software Development Prashant Hegde MathWorks India Pvt. Ltd.

Introduction to ALM, UFT, VuGen, and LoadRunner

OpenEarth OpenEarthTools = Open source management of Data, Models and Tools for marine & coastal science & technology

Experiences with AUTOSAR compliant Autocode generation using TargetLink

Verification, Validation and Test in Model Based Design Manohar Reddy

Certified Automotive Software Tester Sample Exam Paper Syllabus Version 2.0

Quality Indicators for Automotive Test Case Specifications

Register for this Exam You need an HPE Learner ID and a Pearson VUE login and password.

Developing AUTOSAR Compliant Embedded Software Senior Application Engineer Sang-Ho Yoon

ACE Operation Manual

Volvo Car Group Jonn Lantz Agile by Models

Model-Based Design for Safety Critical Automotive Applications

Combining the Power of DAVE and SIMULINK

MDX and AUTOSAR Standards for Model Sharing to leverage Tier1 - OEM cooperation in the ECU software development

Accelerating Simulink Optimization, Code Generation & Test Automation Through Parallelization

Testing Framework with Simulink Test

Reuse MATLAB Functions and Simulink Models in UVM Environments with Automatic SystemVerilog DPI Component Generation

Consistent Simulation Environment with FMI based Tool Chain

Development and Deployment of ECU based Control Systems through MBD. Imperative role of Model based design in System Engineering

Lab 01 How to Survive & Introduction to Git. Web Programming DataLab, CS, NTHU

SystemDesk - EB tresos Studio - TargetLink Workflow Descriptions

Oliopäivät Modelling Now and in the Future, with Acronyms or without = RSA

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

Designing a System Engineering Environment in a structured way

Entwicklung zuverlässiger Software-Systeme, Stuttgart 30.Juni 2011

SCADE. SCADE Architect System Requirements Analysis EMBEDDED SOFTWARE

Diploma in Software Testing (DST)

Acceptance Test Plan

Siebel Installation Guide for Microsoft Windows

Managing HIL, SIL and MIL Simulation with SIMulation Workbench

From Design to Production

Multi-site testing strategy using TTCN-3

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

#SEU Welcome! Solid Edge University 2016

Implementing MATLAB Algorithms in FPGAs and ASICs By Alexander Schreiber Senior Application Engineer MathWorks

Software Engineering 2 A practical course in software engineering. Ekkart Kindler

CA Test Data Manager Key Scenarios

Full Virtualization of Renault's Engine Management Software and Application to System Development

V&V: Model-based testing

Integrity 10. Curriculum Guide

What s New in MATLAB and Simulink

Simulink for AUTOSAR: Best Practices

European Conference on Nanoelectronics and Embedded Systems for Electric Mobility. HIL platform for EV charging and microgrid emulation

Integrated Workflow to Implement Embedded Software and FPGA Designs on the Xilinx Zynq Platform Puneet Kumar Senior Team Lead - SPC

IBM Best Practices Working With Multiple CCM Applications Draft

TRC File Changes with dspace Release 2014-A and Later. Migration Guide

DevPlan User Guide. Table of Content. DevPlan User Guide. Author: TechExcel co.ltd

Automating Best Practices to Improve Design Quality

Model Diversity and Variability

Using Siebel Tools. Siebel Innovation Pack 2017, Rev. A March 2018

API Testing with GreenPepper Challenges and Best Practices

CONFIGURING SAFE V4.0 IN THE IBM COLLABORATIVE LIFECYCLE MANAGEMENT

Automotive Data Dictionary

ALM. Tutorial. Software Version: Go to HELP CENTER ONLINE

Test Execution Engine

WHITE PAPER. 10 Reasons to Use Static Analysis for Embedded Software Development


Sequence 8.2 Release Notes. Date: 13 th November 2016

COMPUTER FLOOD STANDARDS

Copyright 2013 by AGILOD Consulting, LLC. All Rights Reserved. Test Automation. Done The AGILOD Way

Verification and Validation of High-Integrity Systems

Vector Issue Tracker and License Manager - Administrator s Guide. Configuring and Maintaining Vector Issue Tracker and License Manager

SOFTWARE QUALITY ASSURANCE TOOLS & TECHNOLOGY PROFESSIONAL SERVICES ACADEMY. Technical Note. License Usage. Issue 2.0

Hyperion Interactive Reporting Reports & Dashboards Essentials

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

Increasing the Value of your Test System Investment

Transcription:

Daniel Baumann, IT AVL Embedded Software Model-Based Design Platform Based on MATLAB and Simulink MathWorks Automotive Conference 2015 Stuttgart, 24 September 2015 Thierry Dalon AVL Software and Functions GmbH

Outline 1. Company use-cases introduction 2. In-house tool platform overview 3. Technical challenges and innovative solutions Thierry Dalon Powertrain Controls - PMT 24 September 2015 2

Overview AVL Powertrain Controls Business Fields Passenger Cars 2-Wheelers Racing Software and function development Construction Agriculture Commercial Vehicle Locomotive Marine Power Plants Thierry Dalon Powertrain Controls - PMT 24 September 2015 3

What is AVLab? AVLab (~AVL+MATLAB) describes the tool platform developed at AVL PTE Controls for supporting Model-Based Embedded Software Development in MATLAB and Simulink. Thierry Dalon Powertrain Controls - PMT 24 September 2015 4

AVLab Approach and Philosophy Do not make, if you can buy state-of-the-art tool covering our needs Build toolchain/interfaces between existing tools (glue tools) to have an integrated seamless toolchain Don t be dependent but flexible (open platform) Cover/support all standard tool landscape/customer scenarios with least effort Component-based approach Support processes/methods Standardization Proxy for best practices Re-use oriented Thierry Dalon Powertrain Controls - PMT 24 September 2015 5

AVL Customer Toolchain Use Cases Thierry Dalon Powertrain Controls - PMT 24 September 2015 6

Projects Highlights 10/1/2012-2/1/2014 8/1/2013 Full EMS for Gasoline Engine (EC) AVLab sold to Customer (EC) 12/1/2014 Collaboration Scenarios (TL) v2.5 Model Coverage. Requirement Coverage Review 5/28/2014 AVLab Timeline v2.1 ADD One- click Update 3/12/2013 v2.0 Tester with UI 2/8/2013 v2.4 Back to Back (EC). Automatic Assertion via Script. Aggregation 10/31/2013 v2.6 Performance / Memory Improvement. Collaboration without ADD/ TargetLink 1/22/2015 v2.7 Batch Framework. Delivery Package 3/6/2015 2012 Jul 2013 Jul 2014 Jul 2015 Jul 2015 11/19/2012 v1.4 Test Scripts 6/21/2013 v2.3 Test Evaluation via Reference /Regression Test 7/1/2012 Start AVLab Development (2 people) 10/31/2013 Toolchain unification (RGB/GRZ) 10/1/2014 PMT Worldwide / Established Toolchain AVLab Team now: ~9 people Thierry Dalon Powertrain Controls - PMT 24 September 2015 7

AVLab Users AVLab has a strong in-house user basis (188 users). AVLab supports the MBD development process in several AVL PTE affiliates around the world. Turkey: 19 users 10% Other: 9 users 5% Budapest: 21 users 11% Regensburg: 89 users 47% Graz: 50 users 27% Regensburg Graz Budapest Turkey India Sweden China UK Ö US Ö Thierry Dalon Powertrain Controls - PMT 24 September 2015 8

AVLab Modules and Tool Integrations AVLab Data Management ADD SyncTool StiGen Tester Concerto Documentation FunDoc Code Generation TargetLink ALM Tool Integrity RM CM TM Batch Framework Consistency Review Aggregation Model coverage Modeling guidelines Embedded Coder Simulink VnV MES MXAM Renaming Delivery Collaboration Thierry Dalon Powertrain Controls - PMT 24 September 2015 9

AVLab Advantages Before AVLab: Too many tools, too complex Local project specific solutions/scripts (fill missing feature) High Cost and time delay because of tools Effort to link tools Multiplied maintenance and effort by project Developer without guidance With AVLab: Shorter development time Increased efficiency and productivity (oneclick solutions) Better quality Best practices proxy/levelling up Easy re-use One standard workflow/one way (from start to end/continuity) One platform (tool linked together/seamless toolchain) Thierry Dalon Powertrain Controls - PMT 24 September 2015 10

Development Levels and Test Platforms Level Vehicle AVLab xcu Pushing Performance Limits using: Windows 64bit Reference Model Accelerated Mode Simulation Parallelization x x x SW System SWC Composition x x x x x x x x x x x x Challenge Heat Map for MATLAB and Simulink SW Component x x x x MiL floating point Possible with MiL fixed point SiL PiL Virtual Integration Platform HiL XiL Test Bed Vehicle Test Platform Test Front-loading Thierry Dalon Powertrain Controls - PMT 24 September 2015 11

List of Challenges We will present our current answers to some of following questions/challenges: How to ensure Traceability to the System-Under-Test? How to support Data Management for both Embedded Coder and TargetLink? How to handle Calibration Data for a component and Test Cases? How to handle simulation data in a lean way to reduce out of memory issues but still ensure test results consistency? How to push the limits of full ASW System simulation on MATLAB and Simulink? How to support component aggregation in MATLAB and Simulink in a semiautomatic way? How to ensure consistency between all development artefacts? How to ensure test continuity between different test platform (example MiL/SiL -> HiL)? [re-use and Back-to-Back] Thierry Dalon Powertrain Controls - PMT 24 September 2015 12

Lean Specification Data management Test Specification Data are handled in single files. One directory per Test Case. Test Cases directory contains Specification data (stimuli, calibration file) Evaluation data (plot config, assessment script, reference signals) Advantages: Allows direct access to information (example Test Case calibration) Straightforward re-use of test cases Traceability Test Case Item to test case data (source traces in Integrity) with suspect/impact analysis Thierry Dalon Powertrain Controls - PMT 24 September 2015 13

Lean Modular Simulation Data management Simulation Data Simulation Data is split from Configuration Data and saved in a separated file Simulation Data belonging to a Test Session are packed/ zipped together for test run consistency If the System-Under-Test is unchanged (checksum), Data are merged. Else reset. Advantages: Ensure consistency Lean memory usage for evaluation Only result data from one Test Case is loaded simultaneously. Only the necessary signals are loaded. (mat-file API) Supports Simulation Parallelization Thierry Dalon Powertrain Controls - PMT 24 September 2015 14

Component Aggregation Project Interface to build/aggregate components Build/update model (using library or model reference) Build data files (flat included or referenced) For TargetLink also.dd files are merged Build calibration file (flat included or referenced) Semi-automatic: scheduling has to be finished manually. Thierry Dalon Powertrain Controls - PMT 24 September 2015 15

Traceability & Consistency Challenge In automotive SPICE 3.0 special focus on traceability and consistency. Source: B. Sechser http://www.slideshare.net/polarion_deutsc hland/automotive-spice-30-was-ndert-sich Example: Test Report and Test Results shall reference to the revision of the System- Under-Test. Thierry Dalon Powertrain Controls - PMT 24 September 2015 16

Traceability System-Under-Test (SUT) Challenge: Assure all test work products are traceable to their tested objects. What was tested? Summary of solutions 1. Display revision as Expanded Keywords Properties (Model, ASCII Files) 2. Download revisions from Version Management Repository and run test against downloaded unmodified revisions (redirect path to download location) 3. Tracing revision in working Sandbox/on the fly; marking of weak (=modified) revision traces 4. Solution 3 + automatic repair of weak revision traces Thierry Dalon Powertrain Controls - PMT 24 September 2015 17

Traceability System-Under-Test (Solution 4) Solution 4: Run against working files and gather on the fly suspect/weak trace information + checksum information Repair Weak revision traces 1.12 1.11 weak trace Revision n+1 Pseudo Checksum* Revision n Pseudo Checksum* =? yes Repair weak revision traces VM *Pseudo Checksum=Checksum of artefact without revision information Repair Thierry Dalon Powertrain Controls - PMT 24 September 2015 18

Artefacts Consistency Check Goal: While looking at a collection of artefacts, be able to check if they are consistent together. Problematic examples/pitfalls: Are the test artefacts (e.g. Test Report, Test Results) consistent with the data label definition? Was the delivered model tested? = Is the test configuration in the delivery consistent with the one used for testing? Is the documentation up-to-date = consistent with the delivered model revision? Is the Test Report consistent with the deliverables? Thierry Dalon Powertrain Controls - PMT 24 September 2015 19

Artefacts Consistency Check - tracing Label Repository Version Management/ File Repository Action Examples: Generate Documentation Write Test Report Run Test Session ADD Update Generate Code Traces are available as text (in file header) and hidden as file properties. Thierry Dalon Powertrain Controls - PMT 24 September 2015 20

Artefact Consistency Check/ Matrix - Report Thierry Dalon Powertrain Controls - PMT 24 September 2015 21

Outlook / Roadmap 2015: Major Milestones: Interface to Integrity Test Management Review / Consistency Module Hot Topics: AUTOSAR, MultiCore Support Continuity towards HiL, Virtual Integration Platform 2016: Continuous Integration (Review) Thierry Dalon Powertrain Controls - PMT 24 September 2015 22

Conclusion AVL Powertrain Controls uses an open standard internal platform to support and improve its model-based software development process. It is purely implemented in MATLAB and Simulink and connects many tools together. It tries to face many challenges for achieving high quality and provide a seamless toolchain with best practice state-of-the-art solutions to its users. Thierry Dalon Powertrain Controls - PMT 24 September 2015 23

Contact: Thierry Dalon thierry.dalon@avl.com +49 941 63089-203 THANK YOU www.avl.com

Backup Slides www.avl.com Thierry Dalon Powertrain Controls - PMT 24 September 2015 25

MATLAB/Simulink ADD Interface Synchronize Tool One-click ADD Update (ADD to MATLAB: data synchronization) ADD2Simulink: Synchronization ADD<-> Simulink Consistency Check Seamless Integration AVLab SyncTool Simulink Model and MATLAB Workspace are in Sync Thierry Dalon Powertrain Controls - PMT 24 September 2015 26

Data Management Labels Dictionary ADD Both TL and SL/EC TargetLink Simulink/ EmbeddedCoder.dd.sldd R2014a Oneclick Update.ddx.dd Code Generation Workspace EC _Data.m File Simulink Model _Data.m @AVLmpt @mpt Code C-code Thierry Dalon Powertrain Controls - PMT 24 September 2015 27

Calibration Files Handling Default Global Calibration File under mdl_test/<compname>.dcm Tear-down Test Case calibration files: <TCid>_Cal.m (extracted from _Data.m; only.value) _full.dcm is rewritten after run for documentation and traceability => this allows handling of TC calibration variation as Delta in an M-File Thierry Dalon Powertrain Controls - PMT 24 September 2015 28

Lean Simulation Data Handling ~Component.mat: Meta Information Session File Unzip ~TCxxx.mat: Test Run Data Select TC Signal 1 Signal 2 Signal 3 Signal 4 Signal 5 Signal 1 Signal 4 Evaluation Only result data from one TestCase is loaded simultaneously. With matfile API, only the necessary signals are loaded. Thierry Dalon Powertrain Controls - PMT 24 September 2015 29

Prerequisite: Standard Component Structure Model Template with Operating System Support Closed-loop Test with Plant Model Thierry Dalon Powertrain Controls - PMT 24 September 2015 30

Component Aggregation (Model) Scheduling is Semi-automatically created at aggregation Thierry Dalon Powertrain Controls - PMT 24 September 2015 31

Standard Component File Structure Configuration Management Plan at Component Level CM Plan at Project/ ASW Sys Level with 3 levels architecture. Level 1= Aggregation Level Thierry Dalon Powertrain Controls - PMT 24 September 2015 32

System-Under-Test Definition Model- Under-Test (MUT) Test Case Specification files are handled separately and traced via Source Traces. Calibration File System- Under- Test _Data.m.ddx ADD @AVLmpt temporary file Split Data Definition from Values Thierry Dalon Powertrain Controls - PMT 24 September 2015 33

Traceability System-Under-Test (Solution 1) Display revision information as Expanded Keywords Properties ASCII File Checkout/ Get Expand Revision Keyword Simulink Model VM Version Management Repository Artefact Local Working Sandbox If file is modified after Check-out/ Get, contained revision information is obsolete. This information can not be used as consistent trace to the VM repository. Thierry Dalon Powertrain Controls - PMT 24 September 2015 34

Traceability System-Under Test (Solution 2) Solution 2: Download SUT files and run test session against them without modifying local version in one batch Get SUT VM Download Files Select SUT Revisions (checkpoint or manual) Download SUT Revisions Run Test Session against downloaded SUT (redirect path) Run Test Session Drawbacks: Need to download revisions (even if already in Sandbox.) Cumbersome path redirect handling. Thierry Dalon Powertrain Controls - PMT 24 September 2015 35

Traceability System-Under-Test (Solution 3) Solution 3: Run against working files and gather on the fly suspect/weak trace information Advantages: No need for download and SUT redirect Can be checked automatically (at review, checkpoint ) weak trace Drawback: Need to check-in/commit and re-run test for green reporting Check-in SUT VM Re-run Thierry Dalon Powertrain Controls - PMT 24 September 2015 36

Parallel Execution Run Run TestCase #1 TestCase #4 #1 Allocated memory in children MATLAB instances is freed up after every run. Parent MATLAB Instance Run Test Session Run TestCase #2 #2 Run TestCase #3 #3 Parallel Simulation Example 3 Children MATLAB Instances Child MATLAB Instance Thierry Dalon Powertrain Controls - PMT 24 September 2015 37

Parallel Execution - Process Parent MATLAB Instance ~Component.mat (meta information) Start via API Log file TCXXX Log file TCXXX Log file TCXXX Log file TCXXX Log file TCXXX ~Componen t_tcxxx.m ~Componen t_tcxxx.m ~Componen at t_tcxxx.m ~Componen at t_tcxxx.m ~TCXXX.mat (result at data) Worker MATLAB Worker MATLAB Worker Instance Worker MATLAB Instance Child MATLAB Instance MATLAB Instance Instance Thierry Dalon Powertrain Controls - PMT 24 September 2015 38