Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Ground.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.011/4.011, allocations: 403.3 MB / 415.4 MB, free: 12.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.088e-05/4.067e-05, allocations: 4 kB / 0.4992 GB, free: 13.25 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6826/0.6826, allocations: 92.68 MB / 0.5897 GB, free: 14.35 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.24/1.923, allocations: 407 MB / 0.9871 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004416/1.923, allocations: 117.7 kB / 0.9872 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.404/5.328, allocations: 0.6132 GB / 1.6 GB, free: 71.78 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.254e-06/5.328, allocations: 4 kB / 1.6 GB, free: 71.77 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0001922/5.328, allocations: 43.94 kB / 1.601 GB, free: 71.73 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.007299/5.335, allocations: 2.069 MB / 1.603 GB, free: 69.61 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/5.335, allocations: 19.95 kB / 1.603 GB, free: 69.59 MB / 0.7761 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003309/5.336, allocations: 177.4 kB / 1.603 GB, free: 69.4 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/5.337, allocations: 213.6 kB / 1.603 GB, free: 69.19 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0617/5.399, allocations: 13.19 MB / 1.616 GB, free: 55.83 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/5.399, allocations: 106.3 kB / 1.616 GB, free: 55.72 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007924/5.4, allocations: 151.9 kB / 1.616 GB, free: 55.57 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005691/5.406, allocations: 1.299 MB / 1.617 GB, free: 54.18 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-05/5.406, allocations: 7.938 kB / 1.617 GB, free: 54.17 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002627/5.406, allocations: 48 kB / 1.617 GB, free: 54.12 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.389e-05/5.406, allocations: 36 kB / 1.617 GB, free: 54.09 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004825/5.411, allocations: 0.9374 MB / 1.618 GB, free: 53.15 MB / 0.7761 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.02736/5.439, allocations: 7.87 MB / 1.626 GB, free: 44.84 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006641/5.445, allocations: 1.085 MB / 1.627 GB, free: 43.72 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/5.447, allocations: 465.3 kB / 1.628 GB, free: 43.26 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006619/5.448, allocations: 276.1 kB / 1.628 GB, free: 42.93 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002052/5.45, allocations: 0.5334 MB / 1.628 GB, free: 42.36 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=78): time 6.442e-06/5.45, allocations: 3.938 kB / 1.628 GB, free: 42.36 MB / 0.7761 GB Notification: Performance of matching and sorting (n=86): time 0.01122/5.461, allocations: 3.383 MB / 1.632 GB, free: 38.87 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/5.461, allocations: 281.7 kB / 1.632 GB, free: 38.54 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002521/5.464, allocations: 1.226 MB / 1.633 GB, free: 37.3 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0004326/5.464, allocations: 53.7 kB / 1.633 GB, free: 37.24 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008445/5.465, allocations: 0.7354 MB / 1.634 GB, free: 36.5 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004964/5.466, allocations: 311.6 kB / 1.634 GB, free: 36.19 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/5.466, allocations: 28 kB / 1.634 GB, free: 36.16 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001209/5.466, allocations: 361.9 kB / 1.634 GB, free: 35.8 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/5.468, allocations: 0.5546 MB / 1.635 GB, free: 35.25 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/5.469, allocations: 0.9171 MB / 1.636 GB, free: 34.19 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/5.471, allocations: 0.7288 MB / 1.637 GB, free: 33.46 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-06/5.471, allocations: 0 / 1.637 GB, free: 33.46 MB / 0.7761 GB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005111/5.476, allocations: 1.845 MB / 1.638 GB, free: 31.59 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006566/5.477, allocations: 3.23 MB / 1.642 GB, free: 28.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.012e-05/5.477, allocations: 8 kB / 1.642 GB, free: 28.15 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001457/5.478, allocations: 312.7 kB / 1.642 GB, free: 27.84 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003785/5.482, allocations: 311.5 kB / 1.642 GB, free: 27.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/5.485, allocations: 1.661 MB / 1.644 GB, free: 25.83 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004857/5.49, allocations: 147.7 kB / 1.644 GB, free: 25.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003842/5.49, allocations: 59.98 kB / 1.644 GB, free: 25.62 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/5.49, allocations: 4 kB / 1.644 GB, free: 25.62 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004383/5.494, allocations: 1.697 MB / 1.646 GB, free: 23.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-05/5.495, allocations: 8 kB / 1.646 GB, free: 23.91 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/5.496, allocations: 296.7 kB / 1.646 GB, free: 23.61 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/5.498, allocations: 271.7 kB / 1.646 GB, free: 23.35 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/5.5, allocations: 1.057 MB / 1.647 GB, free: 22.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004603/5.505, allocations: 151.6 kB / 1.647 GB, free: 22.12 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003233/5.505, allocations: 59.98 kB / 1.647 GB, free: 22.06 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (150): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * 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 29} Notification: Performance of prepare postOptimizeDAE: time 0.0004851/5.506, allocations: 224 kB / 1.648 GB, free: 21.83 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004732/5.506, allocations: 154.1 kB / 1.648 GB, free: 21.68 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/5.509, allocations: 1.127 MB / 1.649 GB, free: 20.52 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-05/5.509, allocations: 8 kB / 1.649 GB, free: 20.51 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/5.509, allocations: 4 kB / 1.649 GB, free: 20.51 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002049/5.511, allocations: 0.9951 MB / 1.65 GB, free: 19.46 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007397/5.519, allocations: 3.244 MB / 1.653 GB, free: 16.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/5.519, allocations: 0 / 1.653 GB, free: 16.11 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002726/5.521, allocations: 212 kB / 1.653 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004841/5.522, allocations: 122.5 kB / 1.653 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001439/5.522, allocations: 27.98 kB / 1.653 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005974/5.528, allocations: 5.99 MB / 1.659 GB, free: 9.219 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/5.528, allocations: 3.938 kB / 1.659 GB, free: 9.215 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003801/5.532, allocations: 1.828 MB / 1.661 GB, free: 7.277 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/5.533, allocations: 370.9 kB / 1.661 GB, free: 6.895 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006915/5.534, allocations: 31.98 kB / 1.661 GB, free: 6.863 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004023/5.538, allocations: 87.77 kB / 1.662 GB, free: 6.777 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004198/5.539, allocations: 60.69 kB / 1.662 GB, free: 6.719 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/5.539, allocations: 35.92 kB / 1.662 GB, free: 6.684 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.003099/5.542, allocations: 0.9153 MB / 1.663 GB, free: 5.77 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.472e-06/5.542, allocations: 0 / 1.663 GB, free: 5.77 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.008719/5.551, allocations: 1.144 MB / 1.664 GB, free: 4.625 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 14 (seg.pipFil.vol1.dynBal.medium.T,seg.pipFil.vol2.dynBal.medium.T,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: 5 (seg.TBouCon.iSam,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.QAve_flow,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * 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.009582/5.56, allocations: 3.618 MB / 1.667 GB, free: 0.9336 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.7053/6.266, allocations: 2.28 MB / 1.669 GB, free: 122.7 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/6.266, allocations: 3.344 kB / 1.669 GB, free: 122.7 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.00315/6.269, allocations: 0.8936 MB / 1.67 GB, free: 122.4 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00676/6.276, allocations: 0.754 MB / 1.671 GB, free: 122.4 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/6.287, allocations: 3.504 MB / 1.674 GB, free: 121.6 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001482/6.289, allocations: 1.331 MB / 1.676 GB, free: 120.9 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.004315/6.293, allocations: 0.5532 MB / 1.676 GB, free: 120.9 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/6.295, allocations: 0.6143 MB / 1.677 GB, free: 120.9 MB / 0.7761 GB Notification: Performance of SimCode: time 1.784e-06/6.295, allocations: 0 / 1.677 GB, free: 120.9 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1598/6.455, allocations: 58.87 MB / 1.734 GB, free: 118.8 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003076/6.455, allocations: 258.9 kB / 1.735 GB, free: 118.5 MB / 0.7761 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 5.0.1/Resources/C-Sources" -c -o Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment.o Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment.c In file included from Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment.c:7: In file included from ./Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_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 5.0.1/Resources/C-Sources" -c -o Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c In file included from Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c:2: In file included from ./Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_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_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c:7: In file included from ./Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment_includes.h:5: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/Resources/C-Sources/initArray.c:14:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o' failed make: *** [Buildings_5_0_1_Buildings_Fluid_HeatExchangers_Ground_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o] Error 1