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.006089/0.006089, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001884/0.001884, allocations: 196.8 kB / 16.67 MB, free: 5.977 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.623/1.623, allocations: 205.1 MB / 222.6 MB, free: 4.535 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.001223/0.001223, allocations: 51.11 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.1001, allocations: 46.63 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02307/0.1232, allocations: 20.6 MB / 393.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.1334, allocations: 6.984 MB / 400.8 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009448/0.1344, allocations: 19.88 kB / 400.8 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.1356, allocations: 385.5 kB / 401.2 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002728/0.1383, allocations: 1.084 MB / 402.2 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004474/0.1428, allocations: 1.855 MB / 404.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002843/0.1456, allocations: 2.128 MB / 406.2 MB, free: 172 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009195/0.1466, allocations: 0.5776 MB / 406.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001382/0.148, allocations: 0.8332 MB / 407.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.149, allocations: 0.759 MB / 408.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.1491, allocations: 76 kB / 408.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002321/0.1515, allocations: 1.248 MB / 409.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000289/0.1518, allocations: 291.1 kB / 410 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004698/0.1522, allocations: 461.8 kB / 410.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002647/0.1549, allocations: 1.889 MB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1549, allocations: 4 kB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1549, allocations: 3.938 kB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.718e-05/0.1549, allocations: 0 / 412.3 MB, free: 10.02 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.002387/0.1573, allocations: 1.266 MB / 413.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1574, allocations: 12.03 kB / 413.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003754/0.1578, allocations: 99.89 kB / 413.7 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.1588, allocations: 0.636 MB / 414.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.082e-05/0.1589, allocations: 41.31 kB / 414.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.344e-05/0.159, allocations: 55.98 kB / 414.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.1603, allocations: 0.8829 MB / 415.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.1604, allocations: 3.938 kB / 415.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.147e-05/0.1604, allocations: 27.98 kB / 415.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.345e-05/0.1605, allocations: 45.28 kB / 415.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.1617, allocations: 0.8053 MB / 416.2 MB, free: 5.996 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.0056/0.1674, allocations: 3.823 MB / 420 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.1685, allocations: 0.5392 MB / 420.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003993/0.1689, allocations: 281.9 kB / 420.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004103/0.1693, allocations: 0.5034 MB / 421.4 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/0.1694, allocations: 43 kB / 421.4 MB, free: 444 kB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.866e-06/0.1694, allocations: 0 / 421.4 MB, free: 444 kB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005086/0.1745, allocations: 2.12 MB / 423.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1746, allocations: 137 kB / 423.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009436/0.1756, allocations: 0.727 MB / 424.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.087e-05/0.1756, allocations: 37.7 kB / 424.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003324/0.176, allocations: 384 kB / 424.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/0.1762, allocations: 181.4 kB / 425 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002589/0.1764, allocations: 154.5 kB / 425.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.1766, allocations: 382.8 kB / 425.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005136/0.1772, allocations: 316.7 kB / 425.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007385/0.1779, allocations: 0.5188 MB / 426.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.1791, allocations: 0.7701 MB / 427.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.1791, allocations: 0 / 427.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001788/0.1809, allocations: 1.007 MB / 428.1 MB, free: 9.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.1809, allocations: 8 kB / 428.1 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.1809, allocations: 4 kB / 428.1 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.1825, allocations: 306 kB / 428.4 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005517/0.1831, allocations: 143.8 kB / 428.5 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.1842, allocations: 1.304 MB / 429.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/0.1847, allocations: 35.97 kB / 429.9 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.1848, allocations: 35.98 kB / 429.9 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006772/0.1855, allocations: 481.9 kB / 430.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005774/0.1861, allocations: 0.5002 MB / 430.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009931/0.1871, allocations: 0.7552 MB / 431.6 MB, free: 5.594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.629e-06/0.1871, allocations: 4 kB / 431.6 MB, free: 5.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001523/0.1886, allocations: 0.9445 MB / 432.6 MB, free: 4.629 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1886, allocations: 8.781 kB / 432.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.1887, allocations: 19.91 kB / 432.6 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.1897, allocations: 181.5 kB / 432.8 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006585/0.1904, allocations: 167.7 kB / 433 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007658/0.1912, allocations: 1.183 MB / 434.1 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.1917, allocations: 40.05 kB / 434.2 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.515e-05/0.1918, allocations: 35.98 kB / 434.2 MB, free: 2.945 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.000245/0.192, allocations: 228 kB / 434.4 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.1922, allocations: 79.06 kB / 434.5 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.1939, allocations: 0.9846 MB / 435.5 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.1939, allocations: 4 kB / 435.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.194, allocations: 0 / 435.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.194, allocations: 7.984 kB / 435.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.1966, allocations: 1.743 MB / 437.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1966, allocations: 0 / 437.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004205/0.1971, allocations: 103.9 kB / 437.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.1981, allocations: 233.6 kB / 437.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.1981, allocations: 15.98 kB / 437.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008646/0.199, allocations: 1.28 MB / 438.9 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.199, allocations: 8.016 kB / 438.9 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.2009, allocations: 1.309 MB / 440.2 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.2011, allocations: 160 kB / 440.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.2012, allocations: 15.94 kB / 440.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004484/0.2016, allocations: 31.97 kB / 440.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.2018, allocations: 56.48 kB / 440.5 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.047e-05/0.2018, allocations: 27.98 kB / 440.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000598/0.2024, allocations: 0.5147 MB / 441 MB, free: 11.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.2025, allocations: 0 / 441 MB, free: 11.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001505/0.204, allocations: 0.5896 MB / 441.6 MB, free: 11.37 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.001097/0.2051, allocations: 0.5141 MB / 442.1 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002214/0.2073, allocations: 1.208 MB / 443.3 MB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.2073, allocations: 4 kB / 443.3 MB, free: 9.637 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006261/0.208, allocations: 395 kB / 443.7 MB, free: 9.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.2098, allocations: 414.4 kB / 444.1 MB, free: 8.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.2122, allocations: 1.611 MB / 445.7 MB, free: 7.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/0.2127, allocations: 0.9875 MB / 446.7 MB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008745/0.2136, allocations: 330.9 kB / 447 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.2138, allocations: 75.42 kB / 447.1 MB, free: 5.781 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2138, allocations: 4 kB / 447.1 MB, free: 5.777 MB / 382.1 MB Notification: Performance of Templates: time 0.2211/0.4349, allocations: 23.41 MB / 470.5 MB, free: 67.37 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)