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.607/1.607, allocations: 288.4 MB / 303.7 MB, free: 8.059 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.0009586/0.0009586, allocations: 176.5 kB / 372.3 MB, free: 10.11 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.511/1.511, allocations: 205.4 MB / 0.631 GB, free: 9.867 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.0007451/0.0007451, allocations: 102.3 kB / 0.7444 GB, free: 5.773 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005864/0.0005864, allocations: 20.22 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2295, allocations: 115.3 MB / 0.9801 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04121/0.2708, allocations: 49.17 MB / 1.028 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02442/0.2953, allocations: 16.63 MB / 1.044 GB, free: 9.367 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0029/0.2982, allocations: 71.5 kB / 1.044 GB, free: 9.297 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.003222/0.3015, allocations: 0.8693 MB / 1.045 GB, free: 8.426 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.006226/0.3077, allocations: 1.978 MB / 1.047 GB, free: 6.441 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.008356/0.3161, allocations: 2.765 MB / 1.05 GB, free: 3.699 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.007123/0.3232, allocations: 5.221 MB / 1.055 GB, free: 14.46 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002779/0.326, allocations: 1.35 MB / 1.056 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003649/0.3297, allocations: 1.595 MB / 1.058 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/0.3322, allocations: 1.256 MB / 1.059 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0005294/0.3327, allocations: 68 kB / 1.059 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003924/0.3366, allocations: 1.758 MB / 1.061 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0006335/0.3373, allocations: 418.3 kB / 1.061 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.3387, allocations: 0.9071 MB / 1.062 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.003445/0.3421, allocations: 2.545 MB / 1.065 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3422, allocations: 0 / 1.065 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3422, allocations: 0 / 1.065 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.162e-05/0.3422, allocations: 3.938 kB / 1.065 GB, free: 4.504 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.003736/0.346, allocations: 2.218 MB / 1.067 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.346, allocations: 15.97 kB / 1.067 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001983/0.348, allocations: 497.1 kB / 1.067 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/0.3509, allocations: 1.64 MB / 1.069 GB, free: 24 kB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.3721/0.723, allocations: 150.2 kB / 1.069 GB, free: 89.58 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006704/0.7237, allocations: 124.3 kB / 1.069 GB, free: 89.58 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004237/0.728, allocations: 1.395 MB / 1.071 GB, free: 89.19 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.28e-05/0.7281, allocations: 4.188 kB / 1.071 GB, free: 89.19 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000152/0.7282, allocations: 48.47 kB / 1.071 GB, free: 89.16 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-05/0.7283, allocations: 29.42 kB / 1.071 GB, free: 89.16 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003044/0.7314, allocations: 1.132 MB / 1.072 GB, free: 88.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.01035/0.7417, allocations: 6.997 MB / 1.079 GB, free: 83.82 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002698/0.7444, allocations: 1.437 MB / 1.08 GB, free: 82.92 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.7455, allocations: 430.7 kB / 1.08 GB, free: 82.79 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005559/0.7511, allocations: 3.086 MB / 1.083 GB, free: 80.38 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001435/0.7526, allocations: 473.3 kB / 1.084 GB, free: 80.21 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001/0.7536, allocations: 94.77 kB / 1.084 GB, free: 80.18 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 8.917e-06/0.7537, allocations: 1.062 kB / 1.084 GB, free: 80.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.004191/0.7579, allocations: 1.294 MB / 1.085 GB, free: 79.68 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.758, allocations: 143.7 kB / 1.085 GB, free: 79.52 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003388/0.7614, allocations: 1.576 MB / 1.087 GB, free: 78.93 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.7615, allocations: 39.39 kB / 1.087 GB, free: 78.89 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006803/0.7622, allocations: 0.8878 MB / 1.088 GB, free: 78.2 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.7624, allocations: 215.2 kB / 1.088 GB, free: 78.03 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.7624, allocations: 19.47 kB / 1.088 GB, free: 78.02 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.7625, allocations: 344.5 kB / 1.088 GB, free: 77.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.7635, allocations: 394.1 kB / 1.089 GB, free: 77.59 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.7647, allocations: 0.8025 MB / 1.09 GB, free: 76.96 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002043/0.7668, allocations: 1.151 MB / 1.091 GB, free: 76.19 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.7668, allocations: 3.625 kB / 1.091 GB, free: 76.19 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002986/0.7698, allocations: 1.339 MB / 1.092 GB, free: 75.66 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001987/0.77, allocations: 443.6 kB / 1.092 GB, free: 75.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.7701, allocations: 13.7 kB / 1.092 GB, free: 75.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.355e-05/0.7701, allocations: 15.75 kB / 1.092 GB, free: 75.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.7712, allocations: 270 kB / 1.093 GB, free: 75.07 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.518e-05/0.7713, allocations: 21.28 kB / 1.093 GB, free: 75.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.7727, allocations: 134.5 kB / 1.093 GB, free: 75.04 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.7728, allocations: 53.25 kB / 1.093 GB, free: 75.03 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.7729, allocations: 8.375 kB / 1.093 GB, free: 75.03 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002452/0.7753, allocations: 1.169 MB / 1.094 GB, free: 74.59 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.7754, allocations: 14.58 kB / 1.094 GB, free: 74.59 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.7754, allocations: 19.91 kB / 1.094 GB, free: 74.59 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009973/0.7764, allocations: 262.2 kB / 1.094 GB, free: 74.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.116e-05/0.7764, allocations: 26.25 kB / 1.094 GB, free: 74.56 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.7777, allocations: 129.9 kB / 1.094 GB, free: 74.53 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.15e-05/0.7779, allocations: 53.45 kB / 1.094 GB, free: 74.52 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.0009021/0.7788, allocations: 488 kB / 1.095 GB, free: 74.17 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.779, allocations: 168.8 kB / 1.095 GB, free: 74.08 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002605/0.7816, allocations: 1.163 MB / 1.096 GB, free: 73.66 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.7816, allocations: 12.64 kB / 1.096 GB, free: 73.66 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.7817, allocations: 0.6094 kB / 1.096 GB, free: 73.66 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001873/0.7835, allocations: 1.007 MB / 1.097 GB, free: 73.15 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.004886/0.7884, allocations: 2.444 MB / 1.1 GB, free: 72.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.7885, allocations: 1.406 kB / 1.1 GB, free: 72.05 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007573/0.7892, allocations: 154 kB / 1.1 GB, free: 72.04 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/0.7894, allocations: 31.25 kB / 1.1 GB, free: 72.03 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.847e-05/0.7895, allocations: 20 kB / 1.1 GB, free: 72.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009879/0.7905, allocations: 1.367 MB / 1.101 GB, free: 70.67 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7905, allocations: 3.562 kB / 1.101 GB, free: 70.67 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003456/0.794, allocations: 1.627 MB / 1.103 GB, free: 69.95 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007962/0.7948, allocations: 346.9 kB / 1.103 GB, free: 69.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002436/0.795, allocations: 21.72 kB / 1.103 GB, free: 69.69 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009671/0.796, allocations: 127.1 kB / 1.103 GB, free: 69.66 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.7962, allocations: 59.09 kB / 1.103 GB, free: 69.65 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.527e-05/0.7962, allocations: 28.14 kB / 1.103 GB, free: 69.64 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001544/0.7978, allocations: 1.11 MB / 1.104 GB, free: 69.2 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2e-07/0.7978, allocations: 3.75 kB / 1.104 GB, free: 69.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002907/0.8007, allocations: 0.9246 MB / 1.105 GB, free: 69.05 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.001753/0.8025, allocations: 0.7608 MB / 1.106 GB, free: 68.81 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003972/0.8065, allocations: 1.724 MB / 1.108 GB, free: 68.04 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.8065, allocations: 1.75 kB / 1.108 GB, free: 68.04 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.8077, allocations: 0.5779 MB / 1.108 GB, free: 67.72 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003922/0.8116, allocations: 0.7335 MB / 1.109 GB, free: 67.36 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005723/0.8174, allocations: 3.789 MB / 1.113 GB, free: 64.91 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009358/0.8184, allocations: 1.367 MB / 1.114 GB, free: 63.89 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001885/0.8203, allocations: 417.9 kB / 1.114 GB, free: 63.69 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.8206, allocations: 145.7 kB / 1.115 GB, free: 63.66 MB / 0.6823 GB Notification: Performance of SimCode: time 7.91e-07/0.8206, allocations: 0 / 1.115 GB, free: 63.66 MB / 0.6823 GB Notification: Performance of Templates: time 0.04908/0.8697, allocations: 31.73 MB / 1.146 GB, free: 38.53 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)