Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.001253/0.001253, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001523/0.001523, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.4 MB / 222.1 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4382/0.4382, allocations: 54.99 MB / 325.4 MB, free: 0.75 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005256/0.0005258, allocations: 12 kB / 396.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3003, allocations: 60.72 MB / 457.3 MB, free: 38.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.04221/0.3425, allocations: 55.8 MB / 0.5011 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02363/0.3662, allocations: 16.76 MB / 0.5174 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003299/0.3695, allocations: 79.28 kB / 0.5175 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003483/0.373, allocations: 0.9884 MB / 0.5185 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009121/0.3822, allocations: 2.612 MB / 0.521 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009145/0.3913, allocations: 2.737 MB / 0.5237 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006613/0.398, allocations: 3.1 MB / 0.5267 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002633/0.4006, allocations: 1.31 MB / 0.528 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003312/0.404, allocations: 1.386 MB / 0.5294 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001924/0.4059, allocations: 0.9763 MB / 0.5303 GB, free: 100 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002343/0.4062, allocations: 71.19 kB / 0.5304 GB, free: 100 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003564/0.4097, allocations: 1.385 MB / 0.5317 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005305/0.4103, allocations: 398.3 kB / 0.5321 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007492/0.411, allocations: 438.4 kB / 0.5325 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003455/0.4145, allocations: 2.597 MB / 0.5351 GB, free: 12.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.4145, allocations: 4 kB / 0.5351 GB, free: 12.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4145, allocations: 0 / 0.5351 GB, free: 12.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.986e-05/0.4146, allocations: 0 / 0.5351 GB, free: 12.88 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 308 * Number of variables: 308 Notification: Performance of Generate backend data structure: time 0.003997/0.4186, allocations: 2.312 MB / 0.5373 GB, free: 10.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.4186, allocations: 8.031 kB / 0.5373 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001347/0.42, allocations: 396.9 kB / 0.5377 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002956/0.4229, allocations: 1.633 MB / 0.5393 GB, free: 8.414 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004297/0.4234, allocations: 162.4 kB / 0.5395 GB, free: 8.254 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001926/0.4236, allocations: 128 kB / 0.5396 GB, free: 8.129 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002884/0.4265, allocations: 1.521 MB / 0.5411 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.4265, allocations: 0 / 0.5411 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.4266, allocations: 52 kB / 0.5411 GB, free: 6.441 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.1e-05/0.4267, allocations: 32 kB / 0.5412 GB, free: 6.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/0.4293, allocations: 1.18 MB / 0.5423 GB, free: 5.223 MB / 414.1 MB 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.00862/0.4379, allocations: 7.824 MB / 0.55 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002232/0.4402, allocations: 0.9426 MB / 0.5509 GB, free: 11.85 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002909/0.4431, allocations: 2.055 MB / 0.5529 GB, free: 9.625 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.4444, allocations: 0.5577 MB / 0.5534 GB, free: 9.047 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004747/0.4448, allocations: 95.09 kB / 0.5535 GB, free: 8.953 MB / 430.1 MB Notification: Performance of pre-optimization done (n=72): time 2.074e-06/0.4449, allocations: 0 / 0.5535 GB, free: 8.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=78): time 0.007411/0.4523, allocations: 3.045 MB / 0.5565 GB, free: 5.836 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.026e-05/0.4524, allocations: 192.5 kB / 0.5567 GB, free: 5.605 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/0.4543, allocations: 1.536 MB / 0.5582 GB, free: 4.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.379e-05/0.4544, allocations: 45.7 kB / 0.5582 GB, free: 4.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006822/0.4551, allocations: 0.8844 MB / 0.5591 GB, free: 3.125 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002893/0.4554, allocations: 284 kB / 0.5594 GB, free: 2.844 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.146e-05/0.4555, allocations: 20 kB / 0.5594 GB, free: 2.824 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4556, allocations: 349.9 kB / 0.5597 GB, free: 2.477 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009776/0.4566, allocations: 446.4 kB / 0.5601 GB, free: 2.043 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.4578, allocations: 0.8313 MB / 0.5609 GB, free: 1.039 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.4589, allocations: 0.5628 MB / 0.5615 GB, free: 484 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.4589, allocations: 4 kB / 0.5615 GB, free: 480 kB / 430.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002886/0.4618, allocations: 1.482 MB / 0.5629 GB, free: 14.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001329/0.4632, allocations: 3.825 MB / 0.5667 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/0.4632, allocations: 15.98 kB / 0.5667 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002169/0.4634, allocations: 52.83 kB / 0.5667 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.4646, allocations: 291.5 kB / 0.567 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.4657, allocations: 1.426 MB / 0.5684 GB, free: 8.898 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.4671, allocations: 151.7 kB / 0.5686 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.4672, allocations: 55.98 kB / 0.5686 GB, free: 8.695 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.951e-06/0.4672, allocations: 3.938 kB / 0.5686 GB, free: 8.691 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002379/0.4696, allocations: 1.275 MB / 0.5699 GB, free: 7.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.4696, allocations: 9.125 kB / 0.5699 GB, free: 7.402 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000138/0.4698, allocations: 53.52 kB / 0.5699 GB, free: 7.348 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.4708, allocations: 283.6 kB / 0.5702 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.4719, allocations: 1.434 MB / 0.5716 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.4732, allocations: 147.8 kB / 0.5717 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.503e-05/0.4733, allocations: 51.98 kB / 0.5718 GB, free: 5.309 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (134): * Single equations (assignments): 129 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.0007601/0.474, allocations: 0.4928 MB / 0.5723 GB, free: 4.805 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.4743, allocations: 165.9 kB / 0.5724 GB, free: 4.641 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.4771, allocations: 1.35 MB / 0.5737 GB, free: 3.285 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.4771, allocations: 12.94 kB / 0.5738 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4771, allocations: 0 / 0.5738 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00208/0.4792, allocations: 1.028 MB / 0.5748 GB, free: 2.23 MB / 446.1 MB 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.005457/0.4847, allocations: 3.061 MB / 0.5777 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4847, allocations: 4 kB / 0.5778 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/0.4855, allocations: 196 kB / 0.5779 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.4858, allocations: 74.55 kB / 0.578 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-05/0.4859, allocations: 31.94 kB / 0.578 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.4872, allocations: 1.991 MB / 0.58 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4872, allocations: 4.156 kB / 0.58 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003784/0.491, allocations: 2.192 MB / 0.5821 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007888/0.4918, allocations: 390.6 kB / 0.5825 GB, free: 9.848 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.492, allocations: 27.94 kB / 0.5825 GB, free: 9.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.4931, allocations: 139.8 kB / 0.5827 GB, free: 9.684 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.4933, allocations: 72.48 kB / 0.5827 GB, free: 9.613 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/0.4934, allocations: 35.98 kB / 0.5828 GB, free: 9.578 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001562/0.495, allocations: 1.113 MB / 0.5839 GB, free: 8.441 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.495, allocations: 0 / 0.5839 GB, free: 8.441 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002573/0.4975, allocations: 0.8904 MB / 0.5847 GB, free: 7.551 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (vol.dynBal.medium.T,mov.filter.x[1],mov.filter.x[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 (88): * Single equations (assignments): 79 * 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: 2 * 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: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001114/0.4987, allocations: 0.5418 MB / 0.5853 GB, free: 7.016 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004017/0.5027, allocations: 2.177 MB / 0.5874 GB, free: 4.777 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.5027, allocations: 0 / 0.5874 GB, free: 4.777 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.504, allocations: 0.6754 MB / 0.588 GB, free: 4.094 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/0.508, allocations: 0.917 MB / 0.5889 GB, free: 3.195 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005618/0.5137, allocations: 4.043 MB / 0.5929 GB, free: 15.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/0.5147, allocations: 1.449 MB / 0.5943 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.5165, allocations: 442 kB / 0.5947 GB, free: 13.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004178/0.5169, allocations: 167.3 kB / 0.5949 GB, free: 13.02 MB / 478.1 MB Notification: Performance of SimCode: time 7.01e-07/0.517, allocations: 0 / 0.5949 GB, free: 13.02 MB / 478.1 MB Notification: Performance of Templates: time 0.05658/0.5735, allocations: 37.04 MB / 0.6311 GB, free: 8.242 MB / 0.4981 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) Environment - environmentSimulation: