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.001475/0.001475, allocations: 103.7 kB / 16.27 MB, free: 6.355 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.001453/0.001453, allocations: 191.6 kB / 17.2 MB, free: 5.953 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.334/1.334, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8/0.8, allocations: 135.2 MB / 426.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 63.89 kB / 0.506 GB, free: 8.383 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3496, allocations: 80.91 MB / 0.5851 GB, free: 25.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06098/0.4106, allocations: 66.97 MB / 0.6504 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.4365, allocations: 16.76 MB / 0.6668 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002973/0.4395, allocations: 91.5 kB / 0.6669 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003419/0.4429, allocations: 1.176 MB / 0.668 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007414/0.4504, allocations: 2.655 MB / 0.6706 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006094/0.4565, allocations: 2.324 MB / 0.6729 GB, free: 404 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.007973/0.4645, allocations: 5.348 MB / 0.6781 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00317/0.4677, allocations: 1.907 MB / 0.68 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004885/0.4726, allocations: 2.094 MB / 0.682 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002475/0.4751, allocations: 1.486 MB / 0.6835 GB, free: 5.496 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003711/0.4755, allocations: 191.9 kB / 0.6837 GB, free: 5.309 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004064/0.4795, allocations: 1.958 MB / 0.6856 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006998/0.4802, allocations: 0.5606 MB / 0.6861 GB, free: 2.785 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.4818, allocations: 1.135 MB / 0.6872 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005372/0.4872, allocations: 3.599 MB / 0.6908 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4872, allocations: 0 / 0.6908 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4872, allocations: 0 / 0.6908 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.762e-05/0.4873, allocations: 0 / 0.6908 GB, free: 14.04 MB / 0.5294 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.004639/0.4919, allocations: 2.672 MB / 0.6934 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.492, allocations: 9.109 kB / 0.6934 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/0.4934, allocations: 369.9 kB / 0.6937 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.4966, allocations: 1.741 MB / 0.6954 GB, free: 9.125 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003855/0.497, allocations: 158.4 kB / 0.6956 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002078/0.4973, allocations: 135.9 kB / 0.6957 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.4999, allocations: 1.424 MB / 0.6971 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.955e-05/0.5, allocations: 7.844 kB / 0.6971 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.5001, allocations: 59.98 kB / 0.6972 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.123e-05/0.5002, allocations: 46.31 kB / 0.6972 GB, free: 7.211 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002508/0.5027, allocations: 1.106 MB / 0.6983 GB, free: 6.098 MB / 0.5294 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.009867/0.5126, allocations: 7.417 MB / 0.7055 GB, free: 14.11 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002213/0.5148, allocations: 1.302 MB / 0.7068 GB, free: 12.7 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.5158, allocations: 459.5 kB / 0.7072 GB, free: 12.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004621/0.5205, allocations: 2.635 MB / 0.7098 GB, free: 9.379 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001084/0.5216, allocations: 494.5 kB / 0.7103 GB, free: 8.875 MB / 0.545 GB Notification: Performance of pre-optimization done (n=63): time 2.114e-06/0.5216, allocations: 0 / 0.7103 GB, free: 8.875 MB / 0.545 GB Notification: Performance of matching and sorting (n=63): time 0.00312/0.5247, allocations: 1.214 MB / 0.7115 GB, free: 7.633 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.971e-05/0.5248, allocations: 107.4 kB / 0.7116 GB, free: 7.504 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.5268, allocations: 1.48 MB / 0.713 GB, free: 6.023 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.34e-05/0.5269, allocations: 41.7 kB / 0.7131 GB, free: 5.977 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008758/0.5278, allocations: 0.9034 MB / 0.7139 GB, free: 5.062 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002498/0.5281, allocations: 224.8 kB / 0.7142 GB, free: 4.84 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003196/0.5284, allocations: 206.4 kB / 0.7144 GB, free: 4.633 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.5286, allocations: 349.9 kB / 0.7147 GB, free: 4.285 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009135/0.5295, allocations: 376.6 kB / 0.715 GB, free: 3.914 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/0.5308, allocations: 0.732 MB / 0.7158 GB, free: 3.023 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002121/0.5329, allocations: 1.102 MB / 0.7168 GB, free: 1.777 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.5329, allocations: 4 kB / 0.7168 GB, free: 1.773 MB / 0.545 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003067/0.536, allocations: 1.274 MB / 0.7181 GB, free: 496 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.26e-05/0.536, allocations: 33.7 kB / 0.7181 GB, free: 456 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.5361, allocations: 12 kB / 0.7181 GB, free: 444 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.313e-05/0.5361, allocations: 16 kB / 0.7181 GB, free: 428 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00097/0.5371, allocations: 248.2 kB / 0.7184 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.734e-05/0.5371, allocations: 23.92 kB / 0.7184 GB, free: 156 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.5382, allocations: 135.6 kB / 0.7185 GB, free: 20 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.5383, allocations: 51.97 kB / 0.7186 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001485/0.5398, allocations: 0.6815 MB / 0.7192 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00121/0.5411, allocations: 0.7203 MB / 0.7199 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002043/0.5431, allocations: 1.067 MB / 0.721 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.225e-06/0.5431, allocations: 7.938 kB / 0.721 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002824/0.546, allocations: 1.243 MB / 0.7222 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/0.546, allocations: 37.7 kB / 0.7222 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.546, allocations: 8.625 kB / 0.7223 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.5461, allocations: 20 kB / 0.7223 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009155/0.547, allocations: 247.6 kB / 0.7225 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.437e-05/0.547, allocations: 27.91 kB / 0.7225 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.5481, allocations: 119.9 kB / 0.7227 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.098e-05/0.5482, allocations: 51.98 kB / 0.7227 GB, free: 11.41 MB / 0.5606 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.0003417/0.5486, allocations: 255.3 kB / 0.7229 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002871/0.5489, allocations: 165.9 kB / 0.7231 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002616/0.5515, allocations: 1.064 MB / 0.7241 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/0.5515, allocations: 12 kB / 0.7242 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.5516, allocations: 4 kB / 0.7242 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001821/0.5534, allocations: 0.7924 MB / 0.7249 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004997/0.5584, allocations: 2.696 MB / 0.7276 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.5584, allocations: 0 / 0.7276 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007379/0.5592, allocations: 156 kB / 0.7277 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.5594, allocations: 32.72 kB / 0.7277 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-05/0.5594, allocations: 23.98 kB / 0.7278 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.5607, allocations: 1.441 MB / 0.7292 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.5607, allocations: 4 kB / 0.7292 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003425/0.5642, allocations: 1.572 MB / 0.7307 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007044/0.5649, allocations: 358.5 kB / 0.7311 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.5651, allocations: 20 kB / 0.7311 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008216/0.5659, allocations: 55.94 kB / 0.7311 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.5661, allocations: 60.48 kB / 0.7312 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-05/0.5661, allocations: 35.97 kB / 0.7312 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001617/0.5678, allocations: 1.074 MB / 0.7323 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5678, allocations: 0 / 0.7323 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002432/0.5702, allocations: 0.9275 MB / 0.7332 GB, free: 340 kB / 0.5606 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.001233/0.5715, allocations: 0.5464 MB / 0.7337 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003901/0.5754, allocations: 1.651 MB / 0.7353 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5754, allocations: 1.438 kB / 0.7353 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.5766, allocations: 0.545 MB / 0.7359 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003853/0.5805, allocations: 0.908 MB / 0.7367 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005558/0.586, allocations: 3.237 MB / 0.7399 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.5872, allocations: 1.38 MB / 0.7412 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004571/0.5876, allocations: 155.4 kB / 0.7414 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of SimCode: time 5.61e-07/0.5876, allocations: 0 / 0.7414 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of Templates: time 0.2784/0.8661, allocations: 35.15 MB / 0.7757 GB, free: 138.5 MB / 0.5762 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)