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.00108/0.00108, allocations: 105 kB / 16.35 MB, free: 5.824 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.001089/0.001089, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.277/1.277, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7605/0.7605, allocations: 135.1 MB / 426.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.91 kB / 0.5067 GB, free: 7.676 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3597/0.3608, allocations: 80.91 MB / 0.5858 GB, free: 25.54 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05698/0.4178, allocations: 66.98 MB / 0.6512 GB, free: 7.418 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.44, allocations: 16.76 MB / 0.6675 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00296/0.443, allocations: 91.5 kB / 0.6676 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00303/0.446, allocations: 1.172 MB / 0.6688 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006661/0.4528, allocations: 2.657 MB / 0.6713 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005637/0.4584, allocations: 2.341 MB / 0.6736 GB, free: 376 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.006781/0.4652, allocations: 5.356 MB / 0.6789 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002655/0.4679, allocations: 1.915 MB / 0.6807 GB, free: 9.039 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005162/0.4731, allocations: 2.084 MB / 0.6828 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00266/0.4757, allocations: 1.489 MB / 0.6842 GB, free: 5.457 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003481/0.4761, allocations: 188 kB / 0.6844 GB, free: 5.273 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004171/0.4803, allocations: 1.969 MB / 0.6863 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006343/0.4809, allocations: 0.5567 MB / 0.6869 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.4825, allocations: 1.143 MB / 0.688 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005952/0.4884, allocations: 3.634 MB / 0.6915 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.4885, allocations: 0 / 0.6915 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4885, allocations: 0 / 0.6915 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.449e-05/0.4885, allocations: 0 / 0.6915 GB, free: 13.95 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.004588/0.4931, allocations: 2.683 MB / 0.6942 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.4932, allocations: 13.11 kB / 0.6942 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/0.4946, allocations: 366 kB / 0.6945 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003388/0.498, allocations: 1.819 MB / 0.6963 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.861e-05/0.4981, allocations: 102.4 kB / 0.6964 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.4983, allocations: 128 kB / 0.6965 GB, free: 8.723 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002427/0.5007, allocations: 1.424 MB / 0.6979 GB, free: 7.211 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.071e-05/0.5008, allocations: 3.906 kB / 0.6979 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.5009, allocations: 52 kB / 0.698 GB, free: 7.156 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.007e-05/0.5009, allocations: 54.3 kB / 0.698 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.5032, allocations: 1.102 MB / 0.6991 GB, free: 5.992 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.009075/0.5123, allocations: 7.358 MB / 0.7063 GB, free: 14.07 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.5143, allocations: 1.298 MB / 0.7075 GB, free: 12.65 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000878/0.5152, allocations: 443.5 kB / 0.708 GB, free: 12.21 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004368/0.5196, allocations: 2.624 MB / 0.7105 GB, free: 9.359 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009917/0.5206, allocations: 0.4907 MB / 0.711 GB, free: 8.844 MB / 0.545 GB Notification: Performance of pre-optimization done (n=63): time 3.556e-06/0.5206, allocations: 0 / 0.711 GB, free: 8.844 MB / 0.545 GB Notification: Performance of matching and sorting (n=63): time 0.002806/0.5234, allocations: 1.202 MB / 0.7122 GB, free: 7.613 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.5235, allocations: 115.3 kB / 0.7123 GB, free: 7.477 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/0.5253, allocations: 1.484 MB / 0.7137 GB, free: 5.992 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.581e-05/0.5254, allocations: 37.7 kB / 0.7138 GB, free: 5.949 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007401/0.5262, allocations: 0.9035 MB / 0.7146 GB, free: 5.035 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.5264, allocations: 224.8 kB / 0.7149 GB, free: 4.812 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.5267, allocations: 206.4 kB / 0.7151 GB, free: 4.605 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.5268, allocations: 341.9 kB / 0.7154 GB, free: 4.266 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008191/0.5276, allocations: 376.6 kB / 0.7157 GB, free: 3.895 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.5287, allocations: 0.7281 MB / 0.7165 GB, free: 3.004 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00185/0.5306, allocations: 1.094 MB / 0.7175 GB, free: 1.77 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.5306, allocations: 0 / 0.7175 GB, free: 1.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002491/0.5331, allocations: 1.266 MB / 0.7188 GB, free: 500 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.723e-05/0.5331, allocations: 33.7 kB / 0.7188 GB, free: 460 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.5332, allocations: 15.98 kB / 0.7188 GB, free: 444 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.5332, allocations: 16 kB / 0.7188 GB, free: 428 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009684/0.5342, allocations: 248 kB / 0.7191 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.452e-05/0.5342, allocations: 23.92 kB / 0.7191 GB, free: 156 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.5353, allocations: 123.6 kB / 0.7192 GB, free: 32 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.5354, allocations: 52.03 kB / 0.7193 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001353/0.5368, allocations: 0.6814 MB / 0.7199 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001019/0.5378, allocations: 0.7085 MB / 0.7206 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00173/0.5396, allocations: 1.051 MB / 0.7216 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.961e-06/0.5396, allocations: 8 kB / 0.7216 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002451/0.542, allocations: 1.235 MB / 0.7228 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.5421, allocations: 37.69 kB / 0.7229 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.5421, allocations: 12.62 kB / 0.7229 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.5421, allocations: 16 kB / 0.7229 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000896/0.543, allocations: 243.6 kB / 0.7231 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.911e-05/0.5431, allocations: 19.94 kB / 0.7232 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.5441, allocations: 119.9 kB / 0.7233 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.307e-05/0.5442, allocations: 47.98 kB / 0.7233 GB, free: 11.47 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.0002933/0.5445, allocations: 255.8 kB / 0.7236 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.5447, allocations: 165.9 kB / 0.7237 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.5471, allocations: 1.071 MB / 0.7248 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.5471, allocations: 8 kB / 0.7248 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5471, allocations: 7.938 kB / 0.7248 GB, free: 9.953 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001631/0.5488, allocations: 0.7807 MB / 0.7255 GB, free: 9.156 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004425/0.5532, allocations: 2.681 MB / 0.7282 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.5532, allocations: 4 kB / 0.7282 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007459/0.554, allocations: 156 kB / 0.7283 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001569/0.5541, allocations: 24.84 kB / 0.7283 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.666e-05/0.5542, allocations: 27.98 kB / 0.7284 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.5552, allocations: 1.433 MB / 0.7298 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5553, allocations: 0 / 0.7298 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003059/0.5583, allocations: 1.566 MB / 0.7313 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006957/0.559, allocations: 354.5 kB / 0.7316 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.5592, allocations: 27.92 kB / 0.7317 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008336/0.5601, allocations: 51.95 kB / 0.7317 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.5602, allocations: 56.48 kB / 0.7318 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-05/0.5603, allocations: 43.97 kB / 0.7318 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001438/0.5618, allocations: 1.07 MB / 0.7329 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5618, allocations: 0 / 0.7329 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002163/0.5639, allocations: 0.9431 MB / 0.7338 GB, free: 420 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.001063/0.565, allocations: 0.5374 MB / 0.7343 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003191/0.5682, allocations: 1.565 MB / 0.7358 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.5682, allocations: 1.438 kB / 0.7358 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.5693, allocations: 0.5451 MB / 0.7364 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003217/0.5726, allocations: 0.9002 MB / 0.7372 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.5773, allocations: 3.11 MB / 0.7403 GB, free: 9.719 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009403/0.5783, allocations: 1.397 MB / 0.7416 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001414/0.5797, allocations: 429.7 kB / 0.7421 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.58, allocations: 143.4 kB / 0.7422 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of SimCode: time 3.016e-06/0.58, allocations: 0 / 0.7422 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of Templates: time 0.3175/0.8976, allocations: 34.54 MB / 0.7759 GB, free: 139.2 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)