Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.27/1.27, allocations: 252 MB / 267.9 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009406/0.0009407, allocations: 182 kB / 327.5 MB, free: 2.164 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.4 MB / 0.5785 GB, free: 20.24 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007367/0.0007366, allocations: 93.69 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003363, allocations: 13.41 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1654, allocations: 106.3 MB / 0.9012 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7343/0.8997, allocations: 447.1 MB / 1.338 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.9, allocations: 106.5 kB / 1.338 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.539/4.439, allocations: 1.132 GB / 2.47 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.543e-06/4.439, allocations: 0 / 2.47 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003547/4.44, allocations: 52.38 kB / 2.47 GB, free: 133.2 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.00721/4.447, allocations: 2.55 MB / 2.473 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/4.447, allocations: 6.844 kB / 2.473 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002694/4.45, allocations: 452.5 kB / 2.473 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006638/4.456, allocations: 2.287 MB / 2.475 GB, free: 131.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/4.457, allocations: 96.48 kB / 2.475 GB, free: 131.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003616/4.457, allocations: 132.7 kB / 2.475 GB, free: 131.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/4.46, allocations: 1.319 MB / 2.477 GB, free: 131.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.051e-05/4.46, allocations: 3.938 kB / 2.477 GB, free: 131.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/4.46, allocations: 52.38 kB / 2.477 GB, free: 131.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.579e-05/4.46, allocations: 25.91 kB / 2.477 GB, free: 131.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/4.462, allocations: 0.9631 MB / 2.478 GB, free: 131.5 MB / 0.8855 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.008161/4.47, allocations: 6.849 MB / 2.484 GB, free: 127.4 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/4.472, allocations: 1.264 MB / 2.486 GB, free: 126.8 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000701/4.473, allocations: 366.8 kB / 2.486 GB, free: 126.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004165/4.477, allocations: 2.869 MB / 2.489 GB, free: 124.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007188/4.477, allocations: 404.1 kB / 2.489 GB, free: 124.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007188/4.478, allocations: 95.28 kB / 2.489 GB, free: 124.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 6.692e-06/4.478, allocations: 0 / 2.489 GB, free: 124.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.002508/4.481, allocations: 1.188 MB / 2.49 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/4.481, allocations: 168.1 kB / 2.491 GB, free: 124.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/4.483, allocations: 1.512 MB / 2.492 GB, free: 124.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.83e-05/4.483, allocations: 46.11 kB / 2.492 GB, free: 124.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006679/4.484, allocations: 0.8888 MB / 2.493 GB, free: 123.8 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/4.484, allocations: 211.2 kB / 2.493 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/4.484, allocations: 20.69 kB / 2.493 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.582e-05/4.484, allocations: 348.2 kB / 2.494 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006713/4.485, allocations: 329 kB / 2.494 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000832/4.486, allocations: 0.7671 MB / 2.495 GB, free: 122.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/4.487, allocations: 1.039 MB / 2.496 GB, free: 122.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/4.487, allocations: 3.781 kB / 2.496 GB, free: 122.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002193/4.489, allocations: 1.215 MB / 2.497 GB, free: 122.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002125/4.49, allocations: 456.3 kB / 2.497 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/4.49, allocations: 10.91 kB / 2.497 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/4.49, allocations: 15.12 kB / 2.497 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008183/4.49, allocations: 244.3 kB / 2.498 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.811e-05/4.49, allocations: 30.31 kB / 2.498 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/4.492, allocations: 121.7 kB / 2.498 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/4.492, allocations: 62.78 kB / 2.498 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/4.492, allocations: 3.531 kB / 2.498 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001847/4.494, allocations: 1.035 MB / 2.499 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.673e-05/4.494, allocations: 14.34 kB / 2.499 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/4.494, allocations: 19.72 kB / 2.499 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007743/4.495, allocations: 235 kB / 2.499 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.564e-05/4.495, allocations: 27.92 kB / 2.499 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/4.496, allocations: 110.2 kB / 2.499 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/4.496, allocations: 61.02 kB / 2.499 GB, free: 121.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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.0008498/4.497, allocations: 498.8 kB / 2.5 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/4.497, allocations: 161.7 kB / 2.5 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/4.499, allocations: 1.128 MB / 2.501 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/4.499, allocations: 6.75 kB / 2.501 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/4.499, allocations: 3.125 kB / 2.501 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001351/4.501, allocations: 0.9695 MB / 2.502 GB, free: 120.8 MB / 0.8855 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.003839/4.504, allocations: 2.321 MB / 2.504 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/4.504, allocations: 4.031 kB / 2.504 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/4.505, allocations: 136.2 kB / 2.504 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001488/4.505, allocations: 25.02 kB / 2.504 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.959e-05/4.505, allocations: 21.45 kB / 2.504 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006933/4.506, allocations: 1.297 MB / 2.506 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/4.506, allocations: 3.312 kB / 2.506 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/4.508, allocations: 1.517 MB / 2.507 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006555/4.509, allocations: 328.7 kB / 2.507 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003655/4.509, allocations: 20.53 kB / 2.507 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009917/4.51, allocations: 98.66 kB / 2.508 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/4.51, allocations: 55.05 kB / 2.508 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-05/4.511, allocations: 36.52 kB / 2.508 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001497/4.512, allocations: 1.062 MB / 2.509 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.61e-07/4.512, allocations: 6.562 kB / 2.509 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003243/4.515, allocations: 0.985 MB / 2.51 GB, free: 118.2 MB / 0.8855 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.outCon.T) * 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 (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.002749/4.518, allocations: 1.316 MB / 2.511 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002649/4.521, allocations: 1.544 MB / 2.512 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/4.521, allocations: 2.625 kB / 2.512 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0008415/4.522, allocations: 0.5095 MB / 2.513 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/4.525, allocations: 0.7241 MB / 2.514 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005124/4.53, allocations: 3.69 MB / 2.517 GB, free: 116 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009416/4.531, allocations: 1.363 MB / 2.519 GB, free: 115.3 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001955/4.533, allocations: 441.2 kB / 2.519 GB, free: 115.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003567/4.533, allocations: 139.3 kB / 2.519 GB, free: 115.2 MB / 0.8855 GB Notification: Performance of SimCode: time 3.21e-07/4.533, allocations: 0 / 2.519 GB, free: 115.2 MB / 0.8855 GB Notification: Performance of Templates: time 0.05444/4.588, allocations: 35.73 MB / 2.554 GB, free: 113.6 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)