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.444/4.444, allocations: 432.7 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 5.466e-05/5.483e-05, allocations: 4.766 kB / 0.5338 GB, free: 12.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2787, allocations: 98.73 MB / 0.6302 GB, free: 6.133 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.272/1.551, allocations: 413.9 MB / 1.034 GB, free: 14.61 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003995/1.552, allocations: 107.3 kB / 1.035 GB, free: 14.55 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 3.326/4.878, allocations: 0.6253 GB / 1.66 GB, free: 64.06 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.304e-06/4.878, allocations: 3.938 kB / 1.66 GB, free: 64.06 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0003061/4.878, allocations: 39.98 kB / 1.66 GB, free: 64.02 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.01072/4.889, allocations: 2.035 MB / 1.662 GB, free: 61.93 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/4.889, allocations: 12.03 kB / 1.662 GB, free: 61.92 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006113/4.89, allocations: 164.8 kB / 1.662 GB, free: 61.75 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001567/4.891, allocations: 217.6 kB / 1.662 GB, free: 61.53 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008728/4.9, allocations: 2.051 MB / 1.664 GB, free: 59.43 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/4.9, allocations: 102.2 kB / 1.664 GB, free: 59.32 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006045/4.901, allocations: 147.8 kB / 1.664 GB, free: 59.18 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003099/4.904, allocations: 1.157 MB / 1.666 GB, free: 57.96 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.294e-05/4.904, allocations: 0 / 1.666 GB, free: 57.96 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/4.904, allocations: 44 kB / 1.666 GB, free: 57.92 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-05/4.904, allocations: 35.94 kB / 1.666 GB, free: 57.89 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002662/4.907, allocations: 0.8749 MB / 1.667 GB, free: 57.01 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.02368/4.931, allocations: 6.936 MB / 1.673 GB, free: 49.67 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00613/4.937, allocations: 1.073 MB / 1.674 GB, free: 48.59 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001671/4.939, allocations: 439.8 kB / 1.675 GB, free: 48.15 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009827/4.94, allocations: 0.6059 MB / 1.675 GB, free: 47.41 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/4.941, allocations: 412.5 kB / 1.676 GB, free: 47 MB / 0.823 GB Notification: Performance of pre-optimization done (n=76): time 5.28e-06/4.941, allocations: 0 / 1.676 GB, free: 47 MB / 0.823 GB Notification: Performance of matching and sorting (n=80): time 0.01036/4.952, allocations: 2.245 MB / 1.678 GB, free: 44.69 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/4.952, allocations: 68.19 kB / 1.678 GB, free: 44.61 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/4.955, allocations: 1.236 MB / 1.679 GB, free: 43.37 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0005628/4.956, allocations: 53.7 kB / 1.679 GB, free: 43.31 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001293/4.957, allocations: 0.6965 MB / 1.68 GB, free: 42.61 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006928/4.958, allocations: 287.9 kB / 1.68 GB, free: 42.32 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002153/4.958, allocations: 28 kB / 1.68 GB, free: 42.29 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001636/4.959, allocations: 365.9 kB / 1.681 GB, free: 41.93 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002139/4.961, allocations: 0.5467 MB / 1.681 GB, free: 41.38 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/4.963, allocations: 0.8432 MB / 1.682 GB, free: 40.42 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00263/4.966, allocations: 0.6748 MB / 1.683 GB, free: 39.75 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/4.966, allocations: 0 / 1.683 GB, free: 39.75 MB / 0.823 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007404/4.973, allocations: 1.77 MB / 1.684 GB, free: 37.97 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005916/4.974, allocations: 2.306 MB / 1.687 GB, free: 35.52 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.321e-05/4.974, allocations: 8 kB / 1.687 GB, free: 35.51 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/4.976, allocations: 256 kB / 1.687 GB, free: 35.26 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003808/4.979, allocations: 267.5 kB / 1.687 GB, free: 35 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/4.982, allocations: 1.583 MB / 1.689 GB, free: 33.37 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006718/4.989, allocations: 163.6 kB / 1.689 GB, free: 33.21 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005146/4.989, allocations: 55.98 kB / 1.689 GB, free: 33.15 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/4.989, allocations: 5.875 kB / 1.689 GB, free: 33.15 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005101/4.994, allocations: 1.605 MB / 1.69 GB, free: 31.54 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.367e-05/4.994, allocations: 8 kB / 1.69 GB, free: 31.53 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/4.996, allocations: 249.2 kB / 1.691 GB, free: 31.29 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002686/4.998, allocations: 259.6 kB / 1.691 GB, free: 31.03 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/5, allocations: 0.9888 MB / 1.692 GB, free: 30.02 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004914/5.005, allocations: 159.6 kB / 1.692 GB, free: 29.86 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004633/5.005, allocations: 59.97 kB / 1.692 GB, free: 29.8 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.0004444/5.006, allocations: 175.2 kB / 1.692 GB, free: 29.63 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005014/5.006, allocations: 146.1 kB / 1.692 GB, free: 29.48 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/5.009, allocations: 1.041 MB / 1.693 GB, free: 28.42 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/5.009, allocations: 11.98 kB / 1.693 GB, free: 28.41 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/5.009, allocations: 4 kB / 1.693 GB, free: 28.4 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002011/5.011, allocations: 0.9237 MB / 1.694 GB, free: 27.44 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.006418/5.017, allocations: 2.776 MB / 1.697 GB, free: 24.57 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/5.018, allocations: 4.062 kB / 1.697 GB, free: 24.57 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/5.019, allocations: 139.8 kB / 1.697 GB, free: 24.43 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004705/5.019, allocations: 118.5 kB / 1.697 GB, free: 24.31 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/5.02, allocations: 27.98 kB / 1.697 GB, free: 24.28 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004243/5.024, allocations: 5.235 MB / 1.702 GB, free: 18.62 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/5.024, allocations: 128 / 1.702 GB, free: 18.62 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/5.027, allocations: 1.557 MB / 1.704 GB, free: 17.01 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/5.029, allocations: 359 kB / 1.704 GB, free: 16.64 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003918/5.029, allocations: 31.94 kB / 1.704 GB, free: 16.61 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002611/5.032, allocations: 87.75 kB / 1.704 GB, free: 16.52 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/5.032, allocations: 56.64 kB / 1.704 GB, free: 16.47 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.745e-05/5.032, allocations: 31.98 kB / 1.705 GB, free: 16.44 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.001972/5.034, allocations: 0.93 MB / 1.705 GB, free: 15.51 MB / 0.823 GB Notification: Performance of sort global known variables: time 5.71e-07/5.034, allocations: 0 / 1.705 GB, free: 15.51 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.005553/5.04, allocations: 1.144 MB / 1.707 GB, free: 14.36 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.005726/5.045, allocations: 2.976 MB / 1.709 GB, free: 11.36 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.006345/5.052, allocations: 2.083 MB / 1.711 GB, free: 9.273 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/5.052, allocations: 0 / 1.711 GB, free: 9.273 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.001515/5.053, allocations: 0.7585 MB / 1.712 GB, free: 8.488 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00662/5.06, allocations: 0.7576 MB / 1.713 GB, free: 7.73 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/5.071, allocations: 3.374 MB / 1.716 GB, free: 4.301 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009552/5.072, allocations: 1.308 MB / 1.718 GB, free: 2.961 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.00401/5.076, allocations: 0.5163 MB / 1.718 GB, free: 2.438 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/5.077, allocations: 0.5813 MB / 1.719 GB, free: 1.855 MB / 0.823 GB Notification: Performance of SimCode: time 1.773e-06/5.077, allocations: 4 kB / 1.719 GB, free: 1.852 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7309/5.808, allocations: 57.26 MB / 1.775 GB, free: 135.2 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000254/5.809, allocations: 250.7 kB / 1.775 GB, free: 134.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