Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.614/1.614, allocations: 289.7 MB / 302.2 MB, free: 2.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 180.6 kB / 371.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.2 MB / 0.6309 GB, free: 11.75 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009123/0.0009122, allocations: 93.02 kB / 0.745 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.514e-05/3.517e-05, allocations: 4 kB / 0.8663 GB, free: 15.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2574, allocations: 116.3 MB / 0.9798 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.513/1.77, allocations: 430.8 MB / 1.401 GB, free: 298 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/1.771, allocations: 112.9 kB / 1.401 GB, free: 298 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.863/3.634, allocations: 0.6479 GB / 2.049 GB, free: 74.14 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.655e-06/3.634, allocations: 0 / 2.049 GB, free: 74.14 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001789/3.634, allocations: 43.88 kB / 2.049 GB, free: 74.09 MB / 0.948 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.006021/3.64, allocations: 2.036 MB / 2.051 GB, free: 72.01 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/3.64, allocations: 8.031 kB / 2.051 GB, free: 72 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009407/3.641, allocations: 213.6 kB / 2.051 GB, free: 71.79 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004346/3.646, allocations: 2.05 MB / 2.053 GB, free: 69.69 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.314e-05/3.646, allocations: 102.1 kB / 2.053 GB, free: 69.59 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002197/3.646, allocations: 140 kB / 2.053 GB, free: 69.45 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/3.648, allocations: 1.181 MB / 2.054 GB, free: 68.21 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/3.648, allocations: 7.844 kB / 2.054 GB, free: 68.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-05/3.648, allocations: 55.95 kB / 2.054 GB, free: 68.14 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-05/3.648, allocations: 28 kB / 2.054 GB, free: 68.12 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/3.65, allocations: 0.8945 MB / 2.055 GB, free: 67.21 MB / 0.948 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.01025/3.66, allocations: 6.967 MB / 2.062 GB, free: 59.84 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002216/3.662, allocations: 1.068 MB / 2.063 GB, free: 58.77 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005788/3.663, allocations: 451.6 kB / 2.063 GB, free: 58.32 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005192/3.663, allocations: 0.602 MB / 2.064 GB, free: 57.59 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006129/3.664, allocations: 438.1 kB / 2.064 GB, free: 57.15 MB / 0.948 GB Notification: Performance of pre-optimization done (n=78): time 2.745e-06/3.664, allocations: 0 / 2.064 GB, free: 57.15 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.004676/3.668, allocations: 2.283 MB / 2.067 GB, free: 54.8 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/3.669, allocations: 64.19 kB / 2.067 GB, free: 54.73 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/3.67, allocations: 1.231 MB / 2.068 GB, free: 53.48 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001369/3.67, allocations: 53.7 kB / 2.068 GB, free: 53.43 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005105/3.671, allocations: 0.6887 MB / 2.069 GB, free: 52.73 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/3.671, allocations: 287.8 kB / 2.069 GB, free: 52.45 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/3.671, allocations: 28 kB / 2.069 GB, free: 52.42 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.736e-05/3.671, allocations: 361.9 kB / 2.069 GB, free: 52.06 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000797/3.672, allocations: 0.5389 MB / 2.07 GB, free: 51.52 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009087/3.673, allocations: 0.8599 MB / 2.071 GB, free: 50.55 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009016/3.674, allocations: 0.6765 MB / 2.071 GB, free: 49.87 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/3.674, allocations: 0 / 2.071 GB, free: 49.87 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002495/3.676, allocations: 1.75 MB / 2.073 GB, free: 48.11 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004484/3.677, allocations: 2.31 MB / 2.075 GB, free: 45.65 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.206e-05/3.677, allocations: 4 kB / 2.075 GB, free: 45.64 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007076/3.678, allocations: 268 kB / 2.076 GB, free: 45.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/3.679, allocations: 271.6 kB / 2.076 GB, free: 45.12 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/3.68, allocations: 1.564 MB / 2.077 GB, free: 43.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00259/3.682, allocations: 167.6 kB / 2.078 GB, free: 43.34 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/3.683, allocations: 63.92 kB / 2.078 GB, free: 43.28 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/3.683, allocations: 4 kB / 2.078 GB, free: 43.27 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002246/3.685, allocations: 1.582 MB / 2.079 GB, free: 41.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/3.685, allocations: 4.094 kB / 2.079 GB, free: 41.68 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005798/3.685, allocations: 260.7 kB / 2.079 GB, free: 41.43 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/3.687, allocations: 255.6 kB / 2.08 GB, free: 41.18 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007817/3.687, allocations: 0.9975 MB / 2.081 GB, free: 40.15 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002505/3.69, allocations: 167.5 kB / 2.081 GB, free: 39.99 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/3.69, allocations: 55.98 kB / 2.081 GB, free: 39.93 MB / 0.948 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 () * 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.0003406/3.69, allocations: 177.4 kB / 2.081 GB, free: 39.75 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/3.691, allocations: 150.1 kB / 2.081 GB, free: 39.61 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/3.692, allocations: 1.041 MB / 2.082 GB, free: 38.54 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/3.692, allocations: 12 kB / 2.082 GB, free: 38.53 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/3.692, allocations: 4 kB / 2.082 GB, free: 38.53 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001146/3.694, allocations: 0.9353 MB / 2.083 GB, free: 37.55 MB / 0.948 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 postOpt removeSimpleEquations (simulation): time 0.003926/3.697, allocations: 2.843 MB / 2.086 GB, free: 34.61 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/3.697, allocations: 8 kB / 2.086 GB, free: 34.61 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006335/3.698, allocations: 151.8 kB / 2.086 GB, free: 34.46 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002588/3.698, allocations: 118.5 kB / 2.086 GB, free: 34.33 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.034e-05/3.698, allocations: 27.94 kB / 2.086 GB, free: 34.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002703/3.701, allocations: 5.251 MB / 2.091 GB, free: 28.62 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/3.701, allocations: 0 / 2.091 GB, free: 28.62 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/3.703, allocations: 1.633 MB / 2.093 GB, free: 26.92 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007902/3.704, allocations: 359.1 kB / 2.093 GB, free: 26.55 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/3.704, allocations: 27.98 kB / 2.093 GB, free: 26.52 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/3.705, allocations: 95.66 kB / 2.093 GB, free: 26.43 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/3.706, allocations: 52.7 kB / 2.093 GB, free: 26.38 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-05/3.706, allocations: 35.98 kB / 2.093 GB, free: 26.34 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001336/3.707, allocations: 0.9297 MB / 2.094 GB, free: 25.41 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.4e-07/3.707, allocations: 0 / 2.094 GB, free: 25.41 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00361/3.711, allocations: 1.136 MB / 2.095 GB, free: 24.27 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.port_b1.h_outflow,seg.port_a2.h_outflow,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) * 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.001624/3.712, allocations: 0.822 MB / 2.096 GB, free: 23.45 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003619/3.716, allocations: 2.12 MB / 2.098 GB, free: 21.32 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/3.716, allocations: 0 / 2.098 GB, free: 21.32 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000968/3.717, allocations: 0.7822 MB / 2.099 GB, free: 20.5 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003942/3.721, allocations: 0.7646 MB / 2.1 GB, free: 19.74 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005102/3.726, allocations: 2.987 MB / 2.103 GB, free: 16.71 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006724/3.727, allocations: 1.304 MB / 2.104 GB, free: 15.38 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002476/3.729, allocations: 0.5356 MB / 2.105 GB, free: 14.84 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/3.73, allocations: 95.41 kB / 2.105 GB, free: 14.74 MB / 0.948 GB Notification: Performance of SimCode: time 2.354e-06/3.73, allocations: 4 kB / 2.105 GB, free: 14.74 MB / 0.948 GB Notification: Performance of Templates: time 0.7233/4.453, allocations: 42.28 MB / 2.146 GB, free: 148.8 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)