Book a Demo
Prev Next

Run Model Simulation

A Simulation executes the model step-by-step, enabling you to validate the logic of your behavioral model. The current execution step is automatically highlighted in the model's diagram to make it easy to understand the various processes and state changes as they occur during the Simulation.

There are several ways to start a model Simulation:

  • When the active diagram can be simulated, the Run button on the main Simulation window will process the current diagram, either by running an existing script or defining a new temporary one
  • When the active diagram can not be simulated, the Run button on the main Simulation window will run the Simulation for the active Execution Analyzer script
  • By right-clicking on a Simulation script in the Execution Analyzer window and selecting the 'Start Simulation' option
  • By right-clicking on a suitable diagram and selecting one of the 'Execute Simulation' options

There are visual cues during execution. When the Simulation is running, Enterprise Architect will actively highlight each active node for each executed step. In addition, all outgoing transitions and control flows will be highlighted, showing the possible paths forward. Elements at the end of possible paths forward will be de-emphasized to half-strength and any other remaining elements will be 90% 'grayed out'. This provides a very dynamic and easy to follow execution that continually refocuses attention on the execution context.



Simulate > Dynamic Simulation > Simulator > Open Simulation Window

Simulate > Run Simulation > Start

Edition Specific Details

In the Professional Edition, if a branch is encountered in the execution, the Simulator prompts you to choose the appropriate path to take in your execution.

In the Corporate, Unified and Ultimate Editions, in which JavaScript is enabled, the Simulation will automatically evaluate all guards and effects and dynamically execute the Simulation without user intervention. If the Simulation becomes blocked due to no possible paths forward evaluating to True (or multiple paths evaluating to True) you can modify the Simulation variables on the fly using the console input of the Simulation Execution window

Run a Simulation Using the Toolbar

Running a model simulation in Enterprise Architect



See also

Start the Simulator for the current diagram or, if the current diagram cannot be simulated, run the Simulation using the activated Simulation script.

Activate Simulation Script

Pause the Simulation.

When the Simulation is paused, step over, step in and step out to control the Simulator's execution at the required step in the model Simulation.

Stop the Simulation.

Click on the drop-down arrow and select the type of Simulation to run:

  • 'Interpreted' - Perform dynamic execution of a Simulation (Corporate, Unified and Ultimate Editions)
  • 'Manual' - Step through a Simulation manually (the only option available in the Professional Edition)
  • 'Executable' - Select when running the Simulation on an Executable StateMachine

Click on the drop-down arrow and select from a menu of options for performing specific operations on the Simulation script and output, such as Build, Run, Generate and View Breakpoints.

Vary the execution rate of the Simulation, between 0% and 100%; at:

  • 100%, the Simulation executes at the fastest possible rate
  • 0% the Simulator breaks execution at every statement


  • The Simulation tool only becomes active when a valid Simulation Execution Script is activated
  • You can set a Simulation script as the current default by setting its checkbox in the Execution Analyzer window

Learn more