Benchmarks for Temporal Logic Requirements for Automotive Systems Bardh Hoxha, Houssam Abbas, Georgios Fainekos Arizona State University, Tempe, AZ, USA {bhoxha, hyabbas, fainekos}@asu.edu v1.0, 2014-03-31 Abstract We propose to standardize two Matlab/Simulink models of automotive systems as benchmark problems for hybrid system verification. Both models can be simulated quickly, making them ideal for testing-based verification methods that require a significant number of system output trajectories. One of the benchmarks is the Automatic Transmission model, which is deterministic. The other benchmark is the Fault-Tolerant Fuel Control System, which exhibits stochastic behavior. Our benchmark standardization defines a number of Metric Temporal Logic requirements that must be satisfied by the models. Category: academic Difficulty: medium

1

Context and Origins

We propose to standardize as benchmarks existing models of hybrid systems that are widely available and documented by Mathworks and at the same time exhibit all the complexities of industrial strength models. Automatic Transmission We propose a slightly modified version of the Automatic Transmission model provided by Mathworks as a Simulink demo [5]. It is a model of an automatic transmission controller that exhibits both continuous and discrete behavior. The model is deterministic: that is, it does not contain components with stochastic behavior. Our motivation for proposing this model as a benchmark problem is founded on the fact that this model has already been used by multiple research groups. To the best of our knowledge, this benchmark was first considered in [8] to illustrate a genetic algorithm approach to test input generation for hybrid systems. In [7], the authors used the model for estimating the range of the parameters of Metric Temporal Logic (MTL) specifications such that the system does not satisfy the specification. In [2], the authors use the model to perform MTL falsification, i.e. to find a trajectory that does not satisfy the specification

1

Throttle 100 gear_state

UP

second 2 entry: gear = 2; DOWN

first entry: gear = 1;

UP 1

third entry: 2 gear = 3;

UP 1

1 fourth entry: gear = 4;

50 0

DOWN

DOWN

selection_state during: CALC_TH ;

2

[speed < down_th]

0

downshifting

[speed < up_th]

10

15 RPM

20

25

30

0

5

10

15 Speed

20

25

30

5

10

15

20

25

30

200

2 upshifting 1

2 1 after (TWAIT,tick) [speed <= down_th] {gear_state.DOWN }

5

[speed > up_th] 1

steady_state 2

[speed > down_th]

0

5000

100

after (TWAIT,tick) [speed >= up_th] {gear_state.UP }

0

0

Figure 1: Left: The switching logic for the automatic drivetrain; Right: An input signal (top) and the corresponding output signals that falsify the specification. (also known as a counter example). In [4], the authors utilize the model to illustrate a method for mining requirements from closed-loop models. Fault-Tolerant Fuel Control System Fault-Tolerant Fuel Control System is a modified version of the model provided by Mathworks as a Simulink demo [6]. The model detects system failures and as a result modifies its control law to sustain system performance. The arrival of faults is modeled by Poisson stochastic processes with different arrival rates. This benchmark was first considered in [9], where the authors use Bayesian statistical model checking techniques to, among others, estimate the probability of satisfying the specification, and to estimate a corresponding confidence interval.

2

Brief description

Automatic Transmission There are two inputs to the system: the throttle and break. The break input enables the user to model variable load to the engine, e.g., going uphill or downhill. The physical system has two continuoustime state variables which are also its outputs: the speed of the engine ω (RPM) and the speed of the vehicle v (mph). Initially, the vehicle is at rest at time 0, i.e. the speed v = 0 and engine speed ω = 0. Therefore, the output trajectories depend only on the input signals ut and ub which model the throttle and break inputs. The throttle and break, at each point in time, can take any value between 0 (fully closed) to 100 (fully open). The range for the break depends on the engine load that we would like to model. The system is deterministic, i.e., under the same input u, it will always produce the same output y. The model contains 69 blocks among which there are 2 integrators (i.e., 2 continuous state variables), 3 look-up tables, 3 2D look-up tables and a Stateflow chart. The Stateflow chart (see Fig. 1 for a schematic) contains two concurrently executing Finite State Machines with 4 and 3 states, respectively. Table 1 presents a number of requirements that should be verified on the automatic transmission model. As an example, consider formula φAT in Table 2 1: this is a simple invariant. The goal of the verification is either to prove the invariant or produce counter examples that demonstrate that the invariant is not true. The verification of the model is challenging for the following reasons. First, the engine and the vehicle components contain nonlinear equations and lookup 2

