Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions configs/conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
"Buildings.ThermalZones.EnergyPlus_24_2_0.Examples.SmallOffice.Guideline36Summer":420
},
"runOnceBeforeTesting":[["$resourceLocation/src/ThermalZones/install.py", "--binaries-for-os-only"]],
"environmentSimulation":[["SPAWNPATH", "$libraryLocation/Resources/bin/Spawn-light-0.6.0-9f1b36b00b/linux64/bin"]],
"referenceFileExtension":"csv",
"referenceFileNameDelimiter":"_",
"referenceFiles":"/mnt/ReferenceFiles/Buildings/csv/maint_12.x",
Expand All @@ -214,6 +215,7 @@
"Buildings.ThermalZones.EnergyPlus_24_2_0.Examples.SmallOffice.Guideline36Summer":420
},
"runOnceBeforeTesting":[["$resourceLocation/src/ThermalZones/install.py", "--binaries-for-os-only"]],
"environmentSimulation":[["SPAWNPATH", "$libraryLocation/Resources/bin/Spawn-light-0.6.0-9f1b36b00b/linux64/bin"]],
"referenceFileExtension":"csv",
"referenceFileNameDelimiter":"_",
"referenceFiles":"/mnt/ReferenceFiles/Buildings/csv/maint_13.x",
Expand All @@ -236,6 +238,7 @@
"Buildings.ThermalZones.EnergyPlus_24_2_0.Examples.SmallOffice.Guideline36Winter":600
},
"runOnceBeforeTesting":[["$resourceLocation/src/ThermalZones/install.py", "--binaries-for-os-only"]],
"environmentSimulation":[["SPAWNPATH", "$libraryLocation/Resources/bin/Spawn-light-0.6.0-9f1b36b00b/linux64/bin"]],
"referenceFileExtension":"csv",
"referenceFileNameDelimiter":"_",
"referenceFiles":"/mnt/ReferenceFiles/Buildings/csv/master"
Expand Down
5 changes: 5 additions & 0 deletions testmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,11 @@ def createOmcSessionNew():
for cmd in conf["customCommands"]:
omc.sendExpression(str(cmd), parsed = False)

# wasm-jit simulates inside omc, so omc needs the simulation environment.
if isWasmJit:
for (name, value) in conf["environmentSimulation"]:
omc.sendExpression('setEnvironmentVar("%s", "%s")' % (name, value.replace("\\","/")), parsed = False)

if conf.get("optlevel"):
cflags = omc.sendExpression("getCFlags()")
cflags = cflags.replace("${MODELICAUSERCFLAGS}","").replace("-O0","").replace("-O1","").replace("-O2","").replace("-O3","").strip()
Expand Down
Loading