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.BoreholeSegment.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.BoreholeSegment,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.136/4.136, allocations: 432.6 MB / 445.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.617e-05/4.627e-05, allocations: 4.875 kB / 0.5383 GB, free: 10.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2278, allocations: 98.73 MB / 0.6347 GB, free: 1.918 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.204/1.432, allocations: 413.9 MB / 1.039 GB, free: 9.152 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003739/1.433, allocations: 105.2 kB / 1.039 GB, free: 9.094 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 3.185/4.617, allocations: 0.6253 GB / 1.664 GB, free: 61.03 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.094e-06/4.617, allocations: 3.938 kB / 1.664 GB, free: 61.03 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0002229/4.618, allocations: 43.98 kB / 1.664 GB, free: 60.98 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.007931/4.626, allocations: 2.03 MB / 1.666 GB, free: 58.9 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/4.626, allocations: 12.03 kB / 1.666 GB, free: 58.89 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004402/4.626, allocations: 168.8 kB / 1.667 GB, free: 58.71 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/4.627, allocations: 205.7 kB / 1.667 GB, free: 58.51 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007078/4.634, allocations: 2.055 MB / 1.669 GB, free: 56.4 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.763e-05/4.634, allocations: 102.1 kB / 1.669 GB, free: 56.3 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004258/4.635, allocations: 143.9 kB / 1.669 GB, free: 56.16 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002787/4.638, allocations: 1.169 MB / 1.67 GB, free: 54.93 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.745e-05/4.638, allocations: 4 kB / 1.67 GB, free: 54.93 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/4.638, allocations: 47.94 kB / 1.67 GB, free: 54.88 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.71e-05/4.638, allocations: 31.98 kB / 1.67 GB, free: 54.85 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002324/4.64, allocations: 0.8946 MB / 1.671 GB, free: 53.95 MB / 0.823 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01772/4.658, allocations: 6.92 MB / 1.678 GB, free: 46.62 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004404/4.663, allocations: 1.09 MB / 1.679 GB, free: 45.52 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/4.664, allocations: 438.3 kB / 1.679 GB, free: 45.09 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007163/4.664, allocations: 0.6098 MB / 1.68 GB, free: 44.35 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009596/4.665, allocations: 410.1 kB / 1.68 GB, free: 43.93 MB / 0.823 GB Notification: Performance of pre-optimization done (n=76): time 6.352e-06/4.665, allocations: 0 / 1.68 GB, free: 43.93 MB / 0.823 GB Notification: Performance of matching and sorting (n=80): time 0.007041/4.672, allocations: 2.249 MB / 1.683 GB, free: 41.62 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/4.673, allocations: 72.19 kB / 1.683 GB, free: 41.54 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002411/4.675, allocations: 1.24 MB / 1.684 GB, free: 40.29 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0004158/4.675, allocations: 53.7 kB / 1.684 GB, free: 40.23 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007701/4.676, allocations: 0.6965 MB / 1.685 GB, free: 39.52 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004131/4.677, allocations: 288 kB / 1.685 GB, free: 39.24 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/4.677, allocations: 24 kB / 1.685 GB, free: 39.21 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001067/4.677, allocations: 361.9 kB / 1.685 GB, free: 38.86 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001417/4.678, allocations: 0.5389 MB / 1.686 GB, free: 38.32 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/4.68, allocations: 0.8627 MB / 1.687 GB, free: 37.34 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/4.681, allocations: 0.6832 MB / 1.687 GB, free: 36.66 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/4.682, allocations: 0 / 1.687 GB, free: 36.66 MB / 0.823 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004572/4.686, allocations: 1.781 MB / 1.689 GB, free: 34.87 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004322/4.687, allocations: 2.302 MB / 1.691 GB, free: 32.42 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.149e-05/4.687, allocations: 8 kB / 1.691 GB, free: 32.41 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/4.688, allocations: 267 kB / 1.691 GB, free: 32.16 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/4.691, allocations: 271.5 kB / 1.692 GB, free: 31.89 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/4.692, allocations: 1.583 MB / 1.693 GB, free: 30.26 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0047/4.697, allocations: 167.5 kB / 1.693 GB, free: 30.09 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003478/4.697, allocations: 55.98 kB / 1.693 GB, free: 30.04 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/4.697, allocations: 4 kB / 1.693 GB, free: 30.04 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004144/4.702, allocations: 1.621 MB / 1.695 GB, free: 28.41 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.602e-05/4.702, allocations: 4 kB / 1.695 GB, free: 28.41 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/4.703, allocations: 256 kB / 1.695 GB, free: 28.16 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002502/4.705, allocations: 267.7 kB / 1.696 GB, free: 27.89 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/4.707, allocations: 0.9819 MB / 1.697 GB, free: 26.89 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004737/4.711, allocations: 163.6 kB / 1.697 GB, free: 26.73 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003766/4.712, allocations: 59.97 kB / 1.697 GB, free: 26.67 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.seg.TBouCon.iSam,seg.TBouCon.iSam,$PRE.seg.TBouCon.UOld,seg.TBouCon.UOld,$PRE.seg.TBouCon.QAve_flow,seg.TBouCon.QAve_flow,$whenCondition1,$PRE.seg.TBouCon.port.T,seg.TBouCon.port.T) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 25} Notification: Performance of prepare postOptimizeDAE: time 0.0004087/4.712, allocations: 180.7 kB / 1.697 GB, free: 26.48 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004434/4.713, allocations: 150.1 kB / 1.697 GB, free: 26.34 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002781/4.716, allocations: 1.037 MB / 1.698 GB, free: 25.28 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/4.716, allocations: 11.98 kB / 1.698 GB, free: 25.27 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/4.716, allocations: 0 / 1.698 GB, free: 25.27 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002002/4.718, allocations: 0.9196 MB / 1.699 GB, free: 24.3 MB / 0.823 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006203/4.724, allocations: 2.772 MB / 1.702 GB, free: 21.45 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/4.724, allocations: 0 / 1.702 GB, free: 21.45 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/4.725, allocations: 143.8 kB / 1.702 GB, free: 21.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004693/4.726, allocations: 118.5 kB / 1.702 GB, free: 21.18 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001467/4.726, allocations: 31.98 kB / 1.702 GB, free: 21.15 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004139/4.73, allocations: 5.243 MB / 1.707 GB, free: 15.48 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/4.73, allocations: 0 / 1.707 GB, free: 15.48 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003535/4.734, allocations: 1.553 MB / 1.709 GB, free: 13.88 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/4.735, allocations: 359.1 kB / 1.709 GB, free: 13.51 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000314/4.735, allocations: 36.12 kB / 1.709 GB, free: 13.47 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/4.738, allocations: 83.75 kB / 1.709 GB, free: 13.39 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/4.738, allocations: 56.69 kB / 1.709 GB, free: 13.33 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.377e-05/4.738, allocations: 31.98 kB / 1.709 GB, free: 13.3 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.001892/4.74, allocations: 0.93 MB / 1.71 GB, free: 12.37 MB / 0.823 GB Notification: Performance of sort global known variables: time 6.41e-07/4.74, allocations: 0 / 1.71 GB, free: 12.37 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.006289/4.746, allocations: 1.133 MB / 1.711 GB, free: 11.24 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (seg.port_b1.h_outflow,seg.port_a2.h_outflow,seg.pipFil.capFil1.T,seg.pipFil.capFil2.T,seg.soi.T[1],seg.soi.T[2],seg.soi.T[3],seg.soi.T[4],seg.soi.T[5],seg.soi.T[6],seg.soi.T[7],seg.soi.T[8],seg.soi.T[9],seg.TBouCon.U) * Number of discrete variables: 5 ($whenCondition1,seg.TBouCon.QAve_flow,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.iSam) * Number of discrete states: 2 (seg.TBouCon.iSam,seg.TBouCon.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007113/4.753, allocations: 2.971 MB / 1.714 GB, free: 8.23 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.008291/4.762, allocations: 2.105 MB / 1.716 GB, free: 6.117 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/4.762, allocations: 4.125 kB / 1.716 GB, free: 6.113 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.002037/4.764, allocations: 0.7774 MB / 1.717 GB, free: 5.297 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008258/4.772, allocations: 0.7598 MB / 1.718 GB, free: 4.539 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/4.785, allocations: 3.387 MB / 1.721 GB, free: 1.094 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5863/5.371, allocations: 1.303 MB / 1.722 GB, free: 135.6 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.003977/5.375, allocations: 0.5147 MB / 1.723 GB, free: 135.6 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/5.377, allocations: 0.5819 MB / 1.723 GB, free: 135.6 MB / 0.823 GB Notification: Performance of SimCode: time 1.092e-06/5.377, allocations: 0 / 1.723 GB, free: 135.6 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1439/5.521, allocations: 57.43 MB / 1.779 GB, free: 134.3 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/5.521, allocations: 259 kB / 1.78 GB, free: 133.9 MB / 0.823 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_BoreholeSegment.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_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_BoreholeSegment_functions.o Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c In file included from Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c:2: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_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_BoreholeSegment_functions.c:7: In file included from ./Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_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_BoreholeSegment_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o] Error 1