STPA Safety Analysis Tool in Simulink

This is a STPA (Systems Theoretic Process Analysis) tool using Simulink and Matlab.
Updated 23 Oct 2022

View License

MOOSE : Matlab Tool for STPA Evaluation.
STPA (STPA Handbook) is a safety analysis method developed at MIT, Massachusetts. I have made a simple Simulink library and provide two Matlab files to analyze the model. The details of the method are available in the handbook. The library has blocks for controller, actuator, process, loses, hazards and control actions. The user can make a hierarchical control structure (HCS) using these building blocks. The Matlab files read the HCS and generate a report that can be used for further analysis. This is a preliminary work and suggestions are welcome for updates.

Cite As

Aditya Jeppu (2024). STPA Safety Analysis Tool in Simulink (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with R2016b to R2022a
Platform Compatibility
Windows macOS Linux
Find more on Simulink Real-Time in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes

1. Sorting items in the list based on ordering of the model blocks.
2. Addition of tags to show "Not Providing", "Providing", "Too early", "Stopped too soon" in the table created
3. Included manual for users


Updated the format for reports. Changed the library blocks to remove links. Added one more example.


Added missing files