Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.88/3.88, allocations: 432.6 MB / 445.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.392e-05, allocations: 5.703 kB / 0.5383 GB, free: 10.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2019, allocations: 98.73 MB / 0.6347 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2279/0.4298, allocations: 129.3 MB / 0.761 GB, free: 408 kB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003496/0.4302, allocations: 95.94 kB / 0.7611 GB, free: 312 kB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02634/0.4566, allocations: 5.256 MB / 0.7662 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4566, allocations: 0 / 0.7662 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.305e-05/0.4566, allocations: 4 kB / 0.7662 GB, free: 11.01 MB / 0.6511 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.001182/0.4578, allocations: 0.5204 MB / 0.7667 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/0.4579, allocations: 15.97 kB / 0.7667 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.021e-05/0.458, allocations: 50.55 kB / 0.7668 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.463e-05/0.4581, allocations: 31.66 kB / 0.7668 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005816/0.4587, allocations: 289.8 kB / 0.7671 GB, free: 10 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.4587, allocations: 12.23 kB / 0.7671 GB, free: 9.988 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.821e-05/0.4588, allocations: 31.86 kB / 0.7671 GB, free: 9.957 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004475/0.4593, allocations: 180.4 kB / 0.7673 GB, free: 9.758 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.4593, allocations: 7.891 kB / 0.7673 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.4594, allocations: 7.938 kB / 0.7673 GB, free: 9.742 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.4594, allocations: 4 kB / 0.7673 GB, free: 9.738 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002594/0.4597, allocations: 75.91 kB / 0.7674 GB, free: 9.664 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.4613, allocations: 0.9113 MB / 0.7683 GB, free: 8.684 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.4619, allocations: 179.9 kB / 0.7685 GB, free: 8.48 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.4621, allocations: 66.72 kB / 0.7685 GB, free: 8.406 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.4621, allocations: 8 kB / 0.7685 GB, free: 8.398 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004346/0.4626, allocations: 181.7 kB / 0.7687 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=23): time 3.336e-06/0.4626, allocations: 0 / 0.7687 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23): time 0.0007477/0.4634, allocations: 257.4 kB / 0.769 GB, free: 7.941 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/0.4634, allocations: 122.8 kB / 0.7691 GB, free: 7.797 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.4638, allocations: 210.9 kB / 0.7693 GB, free: 7.59 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.012e-05/0.4638, allocations: 37.7 kB / 0.7693 GB, free: 7.547 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.464, allocations: 144.6 kB / 0.7694 GB, free: 7.402 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.98e-05/0.4641, allocations: 59.25 kB / 0.7695 GB, free: 7.344 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.4641, allocations: 8 kB / 0.7695 GB, free: 7.336 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4643, allocations: 342.8 kB / 0.7698 GB, free: 6.992 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.4645, allocations: 56.81 kB / 0.7699 GB, free: 6.934 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.4648, allocations: 231.2 kB / 0.7701 GB, free: 6.629 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.4651, allocations: 117.6 kB / 0.7702 GB, free: 6.508 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.4651, allocations: 4 kB / 0.7702 GB, free: 6.504 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008328/0.4659, allocations: 367 kB / 0.7706 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.466, allocations: 37.83 kB / 0.7706 GB, free: 6.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.466, allocations: 4 kB / 0.7706 GB, free: 6.086 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.993e-05/0.4661, allocations: 8.062 kB / 0.7706 GB, free: 6.078 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004311/0.4665, allocations: 79.83 kB / 0.7707 GB, free: 6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.082e-05/0.4665, allocations: 12.03 kB / 0.7707 GB, free: 5.988 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.467, allocations: 43.67 kB / 0.7708 GB, free: 5.945 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.467, allocations: 20 kB / 0.7708 GB, free: 5.926 MB / 0.6511 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 () * 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.0001706/0.4672, allocations: 151 kB / 0.7709 GB, free: 5.773 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.197e-05/0.4673, allocations: 35.56 kB / 0.771 GB, free: 5.738 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.359e-05/0.4674, allocations: 21.83 kB / 0.771 GB, free: 5.719 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.4674, allocations: 4 kB / 0.771 GB, free: 5.715 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.4674, allocations: 0 / 0.771 GB, free: 5.715 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.4674, allocations: 4 kB / 0.771 GB, free: 5.711 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/0.4678, allocations: 265.4 kB / 0.7712 GB, free: 5.402 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4678, allocations: 7.984 kB / 0.7712 GB, free: 5.395 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.4681, allocations: 27.98 kB / 0.7713 GB, free: 5.367 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.4681, allocations: 0 / 0.7713 GB, free: 5.367 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.4682, allocations: 11.94 kB / 0.7713 GB, free: 5.355 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4682, allocations: 0 / 0.7713 GB, free: 5.355 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4682, allocations: 4 kB / 0.7713 GB, free: 5.352 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009657/0.4692, allocations: 399.9 kB / 0.7717 GB, free: 4.926 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.4693, allocations: 112.7 kB / 0.7718 GB, free: 4.797 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.73e-05/0.4694, allocations: 8 kB / 0.7718 GB, free: 4.789 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.4697, allocations: 19.97 kB / 0.7718 GB, free: 4.77 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.4698, allocations: 23.97 kB / 0.7718 GB, free: 4.746 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.338e-05/0.4698, allocations: 11.98 kB / 0.7718 GB, free: 4.734 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002231/0.4701, allocations: 163.1 kB / 0.772 GB, free: 4.57 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.61e-07/0.4701, allocations: 0 / 0.772 GB, free: 4.57 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006002/0.4707, allocations: 84 kB / 0.7721 GB, free: 4.488 MB / 0.6511 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) * 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.001677/0.4724, allocations: 1.155 MB / 0.7732 GB, free: 3.293 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006508/0.4731, allocations: 251.1 kB / 0.7734 GB, free: 3.035 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.4731, allocations: 1.625 kB / 0.7734 GB, free: 3.035 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002928/0.4734, allocations: 87.92 kB / 0.7735 GB, free: 2.949 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.4739, allocations: 54.53 kB / 0.7736 GB, free: 2.898 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.4764, allocations: 0.6885 MB / 0.7742 GB, free: 2.172 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.4768, allocations: 0.7446 MB / 0.775 GB, free: 1.402 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002343/0.477, allocations: 50.94 kB / 0.775 GB, free: 1.348 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.4772, allocations: 67.42 kB / 0.7751 GB, free: 1.281 MB / 0.6511 GB Notification: Performance of SimCode: time 1.062e-06/0.4772, allocations: 0 / 0.7751 GB, free: 1.281 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5449/1.022, allocations: 6.055 MB / 0.781 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/1.022, allocations: 198.4 kB / 0.7812 GB, free: 138 MB / 0.6511 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Resources/C-Sources" -c -o Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.c:7: In file included from ./Buildings_6_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: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 -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Resources/C-Sources" -c -o Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:2: In file included from ./Buildings_6_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: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_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_includes.h:4: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Resources/C-Sources/freeArray.c:13: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_functions.o] Error 1