advanced technology center slide 1 model-based design & analysis dr. steven p. miller advanced...

52
dvanced Technology Center Slide 1 Model-Based Design & Analysis Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE, MS 108-206 Cedar Rapids, Iowa 52498 [email protected]

Upload: abner-horton

Post on 27-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 1

Model-Based Design & AnalysisModel-Based Design & Analysis

Dr. Steven P. Miller

Advanced Computing Systems

Rockwell Collins

400 Collins Road NE, MS 108-206

Cedar Rapids, Iowa 52498

[email protected]

Page 2: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 2

What Problem are We Solving?What Problem are We Solving?

Safety-Critical Software Is Too Expensive

Safety-Critical Software Is Often Wrong

DO-178B Certification Is Too Expensive

Cut Development Costs/Cycle Time in Half

Find 10x More Errors than Current Methods

Already Applying This to DO-178B Developments

Page 3: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 3

Then and NowThen and Now

Model-Based Development Routinely Dismissed

Five Years Ago Today

Verifying Representative Examples

Widespread Acceptance– 787, FCS 5000, ARJ, MUE, FMS …

Formal Methods Viewed as Impractical & Too Expensive

“This is Buck Rogers!”– actual customer quote

Created Models by Hand Using Research Notations

Automatically Translate Models from Leading Commercial Tools

Finding Real Errors in Real Systems

Tools were Research Prototypes Tools being Matured for Enterprise Use and Support

- in Weeks - in Seconds

Page 4: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 4

Outline of PresentationOutline of Presentation

Introduction

Our Approach

Developing the Technology

Making Technology Transfer Happen

Recent Successes

What’s Next?

Page 5: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 5

Who Are We?Who Are We?

Communications

Automated Flight Control

Displays / Surveillance

Aviation Services

In-Flight Entertainment

Integrated Aviation Electronics

Information Management Systems

Navigation

A World Leader In Aviation Electronics And Airborne/ Mobile Communications Systems For Commercial And Military Applications

Page 6: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 6

Rockwell CollinsRockwell Collins

Headquartered in Cedar Rapids, Iowa

16,000 Employees Worldwide

Page 7: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 7

RCI Advanced Technology CenterRCI Advanced Technology Center

The Advanced Technology Center (ATC) identifies, acquires, develops and transitions value-driven technologies to support the continued growth of Rockwell Collins.

The Automated Analysis group applies mathematical tools and reasoning to the problem of producing high assurance systems.

Commercial Systems Government Systems

Advanced Technology Center

Page 8: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 8

Automated Analysis SectionAutomated Analysis Section

AAMP5 Microcode Verification (PVS)

AAMP-FV Microcode Verification (PVS)

JEM Java Virtual Machine (PVS)

FCP 2002 Microcode (ACL2)

AAMP7 Separation Kernel (ACL2)

FGS Mode Confusion Study (PVS)

FGS Safety Analysis (RSML-e) FGS Mode

Confusion (RSML-e)

Displays Verification (NuSMV)

FCS 5000 FGS Verification (NuSMV)

SHADE(ACL2)

GreenHillsIntegrity RTOS

(ACL2)

1994

1996

1998

2000

2002

2004

2006

AAMP5 Partitioning (PVS)

NASA

NSA

1992

vFaat (ACL2,

PVS)

AFRL

Tech Transfer

NASA LaRC Funded

NSA Funded

AFRL Funded

AvSSP

Page 9: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 9

Methods and Tools for Methods and Tools for Flight Critical Systems ProjectFlight Critical Systems Project

Five Year Project Started in 2001

Part of NASA’s Aviation Safety Program (Contract NCC-01001)

Funded by the NASA Langley Research Center and Rockwell Collins

Practical Application of Formal Methods To Modern Avionics Systems

Page 10: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 10

Outline of PresentationOutline of Presentation

Introduction

Our Approach

Developing the Technology

Making Technology Transfer Happen

Recent Successes

What’s Next?

Page 11: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 11

Convergence of Two TrendsConvergence of Two Trends

Model-Based Development

AutomatedAnalysis

