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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4893/0.4893, allocations: 94.73 MB / 102 MB, free: 10.36 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.00112/0.00112, allocations: 181.3 kB / 125.3 MB, free: 11.98 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.163/1.163, allocations: 170.5 MB / 319 MB, free: 9.305 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.001774/0.001774, allocations: 113.8 kB / 381 MB, free: 18.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.044e-05/1.047e-05, allocations: 4.219 kB / 448.6 MB, free: 2.09 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1457, allocations: 61.51 MB / 0.4981 GB, free: 4.488 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.157/1.303, allocations: 434.6 MB / 0.9225 GB, free: 187.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/1.303, allocations: 104.8 kB / 0.9226 GB, free: 187.4 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: time 1.504/2.807, allocations: 453.9 MB / 1.366 GB, free: 67.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003035/2.807, allocations: 43.91 kB / 1.366 GB, free: 67.16 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.008632/2.816, allocations: 2.138 MB / 1.368 GB, free: 66.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.684e-05/2.816, allocations: 15.25 kB / 1.368 GB, free: 66.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001832/2.818, allocations: 216.8 kB / 1.368 GB, free: 66.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006526/2.825, allocations: 2.022 MB / 1.37 GB, free: 65.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.521e-05/2.825, allocations: 44.53 kB / 1.37 GB, free: 65.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000611/2.825, allocations: 82.73 kB / 1.37 GB, free: 65.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002406/2.828, allocations: 0.8738 MB / 1.371 GB, free: 65.79 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/2.83, allocations: 1.092 MB / 1.372 GB, free: 65.61 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.808e-05/2.831, allocations: 7.406 kB / 1.372 GB, free: 65.61 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/2.831, allocations: 6.281 kB / 1.372 GB, free: 65.61 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/2.831, allocations: 25.88 kB / 1.372 GB, free: 65.61 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/2.842, allocations: 6.811 MB / 1.379 GB, free: 62.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009026/2.843, allocations: 454.9 kB / 1.379 GB, free: 62.45 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006727/2.844, allocations: 419.2 kB / 1.38 GB, free: 62.44 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005457/2.845, allocations: 451.1 kB / 1.38 GB, free: 61.97 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007321/2.845, allocations: 480 kB / 1.381 GB, free: 61.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=72): time 4.198e-06/2.845, allocations: 0 / 1.381 GB, free: 61.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=78): time 0.00707/2.852, allocations: 2.198 MB / 1.383 GB, free: 61.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/2.853, allocations: 279 kB / 1.383 GB, free: 60.92 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002339/2.855, allocations: 1.057 MB / 1.384 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003059/2.855, allocations: 29.3 kB / 1.384 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008725/2.856, allocations: 0.5196 MB / 1.385 GB, free: 60.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004683/2.857, allocations: 282 kB / 1.385 GB, free: 60.22 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/2.857, allocations: 0 / 1.385 GB, free: 60.22 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001585/2.857, allocations: 361.7 kB / 1.385 GB, free: 59.92 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/2.858, allocations: 0.5386 MB / 1.386 GB, free: 59.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/2.859, allocations: 0.8755 MB / 1.387 GB, free: 59.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001903/2.861, allocations: 0.7539 MB / 1.387 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/2.861, allocations: 6.656 kB / 1.387 GB, free: 59.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.004094/2.865, allocations: 1.762 MB / 1.389 GB, free: 59.37 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00085/2.866, allocations: 2.729 MB / 1.392 GB, free: 56.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.716e-05/2.866, allocations: 7.938 kB / 1.392 GB, free: 56.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004089/2.867, allocations: 127 kB / 1.392 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/2.869, allocations: 320.8 kB / 1.392 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003841/2.872, allocations: 5.084 MB / 1.397 GB, free: 52.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/2.875, allocations: 100.9 kB / 1.397 GB, free: 52.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/2.876, allocations: 54.22 kB / 1.397 GB, free: 52.13 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/2.876, allocations: 3.312 kB / 1.397 GB, free: 52.13 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003303/2.879, allocations: 1.57 MB / 1.399 GB, free: 52.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/2.879, allocations: 7.781 kB / 1.399 GB, free: 52.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/2.879, allocations: 125.9 kB / 1.399 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/2.881, allocations: 298.2 kB / 1.399 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003274/2.884, allocations: 4.478 MB / 1.404 GB, free: 48.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002872/2.887, allocations: 101.5 kB / 1.404 GB, free: 48.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002147/2.887, allocations: 56.91 kB / 1.404 GB, free: 48.22 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 {(2,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007003/2.888, allocations: 230.7 kB / 1.404 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005646/2.888, allocations: 143.2 kB / 1.404 GB, free: 48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/2.891, allocations: 0.9755 MB / 1.405 GB, free: 47.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/2.891, allocations: 7.312 kB / 1.405 GB, free: 47.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/2.891, allocations: 9.094 kB / 1.405 GB, free: 47.89 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/2.891, allocations: 3.797 kB / 1.405 GB, free: 47.89 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/2.894, allocations: 1.341 MB / 1.406 GB, free: 47.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/2.894, allocations: 2.531 kB / 1.406 GB, free: 47.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009006/2.895, allocations: 158 kB / 1.407 GB, free: 47.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002978/2.895, allocations: 105.8 kB / 1.407 GB, free: 47.71 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.404e-05/2.895, allocations: 24.75 kB / 1.407 GB, free: 47.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003372/2.899, allocations: 5.065 MB / 1.412 GB, free: 43.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/2.899, allocations: 2.5 kB / 1.412 GB, free: 43.31 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002893/2.901, allocations: 1.404 MB / 1.413 GB, free: 43.12 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009415/2.902, allocations: 232.4 kB / 1.413 GB, free: 42.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005915/2.903, allocations: 14.34 kB / 1.413 GB, free: 42.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/2.905, allocations: 61.28 kB / 1.413 GB, free: 42.95 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/2.905, allocations: 44.31 kB / 1.413 GB, free: 42.94 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.698e-05/2.905, allocations: 28.78 kB / 1.413 GB, free: 42.94 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001818/2.907, allocations: 0.7566 MB / 1.414 GB, free: 42.83 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005857/2.913, allocations: 1.153 MB / 1.415 GB, free: 42.76 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,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00235/2.915, allocations: 0.8197 MB / 1.416 GB, free: 42.57 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00532/2.92, allocations: 2.82 MB / 1.419 GB, free: 41.76 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/2.92, allocations: 1.688 kB / 1.419 GB, free: 41.76 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/2.922, allocations: 0.7769 MB / 1.42 GB, free: 41.42 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003393/2.925, allocations: 0.5796 MB / 1.42 GB, free: 41.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007506/2.933, allocations: 2.969 MB / 1.423 GB, free: 40.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/2.934, allocations: 1.434 MB / 1.424 GB, free: 40.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.803e-06/2.934, allocations: 3.688 kB / 1.424 GB, free: 40.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.08188/3.016, allocations: 41.13 MB / 1.465 GB, free: 37.77 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)