Running Simulations
Behavior Execution Engine projects typically contain several elements that pertain to the simulation rather than the model, but only a few of these elements are required. See the simulation checklist for a quick reference of everything a simulation needs, see the first tutorial to learn how to create a Behavior Execution Engine simulation project, or see the following topics for a more detailed discussion of simulation-related elements:
- Simulation Configuration - instance specifications with configuration stereotypes
- Running Independently - Running outside of modeling tools and the logs of the results
- Running Automatically - Scalable simulations in ModelCenter, input and output values, where to deploy project dependencies, and the logs of the results
Simulation checklist
A Behavior Execution Engine simulation has certain required elements and some additional options. To help ensure success, you can use the Behavior Execution Engine Simulation Project template, which already includes most of the requirements, or you can create your own project template.
A Behavior Execution Engine simulation must include the following:
- A complete Behavior Execution Engine installation
- An "mdzip" SysML project with all other SysML "mdzip" projects it depends on included in the modelDependencies folder.
- A project reference to the Behavior Execution Engine model libraries (at least Moxie-Base).
- At least one block with the following properties/values:
- Classifier Behavior =
{Behavior}
, which is a state machine you want to simulate
- Classifier Behavior =
- At least one instance specification for a block that owns a classifier behavior
- A simulation instance specification.
The following diagrams are optional but recommended:
Diagram | Description |
---|---|
Block definition diagram | Useful for viewing blocks and the relationships between them |
Instance specification diagram | Useful for viewing all the Instance Specifications used in the simulation, the relationships among them, and their initial property values |
Troubleshooting
If your simulation fails, you should begin your investigation by looking in the simulation log file. Refer to the Troubleshooting page for additional information, including a list of known error messages and solutions to common problems.