0

fault arrival (Poisson mean 10s) 1 0.5 0

fault arrival (Poisson mean 20s) 1 0.5 0

air-fuel ratio 100

50

0

fuel-flow rate 5

0

-5

0

10

20

30

40

50

60

70

80

90

100

Figure 2: The output trajectories for the Fault-Tolerant Fuel Control System under constant input. Top: air-to-fuel ratio. Bottom: fuel-flow rate.

Time offset: 0

tables. The latter increases the size of the hybrid state space substantially. Second, the switching conditions of the Stateflow chart depend on both state variables and input signals and are also time dependent. Both reasons make the problem challenging for state of the art reachability analysis tools [3] . For the invariant in φAT 2 , we would like to generate trajectories such that the vehicle speed v and the engine speed ω exceed the values 120 mph and 4500 RPM, respectively. Such a falsifying system trajectory appears in Fig. 1. Fault-Tolerant Fuel Control System This system models the fuel controller for a gasoline engine. Its goal is to keep the air-to-fuel ratio close to the “ideal” stoichiometric ratio so that both the oxygen and the fuel are consumed completely in the process. The outputs of the system are the fuel rate and the air-to-fuel ratio - see fig. 2 for an example output of the system. For correct operation, the system requires sensor information. There is one sensor that provides readings on the amount of residual oxygen present in the exhaust gas, one for the engine speed, one for the throttle, and one for the manifold absolute pressure. The system is designed to detect sensor failures, and the control system changes dynamically to ensure uninterrupted operation. If a single sensor fails, the system compensates. If more than one fail then the system is shut down. The system exhibits discrete and continuous behavior that is described by nonlinear and linear differential equations with a switching condition. We have extended the modifications to the system implemented in [9] by adding three Poisson processes to model sensor failures with different arrival rates which are inversely correlated with the throttle input signal: the larger the input, the smaller the rate of the Poisson process i.e. more faults on the system. With the modifications made, this becomes an example of a Stochastic Cyber Physical System. Table 1 lists example specifications that should be satisfied by this system.

3

Formal specifications

Table 1 lists the proposed formal specifications for both systems. It contains both simple properties (e.g. safety property φAT 1 ) and more complex ones (e.g. φAT 8 ). It also contains formal requirements with and without real-time constraints. The former is challenging for reachability analysis tools that ignore

3

