Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.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.",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seg.port_a1.m_flow|seg.TBouCon.port.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.",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.335/2.335, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 177.1 kB / 498.1 MB, free: 5.773 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 223.2 MB / 0.7948 GB, free: 17.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008953/0.0008954, allocations: 93.41 kB / 0.9346 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003672, allocations: 12.06 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3551, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.167/1.522, allocations: 442.4 MB / 1.655 GB, free: 2.969 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/1.522, allocations: 110 kB / 1.655 GB, free: 2.906 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.087/3.609, allocations: 0.6655 GB / 2.32 GB, free: 8.852 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.805e-06/3.609, allocations: 0 / 2.32 GB, free: 8.852 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002803/3.61, allocations: 43.92 kB / 2.321 GB, free: 8.809 MB / 1.167 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.007937/3.618, allocations: 2.333 MB / 2.323 GB, free: 6.418 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/3.618, allocations: 8.031 kB / 2.323 GB, free: 6.41 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001266/3.619, allocations: 214.4 kB / 2.323 GB, free: 6.199 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005561/3.625, allocations: 2.093 MB / 2.325 GB, free: 4.051 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/3.625, allocations: 102.1 kB / 2.325 GB, free: 3.949 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006084/3.625, allocations: 143.9 kB / 2.325 GB, free: 3.809 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002884/3.628, allocations: 1.196 MB / 2.326 GB, free: 2.551 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.23e-05/3.628, allocations: 3.984 kB / 2.326 GB, free: 2.547 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001588/3.628, allocations: 48 kB / 2.326 GB, free: 2.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.749e-05/3.629, allocations: 32 kB / 2.327 GB, free: 2.469 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/3.63, allocations: 0.9139 MB / 2.327 GB, free: 1.547 MB / 1.167 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.6801/4.31, allocations: 6.959 MB / 2.334 GB, free: 246.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003063/4.313, allocations: 1.085 MB / 2.335 GB, free: 246.8 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005721/4.314, allocations: 0.6073 MB / 2.336 GB, free: 246.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007955/4.315, allocations: 442 kB / 2.336 GB, free: 246 MB / 1.167 GB Notification: Performance of pre-optimization done (n=78): time 3.015e-06/4.315, allocations: 0 / 2.336 GB, free: 246 MB / 1.167 GB Notification: Performance of matching and sorting (n=82): time 0.007207/4.322, allocations: 2.922 MB / 2.339 GB, free: 245.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/4.322, allocations: 65.78 kB / 2.339 GB, free: 245.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/4.325, allocations: 1.261 MB / 2.34 GB, free: 245 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003299/4.325, allocations: 52.06 kB / 2.34 GB, free: 245 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000737/4.326, allocations: 0.6826 MB / 2.341 GB, free: 244.8 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/4.326, allocations: 294 kB / 2.341 GB, free: 244.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.512e-05/4.326, allocations: 25.91 kB / 2.341 GB, free: 244.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.000121/4.327, allocations: 357.3 kB / 2.342 GB, free: 244.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/4.328, allocations: 0.5583 MB / 2.342 GB, free: 244.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/4.329, allocations: 0.8457 MB / 2.343 GB, free: 244 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/4.33, allocations: 0.6795 MB / 2.344 GB, free: 244 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/4.33, allocations: 3.312 kB / 2.344 GB, free: 244 MB / 1.167 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003736/4.334, allocations: 1.761 MB / 2.346 GB, free: 243.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005513/4.335, allocations: 2.313 MB / 2.348 GB, free: 241.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.215e-05/4.335, allocations: 7.641 kB / 2.348 GB, free: 241.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008469/4.335, allocations: 255.1 kB / 2.348 GB, free: 241.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/4.337, allocations: 265.4 kB / 2.348 GB, free: 241.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/4.338, allocations: 1.588 MB / 2.35 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003103/4.341, allocations: 152.6 kB / 2.35 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002162/4.342, allocations: 64.41 kB / 2.35 GB, free: 240.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/4.342, allocations: 3.344 kB / 2.35 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003116/4.345, allocations: 1.608 MB / 2.352 GB, free: 240.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/4.345, allocations: 9.5 kB / 2.352 GB, free: 240.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000669/4.345, allocations: 247.5 kB / 2.352 GB, free: 240.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/4.347, allocations: 267.7 kB / 2.352 GB, free: 240.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/4.348, allocations: 0.9834 MB / 2.353 GB, free: 239.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002963/4.351, allocations: 152.8 kB / 2.353 GB, free: 239.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001885/4.351, allocations: 60.19 kB / 2.353 GB, free: 239.8 MB / 1.167 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.001166/4.352, allocations: 0.5004 MB / 2.354 GB, free: 239.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004773/4.353, allocations: 148.8 kB / 2.354 GB, free: 239.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002203/4.355, allocations: 1.064 MB / 2.355 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.805e-05/4.355, allocations: 8.688 kB / 2.355 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/4.355, allocations: 2 kB / 2.355 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001465/4.356, allocations: 0.952 MB / 2.356 GB, free: 239.2 MB / 1.167 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.005127/4.362, allocations: 2.854 MB / 2.359 GB, free: 238.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/4.362, allocations: 0 / 2.359 GB, free: 238.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/4.362, allocations: 139.9 kB / 2.359 GB, free: 238.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002676/4.363, allocations: 122.7 kB / 2.359 GB, free: 238.7 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.848e-05/4.363, allocations: 29.12 kB / 2.359 GB, free: 238.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003102/4.366, allocations: 5.294 MB / 2.364 GB, free: 234.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/4.366, allocations: 7.594 kB / 2.364 GB, free: 234.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/4.369, allocations: 1.645 MB / 2.366 GB, free: 233.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/4.37, allocations: 373.4 kB / 2.366 GB, free: 233.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005271/4.37, allocations: 26.2 kB / 2.366 GB, free: 233.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/4.372, allocations: 93.55 kB / 2.366 GB, free: 233.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/4.372, allocations: 59.27 kB / 2.366 GB, free: 233.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.623e-05/4.372, allocations: 28.05 kB / 2.366 GB, free: 233.5 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001822/4.374, allocations: 0.9553 MB / 2.367 GB, free: 233.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.6e-07/4.374, allocations: 3.75 kB / 2.367 GB, free: 233.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005103/4.379, allocations: 1.139 MB / 2.368 GB, free: 233.4 MB / 1.167 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.002108/4.382, allocations: 0.8183 MB / 2.369 GB, free: 233.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004703/4.386, allocations: 2.101 MB / 2.371 GB, free: 233.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/4.386, allocations: 0 / 2.371 GB, free: 233.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001128/4.387, allocations: 0.8012 MB / 2.372 GB, free: 232.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004024/4.391, allocations: 0.7502 MB / 2.373 GB, free: 232.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006871/4.398, allocations: 4.197 MB / 2.377 GB, free: 231.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/4.4, allocations: 1.306 MB / 2.378 GB, free: 230.6 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00239/4.402, allocations: 458.5 kB / 2.379 GB, free: 230.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000625/4.403, allocations: 127.6 kB / 2.379 GB, free: 230.6 MB / 1.167 GB Notification: Performance of SimCode: time 7.92e-07/4.403, allocations: 0 / 2.379 GB, free: 230.6 MB / 1.167 GB Notification: Performance of Templates: time 0.06018/4.463, allocations: 39.2 MB / 2.417 GB, free: 229.7 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches