Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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) 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(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 91.53 kB / 16.3 MB, free: 6.133 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.001115/0.001115, allocations: 178.2 kB / 17.2 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.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: Performance of FrontEnd - loaded program: time 0.0006482/0.0006483, allocations: 8 kB / 280.1 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1215, allocations: 47.59 MB / 327.7 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01531/0.1369, allocations: 15.03 MB / 342.7 MB, free: 5.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008514/0.1455, allocations: 5.861 MB / 348.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006507/0.1461, allocations: 27.75 kB / 348.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008765/0.147, allocations: 330.5 kB / 349 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001815/0.1489, allocations: 0.8257 MB / 349.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003521/0.1524, allocations: 1.446 MB / 351.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.1539, allocations: 1.093 MB / 352.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005997/0.1545, allocations: 437.5 kB / 352.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009579/0.1554, allocations: 0.6114 MB / 353.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006373/0.1561, allocations: 490.3 kB / 353.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.687e-05/0.1562, allocations: 32 kB / 353.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001635/0.1578, allocations: 1.003 MB / 354.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.1581, allocations: 219.3 kB / 355.1 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1582, allocations: 173.3 kB / 355.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.1596, allocations: 1.216 MB / 356.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1596, allocations: 0 / 356.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1596, allocations: 0 / 356.5 MB, free: 7.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.1596, allocations: 3.938 kB / 356.5 MB, free: 7.234 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001955/0.1616, allocations: 1.104 MB / 357.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.1616, allocations: 16.03 kB / 357.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000315/0.1619, allocations: 94.97 kB / 357.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008549/0.1628, allocations: 0.5424 MB / 358.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.8e-05/0.1629, allocations: 96.34 kB / 358.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.461e-05/0.163, allocations: 51.98 kB / 358.4 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.1641, allocations: 0.7969 MB / 359.2 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.1642, allocations: 4 kB / 359.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.614e-05/0.1642, allocations: 20 kB / 359.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.789e-05/0.1643, allocations: 36.98 kB / 359.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.1653, allocations: 0.6869 MB / 359.9 MB, free: 3.629 MB / 302.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.004474/0.1698, allocations: 3.475 MB / 363.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/0.1705, allocations: 426.6 kB / 363.8 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001616/0.1721, allocations: 1.347 MB / 365.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004949/0.1726, allocations: 353.1 kB / 365.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.744e-06/0.1726, allocations: 0 / 365.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003425/0.176, allocations: 1.869 MB / 367.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1762, allocations: 273 kB / 367.6 MB, free: 11.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008631/0.177, allocations: 0.7661 MB / 368.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/0.1771, allocations: 37.7 kB / 368.4 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000297/0.1774, allocations: 410.9 kB / 368.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.1775, allocations: 134.2 kB / 369 MB, free: 9.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.1776, allocations: 12 kB / 369 MB, free: 9.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.1777, allocations: 386.8 kB / 369.4 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/0.1781, allocations: 253.5 kB / 369.6 MB, free: 9.328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005647/0.1787, allocations: 0.4919 MB / 370.1 MB, free: 8.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.1792, allocations: 344.4 kB / 370.4 MB, free: 8.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1792, allocations: 3.953 kB / 370.4 MB, free: 8.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001491/0.1807, allocations: 0.9446 MB / 371.4 MB, free: 7.418 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009516/0.1817, allocations: 2.563 MB / 373.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.1817, allocations: 8 kB / 374 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005133/0.1822, allocations: 136.7 kB / 374.1 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.1827, allocations: 135.8 kB / 374.2 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005838/0.1833, allocations: 0.6811 MB / 374.9 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005614/0.1839, allocations: 52.03 kB / 374.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.1839, allocations: 28 kB / 375 MB, free: 3.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.835e-06/0.184, allocations: 4 kB / 375 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001395/0.1854, allocations: 0.8623 MB / 375.8 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1854, allocations: 16.14 kB / 375.9 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003624/0.1858, allocations: 116.8 kB / 376 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.1862, allocations: 139.8 kB / 376.1 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005004/0.1867, allocations: 0.6654 MB / 376.8 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004873/0.1872, allocations: 43.97 kB / 376.8 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.1873, allocations: 32 kB / 376.8 MB, free: 1.676 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004588/0.1878, allocations: 391.5 kB / 377.2 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1879, allocations: 83.06 kB / 377.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.1891, allocations: 0.6979 MB / 378 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.1891, allocations: 4 kB / 378 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1891, allocations: 0 / 378 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1891, allocations: 0 / 378 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.175/0.3642, allocations: 1.404 MB / 379.4 MB, free: 53.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3642, allocations: 1.078 kB / 379.4 MB, free: 53.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003864/0.3646, allocations: 61.78 kB / 379.5 MB, free: 53.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006734/0.3653, allocations: 134.4 kB / 379.6 MB, free: 53.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/0.3653, allocations: 10.34 kB / 379.6 MB, free: 53.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005473/0.3659, allocations: 0.6613 MB / 380.3 MB, free: 53.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3659, allocations: 4.672 kB / 380.3 MB, free: 53.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.3681, allocations: 1.031 MB / 381.3 MB, free: 53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/0.3685, allocations: 160.7 kB / 381.5 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.3686, allocations: 17.06 kB / 381.5 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005317/0.3692, allocations: 37.86 kB / 381.5 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.3693, allocations: 35.45 kB / 381.6 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.205e-05/0.3694, allocations: 16.39 kB / 381.6 MB, free: 52.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007989/0.3702, allocations: 0.5368 MB / 382.1 MB, free: 52.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3702, allocations: 3.812 kB / 382.1 MB, free: 52.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001529/0.3717, allocations: 0.5287 MB / 382.6 MB, free: 52.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001044/0.3728, allocations: 436.7 kB / 383.1 MB, free: 52.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002252/0.375, allocations: 1.186 MB / 384.3 MB, free: 52.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3751, allocations: 1.312 kB / 384.3 MB, free: 52.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.3757, allocations: 344.2 kB / 384.6 MB, free: 52.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.3772, allocations: 303.2 kB / 384.9 MB, free: 52.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.3796, allocations: 1.708 MB / 386.6 MB, free: 51.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.3801, allocations: 0.98 MB / 387.6 MB, free: 50.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000868/0.381, allocations: 259.8 kB / 387.8 MB, free: 50.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.3812, allocations: 60.36 kB / 387.9 MB, free: 50.64 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3812, allocations: 0 / 387.9 MB, free: 50.64 MB / 318.1 MB Notification: Performance of Templates: time 0.02305/0.4042, allocations: 17.34 MB / 405.2 MB, free: 38.85 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) Environment - environmentSimulation: