Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.38/2.38, allocations: 251 MB / 265.9 MB, free: 11.67 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 183 kB / 325.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.306/2.306, allocations: 205.4 MB / 0.5764 GB, free: 21.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 94.53 kB / 0.6809 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006456/0.0006458, allocations: 15.12 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.206, allocations: 106.3 MB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2284/0.4345, allocations: 136.4 MB / 1.032 GB, free: 9.332 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.4349, allocations: 95.94 kB / 1.032 GB, free: 9.238 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02615/0.461, allocations: 5.342 MB / 1.037 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.943e-06/0.4611, allocations: 0 / 1.037 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.352e-05/0.4611, allocations: 4 kB / 1.037 GB, free: 3.855 MB / 0.6823 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.001455/0.4626, allocations: 0.5869 MB / 1.038 GB, free: 3.211 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.4626, allocations: 16.16 kB / 1.038 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.4627, allocations: 46.48 kB / 1.038 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.407e-05/0.4628, allocations: 27.67 kB / 1.038 GB, free: 3.113 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005685/0.4634, allocations: 293.8 kB / 1.038 GB, free: 2.785 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.4634, allocations: 12.23 kB / 1.038 GB, free: 2.773 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.4635, allocations: 27.98 kB / 1.038 GB, free: 2.746 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.4642, allocations: 208.3 kB / 1.039 GB, free: 2.52 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.4642, allocations: 0 / 1.039 GB, free: 2.52 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.4643, allocations: 11.98 kB / 1.039 GB, free: 2.508 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4643, allocations: 4 kB / 1.039 GB, free: 2.504 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006288/0.4649, allocations: 127.8 kB / 1.039 GB, free: 2.379 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.4667, allocations: 0.9152 MB / 1.04 GB, free: 1.395 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008571/0.4676, allocations: 231.9 kB / 1.04 GB, free: 1.141 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.4676, allocations: 7.984 kB / 1.04 GB, free: 1.133 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000681/0.4683, allocations: 213.7 kB / 1.04 GB, free: 0.9023 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=23): time 3.336e-06/0.4683, allocations: 3.938 kB / 1.04 GB, free: 0.8984 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.001544/0.4699, allocations: 389 kB / 1.04 GB, free: 0.5117 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.47, allocations: 122.9 kB / 1.04 GB, free: 376 kB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.4704, allocations: 217.7 kB / 1.041 GB, free: 148 kB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.4704, allocations: 33.7 kB / 1.041 GB, free: 108 kB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.4706, allocations: 140.6 kB / 1.041 GB, free: 15.96 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.523e-05/0.4707, allocations: 59.27 kB / 1.041 GB, free: 15.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.4707, allocations: 8 kB / 1.041 GB, free: 15.89 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.4709, allocations: 342.8 kB / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.4713, allocations: 84.77 kB / 1.041 GB, free: 15.46 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005253/0.4719, allocations: 266.9 kB / 1.042 GB, free: 15.12 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004728/0.4723, allocations: 149.5 kB / 1.042 GB, free: 14.97 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.4724, allocations: 0 / 1.042 GB, free: 14.97 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001247/0.4736, allocations: 415 kB / 1.042 GB, free: 14.55 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.4737, allocations: 41.64 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.4737, allocations: 8 kB / 1.042 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.783e-05/0.4738, allocations: 8.375 kB / 1.042 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004135/0.4742, allocations: 63.91 kB / 1.042 GB, free: 14.43 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.985e-05/0.4742, allocations: 11.94 kB / 1.042 GB, free: 14.42 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004226/0.4747, allocations: 51.91 kB / 1.042 GB, free: 14.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.341e-05/0.4747, allocations: 31.94 kB / 1.042 GB, free: 14.34 MB / 0.698 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.0002619/0.475, allocations: 155.9 kB / 1.042 GB, free: 14.18 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.852e-05/0.4751, allocations: 27.72 kB / 1.043 GB, free: 14.15 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.751e-05/0.4752, allocations: 33.66 kB / 1.043 GB, free: 14.11 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.4752, allocations: 4 kB / 1.043 GB, free: 14.11 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4752, allocations: 0 / 1.043 GB, free: 14.11 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.4752, allocations: 7.984 kB / 1.043 GB, free: 14.1 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.4757, allocations: 265.4 kB / 1.043 GB, free: 13.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.4757, allocations: 0 / 1.043 GB, free: 13.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.4759, allocations: 19.98 kB / 1.043 GB, free: 13.77 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-05/0.4759, allocations: 7.984 kB / 1.043 GB, free: 13.77 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.476, allocations: 8 kB / 1.043 GB, free: 13.76 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.476, allocations: 3.953 kB / 1.043 GB, free: 13.75 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.476, allocations: 3.938 kB / 1.043 GB, free: 13.75 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.4776, allocations: 478.8 kB / 1.043 GB, free: 13.25 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.4777, allocations: 104.8 kB / 1.043 GB, free: 13.12 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.538e-05/0.4778, allocations: 8 kB / 1.043 GB, free: 13.12 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.4781, allocations: 19.97 kB / 1.043 GB, free: 13.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.4782, allocations: 27.97 kB / 1.043 GB, free: 13.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/0.4783, allocations: 15.98 kB / 1.043 GB, free: 13.05 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002322/0.4785, allocations: 166 kB / 1.044 GB, free: 12.89 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.675e-06/0.4785, allocations: 0 / 1.044 GB, free: 12.89 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006376/0.4792, allocations: 99.7 kB / 1.044 GB, free: 12.79 MB / 0.698 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.002347/0.4815, allocations: 1.216 MB / 1.045 GB, free: 11.54 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001079/0.4826, allocations: 303.7 kB / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4827, allocations: 0 / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004626/0.4831, allocations: 109.4 kB / 1.045 GB, free: 11.12 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005211/0.4837, allocations: 60.52 kB / 1.045 GB, free: 11.06 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004806/0.4885, allocations: 5.147 MB / 1.05 GB, free: 5.742 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.489, allocations: 0.7446 MB / 1.051 GB, free: 4.969 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002832/0.4893, allocations: 42.95 kB / 1.051 GB, free: 4.926 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.4894, allocations: 71.41 kB / 1.051 GB, free: 4.855 MB / 0.698 GB Notification: Performance of SimCode: time 1.233e-06/0.4895, allocations: 0 / 1.051 GB, free: 4.855 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5866/1.076, allocations: 5.969 MB / 1.057 GB, free: 152.2 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002886/1.076, allocations: 232 kB / 1.057 GB, free: 152 MB / 0.698 GB Error: Error building simulator. Build log: clang -Os -fPIC -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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c:7: In file included from ./Buildings_7_0_0_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 -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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:2: In file included from ./Buildings_7_0_0_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_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_includes.h:4: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources/freeArray.c:13: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources/externalObjectStructure.h:8:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o] Error 1