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.6983/0.6983, allocations: 94.7 MB / 107.3 MB, free: 5.176 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.001568/0.001567, allocations: 181.6 kB / 130.7 MB, free: 7.539 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.738/1.738, allocations: 170.5 MB / 324.5 MB, free: 3.973 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.001635/0.001635, allocations: 120.8 kB / 386.6 MB, free: 16.18 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.966e-05/3.969e-05, allocations: 4 kB / 456 MB, free: 11.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4475/0.4475, allocations: 61.51 MB / 0.5054 GB, free: 49.39 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.094/1.542, allocations: 435.3 MB / 0.9305 GB, free: 177.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/1.542, allocations: 107.4 kB / 0.9306 GB, free: 177.3 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.561/3.103, allocations: 453.5 MB / 1.373 GB, free: 63.27 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.855e-06/3.103, allocations: 1.094 kB / 1.373 GB, free: 63.27 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002035/3.104, allocations: 40.61 kB / 1.374 GB, free: 63.27 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.008044/3.112, allocations: 2.144 MB / 1.376 GB, free: 62.32 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/3.112, allocations: 9.062 kB / 1.376 GB, free: 62.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/3.113, allocations: 214.3 kB / 1.376 GB, free: 62.22 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006024/3.119, allocations: 2.013 MB / 1.378 GB, free: 61.82 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/3.119, allocations: 103.5 kB / 1.378 GB, free: 61.81 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003507/3.12, allocations: 134.2 kB / 1.378 GB, free: 61.81 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00281/3.123, allocations: 1.244 MB / 1.379 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/3.123, allocations: 1.25 kB / 1.379 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/3.123, allocations: 44.91 kB / 1.379 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.29e-05/3.123, allocations: 27.09 kB / 1.379 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/3.125, allocations: 0.9507 MB / 1.38 GB, free: 61.6 MB / 0.5261 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.01206/3.137, allocations: 7.097 MB / 1.387 GB, free: 58.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/3.139, allocations: 1.033 MB / 1.388 GB, free: 58.65 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006014/3.14, allocations: 437.2 kB / 1.389 GB, free: 58.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004277/3.14, allocations: 446.8 kB / 1.389 GB, free: 58.17 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000717/3.141, allocations: 0.4984 MB / 1.39 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=72): time 2.144e-06/3.141, allocations: 0 / 1.39 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=78): time 0.005431/3.146, allocations: 2.375 MB / 1.392 GB, free: 57.31 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/3.146, allocations: 281.1 kB / 1.392 GB, free: 57 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/3.148, allocations: 1.287 MB / 1.393 GB, free: 56.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002433/3.149, allocations: 52.73 kB / 1.393 GB, free: 56.77 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006242/3.149, allocations: 0.72 MB / 1.394 GB, free: 56.52 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002682/3.149, allocations: 288 kB / 1.394 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.457e-05/3.15, allocations: 28.28 kB / 1.394 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001034/3.15, allocations: 356.8 kB / 1.395 GB, free: 56.04 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008539/3.15, allocations: 0.5488 MB / 1.395 GB, free: 56.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/3.152, allocations: 0.9031 MB / 1.396 GB, free: 55.68 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/3.153, allocations: 0.7554 MB / 1.397 GB, free: 55.59 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/3.153, allocations: 2.844 kB / 1.397 GB, free: 55.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003271/3.156, allocations: 1.859 MB / 1.399 GB, free: 55.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007929/3.157, allocations: 2.826 MB / 1.401 GB, free: 52.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/3.157, allocations: 7.438 kB / 1.401 GB, free: 52.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003681/3.157, allocations: 126.9 kB / 1.402 GB, free: 52.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/3.159, allocations: 328.1 kB / 1.402 GB, free: 52.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003142/3.162, allocations: 5.26 MB / 1.407 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/3.165, allocations: 145.2 kB / 1.407 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/3.165, allocations: 61.09 kB / 1.407 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/3.165, allocations: 7.438 kB / 1.407 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002791/3.168, allocations: 1.702 MB / 1.409 GB, free: 47.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/3.168, allocations: 7.344 kB / 1.409 GB, free: 47.72 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000273/3.168, allocations: 130.6 kB / 1.409 GB, free: 47.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/3.17, allocations: 301.5 kB / 1.409 GB, free: 47.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/3.173, allocations: 4.681 MB / 1.414 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002976/3.176, allocations: 145 kB / 1.414 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/3.176, allocations: 58.77 kB / 1.414 GB, free: 43.7 MB / 0.5261 GB Warning: Assuming fixed start value for the following 6 variables: seg.TBouCon.QAve_flow:DISCRETE(unit = "W" fixed = false ) "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 = false 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 = false 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 = false 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" 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" 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 () * 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.0006399/3.177, allocations: 274 kB / 1.414 GB, free: 43.55 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/3.177, allocations: 155.8 kB / 1.415 GB, free: 43.47 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002181/3.179, allocations: 1.05 MB / 1.416 GB, free: 43.33 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/3.179, allocations: 7.281 kB / 1.416 GB, free: 43.33 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/3.179, allocations: 5.438 kB / 1.416 GB, free: 43.33 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/3.179, allocations: 3.891 kB / 1.416 GB, free: 43.33 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/3.182, allocations: 1.48 MB / 1.417 GB, free: 43.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/3.182, allocations: 3.375 kB / 1.417 GB, free: 43.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008463/3.183, allocations: 160.6 kB / 1.417 GB, free: 43.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000282/3.183, allocations: 119.6 kB / 1.417 GB, free: 43.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.105e-05/3.183, allocations: 29.3 kB / 1.417 GB, free: 43.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003113/3.186, allocations: 5.247 MB / 1.422 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/3.186, allocations: 0 / 1.422 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/3.188, allocations: 1.471 MB / 1.424 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006575/3.189, allocations: 258 kB / 1.424 GB, free: 38.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/3.189, allocations: 25.66 kB / 1.424 GB, free: 38.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/3.19, allocations: 68.16 kB / 1.424 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/3.191, allocations: 52.91 kB / 1.424 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.984e-05/3.191, allocations: 31.34 kB / 1.424 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001648/3.192, allocations: 0.9603 MB / 1.425 GB, free: 37.97 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.92e-07/3.192, allocations: 0 / 1.425 GB, free: 37.97 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005512/3.198, allocations: 1.196 MB / 1.426 GB, free: 37.91 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) * 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.002248/3.2, allocations: 0.8369 MB / 1.427 GB, free: 37.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004827/3.205, allocations: 3.11 MB / 1.43 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/3.205, allocations: 2.875 kB / 1.43 GB, free: 36.68 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001192/3.206, allocations: 0.8593 MB / 1.431 GB, free: 36.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004109/3.21, allocations: 0.7621 MB / 1.432 GB, free: 36.26 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/3.216, allocations: 2.961 MB / 1.435 GB, free: 35.31 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007694/3.216, allocations: 1.31 MB / 1.436 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002606/3.219, allocations: 0.568 MB / 1.437 GB, free: 34.49 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003204/3.219, allocations: 99.48 kB / 1.437 GB, free: 34.48 MB / 0.5261 GB Notification: Performance of SimCode: time 1.733e-06/3.219, allocations: 0 / 1.437 GB, free: 34.48 MB / 0.5261 GB Notification: Performance of Templates: time 0.07047/3.29, allocations: 42.38 MB / 1.478 GB, free: 24.17 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)