Appendix D: Tooling Notes (OpenSysML)
This edition targets Open-MBEE OpenSysML MDK 0.12.1. Use sysml -version to identify the executable; other projects use the same command name. All paths below are relative to this edition, not the upstream tool’s checkout.
Install and check
On macOS the Homebrew formula is open-mbee/tap/opensysml. Other platforms and release archives are covered by the installation guide. After installing, run:
sysml -version
sysml -strict -validate src/examples/coffee-machine
An ordinary sysml file.sysml opens a REPL. Use -validate in a script so it exits, and -strict to diagnose accepted nonstandard notation as errors. Load the whole coffee-machine directory so imports and qualified names see their dependencies. Independent exercises, by contrast, should not all be loaded into one namespace.
From a question to a command
| Question | Command (from the edition root) |
|---|---|
| What is the result of a closed expression? | sysml -e 'true implies false' |
| How long at a given temperature and pressure? | sysml -calc 'CoffeeCalculations::ExtractionTime(92.0, 9.0)' src/examples/coffee-machine |
| What does the design claim to satisfy? | sysml -satisfy src/examples/coffee-machine |
| Does the temperature case pass for the bench machine? | sysml -instantiate CoffeeRequirements::benchMachine -analysis 'Verification::BrewTempTest CoffeeRequirements::benchMachine' src/examples/coffee-machine |
| Which transitions occur by simulated time 6? | sysml -instantiate Orchestration::EspressoMachine -trace -state 'Orchestration::BoilerController Orchestration::EspressoMachine' -advance 6 src/examples/coffee-machine |
| Which diagrams can I regenerate? | sysml -list views src/examples/coffee-machine |
Validation is not execution. -calc needs values for its inputs, and -state needs a simulated time interval for timers beyond the initial transition. Preserve the status, diagnostics and verdict; do not interpret successful parsing as a passing test.
Editing, rendering and scripting
sysml-lsp connects an editor to the language server. The editor guide covers setup. In a terminal sysml -explain unresolved provides help for the same diagnostic vocabulary (Appendix F). Use -json or -format sarif when another tool needs structured diagnostics.
The checked-in illustrations come from declared views. For graph-shaped views OpenSysML produces DOT and Graphviz lays it out; a grid can be exported as CSV. Regenerate with python3 tools/render-figures.py. The REPL, CLI reference and behavior guide describe the runtime in detail. A command on the current documentation site may belong to a later release: use sysml -help for the installed binary.