Repository navigation
Let FMUs of Buildings find the Spawn executable - #396
Merged
Merged
Conversation
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
added a commit
that referenced
this pull request
Nov 6, 2026
#396 set SPAWNPATH to Spawn-light-0.6.0-9f1b36b00b for Buildings 12, 13 and master. Buildings master now uses spawn-0.6.0-638b8408fd, and install.py puts it in another directory. So the 52 EnergyPlus models of Buildings_latest still failed in the FMI jobs with "Failed to find spawn executable in Buildings Library installation, on SPAWNPATH and on PATH". Let a value of environmentSimulation have a wildcard. It becomes all the directories it matches, separated by the path separator. Buildings searches SPAWNPATH like PATH, so it finds the Spawn that its version asks for. Assisted-by: Claude Opus 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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