Git LFS not installed/initialized in testing/Dockerfile results in only (AFAIK) EnergyPlus related files not being checked out from https://github.com/lbl-srg/modelica-buildings such as libModelicaBuildingsEnergyPlus.so among others in the following list from the modelica-buildings repo:
This results in linker failures towards the end of a Modelica + Spawn of EnergyPlus compilation because these files aren't actually downloaded from Git LFS:
$ make compile_testcase_model TESTCASE=spawnrefsmalloffice
...
/usr/bin/ld:/home/developer/git/modelica-buildings/Buildings/Resources/Library/linux64/[libModelicaBuildingsEnergyPlus.so](http://libmodelicabuildingsenergyplus.so/): file format not recognized; treating as linker script
/usr/bin/ld:/home/developer/git/modelica-buildings/Buildings/Resources/Library/linux64/[libModelicaBuildingsEnergyPlus.so](http://libmodelicabuildingsenergyplus.so/):1: syntax error
collect2: error: ld returned 1 exit status
make[1]: *** [fmume20_] Error 1
make: *** [fmume20] Error 2
...
/usr/local/JModelica/Makefiles/MakeFile:163: recipe for target 'fmume20' failed
Unknown program error, org.jmodelica.util.exceptions.CcodeCompilationException: Compilation of generated C code failed.
C file location: /tmp/jmc807535789236270263out/sources/SpawnRefSmallOfficeBuilding.c
Traceback (most recent call last):
File "compile_fmu.py", line 50, in <module>
fmupath = parser.export_fmu(modelpath, [mopath])
File "/usr/local/testing/parsing/parser.py", line 213, in export_fmu
instances, signals = parse_instances(model_path, file_name)
File "/usr/local/testing/parsing/parser.py", line 45, in parse_instances
fmu_path = compile_fmu(model_path, file_name)
File "/usr/local/JModelica/Python/pymodelica/compiler.py", line 148, in compile_fmu
separate_process, jvm_args)
File "/usr/local/JModelica/Python/pymodelica/compiler.py", line 257, in _compile_unit
compiler_options, compile_to, compiler_log_level, jvm_args)
File "/usr/local/JModelica/Python/pymodelica/compiler.py", line 378, in compile_separate_process
return log.end();
File "/usr/local/JModelica/Python/pymodelica/compiler_logging.py", line 332, in end
raise CcodeCompilationError(exception.message)
pymodelica.compiler_exceptions.CcodeCompilationError: Compilation of generated C code failed.
C file location: /tmp/jmc807535789236270263out/sources/SpawnRefSmallOfficeBuilding.c
make[1]: *** [exec_jm] Error 1
make: *** [compile_testcase_model] Error 2
Git LFS not installed/initialized in
testing/Dockerfile
results in only (AFAIK) EnergyPlus related files not being checked out from https://github.com/lbl-srg/modelica-buildings such aslibModelicaBuildingsEnergyPlus.so
among others in the following list from themodelica-buildings
repo:This results in linker failures towards the end of a Modelica + Spawn of EnergyPlus compilation because these files aren't actually downloaded from Git LFS: