Individual skill

simulate-modelica-realtime

Run a compiled Modelica model as a live, real-time simulation server and interact with it over the System Modeler simulation TCP interface: start, pause, resume and stop it, set inputs and tunable parameters while it runs, read and stream values, or send raw protocol commands, on an executable it launches or one already running in Simulation Center. Use it whenever a simulation must run in real time or as a server, take input or parameter changes mid-run, be driven from Python or another program, or feed an operator, hardware-in-the-loop or live-dashboard demo. Triggers on phrases like 'run in real time', 'simulate in server mode', 'connect to the running simulation', 'change the input while it runs', 'stream simulation values', 'hardware in the loop', 'simulation server', 'TCP interface of the simulation'. For one-shot simulations use simulate-modelica; for live interaction from Wolfram Language use wolfram-language-modelica.

simulate-modelica-realtime/SKILL.md

Read pinned source

Source commit af6615a05ab455d4fb85b45f29343835f61a08c7

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Network or broad shell
Last checked
Nov 7, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
20
Repository last updated
Nov 6, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Talk to a simulation executable

Every simulation System Modeler builds is an executable plus a `.sim` settings file, and every
running simulation has a built-in TCP server. A client can start, pause, resume and stop the run,
set top-level inputs at any time, set tunable parameters while the solver runs, read any variable,
and subscribe to variables that are then streamed while it runs. This skill does that with the
stdlib-only client `<scripts-dir>/wsmsim.py` and its command line `<scripts-dir>/wsm_realtime.py`.
Resolve `<scripts-dir>` as in [Appendix → Locating the launcher](#locating-the-launcher),
and follow its shell and Python rules per OS.

## 1. Get a simulation to talk to

Either of these works: