Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.726/1.726, allocations: 292.6 MB / 307.5 MB, free: 5.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 189 kB / 377.1 MB, free: 1.516 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.4 MB / 0.6366 GB, free: 8.523 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009453/0.0009455, allocations: 93.14 kB / 0.7509 GB, free: 62.98 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 11.98 kB / 0.8749 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2867, allocations: 116.3 MB / 0.9884 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6677/0.9545, allocations: 143.9 MB / 1.129 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.9548, allocations: 97.56 kB / 1.129 GB, free: 31.77 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01514/0.9699, allocations: 5.331 MB / 1.134 GB, free: 27.96 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.355e-06/0.97, allocations: 0 / 1.134 GB, free: 27.96 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.819e-06/0.97, allocations: 4 kB / 1.134 GB, free: 27.96 MB / 0.7292 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.0008783/0.9709, allocations: 0.5751 MB / 1.135 GB, free: 27.37 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.9709, allocations: 12.67 kB / 1.135 GB, free: 27.36 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.533e-05/0.971, allocations: 42.17 kB / 1.135 GB, free: 27.31 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.327e-05/0.9711, allocations: 35.88 kB / 1.135 GB, free: 27.28 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.9714, allocations: 299.3 kB / 1.135 GB, free: 26.98 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.9715, allocations: 16.98 kB / 1.135 GB, free: 26.97 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.9715, allocations: 21.55 kB / 1.135 GB, free: 26.95 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003886/0.9719, allocations: 211.7 kB / 1.135 GB, free: 26.76 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.9719, allocations: 1.641 kB / 1.135 GB, free: 26.76 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.972, allocations: 13.25 kB / 1.135 GB, free: 26.75 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.972, allocations: 5.078 kB / 1.135 GB, free: 26.75 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003454/0.9723, allocations: 125.8 kB / 1.136 GB, free: 26.65 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.9734, allocations: 0.913 MB / 1.136 GB, free: 25.77 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.9738, allocations: 231.2 kB / 1.137 GB, free: 25.54 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.9739, allocations: 4.344 kB / 1.137 GB, free: 25.54 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004148/0.9743, allocations: 215.5 kB / 1.137 GB, free: 25.35 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.9743, allocations: 0 / 1.137 GB, free: 25.35 MB / 0.7292 GB Notification: Performance of matching and sorting (n=23): time 0.0008193/0.9751, allocations: 389.1 kB / 1.137 GB, free: 25.01 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.9752, allocations: 117.6 kB / 1.137 GB, free: 24.88 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.9754, allocations: 215.3 kB / 1.138 GB, free: 24.68 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.9754, allocations: 39.25 kB / 1.138 GB, free: 24.64 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.816e-05/0.9755, allocations: 146.3 kB / 1.138 GB, free: 24.5 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.757e-05/0.9755, allocations: 61.05 kB / 1.138 GB, free: 24.45 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.238e-05/0.9756, allocations: 8 kB / 1.138 GB, free: 24.44 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.9756, allocations: 340.8 kB / 1.138 GB, free: 24.11 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.9759, allocations: 82.92 kB / 1.138 GB, free: 24.04 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.9761, allocations: 265.2 kB / 1.138 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.9764, allocations: 144.1 kB / 1.139 GB, free: 23.58 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.9764, allocations: 4 kB / 1.139 GB, free: 23.58 MB / 0.7292 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006615/0.9771, allocations: 416.7 kB / 1.139 GB, free: 23.2 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.9771, allocations: 34.88 kB / 1.139 GB, free: 23.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.9771, allocations: 8.531 kB / 1.139 GB, free: 23.15 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.777e-05/0.9771, allocations: 13.53 kB / 1.139 GB, free: 23.14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.9774, allocations: 80.72 kB / 1.139 GB, free: 23.07 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.9774, allocations: 10.91 kB / 1.139 GB, free: 23.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.9776, allocations: 46.44 kB / 1.139 GB, free: 23.02 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.9777, allocations: 23.94 kB / 1.139 GB, free: 23 MB / 0.7292 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.0001225/0.9778, allocations: 159.4 kB / 1.139 GB, free: 22.84 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/0.9778, allocations: 27.33 kB / 1.139 GB, free: 22.81 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.846e-05/0.9779, allocations: 27.31 kB / 1.139 GB, free: 22.79 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.9779, allocations: 4 kB / 1.139 GB, free: 22.78 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.9779, allocations: 4.516 kB / 1.139 GB, free: 22.78 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.9779, allocations: 3.75 kB / 1.139 GB, free: 22.78 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002332/0.9782, allocations: 260.2 kB / 1.14 GB, free: 22.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.9782, allocations: 4 kB / 1.14 GB, free: 22.51 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.9783, allocations: 29.78 kB / 1.14 GB, free: 22.48 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.9783, allocations: 0.9844 kB / 1.14 GB, free: 22.48 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.9783, allocations: 10.48 kB / 1.14 GB, free: 22.48 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.9783, allocations: 4.75 kB / 1.14 GB, free: 22.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9784, allocations: 2.438 kB / 1.14 GB, free: 22.47 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008063/0.9792, allocations: 480.5 kB / 1.14 GB, free: 22.02 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.9792, allocations: 103.4 kB / 1.14 GB, free: 21.9 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.83e-05/0.9793, allocations: 13.59 kB / 1.14 GB, free: 21.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.9795, allocations: 25.56 kB / 1.14 GB, free: 21.87 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.468e-05/0.9795, allocations: 21.23 kB / 1.14 GB, free: 21.86 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.9796, allocations: 16.22 kB / 1.14 GB, free: 21.85 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001224/0.9797, allocations: 165.8 kB / 1.14 GB, free: 21.7 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9797, allocations: 0 / 1.14 GB, free: 21.7 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004207/0.9801, allocations: 91.17 kB / 1.141 GB, free: 21.61 MB / 0.7292 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.001265/0.9814, allocations: 1.222 MB / 1.142 GB, free: 20.42 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000552/0.982, allocations: 315.2 kB / 1.142 GB, free: 20.13 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.982, allocations: 8.062 kB / 1.142 GB, free: 20.12 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.9822, allocations: 111.5 kB / 1.142 GB, free: 20.03 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.9825, allocations: 59.33 kB / 1.142 GB, free: 19.99 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/0.9853, allocations: 5.139 MB / 1.147 GB, free: 14.85 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.9856, allocations: 0.7465 MB / 1.148 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001737/0.9858, allocations: 58.95 kB / 1.148 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.9859, allocations: 65.72 kB / 1.148 GB, free: 14 MB / 0.7292 GB Notification: Performance of SimCode: time 3.61e-07/0.9859, allocations: 0 / 1.148 GB, free: 14 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01881/1.005, allocations: 5.976 MB / 1.154 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/1.005, allocations: 218.2 kB / 1.154 GB, free: 10.4 MB / 0.7292 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 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.o Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c In file included from Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c:7: In file included from ./Buildings_8_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 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c In file included from Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:2: In file included from ./Buildings_8_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_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:7: In file included from ./Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.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_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o] Error 1