A Revolutionary Change in How We Design and Build Systems

Page 12: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 12

Model-Based Development ExamplesModel-Based Development Examples

Company Product Tools Specified & Autocoded Benefits Claimed

Airbus A340 SCADE With Code Generator

70% Fly-by-wire Controls 70% Automatic Flight Controls 50% Display Computer 40% Warning & Maint Computer

20X Reduction in Errors Reduced Time to Market

Eurocopter EC-155/135 Autopilot

SCADE With Code Generator

90 % of Autopilot

50% Reduction in Cycle Time

GE & Lockheed Martin

FADEDC Engine Controls

ADI Beacon Not Stated

Reduction in Errors 50% Reduction in Cycle Time Decreased Cost

Schneider Electric

Nuclear Power Plant Safety Control

SCADE With Code Generator

200,000 SLOC Auto Generated from 1,200 Design Views

8X Reduction in Errors while Complexity Increased 4x

US Spaceware

DCX Rocket MATRIXx Not Stated

50-75% Reduction in Cost Reduced Schedule & Risk

PSA Electrical Management System

SCADE With Code Generator

50% SLOC Auto Generated 60% Reduction in Cycle Time 5X Reduction in Errors

CSEE Transport

Subway Signaling System

SCADE With Code Generator

80,000 C SLOC Auto Generated Improved Productivity from 20 to 300 SLOC/day

Honeywell Commercial Aviation Systems

Primus Epic Flight Control System

MATLAB Simulink

60% Automatic Flight Controls 5X Increase in Productivity No Coding Errors Received FAA Certification

Page 13: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 13

Does Model-Based Development Scale?Does Model-Based Development Scale?

Systems Developed Using MBD

• Flight Control

• Auto Pilot

• Fight Warning

• Cockpit Display

• Fuel Management

• Landing Gear

• Braking

• Steering

• Anti-Icing

• Electrical Load Management

Airbus A380

Length 239 ft 6 in

Wingspan 261 ft 10 in

Maximum Takeoff Weight 1,235,000 lbs

Passengers Up to 840

Range 9,383 miles

Page 14: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 14

How Do We Reduce CostsHow Do We Reduce Costsandand Improve Quality? Improve Quality?

RequirementsElicitation

Modeling

Simulation

AutomatedAnalysis

Autocode

Autotest

Reuse

Clear SpecificationsImproves Communication

Easy Validation

Finds Errors Early

Cheaper Than Manual Analysis Finds the Really Hard Errors

Eliminates Manual Coding

Makes Model Primary Artifact

Reduces Cost of Testing

Enables More Testing

10%

10%

15%

5%

10% - 20%

Page 15: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 15

Outline of PresentationOutline of Presentation

Introduction

Our Approach

Developing the Technology

Making Technology Transfer Happen

Recent Successes

What’s Next?

Page 16: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 16

Flight Guidance System Mode LogicFlight Guidance System Mode Logic

RequirementsElicitation

Modeling

Simulation

AutomatedAnalysis

Autocode

Autotest

Reuse

Page 17: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 17

Captured Requirements as ShallsCaptured Requirements as Shalls

Page 18: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 18

ModelingModeling

RequirementsElicitation

Modeling

Simulation

AutomatedAnalysis

Autocode

Autotest

Reuse

Page 19: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 19

Modeling NotationsModeling Notations

node Thrust_Required( FG_Mode : FG_Mode_Type ; Airborne : bool ; In_Flare : bool ; Emergency_Descent : bool; Windshear_Warning : bool ; In_Eng_Accel_Zone : bool ; On_Ground : bool) returns (IsTrue : bool) ;

let

IsTrue = (FG_Thrust_Mode(FG_Mode) and Airborne) or (Airborne and Emergency_Descent) or Windshear_Warning or ((FG_Mode = ThrottleRetard) and In_Flare) or (In_Eng_Accel_Zone and On_Ground) ;tel ;

Textual (Lustre, PVS, SAL, …) Tabular (RSML-e, SCR)

Graphical (Simulink, SCADE)

Page 20: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 20

SimulationSimulation

RequirementsElicitation

