Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007789/0.007789, allocations: 101.2 kB / 15.73 MB, free: 6.059 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.001203/0.001204, allocations: 197.3 kB / 16.67 MB, free: 5.984 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.54/1.54, allocations: 205.1 MB / 222.6 MB, free: 4.332 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.001198/0.001198, allocations: 50.05 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08775/0.08896, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02122/0.1102, allocations: 21.78 MB / 395 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.1234, allocations: 9.962 MB / 404.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000923/0.1244, allocations: 27.81 kB / 405 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.1254, allocations: 401.4 kB / 405.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003294/0.1287, allocations: 1.427 MB / 406.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006239/0.135, allocations: 2.614 MB / 409.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00349/0.1385, allocations: 2.572 MB / 412 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008997/0.1394, allocations: 0.66 MB / 412.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.141, allocations: 0.9733 MB / 413.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.1423, allocations: 0.9733 MB / 414.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.1425, allocations: 95.94 kB / 414.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003119/0.1456, allocations: 1.712 MB / 416.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003683/0.146, allocations: 355 kB / 416.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005758/0.1466, allocations: 0.5327 MB / 417.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003294/0.1499, allocations: 2.466 MB / 419.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1499, allocations: 0 / 419.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1499, allocations: 0 / 419.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.1499, allocations: 0 / 419.7 MB, free: 2.586 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002914/0.1528, allocations: 1.507 MB / 421.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.1529, allocations: 12.03 kB / 421.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003936/0.1533, allocations: 110.9 kB / 421.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.1544, allocations: 0.7215 MB / 422.1 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/0.1545, allocations: 49.3 kB / 422.1 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.1546, allocations: 59.98 kB / 422.2 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.1563, allocations: 1.064 MB / 423.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.1563, allocations: 3.938 kB / 423.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.631e-05/0.1565, allocations: 27.98 kB / 423.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.449e-05/0.1566, allocations: 69.27 kB / 423.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.1581, allocations: 1.028 MB / 424.4 MB, free: 13.79 MB / 366.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.006503/0.1647, allocations: 4.442 MB / 428.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009569/0.1656, allocations: 0.5786 MB / 429.4 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004968/0.1661, allocations: 318 kB / 429.7 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002561/0.1687, allocations: 1.973 MB / 431.7 MB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.1688, allocations: 42.89 kB / 431.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.224e-06/0.1688, allocations: 0 / 431.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.004547/0.1733, allocations: 1.961 MB / 433.7 MB, free: 3.879 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.1734, allocations: 162.2 kB / 433.8 MB, free: 3.684 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.1746, allocations: 0.9273 MB / 434.8 MB, free: 2.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.441e-05/0.1747, allocations: 41.64 kB / 434.8 MB, free: 2.684 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.1751, allocations: 490.8 kB / 435.3 MB, free: 2.195 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.1752, allocations: 165.7 kB / 435.4 MB, free: 2.031 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.1755, allocations: 186.4 kB / 435.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1757, allocations: 341.9 kB / 436 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005358/0.1762, allocations: 332.7 kB / 436.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007269/0.1769, allocations: 0.6172 MB / 436.9 MB, free: 432 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.1781, allocations: 0.889 MB / 437.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.1781, allocations: 4 kB / 437.8 MB, free: 15.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001866/0.18, allocations: 1.128 MB / 438.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.18, allocations: 8 kB / 438.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1801, allocations: 8.812 kB / 438.9 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002447/0.1825, allocations: 377.2 kB / 439.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007198/0.1832, allocations: 183.7 kB / 439.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.1845, allocations: 1.339 MB / 440.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007751/0.1853, allocations: 47.97 kB / 440.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.117e-05/0.1854, allocations: 43.98 kB / 440.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008323/0.1862, allocations: 0.5136 MB / 441.4 MB, free: 11.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007394/0.187, allocations: 0.6307 MB / 442.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001187/0.1882, allocations: 0.8714 MB / 442.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.941e-06/0.1882, allocations: 4 kB / 442.9 MB, free: 9.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001868/0.1901, allocations: 1.089 MB / 444 MB, free: 8.812 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1901, allocations: 12.06 kB / 444 MB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1901, allocations: 12 kB / 444 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.1924, allocations: 333.3 kB / 444.4 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006553/0.193, allocations: 187.6 kB / 444.5 MB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.1942, allocations: 1.311 MB / 445.9 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007925/0.195, allocations: 48.08 kB / 445.9 MB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/0.1951, allocations: 55.86 kB / 446 MB, free: 6.809 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (104): * Single equations (assignments): 102 * 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,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003327/0.1954, allocations: 240.3 kB / 446.2 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.1956, allocations: 90.88 kB / 446.3 MB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.1973, allocations: 0.7974 MB / 447.1 MB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1973, allocations: 4 kB / 447.1 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1973, allocations: 0 / 447.1 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1973, allocations: 3.984 kB / 447.1 MB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00263/0.2, allocations: 1.579 MB / 448.7 MB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2, allocations: 0 / 448.7 MB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003724/0.2004, allocations: 75.91 kB / 448.7 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.2018, allocations: 269.5 kB / 449 MB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-05/0.2018, allocations: 12 kB / 449 MB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.2031, allocations: 1.308 MB / 450.3 MB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2031, allocations: 3.984 kB / 450.3 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/0.2052, allocations: 1.089 MB / 451.4 MB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/0.2056, allocations: 167.9 kB / 451.6 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.2059, allocations: 19.94 kB / 451.6 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.2065, allocations: 23.98 kB / 451.6 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.2067, allocations: 44.38 kB / 451.7 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-05/0.2067, allocations: 23.98 kB / 451.7 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001149/0.2079, allocations: 0.656 MB / 452.3 MB, free: 220 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2079, allocations: 0 / 452.3 MB, free: 220 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.1978/0.4057, allocations: 0.7505 MB / 453.1 MB, free: 73.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0015/0.4072, allocations: 0.6071 MB / 453.7 MB, free: 73.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.4098, allocations: 1.277 MB / 455 MB, free: 73.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.4098, allocations: 1.438 kB / 455 MB, free: 73.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006248/0.4104, allocations: 338.2 kB / 455.3 MB, free: 73.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001756/0.4122, allocations: 412.7 kB / 455.7 MB, free: 73.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.4149, allocations: 1.696 MB / 457.4 MB, free: 73.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/0.4155, allocations: 1.033 MB / 458.4 MB, free: 72.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001095/0.4166, allocations: 366 kB / 458.8 MB, free: 72.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.4168, allocations: 75.5 kB / 458.9 MB, free: 72.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4168, allocations: 0 / 458.9 MB, free: 72.32 MB / 382.1 MB Notification: Performance of Templates: time 0.03531/0.4521, allocations: 25.34 MB / 484.2 MB, free: 55.41 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)