Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.186/2.186, allocations: 390.3 MB / 402.8 MB, free: 6.648 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 184.8 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.3 MB / 0.7915 GB, free: 5.422 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008189/0.0008189, allocations: 95.75 kB / 0.9317 GB, free: 5.738 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.804e-05/3.818e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2552, allocations: 143 MB / 1.219 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7951/1.05, allocations: 151.9 MB / 1.367 GB, free: 2.062 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/1.051, allocations: 73.27 kB / 1.367 GB, free: 2.023 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008878/1.059, allocations: 3.324 MB / 1.371 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.112e-06/1.06, allocations: 0 / 1.371 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.919e-05/1.06, allocations: 9.969 kB / 1.371 GB, free: 15.13 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004937/1.06, allocations: 441.8 kB / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/1.06, allocations: 12.03 kB / 1.371 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/1.06, allocations: 34.31 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.113e-05/1.06, allocations: 19.77 kB / 1.371 GB, free: 14.6 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/1.061, allocations: 234.8 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/1.061, allocations: 4 kB / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/1.061, allocations: 6.5 kB / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/1.061, allocations: 93.03 kB / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.994e-06/1.061, allocations: 0 / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/1.061, allocations: 4 kB / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/1.061, allocations: 8 kB / 1.371 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.915e-05/1.061, allocations: 33.06 kB / 1.371 GB, free: 14.22 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005793/1.061, allocations: 388.1 kB / 1.372 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.799e-05/1.062, allocations: 33.97 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.772e-05/1.062, allocations: 12.73 kB / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/1.062, allocations: 0 / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/1.062, allocations: 80.48 kB / 1.372 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.41e-07/1.062, allocations: 0 / 1.372 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.000159/1.062, allocations: 65.12 kB / 1.372 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/1.062, allocations: 81.11 kB / 1.372 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/1.062, allocations: 223.7 kB / 1.372 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/1.062, allocations: 29.7 kB / 1.372 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.019e-05/1.062, allocations: 123.8 kB / 1.372 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/1.062, allocations: 7.812 kB / 1.372 GB, free: 13.19 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-06/1.062, allocations: 3.438 kB / 1.372 GB, free: 13.19 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.062, allocations: 329.5 kB / 1.373 GB, free: 12.87 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.406e-05/1.062, allocations: 8 kB / 1.373 GB, free: 12.86 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.719e-05/1.062, allocations: 37.88 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.382e-05/1.062, allocations: 19.92 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/1.063, allocations: 0 / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001066/1.063, allocations: 75.22 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/1.063, allocations: 12.11 kB / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/1.063, allocations: 0 / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/1.063, allocations: 4 kB / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/1.063, allocations: 11.98 kB / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/1.063, allocations: 4 kB / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.008e-05/1.063, allocations: 11.98 kB / 1.373 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/1.063, allocations: 4 kB / 1.373 GB, free: 12.68 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.531e-05/1.063, allocations: 108.9 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.666e-05/1.063, allocations: 19.77 kB / 1.373 GB, free: 12.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.502e-05/1.063, allocations: 24.05 kB / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/1.063, allocations: 3.938 kB / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/1.063, allocations: 3.938 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/1.063, allocations: 0 / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/1.063, allocations: 218.6 kB / 1.373 GB, free: 12.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/1.063, allocations: 0 / 1.373 GB, free: 12.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.264e-05/1.063, allocations: 19.98 kB / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/1.063, allocations: 3.953 kB / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/1.063, allocations: 0 / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/1.063, allocations: 0 / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/1.063, allocations: 0 / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001219/1.064, allocations: 91.78 kB / 1.373 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.695e-05/1.064, allocations: 96.78 kB / 1.373 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/1.064, allocations: 3.953 kB / 1.373 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.015e-05/1.064, allocations: 19.98 kB / 1.373 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/1.064, allocations: 7.359 kB / 1.373 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/1.064, allocations: 4 kB / 1.373 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001539/1.064, allocations: 183.6 kB / 1.374 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.9e-07/1.064, allocations: 3.938 kB / 1.374 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001985/1.064, allocations: 20 kB / 1.374 GB, free: 11.84 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004858/1.065, allocations: 0.6646 MB / 1.374 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.43e-05/1.065, allocations: 27.75 kB / 1.374 GB, free: 11.15 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/1.065, allocations: 4.188 kB / 1.374 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.983e-05/1.065, allocations: 11.98 kB / 1.374 GB, free: 11.13 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/1.065, allocations: 36.8 kB / 1.374 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005152/1.066, allocations: 235.4 kB / 1.375 GB, free: 10.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/1.066, allocations: 0.7235 MB / 1.375 GB, free: 10.11 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.538e-05/1.066, allocations: 28.47 kB / 1.375 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.98e-05/1.066, allocations: 37.73 kB / 1.375 GB, free: 10.07 MB / 0.8386 GB Notification: Performance of SimCode: time 2.9e-07/1.066, allocations: 0 / 1.375 GB, free: 10.07 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01474/1.081, allocations: 3.227 MB / 1.379 GB, free: 6.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003413/1.081, allocations: 161.7 kB / 1.379 GB, free: 6.754 MB / 0.8386 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources/jsonWriterInit.c:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources/fileWriterStructure.c:4:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1