Modeling

Simulation

AutomatedAnalysis

Autocode

Autotest

Reuse

Page 21: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 21

SimulationSimulation

Page 22: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 22

Automated AnalysisAutomated Analysis

RequirementsElicitation

Modeling

Simulation

AutomatedAnalysis

Autocode

Autotest

Reuse

Theorem ProversModel Checkers

Page 23: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 23

What Are Model Checkers?What Are Model Checkers?

Breakthrough Technology of the 1990’s Widely Used in Hardware Verification (Intel, Motorola, IBM, …) Several Different Types of Model Checkers

– Explicit, Symbolic, Bounded, Infinite Bounded, …

Exhaustive Search of the Global State Space – Consider All Combinations of Inputs and States– Equivalent to Exhaustive Testing of the Model– Produces a Counter Example if a Property is Not True

Easy to Use– “Push Button” Formal Methods– Very Little Human Effort Unless You’re at the Tool’s Limits

Limitations– State Space Explosion (10100 – 10300 States)

Page 24: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 24

Advantage of Model CheckingAdvantage of Model Checking

Testing Checks Only the Values We Select

Even Small Systems Have Trillions (of Trillions) of Possible Tests!

Page 25: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 25

Advantage of Model CheckingAdvantage of Model Checking

Model Checker Tries Every Possible Input and State!

Page 26: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 26

Model Checking ProcessModel Checking Process

Does the systemhave property X?

Model

Engineer

SMV

Automatic TranslationSMV Properties

Properties

Automated Check

Yes!

Counter Example

SMVSpec.

Automatic Translation

Page 27: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 27

Translated Shalls into SMV PropertiesTranslated Shalls into SMV Properties

Page 28: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 28

Validate Requirements Validate Requirements through Model Checkingthrough Model Checking

Proved Over 280 Properties in Less Than an Hour Found Several Errors Some Were Errors in the Model Most Were Incorrect Shalls Revised the Shalls to Improve the Requirements

Page 29: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 29

What are Theorem Provers?What are Theorem Provers?

Available Since Late 1980’s– Widely Used on Security and Safety-Critical Systems

Use Rules of Inference to Prove New Properties– Also Consider All Combinations of Inputs and States

– Also Equivalent to Testing with an Infinite Set of Test Cases

– Generate An Unprovable Proof Obligation if a Property is False

Not Limited by State Space– Applicable to Almost Any Formal Specification

Limitations– Require Experience - About Six Months to Become Proficient

– Constructing Proofs is Labor Intensive

Page 30: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 30

Theorem Proving Using PVSTheorem Proving Using PVS

Does the systemhave property X?

Model

Engineer

Automatic Translation

PVSSpec.

PVS

Why not?

Guru

Automated Proof

Automatic Translation

PVS PropertiesProperties

Page 31: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 31

Searching for Potential Searching for Potential Sources of Mode ConfusionSources of Mode Confusion

Used Theorem Proving to Search For Entry and Exit of Off Normal Modes

Ignored Operator Commands

Certain Forms of Lack of Feedback

Hidden Modes

Unintended Side Effects

Lack of Feedback from Multiple Operators

Discrepancy between the perceived andactual state of an automated system.

Page 32: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 32

Validate Requirements Validate Requirements Using Theorem ProvingUsing Theorem Proving

Proved Several Hundred Properties Using PVS

More Time Consuming that Model-Checking

Use When Model-Checking Won’t Work– Models that are Numerically

Intensive

– Automated Safety (Fault Tree) Analysis

Page 33: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 33

Outline of PresentationOutline of Presentation

Introduction

Our Approach

Developing the Technology

Making Technology Transfer Happen

Recent Successes

What’s Next?

Page 34: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 34

Original Tool ChainOriginal Tool Chain

RSML-e

NuSMV Model Checker

PVS Theorem Prover

Rockwell Collins/U of Minnesota

SRI International

RSML-e to NuSMVTranslator

RSML-e to PVSTranslator

Page 35: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 35

Conversion to SCADEConversion to SCADE

Esterel Technologies

Rockwell Collins

DesignVerifier

