Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009455/0.009455, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001956/0.001956, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.684/1.684, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.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.001232/0.001232, allocations: 59.52 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.107, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02088/0.1279, allocations: 20.59 MB / 393.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009937/0.1379, allocations: 6.988 MB / 400.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009895/0.139, allocations: 23.88 kB / 400.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.1401, allocations: 381.5 kB / 401.2 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003006/0.1432, allocations: 1.108 MB / 402.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004965/0.1481, allocations: 1.847 MB / 404.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002885/0.151, allocations: 2.14 MB / 406.2 MB, free: 112 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008588/0.1519, allocations: 0.5776 MB / 406.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.1534, allocations: 0.8176 MB / 407.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.1544, allocations: 0.7668 MB / 408.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.1545, allocations: 76 kB / 408.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002466/0.157, allocations: 1.248 MB / 409.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003037/0.1573, allocations: 287.2 kB / 410 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004922/0.1578, allocations: 457.9 kB / 410.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002713/0.1606, allocations: 1.893 MB / 412.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.1606, allocations: 0 / 412.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1606, allocations: 0 / 412.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.1606, allocations: 4 kB / 412.4 MB, free: 9.977 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002561/0.1632, allocations: 1.278 MB / 413.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1632, allocations: 8.031 kB / 413.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003788/0.1636, allocations: 99.89 kB / 413.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009381/0.1646, allocations: 0.6282 MB / 414.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.565e-05/0.1646, allocations: 49.3 kB / 414.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.711e-05/0.1647, allocations: 59.97 kB / 414.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.1661, allocations: 0.8829 MB / 415.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.1662, allocations: 0 / 415.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.796e-05/0.1662, allocations: 27.94 kB / 415.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.395e-05/0.1663, allocations: 45.28 kB / 415.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.1676, allocations: 0.813 MB / 416.2 MB, free: 5.941 MB / 350.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.004845/0.1725, allocations: 3.819 MB / 420.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009131/0.1734, allocations: 0.5435 MB / 420.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004168/0.1738, allocations: 278 kB / 420.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003627/0.1742, allocations: 0.5029 MB / 421.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.1742, allocations: 50.92 kB / 421.4 MB, free: 384 kB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.014e-06/0.1742, allocations: 0 / 421.4 MB, free: 384 kB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.004635/0.1789, allocations: 2.12 MB / 423.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.179, allocations: 137 kB / 423.7 MB, free: 14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009369/0.1799, allocations: 0.7231 MB / 424.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.58e-05/0.18, allocations: 41.7 kB / 424.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.1803, allocations: 379.9 kB / 424.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.1805, allocations: 185.4 kB / 425 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002398/0.1807, allocations: 150.6 kB / 425.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1809, allocations: 390.7 kB / 425.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005151/0.1814, allocations: 312.7 kB / 425.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006543/0.1821, allocations: 0.5148 MB / 426.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.1831, allocations: 0.7701 MB / 427.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.1831, allocations: 4 kB / 427.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00158/0.1847, allocations: 0.9989 MB / 428.1 MB, free: 9.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1848, allocations: 8 kB / 428.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.1848, allocations: 8.766 kB / 428.1 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.1864, allocations: 297.4 kB / 428.4 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005566/0.187, allocations: 147.7 kB / 428.6 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.188, allocations: 1.3 MB / 429.9 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/0.1886, allocations: 35.98 kB / 429.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.242e-05/0.1887, allocations: 39.92 kB / 429.9 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006946/0.1894, allocations: 485.8 kB / 430.4 MB, free: 6.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005926/0.19, allocations: 0.5002 MB / 430.9 MB, free: 6.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009897/0.191, allocations: 0.7552 MB / 431.7 MB, free: 5.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.535e-06/0.191, allocations: 0 / 431.7 MB, free: 5.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001529/0.1925, allocations: 0.9483 MB / 432.6 MB, free: 4.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.1926, allocations: 8.781 kB / 432.6 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.1926, allocations: 11.94 kB / 432.6 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.1936, allocations: 177.5 kB / 432.8 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006692/0.1943, allocations: 175.7 kB / 433 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007696/0.1951, allocations: 1.183 MB / 434.2 MB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005511/0.1956, allocations: 35.97 kB / 434.2 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-05/0.1957, allocations: 39.94 kB / 434.2 MB, free: 2.891 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002449/0.196, allocations: 232 kB / 434.5 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.1961, allocations: 79.06 kB / 434.5 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.1979, allocations: 0.977 MB / 435.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.1979, allocations: 11.94 kB / 435.5 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.198, allocations: 0 / 435.5 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.198, allocations: 3.984 kB / 435.5 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.2007, allocations: 1.747 MB / 437.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.2007, allocations: 3.984 kB / 437.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000436/0.2012, allocations: 95.89 kB / 437.4 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.2022, allocations: 241.6 kB / 437.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.2023, allocations: 12 kB / 437.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009038/0.2032, allocations: 1.28 MB / 438.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2032, allocations: 0 / 438.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001924/0.2051, allocations: 1.309 MB / 440.2 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.2053, allocations: 156.1 kB / 440.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.2055, allocations: 23.92 kB / 440.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000536/0.206, allocations: 27.98 kB / 440.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.2062, allocations: 48.48 kB / 440.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.534e-05/0.2063, allocations: 40.05 kB / 440.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006561/0.2069, allocations: 0.5107 MB / 441 MB, free: 11.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2069, allocations: 0 / 441 MB, free: 11.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001566/0.2085, allocations: 0.5896 MB / 441.6 MB, free: 11.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001327/0.2098, allocations: 0.5179 MB / 442.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002357/0.2122, allocations: 1.212 MB / 443.3 MB, free: 9.582 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2122, allocations: 0 / 443.3 MB, free: 9.582 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006598/0.2129, allocations: 391.5 kB / 443.7 MB, free: 9.199 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.2147, allocations: 418.2 kB / 444.1 MB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.2175, allocations: 1.611 MB / 445.7 MB, free: 7.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005661/0.2181, allocations: 0.9875 MB / 446.7 MB, free: 6.129 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009911/0.2191, allocations: 331 kB / 447.1 MB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.2193, allocations: 75.42 kB / 447.1 MB, free: 5.727 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2193, allocations: 0 / 447.1 MB, free: 5.727 MB / 382.1 MB Notification: Performance of Templates: time 0.2425/0.4618, allocations: 23.04 MB / 470.2 MB, free: 67.16 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)