Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) 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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.29/2.29, allocations: 251 MB / 265.9 MB, free: 11.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001463/0.001463, allocations: 173.2 kB / 325.5 MB, free: 2.879 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.568/2.568, allocations: 205.4 MB / 0.5764 GB, free: 21.12 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 95.88 kB / 0.6809 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004692/0.0004692, allocations: 11.25 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2077, allocations: 106.3 MB / 0.8988 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.237/1.445, allocations: 422.2 MB / 1.311 GB, free: 13.78 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004232/1.446, allocations: 119 kB / 1.311 GB, free: 13.71 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.401/4.846, allocations: 0.6323 GB / 1.943 GB, free: 149.1 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.066e-06/4.846, allocations: 0 / 1.943 GB, free: 149.1 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002603/4.846, allocations: 42.42 kB / 1.944 GB, free: 149.1 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.009782/4.856, allocations: 2.342 MB / 1.946 GB, free: 146.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/4.856, allocations: 8.031 kB / 1.946 GB, free: 146.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006437/4.857, allocations: 168.8 kB / 1.946 GB, free: 146.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00128/4.858, allocations: 209.7 kB / 1.946 GB, free: 146.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007604/4.866, allocations: 2.062 MB / 1.948 GB, free: 144.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/4.866, allocations: 104.5 kB / 1.948 GB, free: 144.2 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005508/4.867, allocations: 139.9 kB / 1.948 GB, free: 144 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003192/4.87, allocations: 1.193 MB / 1.95 GB, free: 142.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.908e-05/4.87, allocations: 7.938 kB / 1.95 GB, free: 142.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/4.87, allocations: 44 kB / 1.95 GB, free: 142.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-05/4.87, allocations: 31.98 kB / 1.95 GB, free: 142.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002636/4.873, allocations: 0.9166 MB / 1.951 GB, free: 141.8 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01844/4.891, allocations: 6.952 MB / 1.957 GB, free: 134.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004329/4.896, allocations: 1.082 MB / 1.958 GB, free: 133.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007886/4.897, allocations: 0.5979 MB / 1.959 GB, free: 132.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001095/4.898, allocations: 438 kB / 1.959 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=78): time 4.007e-06/4.898, allocations: 2.5 kB / 1.959 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=82): time 0.009566/4.907, allocations: 2.916 MB / 1.962 GB, free: 129.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/4.907, allocations: 64.06 kB / 1.962 GB, free: 129.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002612/4.91, allocations: 1.252 MB / 1.964 GB, free: 127.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0004516/4.911, allocations: 53.64 kB / 1.964 GB, free: 127.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008729/4.911, allocations: 0.6816 MB / 1.964 GB, free: 127.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005002/4.912, allocations: 298.2 kB / 1.965 GB, free: 126.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/4.912, allocations: 28 kB / 1.965 GB, free: 126.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001181/4.912, allocations: 357.9 kB / 1.965 GB, free: 126.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/4.914, allocations: 0.5569 MB / 1.965 GB, free: 125.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001849/4.916, allocations: 0.8656 MB / 1.966 GB, free: 125 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001907/4.918, allocations: 0.6785 MB / 1.967 GB, free: 124.3 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/4.918, allocations: 4 kB / 1.967 GB, free: 124.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005122/4.923, allocations: 1.765 MB / 1.969 GB, free: 122.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000491/4.923, allocations: 2.315 MB / 1.971 GB, free: 120.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.732e-05/4.923, allocations: 8 kB / 1.971 GB, free: 120.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/4.924, allocations: 251.5 kB / 1.971 GB, free: 119.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0028/4.927, allocations: 267.6 kB / 1.971 GB, free: 119.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/4.929, allocations: 1.592 MB / 1.973 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004811/4.934, allocations: 156.2 kB / 1.973 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004052/4.934, allocations: 55.98 kB / 1.973 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/4.934, allocations: 4 kB / 1.973 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004275/4.939, allocations: 1.61 MB / 1.975 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.498e-05/4.939, allocations: 8 kB / 1.975 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009376/4.94, allocations: 246.7 kB / 1.975 GB, free: 115.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/4.942, allocations: 263.6 kB / 1.975 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/4.944, allocations: 0.9895 MB / 1.976 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004702/4.949, allocations: 155.6 kB / 1.976 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003848/4.949, allocations: 55.98 kB / 1.976 GB, free: 114.4 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 () * Number of clocked 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 {2 26} Notification: Performance of prepare postOptimizeDAE: time 0.001415/4.95, allocations: 0.493 MB / 1.977 GB, free: 113.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004949/4.951, allocations: 146.1 kB / 1.977 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002865/4.954, allocations: 1.072 MB / 1.978 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/4.954, allocations: 8 kB / 1.978 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/4.954, allocations: 0 / 1.978 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002093/4.956, allocations: 0.948 MB / 1.979 GB, free: 111.7 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.006618/4.963, allocations: 2.839 MB / 1.982 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/4.963, allocations: 0 / 1.982 GB, free: 108.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/4.964, allocations: 148 kB / 1.982 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004837/4.965, allocations: 122.4 kB / 1.982 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001602/4.965, allocations: 27.98 kB / 1.982 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004352/4.969, allocations: 5.289 MB / 1.987 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/4.969, allocations: 7.969 kB / 1.987 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003648/4.973, allocations: 1.649 MB / 1.989 GB, free: 101 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/4.974, allocations: 363 kB / 1.989 GB, free: 100.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004374/4.975, allocations: 24 kB / 1.989 GB, free: 100.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002651/4.977, allocations: 95.75 kB / 1.989 GB, free: 100.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/4.978, allocations: 52.56 kB / 1.989 GB, free: 100.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.997e-05/4.978, allocations: 31.98 kB / 1.989 GB, free: 100.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002034/4.98, allocations: 0.9466 MB / 1.99 GB, free: 99.51 MB / 0.8855 GB Notification: Performance of sort global known variables: time 8.21e-07/4.98, allocations: 3.938 kB / 1.99 GB, free: 99.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.006063/4.986, allocations: 1.133 MB / 1.991 GB, free: 98.37 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.pipFil.vol1.dynBal.U,seg.pipFil.vol2.dynBal.U,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) * Number of clocked states: 0 () * 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.00619/4.992, allocations: 3.177 MB / 1.995 GB, free: 95.25 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.006515/4.999, allocations: 2.101 MB / 1.997 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/4.999, allocations: 4.062 kB / 1.997 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001632/5, allocations: 0.7924 MB / 1.997 GB, free: 92.31 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006635/5.007, allocations: 0.757 MB / 1.998 GB, free: 91.58 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/5.02, allocations: 8.943 MB / 2.007 GB, free: 82.57 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009923/5.021, allocations: 1.309 MB / 2.008 GB, free: 81.23 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003236/5.024, allocations: 459.1 kB / 2.009 GB, free: 80.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00176/5.026, allocations: 0.6086 MB / 2.009 GB, free: 80.19 MB / 0.8855 GB Notification: Performance of SimCode: time 9.82e-07/5.026, allocations: 0 / 2.009 GB, free: 80.19 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1366/5.163, allocations: 54.59 MB / 2.063 GB, free: 26.18 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002701/5.163, allocations: 294.5 kB / 2.063 GB, free: 25.81 MB / 0.8855 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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 /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources/freeArray.c:13: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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