Table 1: Various specifications expressed in natural language and MTL. Automatic Transmission Natural Language MTL The engine speed never reaches ω ¯ . 2(ω < ω ¯ ) φAT 1 The engine and the vehicle speed 2((ω < ω ¯ ) ∧ (v < v¯)) φAT 2 never reach ω ¯ and v¯, resp. There should be no transition from gear two to gear one and back to 2((g2 ∧ Xg1 ) → 2(0,2.5] ¬g2 ) φAT 3 gear two in less than 2.5 sec. After shifting into gear one, there should be no shift from gear one to 2((¬g1 ∧ Xg1 ) → 2(0,2.5] g1 ) φAT 4 any other gear within 2.5 sec. When shifting into any gear, there should be no shift from that gear to ∧4i=1 2((¬gi ∧ Xgi ) → 2(0,2.5] gi ) φAT 5 any other gear within 2.5sec. If engine speed is always less than ω ¯, then vehicle speed can not exceed v¯ ¬(3[0,T ] (v > v¯) ∧ 2(ω < ω ¯ )) φAT 6 in less than T sec. Within T sec the vehicle speed is above v¯ and from that point on the 3[0,T ] ((v ≥ v¯) ∧ 2(ω < ω ¯ )) φAT 7 engine speed is always less than ω ¯. A gear increase from first to fourth in under 10secs, ending in an RPM ((g1 U g2 U g3 U g4 ) ∧ 3[0,10] (g4 ∧ ¯ ))) → 3[0,10] (g4 → above ω ¯ within 2 seconds of that, 3[0,2] (ω ≥ ω φAT 8 should result in a vehicle speed X(g4 U[0,1] (v ≥ v¯))) above v¯. Fault-Tolerant Fuel Control System Natural Language MTL The fuel flow rate should not be 0 CS for more than 1 sec within the next ¬3[0,100] 2[0,1] (F uelF lowRate = 0) φF 1 100 sec period. Always, if the air-to-fuel ratio output goes out of bounds, then within 2((λ out of bounds) → F CS φ2 1 sec it should settle inside the 3[0,1] 2[0,1] ¬(λ out of bounds)) bounds and stay there for a sec. ω: Engine rotation speed, v: vehicle velocity, gi : gear i, λ : air-to-fuel ratio. Recommended values: ω ¯ : 4500, 5000, 5200, 5500 RPM; v¯ : 120, 160, 170, 200 mph; T : 4, 8, 10, 20 sec; λ bounds: 0.9 - 1.1. 2: Always, : Eventually, U: Until

4

timing when approximating the states that cross a switching guard. For the Automatic Transmission model, by varying the thresholds ω ¯ and v¯, the benchmark problems can vary from proving invariants to falsification problems. To date, the authors are not aware of an algorithm that can verify these properties for these systems. Thus they serve as good benchmarks for driving the development of formal verification in that direction. Moreover, some properties have not yet been falsified with testing-based methods. If used as benchmarks for testing-based falsification, the goal would be to compare different methodologies on their speed of detecting counterexamples. All else being equal, properties that involve the discrete gear sequence (like φAT 2−5 ) are generally more challenging than ones that don’t use the gear: intuitively, that is because the current continuous state affects the switching guards, and these guards determine the gear sequence. Thus the gear sequence is a delayed indicator of the variations in the continuous state. Having to consider the real-valued continuous state and the evolving guards (whose evolution can’t be pre-computed or analytically described in terms of the search variables) is problematic for formal methods, and challenging to testing methods that can only look at the next guard to cross in deciding the next input to try.

4

Outlook

There are several possibilities for future development. For the Automatic Transmission model, noise can be introduced to the system through the sensors and actuators. We can also modify the model to support semiautomatic gear shift instead of fully automatic. This would add the gear setting as part of the input search space. Another possibility is to introduce a hybrid drivetrain. In either case, the temporal logic requirements will become more complicated. For the Fault-Tolerant Fuel Control model, the arrival of faults could be optionally modeled with other stochastic processes. Also, the engine nominal speed and throttle command could be added to the input search space. The current properties for this system are on the output behavior: they describe the permissible changes in the fuel flow rate and the fuel-to-air ratio. It will be interesting and more challenging to examine ‘white-box’ properties that describe permissible tolerances during fault recovery: i.e., in case of one sensor failure, what transients are allowed? In case of two sensor failures, what is a graceful degradation to engine shutdown? Acknowledgments. This work was partially funded under NSF awards CNS 1116136, CNS 1319560. We would also like to thank Adel Dokhanchi for his help with the robustness computations.

A

Appendix

Both benchmarks are available through our Matlab Toolbox S-TaLiRo [1], available at https://sites.google.com/a/asu.edu/s-taliro/s-taliro under the bechmarks/ARCH2014 subfolder. They can be simulated out-of-the box, and demo programs are provided to illustrate how to define properties for them

5

and how to falsify them. The following is the list of modifications made to both models: for the automatic transmission, we added inputs for the throttle and brake schedule, and outputs for the vehicle and engine speed and the transmission gear. For the fault-tolerant fuel control system, we added an input for the throttle angle, and three separate Poisson processes to model the arrival of faults, with arrival rates inversely proportional to the throttle angle. We also added outputs for the fuel-flow rate and the air-to-fuel ratio.

References [1] Y. S. R. Annapureddy, C. Liu, G. E. Fainekos, and S. Sankaranarayanan. S-taliro: A tool for temporal logic falsification for hybrid systems. In Tools and algorithms for the construction and analysis of systems, volume 6605 of LNCS, pages 254–257. Springer, 2011. [2] G. Fainekos, S. Sankaranarayanan, K. Ueda, and H. Yazarel. Verification of automotive control applications using s-taliro. In Proceedings of the American Control Conference, 2012. [3] G. Frehse, C. L. Guernic, A. Donz´e, S. Cotton, R. Ray, O. Lebeltel, R. Ripado, A. Girard, T. Dang, and O. Maler. Spaceex: Scalable verification of hybrid systems. In Proceedings of the 23d CAV, 2011. [4] X. Jin, A. Donz´e, J. V. Deshmukh, and S. A. Seshia. Mining requirements from closed-loop control models. In Proceedings of the 16th international conference on Hybrid systems: computation and control, pages 43–52. ACM, 2013. [5] Mathworks. http://www.mathworks.com/videos/ modeling-an-automatic-transmission-and-controller-68823.html. [6] Mathworks. http://www.mathworks.com/products/demos/stateflow/ fuelsys.html. [7] H. Yang, B. Hoxha, and G. Fainekos. Querying parametric temporal logic properties on embedded systems. In Testing Software and Systems, pages 136–151. Springer, 2012. [8] Q. Zhao, B. H. Krogh, and P. Hubbard. Generating test inputs for embedded control systems. IEEE Control Systems Magazine, Aug.:49–57, 2003. [9] P. Zuliani, A. Platzer, and E. M. Clarke. Bayesian statistical model checking with application to simulink/stateflow verification. In 13th ACM International Conference on Hybrid Systems: Computation and Control, pages 243–252, 2010.

6

Benchmarks for Temporal Logic Requirements for ...

[6]. The model detects system failures and as a result modifies its control law to sustain system performance. The arrival of faults is modeled by Poisson stochas- tic processes with different arrival rates. This benchmark was first considered in [9], where the authors use Bayesian statistical model checking techniques to,.

271KB Sizes 4 Downloads 241 Views

Recommend Documents

Robustness-Guided Temporal Logic Testing and Verification for ...
framework is to detect system operating conditions that cause the system to exhibit the worst expected specification ... exhaust dynamics, etc), different modes of operation (e.g., different gears) and, on top of that, complex control algo- .... For

