Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.738/1.738, allocations: 288.3 MB / 303.2 MB, free: 8.141 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.00121/0.00121, allocations: 173.1 kB / 371.8 MB, free: 10.28 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.661/1.661, allocations: 205.4 MB / 0.6306 GB, free: 10.04 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008187/0.0008181, allocations: 89.16 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005221/0.0005221, allocations: 16.16 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2502, allocations: 115.3 MB / 0.9794 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.0494/0.2996, allocations: 56.24 MB / 1.034 GB, free: 3.309 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02725/0.3269, allocations: 17 MB / 1.051 GB, free: 2.277 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003877/0.3308, allocations: 75.44 kB / 1.051 GB, free: 2.203 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.004378/0.3352, allocations: 1.003 MB / 1.052 GB, free: 1.195 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.3455, allocations: 2.655 MB / 1.055 GB, free: 14.54 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01079/0.3563, allocations: 3.134 MB / 1.058 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.007386/0.3637, allocations: 3.158 MB / 1.061 GB, free: 8.277 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002694/0.3664, allocations: 1.372 MB / 1.062 GB, free: 6.883 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004027/0.3705, allocations: 1.456 MB / 1.064 GB, free: 5.422 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002741/0.3732, allocations: 0.972 MB / 1.064 GB, free: 4.445 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0003485/0.3736, allocations: 72 kB / 1.065 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004962/0.3786, allocations: 1.451 MB / 1.066 GB, free: 2.922 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0006169/0.3792, allocations: 414.4 kB / 1.066 GB, free: 2.516 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.3803, allocations: 444.6 kB / 1.067 GB, free: 2.074 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.5483/0.9285, allocations: 2.678 MB / 1.069 GB, free: 22.87 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.9286, allocations: 0 / 1.069 GB, free: 22.87 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.975e-06/0.9286, allocations: 1.031 kB / 1.069 GB, free: 22.87 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001343/0.9288, allocations: 0 / 1.069 GB, free: 22.87 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.006146/0.9349, allocations: 2.341 MB / 1.072 GB, free: 21.6 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.935, allocations: 8.406 kB / 1.072 GB, free: 21.6 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.9367, allocations: 389.1 kB / 1.072 GB, free: 21.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/0.9406, allocations: 1.652 MB / 1.074 GB, free: 21.08 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004326/0.9411, allocations: 167.6 kB / 1.074 GB, free: 21.08 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002261/0.9413, allocations: 132.6 kB / 1.074 GB, free: 21.08 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003004/0.9443, allocations: 1.449 MB / 1.075 GB, free: 20.82 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.9444, allocations: 4.594 kB / 1.075 GB, free: 20.82 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.9445, allocations: 54.81 kB / 1.075 GB, free: 20.82 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.444e-05/0.9446, allocations: 33.75 kB / 1.075 GB, free: 20.82 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/0.9474, allocations: 1.126 MB / 1.077 GB, free: 20.8 MB / 0.6823 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.01118/0.9586, allocations: 7.44 MB / 1.084 GB, free: 16.59 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002602/0.9612, allocations: 1.361 MB / 1.085 GB, free: 15.98 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004709/0.9659, allocations: 2.612 MB / 1.088 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.9671, allocations: 463.4 kB / 1.088 GB, free: 14.55 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006553/0.9678, allocations: 96.53 kB / 1.088 GB, free: 14.51 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=65): time 2.305e-06/0.9678, allocations: 2.516 kB / 1.088 GB, free: 14.51 MB / 0.6823 GB Notification: Performance of matching and sorting (n=65): time 0.0033/0.9711, allocations: 1.288 MB / 1.089 GB, free: 14.25 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.9712, allocations: 137.1 kB / 1.09 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.9734, allocations: 1.558 MB / 1.091 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.514e-05/0.9735, allocations: 48.67 kB / 1.091 GB, free: 13.88 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007155/0.9742, allocations: 0.9048 MB / 1.092 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/0.9744, allocations: 224.5 kB / 1.092 GB, free: 13.41 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.9745, allocations: 19.31 kB / 1.092 GB, free: 13.41 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.423e-05/0.9745, allocations: 347.9 kB / 1.093 GB, free: 13.11 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008998/0.9755, allocations: 392.4 kB / 1.093 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.9766, allocations: 0.7568 MB / 1.094 GB, free: 12.65 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.9777, allocations: 0.497 MB / 1.094 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.9777, allocations: 3.281 kB / 1.094 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002688/0.9804, allocations: 1.316 MB / 1.096 GB, free: 12.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006993/0.9811, allocations: 3.825 MB / 1.099 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.017e-05/0.9811, allocations: 11.28 kB / 1.099 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.267e-05/0.9812, allocations: 16.12 kB / 1.099 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.9822, allocations: 268.3 kB / 1.1 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-05/0.9822, allocations: 18.25 kB / 1.1 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.9838, allocations: 152 kB / 1.1 GB, free: 8.367 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.9839, allocations: 57.22 kB / 1.1 GB, free: 8.367 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.346e-06/0.9839, allocations: 5.438 kB / 1.1 GB, free: 8.367 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002218/0.9861, allocations: 1.151 MB / 1.101 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.9862, allocations: 12.77 kB / 1.101 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.9862, allocations: 19.27 kB / 1.101 GB, free: 8.309 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009366/0.9871, allocations: 259 kB / 1.101 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/0.9872, allocations: 21.34 kB / 1.101 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.9885, allocations: 152 kB / 1.101 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.9886, allocations: 54.28 kB / 1.101 GB, free: 8.285 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008942/0.9895, allocations: 500 kB / 1.102 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/0.9897, allocations: 165.8 kB / 1.102 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002512/0.9923, allocations: 1.123 MB / 1.103 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.9923, allocations: 7.125 kB / 1.103 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.9923, allocations: 5.281 kB / 1.103 GB, free: 7.895 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001818/0.9941, allocations: 0.8263 MB / 1.104 GB, free: 7.809 MB / 0.6823 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.005098/0.9992, allocations: 2.634 MB / 1.106 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.9993, allocations: 2.938 kB / 1.106 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007799/1, allocations: 165.8 kB / 1.107 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002189/1, allocations: 37.95 kB / 1.107 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.453e-05/1, allocations: 25.11 kB / 1.107 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/1.002, allocations: 1.387 MB / 1.108 GB, free: 22.03 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.002, allocations: 4.812 kB / 1.108 GB, free: 22.03 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003578/1.005, allocations: 1.776 MB / 1.11 GB, free: 21.47 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009659/1.006, allocations: 388.7 kB / 1.11 GB, free: 21.27 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002125/1.007, allocations: 19.48 kB / 1.11 GB, free: 21.27 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/1.008, allocations: 128.3 kB / 1.11 GB, free: 21.26 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/1.008, allocations: 64.09 kB / 1.11 GB, free: 21.25 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-05/1.008, allocations: 39.19 kB / 1.11 GB, free: 21.25 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001656/1.01, allocations: 1.122 MB / 1.112 GB, free: 21.11 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.71e-07/1.01, allocations: 0 / 1.112 GB, free: 21.11 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00303/1.013, allocations: 1.015 MB / 1.113 GB, free: 20.96 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001359/1.014, allocations: 0.5716 MB / 1.113 GB, free: 20.77 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003477/1.018, allocations: 1.706 MB / 1.115 GB, free: 20.55 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.018, allocations: 2.719 kB / 1.115 GB, free: 20.55 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/1.019, allocations: 0.5701 MB / 1.115 GB, free: 20.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00376/1.022, allocations: 0.8645 MB / 1.116 GB, free: 20.35 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005867/1.028, allocations: 3.899 MB / 1.12 GB, free: 18.41 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/1.029, allocations: 1.452 MB / 1.121 GB, free: 17.66 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002163/1.032, allocations: 442.3 kB / 1.122 GB, free: 17.54 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004046/1.032, allocations: 145.9 kB / 1.122 GB, free: 17.53 MB / 0.698 GB Notification: Performance of SimCode: time 1.102e-06/1.032, allocations: 0 / 1.122 GB, free: 17.53 MB / 0.698 GB Notification: Performance of Templates: time 0.06283/1.095, allocations: 34.9 MB / 1.156 GB, free: 204 kB / 0.698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)