Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.619/4.619, allocations: 464.6 MB / 476.8 MB, free: 2.105 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.254e-05/4.285e-05, allocations: 4 kB / 0.5732 GB, free: 5.594 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2953, allocations: 107.2 MB / 0.6778 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.349/1.645, allocations: 422.4 MB / 1.09 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004105/1.645, allocations: 109.4 kB / 1.09 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 3.615/5.26, allocations: 0.6305 GB / 1.721 GB, free: 75.84 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.674e-06/5.26, allocations: 0 / 1.721 GB, free: 75.84 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002095/5.26, allocations: 51.92 kB / 1.721 GB, free: 75.79 MB / 0.8855 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.007622/5.268, allocations: 2.027 MB / 1.723 GB, free: 73.71 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/5.268, allocations: 12.03 kB / 1.723 GB, free: 73.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004364/5.269, allocations: 164.8 kB / 1.723 GB, free: 73.53 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/5.27, allocations: 209.7 kB / 1.723 GB, free: 73.32 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007264/5.277, allocations: 2.043 MB / 1.725 GB, free: 71.23 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/5.277, allocations: 102.2 kB / 1.725 GB, free: 71.12 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005786/5.278, allocations: 140.8 kB / 1.726 GB, free: 70.99 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003161/5.281, allocations: 1.165 MB / 1.727 GB, free: 69.77 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/5.281, allocations: 7.891 kB / 1.727 GB, free: 69.76 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001616/5.281, allocations: 48 kB / 1.727 GB, free: 69.71 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.118e-05/5.281, allocations: 31.98 kB / 1.727 GB, free: 69.68 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002321/5.284, allocations: 0.8749 MB / 1.728 GB, free: 68.8 MB / 0.8855 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.01804/5.302, allocations: 6.955 MB / 1.734 GB, free: 61.44 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00422/5.306, allocations: 1.061 MB / 1.735 GB, free: 60.37 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/5.307, allocations: 452.8 kB / 1.736 GB, free: 59.93 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007485/5.308, allocations: 0.602 MB / 1.736 GB, free: 59.2 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009692/5.309, allocations: 424.6 kB / 1.737 GB, free: 58.77 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=78): time 4.017e-06/5.309, allocations: 0 / 1.737 GB, free: 58.77 MB / 0.8855 GB Notification: Performance of matching and sorting (n=82): time 0.007276/5.316, allocations: 2.272 MB / 1.739 GB, free: 56.43 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/5.316, allocations: 64.19 kB / 1.739 GB, free: 56.36 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002748/5.319, allocations: 1.231 MB / 1.74 GB, free: 55.11 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0005255/5.32, allocations: 57.7 kB / 1.74 GB, free: 55.05 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009434/5.32, allocations: 0.6887 MB / 1.741 GB, free: 54.36 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005415/5.321, allocations: 291.8 kB / 1.741 GB, free: 54.07 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/5.321, allocations: 28 kB / 1.741 GB, free: 54.04 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001209/5.321, allocations: 357.9 kB / 1.742 GB, free: 53.68 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001474/5.323, allocations: 0.5428 MB / 1.742 GB, free: 53.14 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/5.325, allocations: 0.8525 MB / 1.743 GB, free: 52.17 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/5.326, allocations: 0.6791 MB / 1.744 GB, free: 51.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/5.326, allocations: 4 kB / 1.744 GB, free: 51.49 MB / 0.8855 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004574/5.331, allocations: 1.723 MB / 1.745 GB, free: 49.75 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005107/5.331, allocations: 2.308 MB / 1.748 GB, free: 47.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.202e-05/5.331, allocations: 8 kB / 1.748 GB, free: 47.29 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/5.333, allocations: 254.1 kB / 1.748 GB, free: 47.05 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/5.335, allocations: 271.5 kB / 1.748 GB, free: 46.78 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/5.337, allocations: 1.576 MB / 1.75 GB, free: 45.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004986/5.342, allocations: 167.6 kB / 1.75 GB, free: 44.99 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002877/5.342, allocations: 59.97 kB / 1.75 GB, free: 44.93 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/5.342, allocations: 4 kB / 1.75 GB, free: 44.93 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004304/5.347, allocations: 1.566 MB / 1.752 GB, free: 43.36 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.98e-05/5.347, allocations: 16.12 kB / 1.752 GB, free: 43.34 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009527/5.348, allocations: 248.5 kB / 1.752 GB, free: 43.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002498/5.35, allocations: 259.6 kB / 1.752 GB, free: 42.85 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/5.352, allocations: 0.9779 MB / 1.753 GB, free: 41.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005072/5.357, allocations: 171.5 kB / 1.753 GB, free: 41.68 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004975/5.358, allocations: 55.92 kB / 1.753 GB, free: 41.62 MB / 0.8855 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.000436/5.358, allocations: 182.7 kB / 1.753 GB, free: 41.44 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004993/5.358, allocations: 150.4 kB / 1.754 GB, free: 41.29 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002854/5.361, allocations: 1.045 MB / 1.755 GB, free: 40.22 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/5.361, allocations: 15.98 kB / 1.755 GB, free: 40.21 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/5.361, allocations: 7.953 kB / 1.755 GB, free: 40.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002014/5.363, allocations: 0.9353 MB / 1.755 GB, free: 39.22 MB / 0.8855 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.006739/5.37, allocations: 2.824 MB / 1.758 GB, free: 36.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/5.37, allocations: 0 / 1.758 GB, free: 36.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00152/5.372, allocations: 147.9 kB / 1.758 GB, free: 36.16 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005141/5.372, allocations: 118.5 kB / 1.758 GB, free: 36.04 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000224/5.373, allocations: 27.98 kB / 1.759 GB, free: 36.01 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004363/5.377, allocations: 5.243 MB / 1.764 GB, free: 30.34 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/5.377, allocations: 0 / 1.764 GB, free: 30.34 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00375/5.381, allocations: 1.613 MB / 1.765 GB, free: 28.65 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/5.382, allocations: 363 kB / 1.766 GB, free: 28.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005198/5.383, allocations: 35.94 kB / 1.766 GB, free: 28.24 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002871/5.386, allocations: 95.69 kB / 1.766 GB, free: 28.14 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/5.386, allocations: 56.7 kB / 1.766 GB, free: 28.09 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/5.386, allocations: 32.05 kB / 1.766 GB, free: 28.05 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002225/5.388, allocations: 0.9297 MB / 1.767 GB, free: 27.12 MB / 0.8855 GB Notification: Performance of sort global known variables: time 8.72e-07/5.388, allocations: 0 / 1.767 GB, free: 27.12 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.006434/5.395, allocations: 1.136 MB / 1.768 GB, free: 25.99 MB / 0.8855 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.006533/5.401, allocations: 3.189 MB / 1.771 GB, free: 22.77 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.006962/5.408, allocations: 2.079 MB / 1.773 GB, free: 20.68 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/5.408, allocations: 7.938 kB / 1.773 GB, free: 20.67 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001765/5.41, allocations: 0.7625 MB / 1.774 GB, free: 19.88 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006997/5.417, allocations: 0.7588 MB / 1.774 GB, free: 19.12 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/5.428, allocations: 3.407 MB / 1.778 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009498/5.429, allocations: 1.308 MB / 1.779 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.004235/5.434, allocations: 0.52 MB / 1.78 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/5.435, allocations: 0.5812 MB / 1.78 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of SimCode: time 1.503e-06/5.435, allocations: 4 kB / 1.78 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8982/6.334, allocations: 57.4 MB / 1.836 GB, free: 157.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0007702/6.334, allocations: 259.5 kB / 1.836 GB, free: 157.1 MB / 0.8855 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 latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.c:7: In file included from ./Buildings_latest_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 latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c In file included from Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.c:7: In file included from ./Buildings_latest_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 latest/Resources/C-Sources/freeArray.c:13: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/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_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o' failed make: *** [Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_functions.o] Error 1