Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 186.6 kB / 16.63 MB, free: 5.117 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4601/0.4601, allocations: 87.49 MB / 104.9 MB, free: 13.02 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 349.1 MB, free: 2.738 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 107.1 kB / 420 MB, free: 8.496 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 47.92 kB / 0.4891 GB, free: 7.711 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3132, allocations: 70.07 MB / 0.5575 GB, free: 44.8 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03815/0.3514, allocations: 52.91 MB / 0.6092 GB, free: 8.129 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.02212/0.3736, allocations: 15.29 MB / 0.6241 GB, free: 8.809 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003127/0.3768, allocations: 83.5 kB / 0.6242 GB, free: 8.727 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003145/0.38, allocations: 0.9485 MB / 0.6251 GB, free: 7.773 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006521/0.3865, allocations: 2.154 MB / 0.6272 GB, free: 5.613 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005704/0.3923, allocations: 2.009 MB / 0.6292 GB, free: 3.621 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.008316/0.4006, allocations: 6.045 MB / 0.6351 GB, free: 13.56 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00317/0.4038, allocations: 1.415 MB / 0.6364 GB, free: 12.11 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004259/0.4081, allocations: 1.68 MB / 0.6381 GB, free: 10.42 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002935/0.4111, allocations: 1.365 MB / 0.6394 GB, free: 9.051 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006356/0.4117, allocations: 92 kB / 0.6395 GB, free: 8.961 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004371/0.4161, allocations: 1.739 MB / 0.6412 GB, free: 7.219 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009217/0.4171, allocations: 462.2 kB / 0.6416 GB, free: 6.766 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002104/0.4192, allocations: 0.9478 MB / 0.6426 GB, free: 5.812 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006138/0.4254, allocations: 3.225 MB / 0.6457 GB, free: 2.578 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.4254, allocations: 0 / 0.6457 GB, free: 2.578 MB / 458.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.4254, allocations: 3.938 kB / 0.6457 GB, free: 2.574 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001265/0.4255, allocations: 0 / 0.6457 GB, free: 2.574 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.006418/0.432, allocations: 2.525 MB / 0.6482 GB, free: 15.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.432, allocations: 8.031 kB / 0.6482 GB, free: 15.97 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002966/0.435, allocations: 0.529 MB / 0.6487 GB, free: 15.44 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003828/0.4388, allocations: 1.682 MB / 0.6504 GB, free: 13.71 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/0.4392, allocations: 146.3 kB / 0.6505 GB, free: 13.56 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.4396, allocations: 124 kB / 0.6506 GB, free: 13.44 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/0.4423, allocations: 1.377 MB / 0.652 GB, free: 11.97 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.4423, allocations: 0 / 0.652 GB, free: 11.97 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.4424, allocations: 48 kB / 0.652 GB, free: 11.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.455e-05/0.4425, allocations: 50.02 kB / 0.6521 GB, free: 11.88 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.4452, allocations: 1.14 MB / 0.6532 GB, free: 10.73 MB / 474.7 MB 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.009665/0.4549, allocations: 7.002 MB / 0.66 GB, free: 3.188 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002771/0.4577, allocations: 1.432 MB / 0.6614 GB, free: 1.641 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.4588, allocations: 442.9 kB / 0.6618 GB, free: 1.207 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005878/0.4647, allocations: 3.145 MB / 0.6649 GB, free: 13.72 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.4659, allocations: 474.8 kB / 0.6653 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000669/0.4666, allocations: 87.23 kB / 0.6654 GB, free: 13.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=61): time 4.338e-06/0.4667, allocations: 4 kB / 0.6654 GB, free: 13.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=61): time 0.003642/0.4703, allocations: 1.291 MB / 0.6667 GB, free: 11.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.4704, allocations: 59.97 kB / 0.6668 GB, free: 11.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002599/0.473, allocations: 1.513 MB / 0.6682 GB, free: 10.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.425e-05/0.4731, allocations: 41.7 kB / 0.6683 GB, free: 10.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000788/0.4739, allocations: 0.8839 MB / 0.6691 GB, free: 9.309 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/0.4741, allocations: 220.9 kB / 0.6693 GB, free: 9.09 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003227/0.4744, allocations: 210.3 kB / 0.6695 GB, free: 8.879 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4746, allocations: 341.9 kB / 0.6699 GB, free: 8.539 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.4756, allocations: 412.6 kB / 0.6703 GB, free: 8.133 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.477, allocations: 0.7827 MB / 0.671 GB, free: 7.176 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002335/0.4794, allocations: 1.156 MB / 0.6722 GB, free: 5.863 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.4794, allocations: 4 kB / 0.6722 GB, free: 5.859 MB / 490.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003176/0.4826, allocations: 1.341 MB / 0.6735 GB, free: 4.504 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.4826, allocations: 45.64 kB / 0.6735 GB, free: 4.453 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.4827, allocations: 12 kB / 0.6735 GB, free: 4.441 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.08e-05/0.4827, allocations: 19.94 kB / 0.6735 GB, free: 4.422 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.4837, allocations: 267.7 kB / 0.6738 GB, free: 4.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.924e-05/0.4838, allocations: 19.94 kB / 0.6738 GB, free: 4.141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.4853, allocations: 128.5 kB / 0.6739 GB, free: 4.016 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.4854, allocations: 51.98 kB / 0.674 GB, free: 3.965 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001675/0.4871, allocations: 0.6971 MB / 0.6747 GB, free: 3.262 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001256/0.4884, allocations: 0.7632 MB / 0.6754 GB, free: 2.32 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002201/0.4906, allocations: 1.14 MB / 0.6765 GB, free: 1.027 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.805e-06/0.4906, allocations: 4 kB / 0.6765 GB, free: 1.023 MB / 490.7 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.003025/0.4936, allocations: 1.309 MB / 0.6778 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.4937, allocations: 45.62 kB / 0.6779 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.4937, allocations: 8 kB / 0.6779 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.4937, allocations: 16.19 kB / 0.6779 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009792/0.4947, allocations: 264.2 kB / 0.6781 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-05/0.4947, allocations: 27.86 kB / 0.6782 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.496, allocations: 132.3 kB / 0.6783 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.4962, allocations: 55.97 kB / 0.6783 GB, free: 15.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,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): 119 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000322/0.4965, allocations: 251.9 kB / 0.6786 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004336/0.4969, allocations: 165.9 kB / 0.6787 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/0.4999, allocations: 1.162 MB / 0.6799 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/0.5, allocations: 15.98 kB / 0.6799 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.5, allocations: 0 / 0.6799 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00212/0.5021, allocations: 1.006 MB / 0.6809 GB, free: 12.49 MB / 0.4948 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.005445/0.5076, allocations: 2.479 MB / 0.6833 GB, free: 9.938 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.5076, allocations: 8 kB / 0.6833 GB, free: 9.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000769/0.5084, allocations: 159.8 kB / 0.6835 GB, free: 9.773 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001704/0.5085, allocations: 28.84 kB / 0.6835 GB, free: 9.742 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.495e-05/0.5086, allocations: 23.98 kB / 0.6835 GB, free: 9.719 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.5096, allocations: 1.324 MB / 0.6848 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5097, allocations: 7.969 kB / 0.6848 GB, free: 8.254 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3756/0.8852, allocations: 29.91 MB / 0.714 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005143/0.8858, allocations: 332.2 kB / 0.7143 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.886, allocations: 12.66 kB / 0.7143 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000924/0.8869, allocations: 120.3 kB / 0.7145 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.887, allocations: 53.66 kB / 0.7145 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.229e-05/0.8871, allocations: 31.75 kB / 0.7145 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001688/0.8888, allocations: 1.079 MB / 0.7156 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8888, allocations: 0.5938 kB / 0.7156 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004631/0.8934, allocations: 1.367 MB / 0.7169 GB, free: 138.7 MB / 0.5105 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.s[1],mov.filter.s[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 (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001538/0.895, allocations: 0.7724 MB / 0.7177 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003291/0.8983, allocations: 1.656 MB / 0.7193 GB, free: 138 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.8983, allocations: 0 / 0.7193 GB, free: 138 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.8995, allocations: 0.5669 MB / 0.7199 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002897/0.9024, allocations: 0.7194 MB / 0.7206 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00495/0.9073, allocations: 4.268 MB / 0.7247 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000619/0.908, allocations: 1.396 MB / 0.7261 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001857/0.9098, allocations: 464.4 kB / 0.7265 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005856/0.9104, allocations: 150.4 kB / 0.7267 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of SimCode: time 5.21e-07/0.9104, allocations: 0 / 0.7267 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.04834/0.9588, allocations: 39.74 MB / 0.7655 GB, free: 95.13 MB / 0.5105 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)