Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.683/1.683, allocations: 288.4 MB / 303.4 MB, free: 8.133 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.001209/0.001209, allocations: 194.2 kB / 372 MB, free: 10.27 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.609/1.609, allocations: 205.4 MB / 0.6307 GB, free: 10 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.0007342/0.0007343, allocations: 97.3 kB / 0.7441 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004328/0.0004326, allocations: 15.91 kB / 0.867 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2648, allocations: 115.3 MB / 0.9796 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04717/0.312, allocations: 49.17 MB / 1.028 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02713/0.3392, allocations: 16.61 MB / 1.044 GB, free: 9.742 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003754/0.343, allocations: 75.44 kB / 1.044 GB, free: 9.668 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003697/0.3467, allocations: 0.7989 MB / 1.045 GB, free: 8.867 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.006841/0.3536, allocations: 1.875 MB / 1.047 GB, free: 6.988 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.008957/0.3626, allocations: 2.73 MB / 1.049 GB, free: 4.281 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.007867/0.3704, allocations: 5.164 MB / 1.054 GB, free: 15.1 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003086/0.3736, allocations: 1.23 MB / 1.055 GB, free: 13.84 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004115/0.3777, allocations: 1.54 MB / 1.057 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002961/0.3807, allocations: 1.264 MB / 1.058 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0006781/0.3814, allocations: 68 kB / 1.058 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004626/0.386, allocations: 1.513 MB / 1.06 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0008824/0.3869, allocations: 414.2 kB / 1.06 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001089/0.3881, allocations: 412.6 kB / 1.06 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.004516/0.3926, allocations: 2.502 MB / 1.063 GB, free: 6.117 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3926, allocations: 0 / 1.063 GB, free: 6.117 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3926, allocations: 3.938 kB / 1.063 GB, free: 6.113 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001283/0.3928, allocations: 0 / 1.063 GB, free: 6.113 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.00538/0.3982, allocations: 2.241 MB / 1.065 GB, free: 3.805 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.3982, allocations: 11.97 kB / 1.065 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002526/0.4007, allocations: 497 kB / 1.066 GB, free: 3.305 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004284/0.405, allocations: 1.576 MB / 1.067 GB, free: 1.68 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004363/0.4055, allocations: 154.2 kB / 1.067 GB, free: 1.527 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003077/0.4058, allocations: 124 kB / 1.067 GB, free: 1.406 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4361/0.8419, allocations: 1.397 MB / 1.069 GB, free: 89.02 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.675e-05/0.842, allocations: 2.75 kB / 1.069 GB, free: 89.02 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001646/0.8422, allocations: 47.44 kB / 1.069 GB, free: 89.02 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.333e-05/0.8422, allocations: 29.03 kB / 1.069 GB, free: 89.02 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003129/0.8454, allocations: 1.131 MB / 1.07 GB, free: 89 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.008516/0.8539, allocations: 7.003 MB / 1.077 GB, free: 83.97 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002553/0.8565, allocations: 1.436 MB / 1.078 GB, free: 83.07 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.8575, allocations: 437.6 kB / 1.079 GB, free: 82.94 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004862/0.8624, allocations: 3.09 MB / 1.082 GB, free: 80.51 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.8636, allocations: 470.5 kB / 1.082 GB, free: 80.34 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005869/0.8642, allocations: 82.23 kB / 1.082 GB, free: 80.32 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 3.287e-06/0.8642, allocations: 1.406 kB / 1.082 GB, free: 80.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.003305/0.8675, allocations: 1.293 MB / 1.083 GB, free: 79.82 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.8676, allocations: 137.5 kB / 1.084 GB, free: 79.66 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002287/0.8699, allocations: 1.577 MB / 1.085 GB, free: 79.08 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.922e-05/0.8699, allocations: 39.83 kB / 1.085 GB, free: 79.04 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006603/0.8706, allocations: 0.889 MB / 1.086 GB, free: 78.35 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.8708, allocations: 217.4 kB / 1.086 GB, free: 78.18 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.964e-05/0.8708, allocations: 20.25 kB / 1.086 GB, free: 78.17 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.8709, allocations: 344 kB / 1.087 GB, free: 77.85 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.8719, allocations: 396 kB / 1.087 GB, free: 77.74 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.8731, allocations: 0.7982 MB / 1.088 GB, free: 77.12 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.8742, allocations: 0.5034 MB / 1.088 GB, free: 76.91 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/0.8743, allocations: 3.125 kB / 1.088 GB, free: 76.91 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002864/0.8771, allocations: 1.34 MB / 1.09 GB, free: 76.38 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.8773, allocations: 440.6 kB / 1.09 GB, free: 75.83 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/0.8774, allocations: 11.28 kB / 1.09 GB, free: 75.83 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.517e-05/0.8774, allocations: 22.2 kB / 1.09 GB, free: 75.83 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.8784, allocations: 270.5 kB / 1.09 GB, free: 75.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.731e-05/0.8785, allocations: 23.2 kB / 1.09 GB, free: 75.79 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.8798, allocations: 136.8 kB / 1.09 GB, free: 75.76 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.88, allocations: 57.19 kB / 1.09 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/0.88, allocations: 3.312 kB / 1.09 GB, free: 75.75 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002394/0.8824, allocations: 1.174 MB / 1.092 GB, free: 75.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.8824, allocations: 15.84 kB / 1.092 GB, free: 75.31 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.8824, allocations: 17.91 kB / 1.092 GB, free: 75.31 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.8837, allocations: 265.4 kB / 1.092 GB, free: 75.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.068e-05/0.8837, allocations: 25.91 kB / 1.092 GB, free: 75.28 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.8851, allocations: 127.2 kB / 1.092 GB, free: 75.25 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-05/0.8852, allocations: 52.41 kB / 1.092 GB, free: 75.25 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (122): * Single equations (assignments): 118 * 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.0008797/0.8861, allocations: 483.7 kB / 1.093 GB, free: 74.9 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002216/0.8863, allocations: 167.5 kB / 1.093 GB, free: 74.81 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002675/0.889, allocations: 1.17 MB / 1.094 GB, free: 74.39 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.889, allocations: 15.8 kB / 1.094 GB, free: 74.38 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.889, allocations: 1.812 kB / 1.094 GB, free: 74.38 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001919/0.8909, allocations: 1.004 MB / 1.095 GB, free: 73.88 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.004406/0.8954, allocations: 2.446 MB / 1.097 GB, free: 72.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.8954, allocations: 5.828 kB / 1.097 GB, free: 72.78 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007421/0.8961, allocations: 150.5 kB / 1.097 GB, free: 72.77 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001737/0.8963, allocations: 30.94 kB / 1.097 GB, free: 72.75 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.8964, allocations: 24.31 kB / 1.097 GB, free: 72.74 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009264/0.8973, allocations: 1.363 MB / 1.099 GB, free: 71.39 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.8973, allocations: 1.25 kB / 1.099 GB, free: 71.39 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/0.9006, allocations: 1.625 MB / 1.1 GB, free: 70.68 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006512/0.9013, allocations: 347.6 kB / 1.101 GB, free: 70.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.9016, allocations: 21.86 kB / 1.101 GB, free: 70.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.9026, allocations: 118.2 kB / 1.101 GB, free: 70.39 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.9027, allocations: 64.91 kB / 1.101 GB, free: 70.38 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-05/0.9028, allocations: 33.91 kB / 1.101 GB, free: 70.37 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001615/0.9044, allocations: 1.118 MB / 1.102 GB, free: 69.92 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9044, allocations: 0 / 1.102 GB, free: 69.92 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002903/0.9073, allocations: 0.919 MB / 1.103 GB, free: 69.77 MB / 0.6823 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/0.9089, allocations: 0.7333 MB / 1.104 GB, free: 69.54 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003402/0.9123, allocations: 1.728 MB / 1.105 GB, free: 68.88 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.9123, allocations: 448 / 1.105 GB, free: 68.88 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.9135, allocations: 0.5695 MB / 1.106 GB, free: 68.64 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/0.917, allocations: 0.7426 MB / 1.107 GB, free: 68.42 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006014/0.923, allocations: 3.786 MB / 1.11 GB, free: 65.97 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.9241, allocations: 1.375 MB / 1.112 GB, free: 64.96 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002073/0.9262, allocations: 424.5 kB / 1.112 GB, free: 64.75 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.9265, allocations: 138 kB / 1.112 GB, free: 64.73 MB / 0.6823 GB Notification: Performance of SimCode: time 9.72e-07/0.9266, allocations: 0 / 1.112 GB, free: 64.73 MB / 0.6823 GB Notification: Performance of Templates: time 0.04425/0.9708, allocations: 31.16 MB / 1.143 GB, free: 41.33 MB / 0.6823 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)