Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001377, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 196.7 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7226/0.7226, allocations: 132.2 MB / 422.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.83 kB / 0.5018 GB, free: 3.844 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4015/0.4029, allocations: 80.2 MB / 0.5801 GB, free: 4.543 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.0488/0.4517, allocations: 53.26 MB / 0.6321 GB, free: 11.79 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02053/0.4723, allocations: 15.2 MB / 0.6469 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003168/0.4755, allocations: 87.5 kB / 0.647 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003278/0.4788, allocations: 1.117 MB / 0.6481 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008025/0.4868, allocations: 2.346 MB / 0.6504 GB, free: 9.352 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005443/0.4923, allocations: 2.241 MB / 0.6526 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.006077/0.4984, allocations: 4.618 MB / 0.6571 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002299/0.5007, allocations: 1.631 MB / 0.6587 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00383/0.5045, allocations: 1.901 MB / 0.6606 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002011/0.5066, allocations: 1.346 MB / 0.6619 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003187/0.5069, allocations: 168 kB / 0.662 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004067/0.511, allocations: 1.837 MB / 0.6638 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006358/0.5116, allocations: 0.5255 MB / 0.6643 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001445/0.5131, allocations: 1.041 MB / 0.6653 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.005676/0.5188, allocations: 3.275 MB / 0.6685 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.5188, allocations: 0 / 0.6685 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5188, allocations: 0 / 0.6685 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.046e-05/0.5188, allocations: 0 / 0.6685 GB, free: 6.719 MB / 0.4981 GB 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.004185/0.523, allocations: 2.525 MB / 0.671 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.5231, allocations: 12.03 kB / 0.671 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002032/0.5251, allocations: 449.5 kB / 0.6715 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/0.5279, allocations: 1.604 MB / 0.673 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003602/0.5283, allocations: 142.4 kB / 0.6732 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/0.5285, allocations: 124 kB / 0.6733 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.5309, allocations: 1.35 MB / 0.6746 GB, free: 316 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.5309, allocations: 3.938 kB / 0.6746 GB, free: 312 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.531, allocations: 51.98 kB / 0.6746 GB, free: 260 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.315e-05/0.5311, allocations: 46 kB / 0.6747 GB, free: 212 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002579/0.5336, allocations: 1.077 MB / 0.6757 GB, free: 15.12 MB / 0.5137 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.009331/0.543, allocations: 7.13 MB / 0.6827 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/0.5455, allocations: 1.363 MB / 0.684 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009333/0.5464, allocations: 422.9 kB / 0.6844 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005238/0.5517, allocations: 3.083 MB / 0.6874 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.5529, allocations: 450.8 kB / 0.6879 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 2.765e-06/0.5529, allocations: 4 kB / 0.6879 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of matching and sorting (n=60): time 0.003146/0.556, allocations: 1.213 MB / 0.6891 GB, free: 436 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.637e-05/0.5561, allocations: 63.91 kB / 0.6891 GB, free: 360 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001997/0.5581, allocations: 1.537 MB / 0.6906 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.353e-05/0.5582, allocations: 45.7 kB / 0.6907 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007326/0.559, allocations: 0.8761 MB / 0.6915 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.5592, allocations: 216.9 kB / 0.6917 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002836/0.5595, allocations: 206.4 kB / 0.6919 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.5597, allocations: 341.9 kB / 0.6923 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.5607, allocations: 384.6 kB / 0.6926 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.5619, allocations: 0.7554 MB / 0.6934 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002113/0.564, allocations: 1.132 MB / 0.6945 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.564, allocations: 4 kB / 0.6945 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002841/0.5669, allocations: 1.29 MB / 0.6957 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.241e-05/0.5669, allocations: 38.33 kB / 0.6958 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.567, allocations: 8 kB / 0.6958 GB, free: 9.164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.79e-05/0.567, allocations: 20.09 kB / 0.6958 GB, free: 9.145 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009879/0.568, allocations: 267.5 kB / 0.6961 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.683e-05/0.568, allocations: 23.88 kB / 0.6961 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.5691, allocations: 143.6 kB / 0.6962 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.745e-05/0.5692, allocations: 51.98 kB / 0.6963 GB, free: 8.668 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001484/0.5707, allocations: 0.6776 MB / 0.6969 GB, free: 7.988 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00113/0.5719, allocations: 0.7359 MB / 0.6976 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001992/0.5739, allocations: 1.097 MB / 0.6987 GB, free: 5.82 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.302e-06/0.5739, allocations: 4 kB / 0.6987 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002734/0.5766, allocations: 1.27 MB / 0.7 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.525e-05/0.5767, allocations: 37.7 kB / 0.7 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.5767, allocations: 12 kB / 0.7 GB, free: 4.477 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.5767, allocations: 16 kB / 0.7 GB, free: 4.461 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009475/0.5777, allocations: 255.6 kB / 0.7003 GB, free: 4.211 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.5777, allocations: 23.92 kB / 0.7003 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.5788, allocations: 120 kB / 0.7004 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.314e-05/0.5789, allocations: 55.97 kB / 0.7005 GB, free: 4.016 MB / 0.5294 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 (120): * Single equations (assignments): 118 * 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.0002709/0.5791, allocations: 255.8 kB / 0.7007 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003149/0.5795, allocations: 161.9 kB / 0.7009 GB, free: 3.598 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002705/0.5822, allocations: 1.122 MB / 0.7019 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.5822, allocations: 8 kB / 0.702 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.5822, allocations: 0 / 0.702 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001973/0.5842, allocations: 0.9704 MB / 0.7029 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005076/0.5893, allocations: 2.424 MB / 0.7053 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.5893, allocations: 0 / 0.7053 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007348/0.59, allocations: 151.8 kB / 0.7054 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.5902, allocations: 24.84 kB / 0.7054 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.939e-05/0.5903, allocations: 23.98 kB / 0.7055 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.5914, allocations: 1.414 MB / 0.7068 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5914, allocations: 3.938 kB / 0.7068 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.5948, allocations: 1.549 MB / 0.7084 GB, free: 11.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007275/0.5956, allocations: 342.6 kB / 0.7087 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000351/0.596, allocations: 19.94 kB / 0.7087 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.597, allocations: 63.88 kB / 0.7088 GB, free: 11.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.5971, allocations: 48.48 kB / 0.7088 GB, free: 11.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-05/0.5972, allocations: 31.98 kB / 0.7088 GB, free: 11.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001882/0.5991, allocations: 1.093 MB / 0.7099 GB, free: 9.969 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5991, allocations: 0 / 0.7099 GB, free: 9.969 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002822/0.6019, allocations: 0.8615 MB / 0.7107 GB, free: 9.105 MB / 0.545 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 (70): * Single equations (assignments): 61 * 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.001839/0.6038, allocations: 0.7339 MB / 0.7115 GB, free: 8.539 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004111/0.6079, allocations: 1.659 MB / 0.7131 GB, free: 6.863 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6079, allocations: 0 / 0.7131 GB, free: 6.863 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.6092, allocations: 0.5425 MB / 0.7136 GB, free: 6.312 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003572/0.6128, allocations: 0.7683 MB / 0.7144 GB, free: 5.582 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005969/0.6188, allocations: 3.089 MB / 0.7174 GB, free: 2.453 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.62, allocations: 1.356 MB / 0.7187 GB, free: 1.066 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001864/0.6219, allocations: 413.1 kB / 0.7191 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/0.6223, allocations: 139.4 kB / 0.7192 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of SimCode: time 6.81e-07/0.6223, allocations: 0 / 0.7192 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of Templates: time 0.05214/0.6744, allocations: 31.48 MB / 0.75 GB, free: 1.484 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)