Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.75/1.75, allocations: 293 MB / 309 MB, free: 4.82 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.001233/0.001233, allocations: 168.6 kB / 378.7 MB, free: 1.023 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.577/1.577, allocations: 205.4 MB / 0.6383 GB, free: 9.168 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.0008247/0.0008247, allocations: 94.06 kB / 0.7527 GB, free: 62.16 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.000408, allocations: 15.98 kB / 0.8768 GB, free: 10.57 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2666, allocations: 116.4 MB / 0.9904 GB, free: 6.039 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.546/1.813, allocations: 449.2 MB / 1.429 GB, free: 267.4 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/1.813, allocations: 102.9 kB / 1.429 GB, free: 267.4 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.812/5.625, allocations: 1.128 GB / 2.557 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.873e-06/5.625, allocations: 0 / 2.557 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0004951/5.626, allocations: 60.09 kB / 2.557 GB, free: 123.6 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.01021/5.636, allocations: 2.658 MB / 2.56 GB, free: 122.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/5.636, allocations: 11.84 kB / 2.56 GB, free: 122.5 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002214/5.638, allocations: 375.7 kB / 2.56 GB, free: 122.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007604/5.646, allocations: 2.427 MB / 2.562 GB, free: 121.9 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/5.646, allocations: 102.5 kB / 2.563 GB, free: 121.9 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005828/5.647, allocations: 138.3 kB / 2.563 GB, free: 121.9 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004058/5.651, allocations: 1.427 MB / 2.564 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.4e-05/5.651, allocations: 8.406 kB / 2.564 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002163/5.651, allocations: 55.16 kB / 2.564 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-05/5.651, allocations: 35.94 kB / 2.564 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002678/5.654, allocations: 1.034 MB / 2.565 GB, free: 121.6 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.01163/5.665, allocations: 7.104 MB / 2.572 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002128/5.668, allocations: 1.29 MB / 2.573 GB, free: 117 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009654/5.669, allocations: 399.5 kB / 2.574 GB, free: 117 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004145/5.673, allocations: 2.235 MB / 2.576 GB, free: 115.6 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009018/5.674, allocations: 445.6 kB / 2.576 GB, free: 115.6 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001056/5.675, allocations: 88.14 kB / 2.576 GB, free: 115.5 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=68): time 7.054e-06/5.675, allocations: 0 / 2.576 GB, free: 115.5 MB / 0.9636 GB Notification: Performance of matching and sorting (n=68): time 0.002875/5.678, allocations: 1.279 MB / 2.578 GB, free: 115.2 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.447e-05/5.678, allocations: 167.8 kB / 2.578 GB, free: 115 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002432/5.68, allocations: 1.437 MB / 2.579 GB, free: 114.8 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/5.68, allocations: 47.2 kB / 2.579 GB, free: 114.8 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007438/5.681, allocations: 0.8934 MB / 2.58 GB, free: 114.5 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/5.681, allocations: 245.5 kB / 2.58 GB, free: 114.3 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/5.681, allocations: 20.45 kB / 2.58 GB, free: 114.3 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.462e-05/5.681, allocations: 347.5 kB / 2.581 GB, free: 114 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007365/5.682, allocations: 342.7 kB / 2.581 GB, free: 114 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009319/5.683, allocations: 0.7349 MB / 2.582 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/5.685, allocations: 1.029 MB / 2.583 GB, free: 113.2 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/5.685, allocations: 5.406 kB / 2.583 GB, free: 113.2 MB / 0.9636 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002596/5.687, allocations: 1.225 MB / 2.584 GB, free: 113 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001842/5.688, allocations: 387.6 kB / 2.584 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/5.688, allocations: 14.67 kB / 2.584 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.307e-05/5.688, allocations: 17.53 kB / 2.584 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009384/5.689, allocations: 249.4 kB / 2.585 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-05/5.689, allocations: 21.98 kB / 2.585 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/5.69, allocations: 127.5 kB / 2.585 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/5.69, allocations: 64.11 kB / 2.585 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/5.69, allocations: 5.781 kB / 2.585 GB, free: 112.6 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002101/5.693, allocations: 1.05 MB / 2.586 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/5.693, allocations: 14.56 kB / 2.586 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/5.693, allocations: 17.12 kB / 2.586 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008827/5.693, allocations: 242.6 kB / 2.586 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.667e-05/5.694, allocations: 24.48 kB / 2.586 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/5.695, allocations: 135.4 kB / 2.586 GB, free: 112.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/5.695, allocations: 50.06 kB / 2.586 GB, free: 112.5 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (121): * Single equations (assignments): 117 * 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.001297/5.697, allocations: 0.4918 MB / 2.587 GB, free: 112.3 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/5.697, allocations: 170 kB / 2.587 GB, free: 112.2 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002622/5.7, allocations: 1.156 MB / 2.588 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/5.7, allocations: 9.188 kB / 2.588 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/5.7, allocations: 0 / 2.588 GB, free: 112.1 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001556/5.701, allocations: 0.868 MB / 2.589 GB, free: 111.9 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.005376/5.707, allocations: 2.439 MB / 2.591 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/5.707, allocations: 3.375 kB / 2.591 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000731/5.707, allocations: 165.7 kB / 2.592 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001526/5.708, allocations: 27.06 kB / 2.592 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.194e-05/5.708, allocations: 27.25 kB / 2.592 GB, free: 111.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008006/5.708, allocations: 1.295 MB / 2.593 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/5.708, allocations: 2.875 kB / 2.593 GB, free: 110.2 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003227/5.712, allocations: 1.594 MB / 2.594 GB, free: 109.8 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009784/5.713, allocations: 337.8 kB / 2.595 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/5.713, allocations: 16.22 kB / 2.595 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009505/5.714, allocations: 109.3 kB / 2.595 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/5.714, allocations: 63.84 kB / 2.595 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.091e-05/5.714, allocations: 34.5 kB / 2.595 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001843/5.716, allocations: 0.9567 MB / 2.596 GB, free: 109.5 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.5e-07/5.716, allocations: 0 / 2.596 GB, free: 109.5 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.004576/5.721, allocations: 1.089 MB / 2.597 GB, free: 109.3 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (76): * Single equations (assignments): 68 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002437/5.723, allocations: 1.133 MB / 2.598 GB, free: 109 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003503/5.727, allocations: 1.594 MB / 2.6 GB, free: 108.8 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/5.727, allocations: 0.9688 kB / 2.6 GB, free: 108.8 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001056/5.728, allocations: 0.5315 MB / 2.6 GB, free: 108.7 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003832/5.731, allocations: 0.7645 MB / 2.601 GB, free: 108.7 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005795/5.737, allocations: 3.824 MB / 2.605 GB, free: 106.9 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/5.738, allocations: 1.405 MB / 2.606 GB, free: 106.2 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.002385/5.741, allocations: 419.3 kB / 2.606 GB, free: 106.2 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/5.741, allocations: 140.8 kB / 2.607 GB, free: 106.2 MB / 0.9636 GB Notification: Performance of SimCode: time 1.924e-06/5.741, allocations: 0 / 2.607 GB, free: 106.2 MB / 0.9636 GB Notification: Performance of Templates: time 0.0598/5.801, allocations: 36.44 MB / 2.642 GB, free: 104.3 MB / 0.9636 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)