Skip to content

Let FMUs of Buildings find the Spawn executable - #396

Merged
sjoelund merged 1 commit into
masterfrom
buildings-spawnpath
Nov 5, 2026
Merged

sjoelund merged 1 commit into
masterfrom
buildings-spawnpath

Conversation

@sjoelund

@sjoelund sjoelund commented Nov 5, 2026

Copy link
Copy Markdown
Member

A Buildings model with EnergyPlus looks for the Spawn executable next to modelica://Buildings/legal.html, then on SPAWNPATH and on PATH. In an FMU, legal.html is a copy in the FMU resources, and Spawn (110 MB) is not there. So all EnergyPlus models failed to initialize in the FMI jobs (about 130 rows in master-fmi-cs-cvode, and the same in wasm-jit-cs), with "Failed to find spawn executable".

Set SPAWNPATH to the Spawn that install.py puts into the library, for Buildings 12, 13 and latest.

The wasm-jit jobs simulate inside omc, which did not get environmentSimulation. Set it in omc with setEnvironmentVar.

Assisted-by: Claude Opus 5.5

A Buildings model with EnergyPlus looks for the Spawn executable next
to modelica://Buildings/legal.html, then on SPAWNPATH and on PATH. In
an FMU, legal.html is a copy in the FMU resources, and Spawn (110 MB)
is not there. So all EnergyPlus models failed to initialize in the
FMI jobs (about 130 rows in master-fmi-cs-cvode, and the same in
wasm-jit-cs), with "Failed to find spawn executable".

Set SPAWNPATH to the Spawn that install.py puts into the library, for
Buildings 12, 13 and latest.

The wasm-jit jobs simulate inside omc, which did not get
environmentSimulation. Set it in omc with setEnvironmentVar.

Assisted-by: Claude Opus 5.5
@sjoelund
sjoelund merged commit e34fffa into master Nov 5, 2026
7 checks passed
@sjoelund
sjoelund deleted the buildings-spawnpath branch November 5, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant