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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.658/1.658, allocations: 293.1 MB / 309 MB, free: 4.742 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.0009351/0.0009351, allocations: 173.3 kB / 378.7 MB, free: 0.9688 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.489/1.489, allocations: 205.4 MB / 0.6383 GB, free: 8.188 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.0007684/0.0007684, allocations: 91.17 kB / 0.7527 GB, free: 62.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004624/0.0004629, allocations: 12 kB / 0.8768 GB, free: 10.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2757, allocations: 116.4 MB / 0.9905 GB, free: 5.84 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.399/1.675, allocations: 431.1 MB / 1.411 GB, free: 277.8 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/1.675, allocations: 115.7 kB / 1.412 GB, free: 277.8 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.842/3.517, allocations: 0.646 GB / 2.057 GB, free: 21.84 MB / 0.9323 GB Notification: Performance of FrontEnd: time 3.867e-06/3.517, allocations: 0 / 2.057 GB, free: 21.84 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0002693/3.517, allocations: 47.86 kB / 2.058 GB, free: 21.79 MB / 0.9323 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.007413/3.525, allocations: 2.318 MB / 2.06 GB, free: 19.41 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/3.525, allocations: 8.031 kB / 2.06 GB, free: 19.41 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/3.526, allocations: 210.6 kB / 2.06 GB, free: 19.2 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004991/3.531, allocations: 2.035 MB / 2.062 GB, free: 17.11 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/3.531, allocations: 102.5 kB / 2.062 GB, free: 17.01 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005681/3.532, allocations: 144.8 kB / 2.062 GB, free: 16.87 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002711/3.534, allocations: 1.204 MB / 2.063 GB, free: 15.6 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.15e-05/3.534, allocations: 15.88 kB / 2.063 GB, free: 15.59 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/3.535, allocations: 40 kB / 2.063 GB, free: 15.55 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-05/3.535, allocations: 35.98 kB / 2.063 GB, free: 15.51 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/3.536, allocations: 0.9139 MB / 2.064 GB, free: 14.59 MB / 0.9323 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.01174/3.548, allocations: 6.928 MB / 2.071 GB, free: 7.266 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002329/3.55, allocations: 1.089 MB / 2.072 GB, free: 6.164 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006419/3.551, allocations: 462.6 kB / 2.073 GB, free: 5.711 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005198/3.552, allocations: 0.6019 MB / 2.073 GB, free: 4.98 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006358/3.552, allocations: 448.3 kB / 2.074 GB, free: 4.527 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=78): time 3.006e-06/3.552, allocations: 0 / 2.074 GB, free: 4.527 MB / 0.9323 GB Notification: Performance of matching and sorting (n=82): time 0.006414/3.559, allocations: 2.929 MB / 2.077 GB, free: 1.48 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/3.559, allocations: 60.06 kB / 2.077 GB, free: 1.41 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/3.561, allocations: 1.365 MB / 2.078 GB, free: 32 kB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0003324/3.561, allocations: 53.75 kB / 2.078 GB, free: 15.97 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009423/3.562, allocations: 0.6809 MB / 2.079 GB, free: 15.29 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/3.563, allocations: 295.8 kB / 2.079 GB, free: 14.99 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/3.563, allocations: 24 kB / 2.079 GB, free: 14.97 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001697/3.563, allocations: 361.9 kB / 2.079 GB, free: 14.61 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/3.564, allocations: 0.5583 MB / 2.08 GB, free: 14.05 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/3.565, allocations: 0.8752 MB / 2.081 GB, free: 13.06 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002062/3.568, allocations: 1.21 MB / 2.082 GB, free: 11.77 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/3.568, allocations: 0 / 2.082 GB, free: 11.77 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003647/3.571, allocations: 1.77 MB / 2.084 GB, free: 9.984 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002347/3.571, allocations: 265.1 kB / 2.084 GB, free: 9.645 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/3.571, allocations: 8 kB / 2.084 GB, free: 9.637 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008128/3.572, allocations: 262.5 kB / 2.084 GB, free: 9.383 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/3.574, allocations: 283.5 kB / 2.084 GB, free: 9.105 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/3.575, allocations: 1.572 MB / 2.086 GB, free: 7.484 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/3.578, allocations: 163.6 kB / 2.086 GB, free: 7.324 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002115/3.578, allocations: 59.98 kB / 2.086 GB, free: 7.266 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/3.578, allocations: 0 / 2.086 GB, free: 7.266 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002907/3.581, allocations: 1.609 MB / 2.088 GB, free: 5.652 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/3.581, allocations: 8 kB / 2.088 GB, free: 5.645 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000612/3.582, allocations: 249.3 kB / 2.088 GB, free: 5.398 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/3.583, allocations: 263.6 kB / 2.088 GB, free: 5.141 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/3.584, allocations: 0.9932 MB / 2.089 GB, free: 4.121 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/3.586, allocations: 155.6 kB / 2.089 GB, free: 3.969 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/3.587, allocations: 51.98 kB / 2.089 GB, free: 3.918 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 () * 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.001196/3.588, allocations: 0.5007 MB / 2.09 GB, free: 3.406 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004947/3.588, allocations: 150.1 kB / 2.09 GB, free: 3.258 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/3.591, allocations: 1.054 MB / 2.091 GB, free: 2.184 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/3.591, allocations: 8.188 kB / 2.091 GB, free: 2.176 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/3.591, allocations: 4 kB / 2.091 GB, free: 2.172 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001423/3.592, allocations: 0.9594 MB / 2.092 GB, free: 1.172 MB / 0.948 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.632/4.224, allocations: 2.81 MB / 2.095 GB, free: 147.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/4.224, allocations: 2.656 kB / 2.095 GB, free: 147.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007221/4.225, allocations: 148.9 kB / 2.095 GB, free: 147.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/4.225, allocations: 121.9 kB / 2.095 GB, free: 147.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.186e-05/4.225, allocations: 33.2 kB / 2.095 GB, free: 147.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003014/4.228, allocations: 5.25 MB / 2.1 GB, free: 142.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/4.228, allocations: 7.984 kB / 2.1 GB, free: 142.9 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002377/4.231, allocations: 1.599 MB / 2.102 GB, free: 142.7 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008198/4.231, allocations: 358.9 kB / 2.102 GB, free: 142.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/4.232, allocations: 26.75 kB / 2.102 GB, free: 142.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/4.233, allocations: 91.5 kB / 2.102 GB, free: 142.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/4.233, allocations: 59.73 kB / 2.102 GB, free: 142.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/4.233, allocations: 37.47 kB / 2.102 GB, free: 142.6 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001634/4.235, allocations: 0.9032 MB / 2.103 GB, free: 142.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.51e-07/4.235, allocations: 0 / 2.103 GB, free: 142.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004078/4.239, allocations: 1.125 MB / 2.104 GB, free: 142.5 MB / 0.948 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.00157/4.24, allocations: 0.7972 MB / 2.105 GB, free: 142.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003592/4.244, allocations: 2.107 MB / 2.107 GB, free: 142.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/4.244, allocations: 0.7188 kB / 2.107 GB, free: 142.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001063/4.245, allocations: 0.8004 MB / 2.108 GB, free: 141.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003799/4.249, allocations: 0.7657 MB / 2.109 GB, free: 141.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005637/4.255, allocations: 4.185 MB / 2.113 GB, free: 140.4 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000798/4.255, allocations: 1.276 MB / 2.114 GB, free: 139.7 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002039/4.257, allocations: 451.8 kB / 2.114 GB, free: 139.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/4.258, allocations: 125.5 kB / 2.114 GB, free: 139.7 MB / 0.948 GB Notification: Performance of SimCode: time 7.61e-07/4.258, allocations: 2.844 kB / 2.114 GB, free: 139.7 MB / 0.948 GB Notification: Performance of Templates: time 0.06499/4.323, allocations: 39.64 MB / 2.153 GB, free: 138.6 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)