Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.548/4.548, allocations: 460.4 MB / 472.6 MB, free: 5.383 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.52e-05/3.531e-05, allocations: 4 kB / 0.5682 GB, free: 10.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.25, allocations: 106.2 MB / 0.6719 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.322/1.572, allocations: 422 MB / 1.084 GB, free: 5.781 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000448/1.573, allocations: 103.8 kB / 1.084 GB, free: 5.727 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.48/5.053, allocations: 0.6305 GB / 1.715 GB, free: 46.64 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.713e-06/5.053, allocations: 0 / 1.715 GB, free: 46.64 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001924/5.053, allocations: 40 kB / 1.715 GB, free: 46.6 MB / 0.8698 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.008387/5.061, allocations: 2.027 MB / 1.717 GB, free: 44.52 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/5.062, allocations: 12.03 kB / 1.717 GB, free: 44.51 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005436/5.062, allocations: 164.8 kB / 1.717 GB, free: 44.34 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/5.063, allocations: 205.7 kB / 1.717 GB, free: 44.14 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007214/5.071, allocations: 2.051 MB / 1.719 GB, free: 42.03 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/5.071, allocations: 110 kB / 1.719 GB, free: 41.92 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004108/5.071, allocations: 143.9 kB / 1.719 GB, free: 41.78 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/5.074, allocations: 1.161 MB / 1.72 GB, free: 40.56 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.099e-05/5.074, allocations: 0 / 1.72 GB, free: 40.56 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001578/5.074, allocations: 48 kB / 1.72 GB, free: 40.52 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-05/5.074, allocations: 28 kB / 1.72 GB, free: 40.49 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002312/5.077, allocations: 0.8788 MB / 1.721 GB, free: 39.61 MB / 0.8698 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.0179/5.095, allocations: 6.951 MB / 1.728 GB, free: 32.25 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004309/5.099, allocations: 1.053 MB / 1.729 GB, free: 31.19 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/5.1, allocations: 450.3 kB / 1.73 GB, free: 30.74 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007256/5.101, allocations: 0.6059 MB / 1.73 GB, free: 30.01 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009741/5.102, allocations: 432.4 kB / 1.731 GB, free: 29.57 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 3.687e-06/5.102, allocations: 0 / 1.731 GB, free: 29.57 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.007119/5.109, allocations: 2.269 MB / 1.733 GB, free: 27.24 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/5.109, allocations: 72.11 kB / 1.733 GB, free: 27.16 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002423/5.112, allocations: 1.231 MB / 1.734 GB, free: 25.92 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004069/5.112, allocations: 53.64 kB / 1.734 GB, free: 25.86 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007812/5.113, allocations: 0.6887 MB / 1.735 GB, free: 25.16 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004348/5.113, allocations: 295.8 kB / 1.735 GB, free: 24.87 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/5.113, allocations: 24 kB / 1.735 GB, free: 24.85 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001077/5.113, allocations: 361.9 kB / 1.735 GB, free: 24.49 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/5.115, allocations: 0.5428 MB / 1.736 GB, free: 23.95 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/5.117, allocations: 0.8521 MB / 1.737 GB, free: 22.98 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/5.118, allocations: 0.6788 MB / 1.737 GB, free: 22.3 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.902e-06/5.118, allocations: 0 / 1.737 GB, free: 22.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004359/5.123, allocations: 1.727 MB / 1.739 GB, free: 20.56 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004675/5.123, allocations: 2.305 MB / 1.741 GB, free: 18.11 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.269e-05/5.123, allocations: 8 kB / 1.741 GB, free: 18.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/5.124, allocations: 259.5 kB / 1.742 GB, free: 17.85 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002701/5.127, allocations: 267.5 kB / 1.742 GB, free: 17.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00168/5.129, allocations: 1.576 MB / 1.743 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004762/5.133, allocations: 163.7 kB / 1.744 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/5.134, allocations: 56.08 kB / 1.744 GB, free: 15.75 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/5.134, allocations: 10.97 kB / 1.744 GB, free: 15.74 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003938/5.138, allocations: 1.57 MB / 1.745 GB, free: 14.17 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/5.138, allocations: 11.98 kB / 1.745 GB, free: 14.16 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000916/5.139, allocations: 241.1 kB / 1.745 GB, free: 13.92 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/5.141, allocations: 263.6 kB / 1.746 GB, free: 13.66 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/5.142, allocations: 0.9926 MB / 1.747 GB, free: 12.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00463/5.147, allocations: 167.6 kB / 1.747 GB, free: 12.48 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000217/5.147, allocations: 63.97 kB / 1.747 GB, free: 12.42 MB / 0.8698 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.0004067/5.148, allocations: 174 kB / 1.747 GB, free: 12.24 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003986/5.148, allocations: 146.2 kB / 1.747 GB, free: 12.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002712/5.151, allocations: 1.053 MB / 1.748 GB, free: 11.02 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/5.151, allocations: 8 kB / 1.748 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/5.151, allocations: 4 kB / 1.748 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001918/5.153, allocations: 0.9314 MB / 1.749 GB, free: 10.04 MB / 0.8698 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.006123/5.159, allocations: 2.828 MB / 1.752 GB, free: 7.113 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/5.159, allocations: 0 / 1.752 GB, free: 7.113 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/5.16, allocations: 147.8 kB / 1.752 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004524/5.161, allocations: 122.5 kB / 1.752 GB, free: 6.84 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.761e-05/5.161, allocations: 27.98 kB / 1.752 GB, free: 6.812 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004119/5.165, allocations: 5.239 MB / 1.757 GB, free: 1.145 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/5.165, allocations: 8.062 kB / 1.757 GB, free: 1.137 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6518/5.817, allocations: 1.611 MB / 1.759 GB, free: 149.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/5.818, allocations: 371.5 kB / 1.759 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003511/5.819, allocations: 26.44 kB / 1.759 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002506/5.821, allocations: 95.5 kB / 1.759 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/5.822, allocations: 55.55 kB / 1.759 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/5.822, allocations: 35.33 kB / 1.759 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.002658/5.824, allocations: 0.9308 MB / 1.76 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 8.51e-07/5.824, allocations: 2.531 kB / 1.76 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006558/5.831, allocations: 1.134 MB / 1.761 GB, free: 149.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (73): * Single equations (assignments): 63 * 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.006473/5.838, allocations: 3.171 MB / 1.765 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.006884/5.844, allocations: 2.084 MB / 1.767 GB, free: 148 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/5.845, allocations: 2.844 kB / 1.767 GB, free: 148 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001752/5.846, allocations: 0.7711 MB / 1.767 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007551/5.854, allocations: 0.7599 MB / 1.768 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/5.865, allocations: 3.4 MB / 1.771 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/5.867, allocations: 1.313 MB / 1.773 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.004551/5.871, allocations: 0.5271 MB / 1.773 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/5.873, allocations: 0.5743 MB / 1.774 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.492e-06/5.873, allocations: 0 / 1.774 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1893/6.062, allocations: 57.41 MB / 1.83 GB, free: 144.3 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002825/6.063, allocations: 250.9 kB / 1.83 GB, free: 143.9 MB / 0.8698 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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.c:7: In file included from ./Buildings_7_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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c:2: In file included from ./Buildings_7_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_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c:7: In file included from ./Buildings_7_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 7.0.0/Resources/C-Sources/freeArray.c:13: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.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_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o] Error 1