Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.009639/0.009639, allocations: 101.1 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.001805/0.001806, allocations: 202 kB / 16.68 MB, free: 5.973 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.599/1.599, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001303/0.001303, allocations: 50.8 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09871, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02033/0.1191, allocations: 21.79 MB / 395 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.1316, allocations: 9.954 MB / 404.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008555/0.1325, allocations: 31.81 kB / 405 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00099/0.1335, allocations: 401.5 kB / 405.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003283/0.1368, allocations: 1.45 MB / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006231/0.143, allocations: 2.614 MB / 409.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003231/0.1463, allocations: 2.572 MB / 412 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.1474, allocations: 0.6639 MB / 412.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.1491, allocations: 0.989 MB / 413.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.1505, allocations: 0.9772 MB / 414.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001854/0.1507, allocations: 92 kB / 414.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003598/0.1543, allocations: 1.712 MB / 416.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003839/0.1547, allocations: 355 kB / 416.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006247/0.1553, allocations: 0.5327 MB / 417.3 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003651/0.159, allocations: 2.47 MB / 419.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.159, allocations: 0 / 419.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.159, allocations: 0 / 419.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.1591, allocations: 0 / 419.8 MB, free: 2.574 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.003134/0.1622, allocations: 1.499 MB / 421.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1622, allocations: 12.03 kB / 421.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003869/0.1626, allocations: 106.9 kB / 421.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.1637, allocations: 0.7254 MB / 422.1 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.952e-05/0.1638, allocations: 49.3 kB / 422.1 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1639, allocations: 63.92 kB / 422.2 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.1655, allocations: 1.056 MB / 423.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.1656, allocations: 3.938 kB / 423.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.841e-05/0.1657, allocations: 31.98 kB / 423.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.554e-05/0.1657, allocations: 69.2 kB / 423.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.1674, allocations: 1.032 MB / 424.4 MB, free: 13.78 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.006757/0.1742, allocations: 4.445 MB / 428.8 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009296/0.1751, allocations: 0.5709 MB / 429.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004813/0.1756, allocations: 317.9 kB / 429.7 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002329/0.178, allocations: 1.985 MB / 431.7 MB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.178, allocations: 42.83 kB / 431.8 MB, free: 5.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.994e-06/0.178, allocations: 0 / 431.8 MB, free: 5.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.004465/0.1825, allocations: 1.965 MB / 433.7 MB, free: 3.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.844e-05/0.1826, allocations: 158.2 kB / 433.9 MB, free: 3.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.1838, allocations: 0.9351 MB / 434.8 MB, free: 2.707 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.544e-05/0.1839, allocations: 37.7 kB / 434.8 MB, free: 2.664 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003604/0.1843, allocations: 482.8 kB / 435.3 MB, free: 2.184 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.1844, allocations: 165.8 kB / 435.5 MB, free: 2.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000291/0.1847, allocations: 182.4 kB / 435.7 MB, free: 1.836 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1848, allocations: 341.9 kB / 436 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005506/0.1854, allocations: 336.7 kB / 436.3 MB, free: 1.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007357/0.1861, allocations: 0.6212 MB / 436.9 MB, free: 416 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.1874, allocations: 0.889 MB / 437.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.1874, allocations: 4 kB / 437.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001875/0.1893, allocations: 1.124 MB / 439 MB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.1893, allocations: 12 kB / 439 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.1893, allocations: 8 kB / 439 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002334/0.1917, allocations: 381.4 kB / 439.4 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006517/0.1923, allocations: 175.7 kB / 439.5 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.1934, allocations: 1.339 MB / 440.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007257/0.1942, allocations: 48.09 kB / 440.9 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-05/0.1943, allocations: 44 kB / 441 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007897/0.1951, allocations: 0.5175 MB / 441.5 MB, free: 11.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007164/0.1958, allocations: 0.6189 MB / 442.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001108/0.1969, allocations: 0.8753 MB / 443 MB, free: 9.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.969e-06/0.1969, allocations: 0 / 443 MB, free: 9.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001785/0.1987, allocations: 1.093 MB / 444.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1988, allocations: 8 kB / 444.1 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.1988, allocations: 19.97 kB / 444.1 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/0.2009, allocations: 334.1 kB / 444.4 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006289/0.2015, allocations: 191.6 kB / 444.6 MB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.2026, allocations: 1.311 MB / 445.9 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007336/0.2034, allocations: 47.97 kB / 446 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.48e-05/0.2035, allocations: 43.94 kB / 446 MB, free: 6.805 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.0002926/0.2038, allocations: 243.9 kB / 446.2 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.204, allocations: 98.94 kB / 446.3 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.2057, allocations: 0.7857 MB / 447.1 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.2057, allocations: 4 kB / 447.1 MB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.2057, allocations: 3.938 kB / 447.1 MB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2057, allocations: 0 / 447.1 MB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.2083, allocations: 1.579 MB / 448.7 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.2084, allocations: 4 kB / 448.7 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.2087, allocations: 79.89 kB / 448.8 MB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.2101, allocations: 269.5 kB / 449.1 MB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.2101, allocations: 19.98 kB / 449.1 MB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.2114, allocations: 1.304 MB / 450.4 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.2115, allocations: 4.031 kB / 450.4 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.214, allocations: 1.088 MB / 451.5 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003227/0.2144, allocations: 163.9 kB / 451.6 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002509/0.2146, allocations: 15.98 kB / 451.6 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009066/0.2155, allocations: 28.11 kB / 451.7 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.2158, allocations: 48.38 kB / 451.7 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-05/0.2159, allocations: 23.98 kB / 451.7 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001579/0.2175, allocations: 0.652 MB / 452.4 MB, free: 208 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2175, allocations: 0 / 452.4 MB, free: 208 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.2862/0.5037, allocations: 0.7439 MB / 453.1 MB, free: 73.98 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.00179/0.5055, allocations: 0.612 MB / 453.7 MB, free: 73.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.5083, allocations: 1.279 MB / 455 MB, free: 73.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.5084, allocations: 1.031 kB / 455 MB, free: 73.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006698/0.509, allocations: 339.9 kB / 455.4 MB, free: 73.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.5108, allocations: 410.7 kB / 455.8 MB, free: 73.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.5136, allocations: 1.7 MB / 457.5 MB, free: 73.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.5142, allocations: 1.032 MB / 458.5 MB, free: 72.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001168/0.5154, allocations: 365.7 kB / 458.9 MB, free: 72.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.5156, allocations: 77.36 kB / 458.9 MB, free: 72.49 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.5156, allocations: 0 / 458.9 MB, free: 72.49 MB / 382.1 MB Notification: Performance of Templates: time 0.03461/0.5503, allocations: 25.33 MB / 484.3 MB, free: 55.4 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)