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 3.927/3.927, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.762e-05/4.781e-05, allocations: 4 kB / 0.4991 GB, free: 13.34 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6975/0.6976, allocations: 92.69 MB / 0.5896 GB, free: 14.49 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.243/1.941, allocations: 407 MB / 0.9871 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004595/1.941, allocations: 114.1 kB / 0.9872 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 3.319/5.26, allocations: 0.6132 GB / 1.6 GB, free: 72.55 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.244e-06/5.26, allocations: 0 / 1.6 GB, free: 72.55 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.000224/5.26, allocations: 43.98 kB / 1.6 GB, free: 72.5 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.008321/5.269, allocations: 2.065 MB / 1.602 GB, free: 70.38 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/5.269, allocations: 11.97 kB / 1.603 GB, free: 70.37 MB / 0.7761 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005434/5.269, allocations: 181.4 kB / 1.603 GB, free: 70.18 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001333/5.271, allocations: 225.5 kB / 1.603 GB, free: 69.96 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04149/5.312, allocations: 13.19 MB / 1.616 GB, free: 56.59 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/5.312, allocations: 102.3 kB / 1.616 GB, free: 56.48 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003731/5.313, allocations: 143.9 kB / 1.616 GB, free: 56.34 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003388/5.316, allocations: 1.319 MB / 1.617 GB, free: 54.93 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.792e-05/5.316, allocations: 7.938 kB / 1.617 GB, free: 54.92 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/5.316, allocations: 48 kB / 1.617 GB, free: 54.87 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-05/5.317, allocations: 35.98 kB / 1.617 GB, free: 54.84 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002847/5.319, allocations: 0.9649 MB / 1.618 GB, free: 53.86 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.01771/5.337, allocations: 7.862 MB / 1.626 GB, free: 45.56 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004397/5.342, allocations: 1.091 MB / 1.627 GB, free: 44.44 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/5.343, allocations: 465.4 kB / 1.628 GB, free: 43.98 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004659/5.343, allocations: 276 kB / 1.628 GB, free: 43.66 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001307/5.344, allocations: 0.5388 MB / 1.628 GB, free: 43.08 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=78): time 3.968e-06/5.345, allocations: 0 / 1.628 GB, free: 43.08 MB / 0.7761 GB Notification: Performance of matching and sorting (n=86): time 0.0101/5.355, allocations: 3.399 MB / 1.632 GB, free: 39.58 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/5.355, allocations: 273.8 kB / 1.632 GB, free: 39.25 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002726/5.358, allocations: 1.218 MB / 1.633 GB, free: 38.02 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0004434/5.358, allocations: 61.69 kB / 1.633 GB, free: 37.95 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009422/5.359, allocations: 0.7236 MB / 1.634 GB, free: 37.22 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005671/5.36, allocations: 315.6 kB / 1.634 GB, free: 36.91 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/5.36, allocations: 24 kB / 1.634 GB, free: 36.89 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001262/5.36, allocations: 365.9 kB / 1.635 GB, free: 36.52 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/5.361, allocations: 0.5546 MB / 1.635 GB, free: 35.97 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/5.363, allocations: 0.9249 MB / 1.636 GB, free: 34.89 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/5.365, allocations: 0.7289 MB / 1.637 GB, free: 34.16 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/5.365, allocations: 4 kB / 1.637 GB, free: 34.16 MB / 0.7761 GB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005409/5.371, allocations: 1.865 MB / 1.638 GB, free: 32.28 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006388/5.371, allocations: 3.23 MB / 1.642 GB, free: 28.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.174e-05/5.371, allocations: 12 kB / 1.642 GB, free: 28.83 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/5.373, allocations: 316.7 kB / 1.642 GB, free: 28.52 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003787/5.377, allocations: 323.4 kB / 1.642 GB, free: 28.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/5.379, allocations: 1.65 MB / 1.644 GB, free: 26.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004943/5.384, allocations: 151.7 kB / 1.644 GB, free: 26.36 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004872/5.385, allocations: 63.97 kB / 1.644 GB, free: 26.29 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/5.385, allocations: 4 kB / 1.644 GB, free: 26.29 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004555/5.39, allocations: 1.708 MB / 1.646 GB, free: 24.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.879e-05/5.39, allocations: 8 kB / 1.646 GB, free: 24.56 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/5.391, allocations: 308.9 kB / 1.646 GB, free: 24.26 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002613/5.394, allocations: 275.6 kB / 1.646 GB, free: 23.99 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/5.395, allocations: 1.053 MB / 1.647 GB, free: 22.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004666/5.4, allocations: 151.6 kB / 1.647 GB, free: 22.76 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004483/5.401, allocations: 59.98 kB / 1.648 GB, free: 22.7 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.0005576/5.401, allocations: 225.1 kB / 1.648 GB, free: 22.47 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005578/5.402, allocations: 154.1 kB / 1.648 GB, free: 22.32 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/5.405, allocations: 1.127 MB / 1.649 GB, free: 21.17 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.41e-05/5.405, allocations: 8 kB / 1.649 GB, free: 21.16 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/5.405, allocations: 4 kB / 1.649 GB, free: 21.16 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002198/5.407, allocations: 0.9952 MB / 1.65 GB, free: 20.12 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00797/5.415, allocations: 3.244 MB / 1.653 GB, free: 16.76 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/5.415, allocations: 8.188 kB / 1.653 GB, free: 16.75 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002802/5.418, allocations: 199.7 kB / 1.653 GB, free: 16.55 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005343/5.419, allocations: 126.5 kB / 1.653 GB, free: 16.42 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/5.419, allocations: 35.98 kB / 1.654 GB, free: 16.39 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006237/5.425, allocations: 6.006 MB / 1.659 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/5.425, allocations: 8.125 kB / 1.659 GB, free: 9.836 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003963/5.429, allocations: 1.808 MB / 1.661 GB, free: 7.918 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/5.431, allocations: 363 kB / 1.662 GB, free: 7.543 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004286/5.431, allocations: 35.92 kB / 1.662 GB, free: 7.508 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002823/5.434, allocations: 91.75 kB / 1.662 GB, free: 7.418 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/5.434, allocations: 60.7 kB / 1.662 GB, free: 7.359 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/5.434, allocations: 27.98 kB / 1.662 GB, free: 7.332 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.00193/5.436, allocations: 0.9232 MB / 1.663 GB, free: 6.41 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8.11e-07/5.436, allocations: 0 / 1.663 GB, free: 6.41 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.00589/5.442, allocations: 1.136 MB / 1.664 GB, free: 5.273 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.006363/5.449, allocations: 3.613 MB / 1.667 GB, free: 1.566 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.6684/6.117, allocations: 2.318 MB / 1.67 GB, free: 122.4 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/6.117, allocations: 2.719 kB / 1.67 GB, free: 122.4 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.004307/6.121, allocations: 0.9252 MB / 1.67 GB, free: 122 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00654/6.128, allocations: 0.7621 MB / 1.671 GB, free: 122 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/6.139, allocations: 3.498 MB / 1.675 GB, free: 121.3 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001339/6.14, allocations: 1.327 MB / 1.676 GB, free: 120.5 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.004067/6.144, allocations: 0.5542 MB / 1.676 GB, free: 120.5 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001449/6.146, allocations: 0.6131 MB / 1.677 GB, free: 120.5 MB / 0.7761 GB Notification: Performance of SimCode: time 1.463e-06/6.146, allocations: 3.719 kB / 1.677 GB, free: 120.5 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1553/6.301, allocations: 59.05 MB / 1.735 GB, free: 118.5 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002249/6.301, allocations: 261.5 kB / 1.735 GB, free: 118.2 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