SRI International

SCADE

Lustre

NuSMV

PVS

Safe StateMachines

Page 36: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 36

Extension to MATLAB SimulinkExtension to MATLAB Simulink

Esterel Technologies

Rockwell Collins

DesignVerifier

MathWorks

SRI International

SCADE

Lustre

NuSMV

PVS

Safe StateMachines

Simulink

SimulinkGateway

StateFlow

Page 37: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 37

Lustre Translator FrameworkLustre Translator Framework

Small Source-To-Source Transformations

Deal with One Language Aspect at a Time

Product Family of Small Translators Supports Reuse

Lustre Code Target CodeTranslator

Page 38: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 38

Current Tool ChainCurrent Tool Chain

Esterel Technologies

Rockwell Collins

DesignVerifier

MathWorks

SRI International

SCADE

Lustre

NuSMV

PVS

Safe StateMachines

SAL

ICS

SymbolicModel Checker

BoundedModel Checker

Infinite Model Checker

Simulink

SimulinkGateway

StateFlow

Reactive Systems

Reactis

Page 39: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 39

Translator Optimizations for NuSMVTranslator Optimizations for NuSMV

Model

CPU Time(To Compute Reachable States)

ImprovementBefore After

Mode1 > 2 hours 11 sec Mode2 > 6 hours 169 sec Mode3 > 2 hours 14 sec Mode4 8 minutes < 1 sec 480x

Arch 34 sec < 1 sec 34x

WBS 29+ hours 1 sec 105,240x

Page 40: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 40

Original Tool ChainOriginal Tool Chain

RSML-e

NuSMV Model Checker

PVS Theorem Prover

Rockwell Collins/U of Minnesota

SRI International

RSML-e to NuSMVTranslator

RSML-e to PVSTranslator

Page 41: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 41

Current Tool ChainCurrent Tool Chain

Esterel Technologies

Rockwell Collins

DesignVerifier

MathWorks

SRI International

SCADE

Lustre

NuSMV

PVS

Safe StateMachines

SAL

ICS

SymbolicModel Checker

BoundedModel Checker

Infinite Model Checker

Simulink

SimulinkGateway

StateFlow

Reactive Systems

Reactis

Page 42: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 42

Outline of PresentationOutline of Presentation

Introduction

Our Approach

Developing the Technology

Making Technology Transfer Happen

Recent Successes

What’s Next?

Page 43: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 43

Example 1Example 1FCS 5000 Mode LogicFCS 5000 Mode Logic

RequirementMode A1 => Mode B1

6.8 x 1021 Reachable States

Mode Controller B

Mode Controller A

Counterexample Found inLess than Two Minutes!

Found 24 Errors to Date

Page 44: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 44

Example 2 – ADGS-2100 Adaptive Display & Example 2 – ADGS-2100 Adaptive Display & Guidance SystemGuidance System

RequirementDrive the Maximum Number of Display Units

Given the Available Graphics Processors

Counterexample Found in 5 Seconds!

Checking 373 PropertiesFound Over 60 Errors

883 Subsystems

9,772 Simulink Blocks

2.9 x 1052 Reachable States

Page 45: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 45

Outline of PresentationOutline of Presentation

Introduction

Our Approach

Developing the Technology

Making Technology Transfer Happen

Recent Successes

What’s Next?

Page 46: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 46

Extending the Verification DomainExtending the Verification Domain

Numerically Intensive Systems– Infinite Bounded Model Checkers– Decision Procedures for Integers

and Real Numbers

Non-linear Arithmetic– Automatic Extraction of

Conservative Abstractions

Applications– Spacing & Trajectory– Required Navigation Performance (RNP)– Collision Avoidance– Advanced Flight Control

Theorem Provers

Arbitrary ModelsLabor Intensive

Infinite Bounded Model Checkers

Infinite State Models using k- Induction

Implicit State

< 10 200 Reachable States

Model Checkers

Page 47: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 47

Requirements Based Test Case GenerationRequirements Based Test Case Generation

Conformance Testing Autogenerate Test Cases From Model Commercial Tools Available

