Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.158/2.158, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001061/0.001061, allocations: 180.9 kB / 498.1 MB, free: 5.762 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.0009275/0.0009273, allocations: 98.91 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003647, allocations: 10.44 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2531, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.4229, allocations: 154.1 MB / 1.373 GB, free: 7.902 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.4231, allocations: 99.92 kB / 1.374 GB, free: 7.805 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01592/0.4391, allocations: 5.445 MB / 1.379 GB, free: 2.324 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.893e-06/0.4391, allocations: 0 / 1.379 GB, free: 2.324 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.138e-05/0.4391, allocations: 4 kB / 1.379 GB, free: 2.32 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0009733/0.4401, allocations: 0.583 MB / 1.379 GB, free: 1.68 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.053e-05/0.4402, allocations: 11.97 kB / 1.379 GB, free: 1.668 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.393e-05/0.4403, allocations: 42.73 kB / 1.379 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.557e-05/0.4403, allocations: 27.67 kB / 1.379 GB, free: 1.59 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.4408, allocations: 305.7 kB / 1.38 GB, free: 1.25 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.4408, allocations: 12.22 kB / 1.38 GB, free: 1.238 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.4408, allocations: 27.91 kB / 1.38 GB, free: 1.211 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004045/0.4413, allocations: 211.1 kB / 1.38 GB, free: 0.9844 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.4413, allocations: 7.938 kB / 1.38 GB, free: 0.9766 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.4413, allocations: 4 kB / 1.38 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.4413, allocations: 4 kB / 1.38 GB, free: 0.9688 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003592/0.4417, allocations: 135.7 kB / 1.38 GB, free: 0.8359 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.4428, allocations: 0.9114 MB / 1.381 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004807/0.4433, allocations: 239.8 kB / 1.381 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.4433, allocations: 0 / 1.381 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004133/0.4438, allocations: 210.5 kB / 1.381 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.4438, allocations: 0 / 1.381 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23): time 0.0008504/0.4446, allocations: 385.5 kB / 1.382 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.4447, allocations: 114.8 kB / 1.382 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.4449, allocations: 217.7 kB / 1.382 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.445, allocations: 33.7 kB / 1.382 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.456e-05/0.4451, allocations: 148.5 kB / 1.382 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.4451, allocations: 59.25 kB / 1.382 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.582e-05/0.4451, allocations: 12 kB / 1.382 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4453, allocations: 338.8 kB / 1.383 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.4455, allocations: 84.77 kB / 1.383 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.4458, allocations: 267.1 kB / 1.383 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002732/0.4461, allocations: 145.7 kB / 1.383 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4461, allocations: 0 / 1.383 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000714/0.4468, allocations: 418.6 kB / 1.384 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.4468, allocations: 37.69 kB / 1.384 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.4469, allocations: 4 kB / 1.384 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.4469, allocations: 16.78 kB / 1.384 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.4471, allocations: 67.84 kB / 1.384 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.998e-05/0.4471, allocations: 15.92 kB / 1.384 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.4474, allocations: 47.67 kB / 1.384 GB, free: 12.83 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.4474, allocations: 23.94 kB / 1.384 GB, free: 12.81 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.TBouSte.QAve_flow,TBouSte.QAve_flow,$PRE.TBouSte.UOld,TBouSte.UOld,$PRE.TBouSte.port.T,TBouSte.port.T,$PRE.TBouSte.iSam,TBouSte.iSam,$whenCondition4,$PRE.TBouCon.QAve_flow,TBouCon.QAve_flow,$PRE.TBouCon.UOld,TBouCon.UOld,$PRE.TBouCon.port.T,TBouCon.port.T,$PRE.TBouCon.iSam,TBouCon.iSam,$whenCondition3,$PRE.TBouPul.QAve_flow,TBouPul.QAve_flow,$PRE.TBouPul.UOld,TBouPul.UOld,$PRE.TBouPul.port.T,TBouPul.port.T,$PRE.TBouPul.iSam,TBouPul.iSam,$whenCondition1,$whenCondition2,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001377/0.4475, allocations: 164 kB / 1.384 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.4476, allocations: 31.58 kB / 1.384 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.4476, allocations: 25.7 kB / 1.384 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.4476, allocations: 4 kB / 1.384 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4477, allocations: 0 / 1.384 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4477, allocations: 7.984 kB / 1.384 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.4479, allocations: 269.3 kB / 1.384 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4479, allocations: 0 / 1.384 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.4481, allocations: 27.97 kB / 1.384 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.4481, allocations: 4 kB / 1.384 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.4481, allocations: 11.95 kB / 1.384 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.4481, allocations: 0 / 1.384 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4481, allocations: 4 kB / 1.384 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008341/0.449, allocations: 475.6 kB / 1.385 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.399e-05/0.449, allocations: 104.8 kB / 1.385 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.453e-05/0.4491, allocations: 12.19 kB / 1.385 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.4493, allocations: 23.97 kB / 1.385 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.4493, allocations: 19.97 kB / 1.385 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.4494, allocations: 15.98 kB / 1.385 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001273/0.4495, allocations: 166 kB / 1.385 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4495, allocations: 4 kB / 1.385 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003744/0.4499, allocations: 83.98 kB / 1.385 GB, free: 11.27 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.001305/0.4512, allocations: 1.229 MB / 1.386 GB, free: 10 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005554/0.4518, allocations: 300.5 kB / 1.387 GB, free: 9.699 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4518, allocations: 4.125 kB / 1.387 GB, free: 9.695 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.452, allocations: 111.8 kB / 1.387 GB, free: 9.586 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.4523, allocations: 64.14 kB / 1.387 GB, free: 9.527 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002898/0.4552, allocations: 5.143 MB / 1.392 GB, free: 4.211 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.4555, allocations: 0.7485 MB / 1.393 GB, free: 3.438 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001387/0.4557, allocations: 46.94 kB / 1.393 GB, free: 3.391 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/0.4558, allocations: 67.42 kB / 1.393 GB, free: 3.324 MB / 0.8855 GB Notification: Performance of SimCode: time 4.017e-06/0.4558, allocations: 0 / 1.393 GB, free: 3.324 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02014/0.4759, allocations: 5.966 MB / 1.399 GB, free: 13.6 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/0.4762, allocations: 228 kB / 1.399 GB, free: 13.36 MB / 0.9011 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c:7: In file included from ./Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c In file included from Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:2: In file included from ./Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:7: In file included from ./Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Resources/C-Sources/initArray.c:14:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o] Error 1