Local Descent for Temporal Logic Falsification of Cyber ...
Physical Systems (CPS), a variety of search-based falsification methods has been ... systems. The extension is nontrivial since as discussed later in the paper, the sensitivity analysis is challenging in the case of hybrid systems. In particular, ...

Robustness of Temporal Logic Specifications - Semantic Scholar
1 Department of Computer and Information Science, Univ. of Pennsylvania ... an under-approximation to the robustness degree ε of the specification with respect ...

REQUIREMENTS FOR RESEARCH PROPOSALS
Apr 12, 2016 - REQUIREMENTS FOR RESEARCH PROPOSALS. The following itemizes the district's requirements for research to be conducted within the ...

CD_Reporting_specimen-submission-requirements-for-clinical ...
laboratory performs additional testing (confirmatory testing, serotyping, serogrouping, pulsed-field gel electrophoresis. [PFGE], whole genome sequencing ...

Benchmarks for testing community detection algorithms ...
Apr 24, 2009 - Many complex networks display a mesoscopic structure with groups of nodes sharing many links with the other nodes in their group and ...

Benchmarks for testing community detection algorithms ...
Jul 31, 2009 - ... of related individuals in social networks 4,6 , sets of Web pages dealing with the ..... network with three communities A, B, C, with ten nodes in.

Physically-Based Vibrotactile Feedback for Temporal ... - mobileHCI
Sep 18, 2009 - selects a company and gives his device a twist to quickly feel the trend from ... social networking context, enabling users to transmit directly the.

Learning temporal context for activity recognition - Lincoln Centre for ...
Abstract. We present a method that allows to improve activity recognition using temporal and spatial context. We investigate how incremental learning of long-term human activity patterns improves the accuracy of activity classification over time. Two

Physically-Based Vibrotactile Feedback for Temporal ... - mobileHCI
Sep 18, 2009 - back design is one way to provide both compelling and informative feedback ... desktop environment, such as browsing the internet or watching vi- deos. ... Our example 'overView' application enables the interaction with.

Learning temporal context for activity recognition - Lincoln Centre for ...
... paper is still in review and is awailable on request only. 1 Lincoln Centre for Autonomous Systems, University of Lincoln, UK email: [email protected].

Robustness-Guided Temporal Logic Testing and ...
Toyota Technical Center. Gardena, CA, USA ... system design for which the worst expected behavior stays very close to 1 and .... extractions of the random robustness ρ, this data can be used to generate a point ... objective function is well-defined

Metric Interval Temporal Logic Specification Elicitation and Debugging
Abstract—In general, system testing and verification should be conducted with respect to formal specifications. However, the development of formal specifications is a challenging and error prone task, even for experts. This is especially true when

Fast(er) Reasoning in Interval Temporal Logic
Abstract. Clausal forms of logics are of great relevance in Artificial Intelligence, because they couple a high expressivity with a low complexity of reasoning problems. They have been studied for a wide range of classical, modal and temporal logics

Policy Monitoring in First-order Temporal Logic
can be expressed as a formula D β, where β contains only past operators [36]. 2 In fact, a weaker ...... 31 USC 5311-5332 and 31 CFR 103. 2. USA Patriot Act of ...

Querying Parametric Temporal Logic Properties on Embedded Systems
framework on a challenge problem from the industry [11] and we present some experimental results on a .... logic that controls the switching between the gears in the transmission system. We remark that the system is ... which returns a robustness val

ACTIVITY-BASED TEMPORAL SEGMENTATION FOR VIDEOS ... - Irisa
The typical structure for content-based video analysis re- ... tion method based on the definition of scenarios and relying ... defined by {(ut,k,vt,k)}t∈[1;nk] with:.

Spatial-Temporal Optimisation for Adaptive ...
spatial-temporal, multi-objective optimisation for sustainable forest management in dynamic .... our RL optimisation tool has to meet new challenges. First of all ...

Supervised Language Modeling for Temporal ...
tween the language model for a test document and supervised lan- guage models ... describe any form of communication without cables (e.g. internet access).

ACTIVITY-BASED TEMPORAL SEGMENTATION FOR VIDEOS ... - Irisa
mobile object's trajectories) that may be helpful for semanti- cal analysis of videos. ... ary detection and, in a second stage, shot classification and characterization by ..... [2] http://vision.fe.uni-lj.si/cvbase06/downloads.html. [3] H. Denman,

ACTIVITY-BASED TEMPORAL SEGMENTATION FOR VIDEOS ... - Irisa
based indexing of video filmed by a single camera, dealing with the motion and shape ... in a video surveillance context and relying on Coupled Hid- den Markov ...

Fast(er) Reasoning in Interval Temporal Logic
26th EACSL Annual Conference on Computer Science Logic (CSL 2017). ..... Let us call such a model an N-minimum model (or, simply, minimum model). Now ..... Hi([z, t]) to Lo([z, t]) and add p to Lo([t, t ]) for each t > t, or lines 28–36 put ψ in.

Training Budget Benchmarks and Optimizations for 2017 ... - Litmos
develop one hour of training., but we are now in an environ- ment where learning is ... in-person instructor-led training program, several hours for an. eLearning ...