Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5158/0.5158, allocations: 95.61 MB / 110.6 MB, free: 9.371 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00125/0.00125, allocations: 176.4 kB / 134.2 MB, free: 2.273 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.479/1.479, allocations: 170.7 MB / 328.4 MB, free: 12.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001904/0.001904, allocations: 110.1 kB / 390.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004335, allocations: 16 kB / 462.7 MB, free: 35.65 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.139, allocations: 61.54 MB / 0.512 GB, free: 6.051 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.427/1.566, allocations: 435.4 MB / 0.9372 GB, free: 189 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/1.566, allocations: 113.7 kB / 0.9373 GB, free: 189 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Fluid/HeatExchangers/Boreholes/BaseClasses/singleUTubeResistances.mo:64:3-66:74:writable] Warning: beta was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 1.546/3.112, allocations: 454.8 MB / 1.381 GB, free: 64.13 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.693e-06/3.112, allocations: 0 / 1.381 GB, free: 64.13 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001568/3.112, allocations: 39.97 kB / 1.381 GB, free: 64.13 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.006055/3.118, allocations: 2.426 MB / 1.384 GB, free: 63.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/3.118, allocations: 14.98 kB / 1.384 GB, free: 63.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001004/3.119, allocations: 219.3 kB / 1.384 GB, free: 63.11 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0047/3.124, allocations: 2.032 MB / 1.386 GB, free: 62.79 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.719e-05/3.124, allocations: 92.09 kB / 1.386 GB, free: 62.78 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002743/3.124, allocations: 133 kB / 1.386 GB, free: 62.78 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/3.127, allocations: 1.266 MB / 1.387 GB, free: 62.59 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.378e-05/3.127, allocations: 7.609 kB / 1.387 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/3.127, allocations: 52.98 kB / 1.388 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/3.127, allocations: 27.91 kB / 1.388 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/3.129, allocations: 0.9669 MB / 1.389 GB, free: 62.57 MB / 0.5261 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.01198/3.141, allocations: 7.104 MB / 1.395 GB, free: 59.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/3.143, allocations: 1.039 MB / 1.396 GB, free: 59.66 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004381/3.144, allocations: 447.4 kB / 1.397 GB, free: 59.19 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007405/3.144, allocations: 0.4997 MB / 1.397 GB, free: 59.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=72): time 2.234e-06/3.144, allocations: 0 / 1.397 GB, free: 59.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=78): time 0.006146/3.15, allocations: 3.095 MB / 1.4 GB, free: 57.96 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.019e-05/3.151, allocations: 272.7 kB / 1.401 GB, free: 57.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/3.152, allocations: 1.305 MB / 1.402 GB, free: 57.47 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001913/3.152, allocations: 48.61 kB / 1.402 GB, free: 57.44 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005825/3.153, allocations: 0.7197 MB / 1.403 GB, free: 57.19 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002562/3.153, allocations: 288.4 kB / 1.403 GB, free: 57.01 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.987e-05/3.153, allocations: 27.62 kB / 1.403 GB, free: 57.01 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001187/3.154, allocations: 363.5 kB / 1.403 GB, free: 56.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009096/3.154, allocations: 0.5626 MB / 1.404 GB, free: 56.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/3.155, allocations: 0.9211 MB / 1.405 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/3.157, allocations: 0.7573 MB / 1.406 GB, free: 56.25 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/3.157, allocations: 0 / 1.406 GB, free: 56.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.002927/3.159, allocations: 1.881 MB / 1.407 GB, free: 56.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005442/3.16, allocations: 2.824 MB / 1.41 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/3.16, allocations: 17.97 kB / 1.41 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003448/3.16, allocations: 122.9 kB / 1.41 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/3.162, allocations: 334.5 kB / 1.411 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002983/3.165, allocations: 5.287 MB / 1.416 GB, free: 48.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002941/3.168, allocations: 161.6 kB / 1.416 GB, free: 48.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/3.168, allocations: 59.44 kB / 1.416 GB, free: 48.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/3.168, allocations: 8.094 kB / 1.416 GB, free: 48.52 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002553/3.171, allocations: 1.724 MB / 1.418 GB, free: 48.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.989e-05/3.171, allocations: 9.781 kB / 1.418 GB, free: 48.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002592/3.171, allocations: 133.1 kB / 1.418 GB, free: 48.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/3.172, allocations: 302.9 kB / 1.418 GB, free: 48.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/3.175, allocations: 4.71 MB / 1.423 GB, free: 44.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/3.178, allocations: 145.9 kB / 1.423 GB, free: 44.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/3.178, allocations: 57.03 kB / 1.423 GB, free: 44.37 MB / 0.5261 GB Warning: Assuming fixed start value for the following 6 variables: seg.TBouCon.QAve_flow:DISCRETE(unit = "W" fixed = true ) "Average heat flux over a time period" type: Real seg.TBouCon.port.T:DISCRETE(flow=false min = max(0.0, 0.0) start = 288.15 unit = "K" fixed = true nominal = 300.0 ) "Port temperature" type: Real seg.pipFil.capFil2.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))) start = seg.pipFil.TFil_start unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real seg.pipFil.capFil1.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))) start = seg.pipFil.TFil_start unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real seg.pipFil.vol2.dynBal.medium.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = seg.pipFil.vol2.dynBal.T_start unit = "K" fixed = true nominal = 293.15 stateSelect=StateSelect.prefer protected = true ) "Temperature of medium" type: Real seg.pipFil.vol1.dynBal.medium.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = seg.pipFil.vol1.dynBal.T_start unit = "K" fixed = true nominal = 293.15 stateSelect=StateSelect.prefer protected = true ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.seg.TBouCon.UOld,seg.TBouCon.UOld,$PRE.seg.TBouCon.iSam,seg.TBouCon.iSam,$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 (163): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * When equations: 0 * 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%) 5,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001124/3.179, allocations: 0.5897 MB / 1.423 GB, free: 44.14 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/3.18, allocations: 156.7 kB / 1.424 GB, free: 44.06 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/3.182, allocations: 1.068 MB / 1.425 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/3.182, allocations: 7.656 kB / 1.425 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/3.182, allocations: 7.672 kB / 1.425 GB, free: 43.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/3.182, allocations: 3.75 kB / 1.425 GB, free: 43.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/3.184, allocations: 1.476 MB / 1.426 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/3.184, allocations: 2.062 kB / 1.426 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008901/3.185, allocations: 161.2 kB / 1.426 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002862/3.185, allocations: 117.4 kB / 1.426 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-05/3.185, allocations: 22.12 kB / 1.426 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003201/3.188, allocations: 5.282 MB / 1.432 GB, free: 39.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/3.188, allocations: 7 kB / 1.432 GB, free: 39.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/3.191, allocations: 1.481 MB / 1.433 GB, free: 38.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005904/3.191, allocations: 257.1 kB / 1.433 GB, free: 38.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/3.192, allocations: 26.31 kB / 1.433 GB, free: 38.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/3.193, allocations: 78.84 kB / 1.433 GB, free: 38.68 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.959e-05/3.193, allocations: 45.73 kB / 1.433 GB, free: 38.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.517e-05/3.193, allocations: 31.44 kB / 1.433 GB, free: 38.68 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001376/3.194, allocations: 0.9822 MB / 1.434 GB, free: 38.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/3.194, allocations: 2.812 kB / 1.434 GB, free: 38.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003721/3.198, allocations: 1.187 MB / 1.436 GB, free: 38.51 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (seg.pipFil.vol1.dynBal.medium.T,seg.pipFil.vol2.dynBal.medium.T,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: 5 (seg.TBouCon.iSam,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.QAve_flow,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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.001592/3.2, allocations: 0.8228 MB / 1.436 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004118/3.204, allocations: 3.098 MB / 1.439 GB, free: 37.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/3.204, allocations: 3.125 kB / 1.439 GB, free: 37.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/3.205, allocations: 0.8618 MB / 1.44 GB, free: 36.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/3.208, allocations: 0.7608 MB / 1.441 GB, free: 36.85 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005466/3.214, allocations: 4.132 MB / 1.445 GB, free: 35.31 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007556/3.214, allocations: 1.307 MB / 1.446 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001984/3.216, allocations: 494.8 kB / 1.447 GB, free: 34.51 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/3.217, allocations: 120.7 kB / 1.447 GB, free: 34.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.132e-06/3.217, allocations: 0 / 1.447 GB, free: 34.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.05643/3.273, allocations: 39.11 MB / 1.485 GB, free: 32.09 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)