14
Formal Verification of DEV&DESS Formalism using Symbolic Model Checker HyTech HyTech Han Choi, Sungdeok Cha, Jae Yeon Jo, Junbeom Yoo, Hae Young Lee, and Won-Tae Kim

Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Formal Verification of DEV&DESS Formalism using

Symbolic Model Checker HyTechHyTech

Han Choi, Sungdeok Cha, Jae Yeon Jo, Junbeom Yoo, Hae Young Lee, and Won-Tae Kim

Page 2: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Abstraction

• Hybrid system– a combination of discrete and continuous dynamics

• Various algorithmic verification tools for model checking– e.g. HyTech: model checking tool for linear hybrid automata

• Widely used formalism for modeling hybrid systems - DEV&DESS• Widely used formalism for modeling hybrid systems - DEV&DESS– no verification tools for DEV&DESS formalism

→ We translated an example of hybrid system modeled in DEV&DESS formalism into linear hybrid automata and verified it using HyTech.

2011-12-122

Page 3: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Background - DEV&DESS formalism

DEVSDiscrete State Space

Discrete Input

Discrete Output

Continuous parts Continuous parts

2011-12-123

<An Overview of Discrete EVent & Differential Equation System Specification>

DESSContinuous State Space

External Event

InternalEvent

State Event Condition

Continuous Input

ContinuousOutput

Change of rate function

Continuous parts affect discrete parts

Continuous parts affect discrete parts

continuousvalue

time

state eventcondition

internal (state) event generation

Page 4: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

• Hybrid automata – finite state automata with conditions on real-valued variables

Background – Linear Hybrid Automata

invariantcondition

operating mode of the system switch of operating mode

2011-12-124

flowcondition

<An example of hybrid automata>

non-linearnon-linear

linearlinear

<Requirements for linear hybrid automata>

• Linear hybrid automata– restricted class of hybrid automata

Page 5: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

HyTech – Model Checker for Linear Hybrid Automata

• HyTech– symbolic model checker for linear hybrid automata– model checking of safety requirements and parametric analysis

Safety requirement

2011-12-125

t=3

error

x>3unsafe state

Page 6: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

HyTech – Model Checker for Linear Hybrid Automata

• HyTech– symbolic model checker for linear hybrid automata– model checking of safety requirements and parametric analysis

Parametric analysis

2011-12-126

error

x>3unsafe state

t=time_to_off

error

x>3unsafe state

parameter

Page 7: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Example model – Barrel Filler System

② 1 time unit for closing the ② 1 time unit for closing the

• Characteristics of the barrel filler system– continuous input ‘inflow’ : 0.5 (valve - open), 0.25 (valve - closing)– 1 time unit for closing the valve– 10-liter barrel

2011-12-127

inflowvalve

full-filled-barrel

<The barrel filler system>

9 liters

① shutting the valve off

① shutting the valve off

for closing the valve

for closing the valve

③ putting ‘full-filled barrel’ out after the

valve is closed

③ putting ‘full-filled barrel’ out after the

valve is closed

Page 8: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

DEV&DESS model for the barrel filler system(1)

• Correctness of the model’s behavior – simulation using scenarios– draw trajectories for the barrel filler model

2011-12-128

<Graphical representation of barrel filler model> <Trajectories of the specific scenario>

Page 9: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Translation DEV&DESS model into Linear hybrid automata

• Parallel composition of automata for input ports

• Translation the barrel filler model into linear hybrid automata

used for validation of translation

(specific scenario)

• Translation the barrel filler model into linear hybrid automata

2011-12-129

node: Phase in DEV&DESS

model

‘e’ and ‘σ’ for time events

transition: events in DEV&DESS

model

Page 10: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

unsafe state

Verification of Barrel Filler System using HyTech (1)

• Statement for the safety requirement‘Content of a barrel should be under 10 liters’

Checking whether the unsafe state

2011-12-1210

<HyTech commands for safety requirement>

the unsafe state can be reached The unsafe state is

unreachable

<The result of HyTech execution>

Page 11: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Verification of Barrel Filler System using HyTech (2)

• Statement for parametric analysis‘When should the valve start closing to avoid overflowing?”’

changing the state event condition

‘contents = cutoff’using parameter ‘cutoff’

checking the condition of

2011-12-1211

<HyTech commands for parametric analysis>

get the right ‘cutoff’ value by negating the result

‘cutoff > 9.75’

<The result of parametric analysis>

checking the condition of the ‘cutoff’ value to enter

the unsafe state

Page 12: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Further considerations on the translation

• Expressing the confliction between events in linear hybrid automata– lack of ability to assign the order of priority between transitions in hybrid automata

• Preprocessing of the continuous input trajectories – limitation of using variable in the expression of flow condition in HyTech

• Problem of the state space explosion– parallel composition of input automata

2011-12-1212

Page 13: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Conclusion and Future Work

• Formal verification of atomic DEV&DESS model– translation atomic DEV&DESS model into linear hybrid automata– performing model checking by using existing tool, HyTech

DiscreteDynamics

DEV&DESS model

Translation

• Future work– translation for coupled DEV&DESS model– translation rules for the broad applications– development of automatic translation tool

2011-12-1213

SafetyRequirement

ParametricAnalysis

Formal Verification

ContinuousDynamics

Hybrid System

(Linear) Hybrid

Automata

Translation

Page 14: Formal Verification of DEV&DESS Formalism using Symbolic Modeldslab.konkuk.ac.kr/Publication/Formal_Verification_of... · 2012. 9. 13. · Title: Microsoft PowerPoint - Formal_Verification_of_DEV&DESS_Formalism_using_Symbolic_Model.pptx

Thank you for listening

14