Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.644/1.644, allocations: 297.8 MB / 313.7 MB, free: 168 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009154/0.0009151, allocations: 190.4 kB / 384.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 0.6626 GB, free: 4.336 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000845/0.0008449, allocations: 101.1 kB / 0.7808 GB, free: 50.28 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004032, allocations: 12 kB / 0.9088 GB, free: 2.848 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6822/0.6827, allocations: 120.3 MB / 1.026 GB, free: 55.92 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8655/1.548, allocations: 433.5 MB / 1.45 GB, free: 245 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003544/1.549, allocations: 117.1 kB / 1.45 GB, free: 245 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.292/3.84, allocations: 0.6572 GB / 2.107 GB, free: 137.1 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.804e-06/3.841, allocations: 0 / 2.107 GB, free: 137.1 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0003204/3.841, allocations: 41.45 kB / 2.107 GB, free: 137.1 MB / 0.9636 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.007688/3.849, allocations: 2.313 MB / 2.109 GB, free: 136.4 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/3.849, allocations: 9.25 kB / 2.109 GB, free: 136.4 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/3.85, allocations: 214.4 kB / 2.109 GB, free: 136.3 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005166/3.855, allocations: 2.043 MB / 2.111 GB, free: 136 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/3.855, allocations: 102 kB / 2.112 GB, free: 136 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000538/3.856, allocations: 142 kB / 2.112 GB, free: 135.9 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/3.858, allocations: 1.213 MB / 2.113 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.841e-05/3.858, allocations: 7.938 kB / 2.113 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/3.859, allocations: 47.69 kB / 2.113 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.738e-05/3.859, allocations: 25.22 kB / 2.113 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/3.86, allocations: 0.9199 MB / 2.114 GB, free: 135.8 MB / 0.9636 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.0123/3.873, allocations: 6.935 MB / 2.121 GB, free: 133.1 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/3.875, allocations: 1.075 MB / 2.122 GB, free: 133.1 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007474/3.876, allocations: 465.5 kB / 2.122 GB, free: 133.1 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005468/3.877, allocations: 0.6037 MB / 2.123 GB, free: 132.4 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007933/3.877, allocations: 442.5 kB / 2.123 GB, free: 132.4 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=78): time 2.916e-06/3.877, allocations: 0 / 2.123 GB, free: 132.4 MB / 0.9636 GB Notification: Performance of matching and sorting (n=82): time 0.007054/3.885, allocations: 2.923 MB / 2.126 GB, free: 131.5 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/3.885, allocations: 62.17 kB / 2.126 GB, free: 131.5 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003038/3.888, allocations: 1.357 MB / 2.127 GB, free: 131.3 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0002938/3.888, allocations: 57.64 kB / 2.127 GB, free: 131.2 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008665/3.889, allocations: 0.6866 MB / 2.128 GB, free: 131.1 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003184/3.889, allocations: 297.8 kB / 2.128 GB, free: 130.9 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/3.889, allocations: 25.53 kB / 2.128 GB, free: 130.9 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001051/3.889, allocations: 360.8 kB / 2.129 GB, free: 130.6 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/3.891, allocations: 0.5585 MB / 2.129 GB, free: 130.6 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/3.892, allocations: 0.8697 MB / 2.13 GB, free: 130.3 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/3.894, allocations: 1.209 MB / 2.131 GB, free: 130.1 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/3.894, allocations: 0 / 2.131 GB, free: 130.1 MB / 0.9636 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002859/3.897, allocations: 1.769 MB / 2.133 GB, free: 129.9 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/3.897, allocations: 263 kB / 2.133 GB, free: 129.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/3.897, allocations: 10.67 kB / 2.133 GB, free: 129.6 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007248/3.897, allocations: 258 kB / 2.134 GB, free: 129.6 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/3.899, allocations: 273.3 kB / 2.134 GB, free: 129.6 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/3.9, allocations: 1.586 MB / 2.135 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002783/3.903, allocations: 154.5 kB / 2.135 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/3.903, allocations: 60.23 kB / 2.136 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/3.903, allocations: 7.281 kB / 2.136 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00236/3.905, allocations: 1.61 MB / 2.137 GB, free: 128.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/3.905, allocations: 6.219 kB / 2.137 GB, free: 128.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005513/3.906, allocations: 247.9 kB / 2.137 GB, free: 128.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/3.907, allocations: 256.7 kB / 2.138 GB, free: 128.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008561/3.908, allocations: 1.008 MB / 2.139 GB, free: 127.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002482/3.91, allocations: 159.3 kB / 2.139 GB, free: 127.9 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/3.91, allocations: 55.5 kB / 2.139 GB, free: 127.9 MB / 0.9636 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 {3 25} Notification: Performance of prepare postOptimizeDAE: time 0.0009773/3.911, allocations: 0.4949 MB / 2.139 GB, free: 127.7 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003033/3.912, allocations: 149.4 kB / 2.139 GB, free: 127.6 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/3.913, allocations: 1.059 MB / 2.14 GB, free: 127.5 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/3.913, allocations: 12.81 kB / 2.14 GB, free: 127.5 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/3.913, allocations: 5.594 kB / 2.14 GB, free: 127.5 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001123/3.915, allocations: 0.9471 MB / 2.141 GB, free: 127.3 MB / 0.9636 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.003863/3.918, allocations: 2.82 MB / 2.144 GB, free: 126.8 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/3.918, allocations: 2.625 kB / 2.144 GB, free: 126.8 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006605/3.919, allocations: 156.5 kB / 2.144 GB, free: 126.8 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002591/3.919, allocations: 116.9 kB / 2.144 GB, free: 126.8 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/3.919, allocations: 27.77 kB / 2.144 GB, free: 126.8 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00274/3.922, allocations: 5.272 MB / 2.15 GB, free: 122.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/3.922, allocations: 0 / 2.15 GB, free: 122.2 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/3.924, allocations: 1.595 MB / 2.151 GB, free: 121.9 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007666/3.925, allocations: 358.4 kB / 2.151 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/3.925, allocations: 27.16 kB / 2.152 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/3.927, allocations: 91.59 kB / 2.152 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/3.927, allocations: 57.38 kB / 2.152 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-05/3.927, allocations: 31.81 kB / 2.152 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001242/3.928, allocations: 0.9094 MB / 2.153 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.41e-07/3.928, allocations: 0 / 2.153 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.003209/3.931, allocations: 1.129 MB / 2.154 GB, free: 121.5 MB / 0.9636 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.001446/3.933, allocations: 0.7951 MB / 2.154 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003464/3.936, allocations: 2.107 MB / 2.157 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/3.936, allocations: 0 / 2.157 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001003/3.937, allocations: 0.7955 MB / 2.157 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/3.942, allocations: 0.7719 MB / 2.158 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/3.948, allocations: 4.185 MB / 2.162 GB, free: 119.4 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006977/3.949, allocations: 1.272 MB / 2.163 GB, free: 118.7 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.00202/3.951, allocations: 451.7 kB / 2.164 GB, free: 118.6 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003768/3.951, allocations: 131.8 kB / 2.164 GB, free: 118.6 MB / 0.9636 GB Notification: Performance of SimCode: time 7.21e-07/3.951, allocations: 0 / 2.164 GB, free: 118.6 MB / 0.9636 GB Notification: Performance of Templates: time 0.06304/4.014, allocations: 39.64 MB / 2.203 GB, free: 117.1 MB / 0.9636 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)