validate requirements by analyzing model properties -凯发k8网页登录
validate a requirement set by analyzing properties that model individual requirements. falsified properties indicate design and requirement set incompleteness.
overview
in this example, you analyze model properties that are based on four requirements of an engine thrust reverser system. falsified results from the property analysis suggest that the system design requirements are incomplete -- the system allows behavior that violates several of the following requirements:
the thrust reverser shall not deploy if the airspeed is greater than 150 knots.
the thrust reverser shall not deploy if the aircraft is in the air, as indicated by the value of the weight on wheels sensors. if the aircraft is in the air, the signal value for each of two weight on wheels (wow) sensors is
false
.the thrust reverser shall not deploy if the value of either thrust sensor is positive.
the thrust reverser shall not deploy if the rotational speed of the landing gear wheels is less than a threshold value.
to better understand the model behavior, you analyze dependencies for a time series input that causes undesirable model behavior because the system lacks required control logic. then, you analyze a revised control system model which passes the property analysis.
analyze the safety properties
1. click the open model button to open the original model and create a working directory of the example files.
the safety properties subsystem is a verification subsystem block from the simulink® design verifier™ library. the verification logic in safety properties models the safety requirements. for example, the airspeed requirement is verified by:
for more information about verification subsystem blocks, see (simulink design verifier).
2. view the requirements. in the model, click the show perspectives views icon at the lower right and select requirements. the requirements pane opens. expand thrust_reverser_safety_requirements
.
the safety requirements link to the assertion blocks in the safety properties subsystem. the assertion blocks are considered proof objectives. the verification status for each requirement reflects the property analysis results of its corresponding assertion block.
3. display the verification status for the requirements. right-click one of the requirements in the browser and select verification status. the verified column indicates that the requirements are unexecuted.
4. analyze the model properties. in the apps tab, click design verifier. in the design verifier tab, click prove properties.
when the property analysis completes, click the refresh button to update the status in the verified column. the results show that three out of four objectives are falsified -- analysis found a signal condition that falsifies the properties, and therefore violates the requirements.
analyze model behavior with counterexamples
from the design verifier results summary window, click html to open the detailed analysis report. in chapter 4, each falsified property lists a counterexample. for example, in the counterexample that falsifies the airspeed requirement:
at t = 0.1, the thrust reverser is deployed with airspeed below the threshold.
at t = 0.2, the thrust reverser is still deployed with airspeed above the threshold.
the counterexample time series indicates a condition that might be difficult to encounter in simulation, but nonetheless causes model behavior that violates a requirement. investigate the behavior by analyzing signal dependencies in the counterexample:
1. in the design verifier tab, click the highlight in model button.
2. select the airspeed valid assertion block in the test unit > safety properties > airspeed property subsystem.
3. in the design verifier tab, click the debug using slicer button. the model highlights dependencies of the airspeed valid assertion, and displays signal values at t = 0.2.
4. move up one level in the model, to the safety properties subsystem. step back through the counterexample simulation time. in the simulation tab, click step back.
5. at t = 0.1, the average airspeed is below the threshold, and the thrust reverser is deployed. stepping forward, at t = 0.2, the average airspeed is above the threshold, and the thrust reverser is still deployed. this violates a requirement.
the falsified property and the dependency analysis suggest that the control system algorithm is incompletely designed, and the requirements are incomplete.
analyze the redesigned system
redesigning a control system requires rethinking requirements. in this case, the lack of an intermediate standby state allows undesirable system behavior when inputs change suddenly. adding an intermediate deployment mode which delays thrust reverser response resolves the issue.
open the reqs_validation_property_proving_redesigned_model
model. open the thrustreversers
chart.
the additional design requirement states that the thrust reverser shall deploy after a pause. the redesigned model includes:
an additional
abouttobedeployed
state.expanded transition conditions that return to
undeployed
.
create links from the verification blocks in the redesigned model to the requirements:
1. in the model, from the apps tab, click requirements manager.
2. in the requirements tab, click requirements editor.
3. open thrust_reverser_safety_requirements
in the requirements editor.
4. for requirement 1.1, airspeed condition, link to the airspeed valid block in the safety properties > airspeed property subsystem. drag r1.1 from the requirements browser to the airspeed valid block in the model.
5. the new link appears in the requirements editor, in the right pane, under links.
6. delete the link to the assert block in the original model. if the original model is closed, this link appears unresolved. next to the link, click the delete link icon.
7. repeat for the other three requirements and verification blocks in the redesigned model.
run the property analysis on the revised model. view the results in the requirements pane.
the results show that the properties are valid.
related topics
- (simulink design verifier)