Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

22
Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen

Transcript of Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Page 1: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Verification of Hybrid Systems

An Assessment of Current Techniques

Holly Bowen

Page 2: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Verification Methods Formal verification – determining whether given

properties are true for a given model of a dynamic system

Theorem proving – inferring/contradicting a specification using logical proof systems Not restricted to finite-state systems

Model checking – using the state-transition relation in iterative computations to arrive at the set of states for which the specification is true Algorithmic technique

Page 3: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Model Checking Requires the construction of a finite-state

approximation of the continuous dynamics Verification of properties for the finite-state

approximation may be inconclusive! E.g. if a state is reachable in the finite-state

approximation, that doesn’t imply it is reachable in the underlying hybrid system

Tools can refine the approximation, but refinement will not necessarily terminate

Page 4: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Example: Batch Reactor System

Exothermic reaction: 2A + B D

Discrete controller:

vA, vB, vC, vO

Variables:

TR, VR, tR, cA

Page 5: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Operation Procedure

Formal verification: Are the forbidden states (z5, z6) reachable?

Page 6: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Hybrid Model of System

Page 7: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Model Checking Tools UPPAAL HYTECH d/dt CheckMate VERDICT

Page 8: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

UPPAAL Systems are represented as networks of timed

automata (TA) Can analyze simple liveness properties and

reachability properties Uses clock difference diagrams to represent TA

in a compact format User must manually translate the process

behavior into a set of concurrent TA

Page 9: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

UPPAAL

operation procedure

reactor behavior

Desired states:S2, S5, S9

Result: S10 is reachable!

Page 10: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

HYTECH Specifications are given as temporal logic

expressions Uses symbolic model checking in the continuous

state space Can only model flows with form

(linear hybrid automata)

BxA

Page 11: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

HYTECH Three approaches to verify systems of higher

complexity than LHA: Clock transition models – continuous state variables

are replaced by clock variables (pure integrators with different rates)

• Constraints identify regions for which given rates are valid Rate translation – Retains original state variables, but

approximates continuous behavior with piecewise-constant bounds on first derivatives

Linear phase-portrait approximation – Derivatives of state variables can be constrained in linear combinations

• Gives a better approximation to original state equations

Page 12: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Rate Translation

Page 13: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

d/dt Performs reachability analysis for hybrid systems

with linear continuous dynamics Face-lifting – computing collections of orthogonal

polyhedra to represent reachable sets Allows models with uncertainty in the input in

the dynamics equations E.g.

User must linearize system dynamics around the operating point of interest

UuBuAxx ,

Page 14: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Face Lifting

Each face is moved by an amount that bounds all possible trajectories starting on the face

Page 15: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

CheckMate MATLAB-based tool, handles systems with

arbitrary nonlinear continuous dynamics Allows any Simulink/StateFlow blocks for

simulation Verification:

Logical operators (AND, OR, XOR, etc.) MUX/DEMUX Switched Continuous System Block (SCSB) Polyhedral Threshold Block (PTHB) Finite State Machine Block (FSMB)

Page 16: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

CheckMate Computes finite-state approximation using

general polyhedral over-approximation to sets of reachable states for continuous dynamics

Can refine current approximation and attempt verification again if result is inconclusive

Searches for states that led to failure, splits them, recomputes reachable states, evaluates logic expression again

Page 17: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

CheckMate

Controller(FSMB)

PHTBs

Page 18: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

CheckMate

2.0cwithin 1 hour?

Page 19: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

VERDICT Modular modelling/verification of timed/hybrid

systems Structure of system is built in a modular manner Behavior of each module is described by a

discrete, timed, or hybrid transition system Translates the model into the input languages of

different model checkers for discrete/timed automata HYTECH, KRONOS, SMV, UPPAAL

Page 20: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

VERDICT

controller

hybridbehavior

Page 21: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Comparisons

Two key issues: Computation takes hours – only very small systems can

be verified!• Modularity: break systems down into smaller pieces

Interpretation of results – cause of failure is not clear

Page 22: Verification of Hybrid Systems An Assessment of Current Techniques Holly Bowen.

Making Tools Useful for Industry Connecting with Existing Models

Model-building process is time-consuming, could introduce errors

Tools for Exploring Models and Results Useful results are obtained only when the user is

directing the verification process Tools for Building Verification Specifications &

Interpreting Results Difficult to translate requirement specifications into

formal specifications to be verified