Optimizing Fault Injection in FMI Co-Simulation through Sensitivity - - PowerPoint PPT Presentation

optimizing fault injection in
SMART_READER_LITE
LIVE PREVIEW

Optimizing Fault Injection in FMI Co-Simulation through Sensitivity - - PowerPoint PPT Presentation

Optimizing Fault Injection in FMI Co-Simulation through Sensitivity Partitioning Mehrdad Moradi, Cludio Gomes, Bentley James Oakes and Joachim Denil Summersim 2019 July 22, 2019 Berlin, Germany Outline Introduction Context and


slide-1
SLIDE 1

Optimizing Fault Injection in FMI Co-Simulation through Sensitivity Partitioning

Mehrdad Moradi, Cláudio Gomes, Bentley James Oakes and Joachim Denil Summersim 2019 July 22, 2019 Berlin, Germany

slide-2
SLIDE 2

Outline

  • Introduction
  • Context and fault injection
  • Power window use case
  • Model and specifications
  • Co-simulation
  • Technique
  • Interval partitioning and sensitivity analysis
  • Simulation
  • Summary and next steps

2

slide-3
SLIDE 3

Introduction

Cyber-Physical System (CPS)

  • Increasing complexity
  • Increasing application

Error prone and critical

  • Test and simulate system

3 https://bit.ly/2zO8l2G

slide-4
SLIDE 4

Introduction

Why?

  • Understand system behavioral
  • Safety
  • Robustness
  • Detect failure mode and errors
  • Repaired

Fault Injection

What?

Testing method which aids in understanding how [virtual/real] system behaves when stressed in unusual ways

4

slide-5
SLIDE 5

Fault injection

How?

  • In the level of model
  • Library of faults considering fault’s nature
  • latency
  • Stuck to value

Research problem

  • Faults are uncertain
  • Limit fault space
  • Using sensitivity analysis
  • 6

Benso, A. and Prinetto, P. eds., 2003. Fault injection techniques and tools for embedded systems reliability evaluation (Vol. 23). Springer Science & Business Media.

slide-6
SLIDE 6

Motivating example

Power window

  • Hybrid system

7

Safety-critical system due to possibility of object being crushed Specifications:

  • 1. Fully opened/closed within 4s
  • 2. Force to detect when an object is

present should be less than 100 [N]

slide-7
SLIDE 7

Motivating example - Structure

8

https://www.mathworks.com/help/simulink/ug/power-window-example-case-study.html

slide-8
SLIDE 8

Motivating example – Normal behavior

Without Object With Object

Ctrl ignores spike

Current Position

10

Object detected

Holding the up switch

Specifications:

  • 1. Fully opened/closed within 4s
  • 2. Force to detect when an object is

present should be less than 100 [N]

slide-9
SLIDE 9

A power window is affected when the rubber slips into the window

Uncertainty in: when the rubber falls; and how much friction there is.

Motivating Example – Fault

11

slide-10
SLIDE 10

Example fault - Rubber friction

Friction parameter p is in [100%, 200%] Different values of p lead to different behaviors of the window

Window Position Time Top

p=100% p=140% p=160% p=180%

12

4 s

slide-11
SLIDE 11

Co-simulation

  • Heterogeneous system
  • High level of fidelity
  • Free from IP concerns
  • Increasing standardization and

adoption by industry

13

Co-simulation - defined in Functional Mock-up Interface (FMI)

https://fmi-standard.org/

slide-12
SLIDE 12

Research problem in the fault injection

  • Given a co-simulation, a library of faults, and system specifications
  • Provide user with an intuition about how the fault parameters

affect the behavior

  • Possibly violating specifications

15

slide-13
SLIDE 13

Injecting faults into co-simulation

Controller Window Switch

results

Fault Specification p

16

  • 2. Force to detect

when an object is present should be less than 100 [N] Virtual FMU doStop() setReal() getReal()

Interval partitioning Sensitivity analysis

Assumption: Stable and accurate master algorithm

slide-14
SLIDE 14

Parameter interval partitioning

Example naive procedure:

  • 1. Let fault parameter p in interval

[100%,200%]

  • 2. Partition the interval into N points,
  • run a co-sim per point,
  • store sequence of modes
  • 3. Group adjacent points with same

sequence of modes to form equivalence classes of continuity 4.

Window Position Time Top UpDownUpDown Mode Sequence Up Mode Sequence

17

Fault

p

p in [100%,150%) When p is (150%, 200%], behavior changes due to faulty object detection

slide-15
SLIDE 15

Sensitivity analysis

Specification

F

Fault

p + Delta p ... Want to determine how a change in our fault parameter affects the output of the specification Within the same equivalence interval

19

Specification Output

p

150%

Specification Violation

200%

100% - 150% 150% - 200%

p

slide-16
SLIDE 16

Simulation

  • Object is present
  • Change of the rubber slip out’s time
  • Causes the window to:

To crush the object

20

slide-17
SLIDE 17

21

Armature current Window’s position Force Rubber friction

slide-18
SLIDE 18

22

Armature current Window’s position Force Rubber friction

slide-19
SLIDE 19

23

Armature current Window’s position Force Rubber friction

slide-20
SLIDE 20

24

Armature current Window’s position Force Rubber friction

slide-21
SLIDE 21

25

Armature current Window’s position Force Rubber friction

slide-22
SLIDE 22

26

Armature current Window’s position Force Rubber friction

slide-23
SLIDE 23

27

Armature current Window’s position Force Rubber friction

slide-24
SLIDE 24

28

Armature current Window’s position Force Rubber friction

slide-25
SLIDE 25

29

Armature current Window’s position Force Rubber friction

slide-26
SLIDE 26

30

Armature current Window’s position Force Rubber friction

slide-27
SLIDE 27

Summary

  • Applying fault injection to FMI
  • Using sensitivity analysis to relate system trajectories to fault

parameters

31

Next steps

  • Co-simulation effect
  • Delay due to step-size
  • How to observe discrete modes of the hybrid system in FMI

standard

  • How to compute intervals more effectively
  • Sensitivity equations
slide-28
SLIDE 28

Thank you for your attention

32