– (T-VEC, REACTIS)

Show Code Conforms to the Model Goal is Structural Coverage (MC/DC)

Requirements Based Testing State Requirements as Properties

Use Bounded Model Checker to Generate Test Cases

Goal is to Cover the Requirement

CodeGenerator

CreateModel

Code

Model

Requirements

CreateRequirements Based Tests

CreateAdditional

Structural Tests

Test CaseGenerator

Test CaseGenerator

Properties

Page 48: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 48

System Architectural Modeling & AnalysisSystem Architectural Modeling & Analysis

Middleware Software

VMOS RTOS I/O Drivers

Application Software

Component

Application Software

Component

Application Software

Component

Application Software

Component

Embedded Hardware Target

A661BDF

Autocode

Code

Autocode

So

ftw

are

Dev

elo

pm

ent

Dim

ensi

on

System Development Dimension

ArchitecturalDescriptionLanguage

VAPS Simulink

Network

Middleware Software

VMOS RTOS I/O Drivers

Application Software

Component

Application Software

Component

Application Software

Component

Application Software

Component

Embedded Hardware Target

Middleware Software

VMOS RTOS I/O Drivers

Application Software

Component

Application Software

Component

Application Software

Component

Application Software

Component

Embedded Hardware Target

Code

Autocode

Simulink

System Model

Graphical ADL

Model Model Model

Network and TaskSchedule Analysis

System SafetyAnalysis

TaskSchedule

Middleware

NetworkSchedule

Page 49: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 49

Model-Based Safety AnalysisModel-Based Safety Analysis

Add Fault Model for Physical System

Power A

Pedal 1

Feed back

Plant

Fault Tolerant

Control Unit

( BSCU )

Braking System

System A

Power B

Pedal 2 System B

Plant Model

AntiSkid Command

Braking + AntiSkid

Command

Green Pump Blue Pump

Isolation ValveIsolation Valve

Shut Normal System

NORMAL

ALTERNATE

Accumulator Pump

Meter Valve

Meter Valve

Meter Valve

Accumulator Valve

Mechanical Pedal

Selector Valve

Loss AllBraking

Normal SysLoss

Green PumpLoss

Meter ValveLoss

BSCU Lossof Command

PowerSupplies

Fail

BSCU SelectSignal

Inverted

Alt SysLoss

Acc/AS/MechMeter Fails

Both PumpsFail

Blue Fails Acc Fails

SelValveStuck

Model the Digital Controller Architecture

Automation Enables “What-If” Consideration of System Designs

and Digital Controller Architecture Integrates System and Safety Engineering About a Common Model

and the Physical System

Page 50: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 50

Model-Based Safety AnalysisModel-Based Safety Analysis

Common Model for Both System and Safety Engineering

Safety Analysis Based on a Formal System Model – Facilitates Consistency & Completeness in Safety Analysis

Reduced Manual Effort in Error-prone Areas– Automated Support for Safety Analysis

– Explore Various Failure Scenarios

Focus on Review on Assumptions in the Models– Is the System Model Correct?

– Is the Fault Model Complete?

– Assume the (Automated) Analysis is Trustworthy

Wide Applicability (Aircraft, UAVs, Shuttle, Space, …)

Page 51: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 51

Verification of Adaptive &Verification of Adaptive &Autonomous SystemsAutonomous Systems

Page 52: Advanced Technology Center Slide 1 Model-Based Design & Analysis Dr. Steven P. Miller Advanced Computing Systems Rockwell Collins 400 Collins Road NE,

Advanced Technology Center Slide 52

SummarySummary

Model-Based Development Routinely Dismissed

Five Years Ago Today

Verifying Representative Examples

Widespread Acceptance– 787, FCS 5000, ARJ, MUE, FMS …

Formal Methods Viewed as Impractical & Too Expensive

“This is Buck Rogers!”– actual customer quote

Created Models by Hand Using Research Notations

Automatically Translate Models from Leading Commercial Tools

Finding Real Errors in Real Systems

Tools were Research Prototypes Tools being Matured for Enterprise Use and Support

- in Weeks - in Seconds