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.005186/0.005186, allocations: 100.3 kB / 15.73 MB, free: 6.027 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.001114/0.001115, allocations: 186.9 kB / 16.67 MB, free: 5.965 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8106/0.8106, allocations: 132.2 MB / 422.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.91 kB / 0.5814 GB, free: 7.523 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4524/0.4537, allocations: 80.2 MB / 0.6597 GB, free: 10.34 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter mov.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06635/0.5201, allocations: 66.99 MB / 0.7251 GB, free: 3.066 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02557/0.5457, allocations: 16.74 MB / 0.7415 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004405/0.5501, allocations: 99.44 kB / 0.7416 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003454/0.5536, allocations: 1.192 MB / 0.7427 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007843/0.5615, allocations: 2.769 MB / 0.7454 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005856/0.5673, allocations: 2.359 MB / 0.7477 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008621/0.5759, allocations: 5.367 MB / 0.753 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003334/0.5793, allocations: 1.909 MB / 0.7548 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005697/0.585, allocations: 2.143 MB / 0.7569 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002052/0.5871, allocations: 1.485 MB / 0.7584 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002741/0.5874, allocations: 192 kB / 0.7586 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004265/0.5916, allocations: 1.977 MB / 0.7605 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005793/0.5922, allocations: 0.5489 MB / 0.761 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.5935, allocations: 1.139 MB / 0.7621 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005252/0.5987, allocations: 3.638 MB / 0.7657 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.5988, allocations: 0 / 0.7657 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5988, allocations: 0 / 0.7657 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.834e-05/0.5988, allocations: 0 / 0.7657 GB, free: 9.379 MB / 0.5919 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.004577/0.6034, allocations: 2.683 MB / 0.7683 GB, free: 6.621 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.6034, allocations: 15.97 kB / 0.7683 GB, free: 6.605 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001426/0.6049, allocations: 377.7 kB / 0.7687 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00319/0.6081, allocations: 1.811 MB / 0.7705 GB, free: 4.371 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.479e-05/0.6082, allocations: 102.4 kB / 0.7706 GB, free: 4.27 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/0.6084, allocations: 132 kB / 0.7707 GB, free: 4.141 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.6109, allocations: 1.424 MB / 0.7721 GB, free: 2.629 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.581e-05/0.611, allocations: 7.922 kB / 0.7721 GB, free: 2.621 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.6111, allocations: 48 kB / 0.7721 GB, free: 2.574 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.778e-05/0.6112, allocations: 54.3 kB / 0.7722 GB, free: 2.52 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/0.6135, allocations: 1.098 MB / 0.7732 GB, free: 1.414 MB / 0.5919 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.008669/0.6222, allocations: 7.35 MB / 0.7804 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.6243, allocations: 1.291 MB / 0.7817 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009273/0.6252, allocations: 453.5 kB / 0.7821 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004399/0.6296, allocations: 2.639 MB / 0.7847 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.6307, allocations: 482.6 kB / 0.7852 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=63): time 4.238e-06/0.6307, allocations: 0 / 0.7852 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of matching and sorting (n=63): time 0.003007/0.6337, allocations: 1.198 MB / 0.7863 GB, free: 3.066 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.6338, allocations: 123.4 kB / 0.7864 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.6359, allocations: 1.473 MB / 0.7879 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.54e-05/0.636, allocations: 45.7 kB / 0.7879 GB, free: 1.398 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007621/0.6367, allocations: 0.8956 MB / 0.7888 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.6369, allocations: 224.8 kB / 0.789 GB, free: 276 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002805/0.6372, allocations: 214.4 kB / 0.7892 GB, free: 56 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6374, allocations: 345.9 kB / 0.7895 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008654/0.6382, allocations: 384.6 kB / 0.7899 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.6394, allocations: 0.7242 MB / 0.7906 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001976/0.6414, allocations: 1.09 MB / 0.7917 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.6414, allocations: 4 kB / 0.7917 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002814/0.6442, allocations: 1.27 MB / 0.7929 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.637e-05/0.6443, allocations: 34.33 kB / 0.793 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.6443, allocations: 12 kB / 0.793 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.332e-05/0.6443, allocations: 16 kB / 0.793 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000957/0.6453, allocations: 247.6 kB / 0.7932 GB, free: 11.62 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.331e-05/0.6453, allocations: 19.94 kB / 0.7932 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.6465, allocations: 131.8 kB / 0.7934 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.231e-05/0.6466, allocations: 55.92 kB / 0.7934 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00146/0.6481, allocations: 0.6776 MB / 0.7941 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00107/0.6492, allocations: 0.7125 MB / 0.7948 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001878/0.6511, allocations: 1.055 MB / 0.7958 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.013e-06/0.6511, allocations: 7.938 kB / 0.7958 GB, free: 8.66 MB / 0.6231 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002615/0.6537, allocations: 1.235 MB / 0.797 GB, free: 7.41 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.6537, allocations: 37.7 kB / 0.7971 GB, free: 7.367 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.6538, allocations: 8 kB / 0.7971 GB, free: 7.359 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.6538, allocations: 16 kB / 0.7971 GB, free: 7.344 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009141/0.6547, allocations: 252 kB / 0.7973 GB, free: 7.098 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.77e-05/0.6547, allocations: 19.94 kB / 0.7973 GB, free: 7.078 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.6558, allocations: 112 kB / 0.7975 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.6559, allocations: 51.98 kB / 0.7975 GB, free: 6.918 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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.0003096/0.6562, allocations: 259.3 kB / 0.7977 GB, free: 6.66 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000246/0.6565, allocations: 161.9 kB / 0.7979 GB, free: 6.5 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002442/0.6589, allocations: 1.057 MB / 0.7989 GB, free: 5.426 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.659, allocations: 12 kB / 0.7989 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.659, allocations: 0 / 0.7989 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001729/0.6607, allocations: 0.7807 MB / 0.7997 GB, free: 4.617 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005081/0.6658, allocations: 2.689 MB / 0.8023 GB, free: 1.844 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.6658, allocations: 8 kB / 0.8023 GB, free: 1.836 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007408/0.6666, allocations: 151.8 kB / 0.8025 GB, free: 1.688 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002014/0.6668, allocations: 28.94 kB / 0.8025 GB, free: 1.656 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.736e-05/0.6669, allocations: 23.98 kB / 0.8025 GB, free: 1.633 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.6681, allocations: 1.429 MB / 0.8039 GB, free: 68 kB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.6681, allocations: 7.938 kB / 0.8039 GB, free: 60 kB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003363/0.6715, allocations: 1.562 MB / 0.8055 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.6725, allocations: 358.5 kB / 0.8058 GB, free: 14.08 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002278/0.6728, allocations: 19.98 kB / 0.8058 GB, free: 14.06 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008945/0.6737, allocations: 55.95 kB / 0.8059 GB, free: 14 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.6738, allocations: 56.48 kB / 0.8059 GB, free: 13.95 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.712e-05/0.6739, allocations: 31.97 kB / 0.806 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001753/0.6757, allocations: 1.078 MB / 0.807 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6757, allocations: 0 / 0.807 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002693/0.6784, allocations: 0.9393 MB / 0.8079 GB, free: 11.88 MB / 0.6387 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 (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.0013/0.6797, allocations: 0.5449 MB / 0.8085 GB, free: 11.34 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003625/0.6833, allocations: 1.574 MB / 0.81 GB, free: 9.746 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.6833, allocations: 0 / 0.81 GB, free: 9.746 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.6846, allocations: 0.5453 MB / 0.8105 GB, free: 9.184 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004089/0.6887, allocations: 0.8969 MB / 0.8114 GB, free: 8.32 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005702/0.6944, allocations: 3.102 MB / 0.8144 GB, free: 5.164 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.6954, allocations: 1.401 MB / 0.8158 GB, free: 3.73 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001755/0.6972, allocations: 422.2 kB / 0.8162 GB, free: 3.316 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/0.6976, allocations: 135.4 kB / 0.8163 GB, free: 3.184 MB / 0.6387 GB Notification: Performance of SimCode: time 1.062e-06/0.6976, allocations: 4 kB / 0.8163 GB, free: 3.18 MB / 0.6387 GB Notification: Performance of Templates: time 0.06177/0.7594, allocations: 34.76 MB / 0.8503 GB, free: 0.8828 MB / 0.67 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)