Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000803/0.000803, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008391/0.0008392, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.3 MB / 240 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7362/0.7362, allocations: 132.4 MB / 423.4 MB, free: 2.047 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003062, allocations: 13.03 kB / 0.5034 GB, free: 4.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3581, allocations: 81.57 MB / 0.5831 GB, free: 3.969 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05751/0.4157, allocations: 61.72 MB / 0.6433 GB, free: 2.688 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02114/0.4368, allocations: 15.7 MB / 0.6587 GB, free: 2.961 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002657/0.4395, allocations: 79.5 kB / 0.6588 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.442, allocations: 0.7881 MB / 0.6595 GB, free: 2.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005656/0.4477, allocations: 2.117 MB / 0.6616 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004656/0.4523, allocations: 1.752 MB / 0.6633 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.006979/0.4593, allocations: 5.974 MB / 0.6691 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002085/0.4614, allocations: 1.356 MB / 0.6705 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003032/0.4645, allocations: 1.68 MB / 0.6721 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001902/0.4664, allocations: 1.377 MB / 0.6734 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002127/0.4666, allocations: 72 kB / 0.6735 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.4696, allocations: 1.45 MB / 0.6749 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004639/0.4701, allocations: 426.2 kB / 0.6753 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005521/0.4706, allocations: 440.6 kB / 0.6758 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002799/0.4734, allocations: 2.658 MB / 0.6783 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.4734, allocations: 0 / 0.6783 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4735, allocations: 0 / 0.6783 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.399e-05/0.4735, allocations: 4 kB / 0.6784 GB, free: 14.74 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.00368/0.4772, allocations: 2.321 MB / 0.6806 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.4772, allocations: 8.031 kB / 0.6806 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001263/0.4785, allocations: 396.9 kB / 0.681 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002967/0.4815, allocations: 1.727 MB / 0.6827 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003379/0.4818, allocations: 174.3 kB / 0.6829 GB, free: 10 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.482, allocations: 131.9 kB / 0.683 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00249/0.4845, allocations: 1.439 MB / 0.6844 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.4845, allocations: 7.938 kB / 0.6844 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.4847, allocations: 52 kB / 0.6844 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/0.4847, allocations: 42.31 kB / 0.6845 GB, free: 8.246 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002331/0.4871, allocations: 1.145 MB / 0.6856 GB, free: 7.094 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.007883/0.4949, allocations: 7.389 MB / 0.6928 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/0.497, allocations: 1.372 MB / 0.6942 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000901/0.4979, allocations: 472.5 kB / 0.6946 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003602/0.5015, allocations: 2.612 MB / 0.6972 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009967/0.5025, allocations: 0.4947 MB / 0.6976 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004039/0.503, allocations: 91.25 kB / 0.6977 GB, free: 9.734 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=64): time 2.224e-06/0.503, allocations: 0 / 0.6977 GB, free: 9.734 MB / 0.5294 GB Notification: Performance of matching and sorting (n=64): time 0.002785/0.5058, allocations: 1.292 MB / 0.699 GB, free: 8.418 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.5058, allocations: 111.4 kB / 0.6991 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/0.5077, allocations: 1.485 MB / 0.7005 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.411e-05/0.5078, allocations: 49.64 kB / 0.7006 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006916/0.5085, allocations: 0.8841 MB / 0.7015 GB, free: 5.852 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.5087, allocations: 232.7 kB / 0.7017 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.166e-05/0.5087, allocations: 20 kB / 0.7017 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.5088, allocations: 341.9 kB / 0.702 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000821/0.5097, allocations: 381.7 kB / 0.7024 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.5107, allocations: 0.7273 MB / 0.7031 GB, free: 4.008 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009239/0.5117, allocations: 484.7 kB / 0.7036 GB, free: 3.531 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.5117, allocations: 4 kB / 0.7036 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00236/0.514, allocations: 1.278 MB / 0.7048 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002427/0.5143, allocations: 409 kB / 0.7052 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.5143, allocations: 8 kB / 0.7052 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.5143, allocations: 16 kB / 0.7052 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009679/0.5153, allocations: 267.5 kB / 0.7055 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.083e-05/0.5153, allocations: 19.94 kB / 0.7055 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.5166, allocations: 136.4 kB / 0.7056 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.976e-05/0.5167, allocations: 55.98 kB / 0.7057 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.833e-06/0.5167, allocations: 4 kB / 0.7057 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002104/0.5188, allocations: 1.107 MB / 0.7068 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.5188, allocations: 12.09 kB / 0.7068 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.5188, allocations: 16 kB / 0.7068 GB, free: 56 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009358/0.5198, allocations: 267.5 kB / 0.7071 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.838e-05/0.5198, allocations: 19.94 kB / 0.7071 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.5209, allocations: 128.5 kB / 0.7072 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.056e-05/0.521, allocations: 47.98 kB / 0.7072 GB, free: 15.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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): 119 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0007218/0.5217, allocations: 496.6 kB / 0.7077 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.5219, allocations: 169.8 kB / 0.7079 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.5243, allocations: 1.115 MB / 0.709 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.5243, allocations: 12 kB / 0.709 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.5243, allocations: 4 kB / 0.709 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001662/0.526, allocations: 0.8237 MB / 0.7098 GB, free: 12.96 MB / 0.545 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.004077/0.5301, allocations: 2.72 MB / 0.7124 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.5301, allocations: 0 / 0.7124 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007218/0.5308, allocations: 164 kB / 0.7126 GB, free: 9.996 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000177/0.531, allocations: 36.83 kB / 0.7126 GB, free: 9.957 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.455e-05/0.5311, allocations: 27.98 kB / 0.7127 GB, free: 9.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009969/0.5321, allocations: 1.37 MB / 0.714 GB, free: 8.422 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5321, allocations: 4 kB / 0.714 GB, free: 8.418 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002861/0.535, allocations: 1.639 MB / 0.7156 GB, free: 6.738 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005609/0.5355, allocations: 370.5 kB / 0.716 GB, free: 6.355 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/0.5358, allocations: 20 kB / 0.716 GB, free: 6.336 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.5368, allocations: 127.8 kB / 0.7161 GB, free: 6.211 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.5369, allocations: 64.41 kB / 0.7162 GB, free: 6.148 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.1e-05/0.537, allocations: 31.98 kB / 0.7162 GB, free: 6.117 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001436/0.5385, allocations: 1.074 MB / 0.7172 GB, free: 5.02 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/0.5385, allocations: 4 kB / 0.7172 GB, free: 5.016 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002327/0.5408, allocations: 0.9549 MB / 0.7182 GB, free: 4.059 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.0008929/0.5417, allocations: 495.4 kB / 0.7186 GB, free: 3.578 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002981/0.5447, allocations: 1.616 MB / 0.7202 GB, free: 1.941 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.5447, allocations: 7.938 kB / 0.7202 GB, free: 1.934 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.5458, allocations: 0.577 MB / 0.7208 GB, free: 1.344 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003304/0.5491, allocations: 0.8532 MB / 0.7216 GB, free: 0.5039 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005106/0.5542, allocations: 3.863 MB / 0.7254 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008709/0.5551, allocations: 1.401 MB / 0.7268 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001611/0.5567, allocations: 414.4 kB / 0.7272 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.5571, allocations: 143.4 kB / 0.7273 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of SimCode: time 6.11e-07/0.5571, allocations: 0 / 0.7273 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.05043/0.6075, allocations: 32.53 MB / 0.7591 GB, free: 10.53 MB / 0.5919 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)