Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.00651/0.00651, allocations: 96.19 kB / 15.87 MB, free: 6.289 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.001402/0.001402, allocations: 204.3 kB / 16.79 MB, free: 6.215 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.373/1.373, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.016/1.016, allocations: 135.1 MB / 425.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 65.34 kB / 0.5053 GB, free: 5.777 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1878, allocations: 80.93 MB / 0.5843 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.3976/0.5855, allocations: 66.52 MB / 0.6493 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02176/0.6073, allocations: 16.84 MB / 0.6658 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004463/0.6118, allocations: 89.47 kB / 0.6658 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00389/0.6157, allocations: 0.9881 MB / 0.6668 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.008465/0.6242, allocations: 2.449 MB / 0.6692 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.006828/0.6311, allocations: 2.08 MB / 0.6712 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01255/0.6436, allocations: 6.982 MB / 0.678 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004224/0.6479, allocations: 1.625 MB / 0.6796 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005932/0.6539, allocations: 1.802 MB / 0.6814 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004506/0.6584, allocations: 1.504 MB / 0.6829 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.6595, allocations: 102 kB / 0.683 GB, free: 9.48 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00701/0.6665, allocations: 1.844 MB / 0.6848 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001605/0.6682, allocations: 479.4 kB / 0.6852 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.00307/0.6713, allocations: 1.042 MB / 0.6862 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.006335/0.6776, allocations: 2.733 MB / 0.6889 GB, free: 7.141 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.6777, allocations: 0.9688 kB / 0.6889 GB, free: 7.141 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6777, allocations: 0 / 0.6889 GB, free: 7.141 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.617e-05/0.6778, allocations: 0 / 0.6889 GB, free: 7.141 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.007646/0.6855, allocations: 2.681 MB / 0.6915 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.6855, allocations: 8.484 kB / 0.6915 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001873/0.6874, allocations: 373.2 kB / 0.6919 GB, free: 5.281 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004158/0.6916, allocations: 1.819 MB / 0.6937 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003844/0.692, allocations: 152.4 kB / 0.6938 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002112/0.6922, allocations: 131.7 kB / 0.6939 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002922/0.6951, allocations: 1.43 MB / 0.6953 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.043e-05/0.6952, allocations: 5.75 kB / 0.6953 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.6953, allocations: 52.78 kB / 0.6954 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.193e-05/0.6954, allocations: 50.47 kB / 0.6954 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002594/0.698, allocations: 1.11 MB / 0.6965 GB, free: 3.047 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.01066/0.7087, allocations: 7.348 MB / 0.7037 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002198/0.7109, allocations: 1.318 MB / 0.705 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.7119, allocations: 454.9 kB / 0.7054 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005382/0.7173, allocations: 2.641 MB / 0.708 GB, free: 9.488 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001134/0.7185, allocations: 498.4 kB / 0.7085 GB, free: 9.18 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008275/0.7193, allocations: 88.7 kB / 0.7086 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=64): time 3.416e-06/0.7193, allocations: 1.094 kB / 0.7086 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of matching and sorting (n=64): time 0.003146/0.7225, allocations: 1.22 MB / 0.7097 GB, free: 8.461 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.7226, allocations: 115 kB / 0.7099 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.7248, allocations: 1.45 MB / 0.7113 GB, free: 7.555 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.67e-05/0.7249, allocations: 43.67 kB / 0.7113 GB, free: 7.512 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008783/0.7258, allocations: 0.8943 MB / 0.7122 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.726, allocations: 233.2 kB / 0.7124 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003416/0.7264, allocations: 209.1 kB / 0.7126 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.7265, allocations: 346.4 kB / 0.7129 GB, free: 6.059 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009199/0.7275, allocations: 388.4 kB / 0.7133 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.7287, allocations: 0.7253 MB / 0.714 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002015/0.7307, allocations: 1.098 MB / 0.7151 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.7307, allocations: 4.812 kB / 0.7151 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00289/0.7336, allocations: 1.283 MB / 0.7163 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.47e-05/0.7337, allocations: 45.44 kB / 0.7164 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.7337, allocations: 10.28 kB / 0.7164 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/0.7337, allocations: 13.84 kB / 0.7164 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009553/0.7347, allocations: 247.8 kB / 0.7166 GB, free: 3.656 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.313e-05/0.7347, allocations: 27.14 kB / 0.7167 GB, free: 3.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/0.7363, allocations: 122.4 kB / 0.7168 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.637e-05/0.7365, allocations: 52.61 kB / 0.7168 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001579/0.738, allocations: 0.6939 MB / 0.7175 GB, free: 3.168 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001082/0.7391, allocations: 0.7087 MB / 0.7182 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001869/0.741, allocations: 1.071 MB / 0.7193 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.488e-06/0.741, allocations: 7.938 kB / 0.7193 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of matching and sorting (n=124) (initialization_lambda0): time 0.002823/0.7439, allocations: 1.25 MB / 0.7205 GB, free: 392 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.13e-05/0.7439, allocations: 37.7 kB / 0.7205 GB, free: 348 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.744, allocations: 8 kB / 0.7205 GB, free: 340 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.744, allocations: 17.5 kB / 0.7205 GB, free: 324 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009284/0.7449, allocations: 252.2 kB / 0.7208 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.949e-05/0.7449, allocations: 23.86 kB / 0.7208 GB, free: 48 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.7466, allocations: 120.6 kB / 0.7209 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.915e-05/0.7467, allocations: 51.98 kB / 0.721 GB, free: 15.88 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * 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.000417/0.7472, allocations: 251.9 kB / 0.7212 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003695/0.7475, allocations: 165.9 kB / 0.7214 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00281/0.7503, allocations: 1.08 MB / 0.7224 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.7504, allocations: 11.88 kB / 0.7224 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.7504, allocations: 4 kB / 0.7224 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001761/0.7522, allocations: 0.7964 MB / 0.7232 GB, free: 13.54 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.006139/0.7583, allocations: 2.68 MB / 0.7258 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.7584, allocations: 0 / 0.7258 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007839/0.7592, allocations: 160 kB / 0.726 GB, free: 10.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.7594, allocations: 28.84 kB / 0.726 GB, free: 10.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.737e-05/0.7595, allocations: 23.98 kB / 0.726 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.7606, allocations: 1.319 MB / 0.7273 GB, free: 9.117 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.7606, allocations: 7.938 kB / 0.7273 GB, free: 9.109 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003654/0.7643, allocations: 1.584 MB / 0.7289 GB, free: 7.488 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.7654, allocations: 350.6 kB / 0.7292 GB, free: 7.125 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/0.7657, allocations: 19.94 kB / 0.7292 GB, free: 7.105 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.7668, allocations: 115.8 kB / 0.7293 GB, free: 6.992 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.7669, allocations: 56.48 kB / 0.7294 GB, free: 6.938 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.926e-05/0.767, allocations: 35.97 kB / 0.7294 GB, free: 6.902 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001632/0.7687, allocations: 1.05 MB / 0.7305 GB, free: 5.828 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.405e-06/0.7687, allocations: 0 / 0.7305 GB, free: 5.828 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003266/0.772, allocations: 0.9509 MB / 0.7314 GB, free: 4.875 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 (76): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001442/0.7734, allocations: 0.5062 MB / 0.7319 GB, free: 4.375 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003621/0.777, allocations: 1.589 MB / 0.7334 GB, free: 2.762 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/0.7771, allocations: 3.984 kB / 0.7334 GB, free: 2.758 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.7783, allocations: 0.5519 MB / 0.734 GB, free: 2.199 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00437/0.7827, allocations: 0.8553 MB / 0.7348 GB, free: 1.367 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005953/0.7886, allocations: 3.88 MB / 0.7386 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009548/0.7896, allocations: 1.388 MB / 0.74 GB, free: 12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/0.7901, allocations: 147.4 kB / 0.7401 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of SimCode: time 5.01e-07/0.7901, allocations: 0 / 0.7401 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of Templates: time 0.05129/0.8414, allocations: 34.77 MB / 0.774 GB, free: 9.336 MB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)