Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008866/0.0008866, allocations: 179.2 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4488/0.4488, allocations: 90.81 MB / 104.5 MB, free: 9.789 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 221.3 MB / 348.3 MB, free: 460 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008816/0.0008816, allocations: 96.17 kB / 421.2 MB, free: 5.488 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.763e-05, allocations: 4 kB / 0.4897 GB, free: 5.273 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3394, allocations: 72.3 MB / 0.5603 GB, free: 40.45 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4617, allocations: 103.4 MB / 0.6613 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.462, allocations: 79.95 kB / 0.6614 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008888/0.4709, allocations: 3.332 MB / 0.6646 GB, free: 13.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4709, allocations: 4 kB / 0.6646 GB, free: 13.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.471, allocations: 7.938 kB / 0.6646 GB, free: 13.53 MB / 490.7 MB 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.000496/0.4715, allocations: 438 kB / 0.665 GB, free: 13.05 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4715, allocations: 11.98 kB / 0.665 GB, free: 13.04 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.292e-05/0.4716, allocations: 34.56 kB / 0.6651 GB, free: 13 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.224e-05/0.4716, allocations: 19.77 kB / 0.6651 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.4719, allocations: 239.7 kB / 0.6653 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.4719, allocations: 0 / 0.6653 GB, free: 12.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.472, allocations: 11.94 kB / 0.6653 GB, free: 12.69 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.4721, allocations: 77.67 kB / 0.6654 GB, free: 12.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.4722, allocations: 4 kB / 0.6654 GB, free: 12.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.4722, allocations: 7.984 kB / 0.6654 GB, free: 12.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.4722, allocations: 7.938 kB / 0.6654 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.169e-05/0.4723, allocations: 32 kB / 0.6655 GB, free: 12.56 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005658/0.4728, allocations: 388.5 kB / 0.6658 GB, free: 12.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.904e-05/0.4729, allocations: 30.5 kB / 0.6659 GB, free: 12.09 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.882e-05/0.4729, allocations: 12.92 kB / 0.6659 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.473, allocations: 8 kB / 0.6659 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.4731, allocations: 77.11 kB / 0.666 GB, free: 11.97 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.4731, allocations: 0 / 0.666 GB, free: 11.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001541/0.4733, allocations: 65.44 kB / 0.666 GB, free: 11.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.4733, allocations: 81.11 kB / 0.6661 GB, free: 11.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.4735, allocations: 217.1 kB / 0.6663 GB, free: 11.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.4735, allocations: 29.7 kB / 0.6663 GB, free: 11.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.772e-05/0.4736, allocations: 132 kB / 0.6665 GB, free: 11.42 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.4736, allocations: 9.125 kB / 0.6665 GB, free: 11.41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.4737, allocations: 0 / 0.6665 GB, free: 11.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.4738, allocations: 330.8 kB / 0.6668 GB, free: 11.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.671e-05/0.4738, allocations: 11.98 kB / 0.6668 GB, free: 11.07 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.206e-05/0.4738, allocations: 31.5 kB / 0.6668 GB, free: 11.02 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.899e-05/0.4739, allocations: 12.03 kB / 0.6668 GB, free: 11.01 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4739, allocations: 0 / 0.6668 GB, free: 11.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001166/0.474, allocations: 73.44 kB / 0.6669 GB, free: 10.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.474, allocations: 4 kB / 0.6669 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.474, allocations: 4 kB / 0.6669 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.4741, allocations: 0 / 0.6669 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.4742, allocations: 28 kB / 0.6669 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.4742, allocations: 3.438 kB / 0.6669 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.445e-05/0.4743, allocations: 17.97 kB / 0.667 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.4743, allocations: 3.984 kB / 0.667 GB, free: 10.88 MB / 490.7 MB 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.689e-05/0.4744, allocations: 116.9 kB / 0.6671 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.4744, allocations: 15.81 kB / 0.6671 GB, free: 10.74 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.4745, allocations: 25.17 kB / 0.6671 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.4745, allocations: 0 / 0.6671 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4745, allocations: 8 kB / 0.6671 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4745, allocations: 144 / 0.6671 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.4747, allocations: 213.5 kB / 0.6673 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.4747, allocations: 0 / 0.6673 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.353e-05/0.4748, allocations: 19.97 kB / 0.6673 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4748, allocations: 0 / 0.6673 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.4748, allocations: 3.984 kB / 0.6673 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4748, allocations: 4 kB / 0.6674 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4748, allocations: 0 / 0.6674 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.4749, allocations: 92.88 kB / 0.6674 GB, free: 10.31 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.409e-05/0.475, allocations: 104.9 kB / 0.6675 GB, free: 10.19 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.475, allocations: 0 / 0.6675 GB, free: 10.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.765e-05/0.4751, allocations: 11.98 kB / 0.6676 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.598e-05/0.4752, allocations: 12 kB / 0.6676 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.4752, allocations: 7.984 kB / 0.6676 GB, free: 10.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000147/0.4754, allocations: 173.4 kB / 0.6677 GB, free: 9.988 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4754, allocations: 1.5 kB / 0.6677 GB, free: 9.988 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001992/0.4756, allocations: 31.89 kB / 0.6678 GB, free: 9.957 MB / 490.7 MB 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.0004591/0.476, allocations: 0.6539 MB / 0.6684 GB, free: 9.281 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.613e-05/0.4761, allocations: 24 kB / 0.6684 GB, free: 9.258 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4761, allocations: 0 / 0.6684 GB, free: 9.258 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.164e-05/0.4762, allocations: 15.94 kB / 0.6684 GB, free: 9.242 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.4764, allocations: 35.02 kB / 0.6685 GB, free: 9.211 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004926/0.4769, allocations: 241.6 kB / 0.6687 GB, free: 8.941 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.4772, allocations: 0.7314 MB / 0.6694 GB, free: 8.184 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.748e-05/0.4772, allocations: 24.7 kB / 0.6694 GB, free: 8.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.029e-05/0.4773, allocations: 39.42 kB / 0.6695 GB, free: 8.121 MB / 490.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4773, allocations: 0 / 0.6695 GB, free: 8.121 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01282/0.4901, allocations: 3.216 MB / 0.6726 GB, free: 5.055 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/0.4903, allocations: 150.3 kB / 0.6728 GB, free: 4.832 MB / 490.7 MB 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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./IBPSA_latest_IBPSA_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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Resources/C-Sources/jsonWriterInit.c:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: *** [: IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1