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
2 changes: 1 addition & 1 deletion basemodelica.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def precompile_testbaesmodelica(systemImage: os.PathLike | None = None) -> None:
'Pkg.develop(path="TestBaseModelica");'
'Pkg.precompile("TestBaseModelica")')
else:
print("Pre-compiling Julia system image %s for TestBaseModelica."
print("Pre-compiling Julia system image %s for TestBaseModelica. "
"This might take a while." % systemImage)

jl.seval('create_sysimage(["TestBaseModelica"];'
Expand Down
6 changes: 6 additions & 0 deletions testmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,12 @@ def sendExpressionOldOrNew(cmd):
cmd += " --sysimage=%s" % conf["julia-system-image"]
cmd += " %s" % juliaCallFile
with open(simFile,"w") as fp:
with open(juliaCallFile, "r") as juliaFile:
file_content = juliaFile.read()
fp.write("%s_test.jl:\n\n" % conf["modelName"])
fp.write(file_content)
fp.write("\n")

fp.write("%s\n" % (cmd))
res = checkOutputTimeout(
"(rm -f %s.pipe ; mkfifo %s.pipe ; head -c 1048576 < %s.pipe >> %s & %s > %s.pipe 2>&1)"
Expand Down
Loading