Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007321/0.007321, allocations: 102.2 kB / 15.73 MB, free: 6.062 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.001133/0.001133, allocations: 192.3 kB / 16.67 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.583/1.583, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.001206/0.001206, allocations: 54.33 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1099, 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.TwoTanks): time 0.02192/0.1318, allocations: 17.54 MB / 390.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009782/0.1417, allocations: 5.976 MB / 396.7 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.1428, allocations: 23.88 kB / 396.7 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.1442, allocations: 325.9 kB / 397 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003285/0.1475, allocations: 1.03 MB / 398.1 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004553/0.1521, allocations: 1.637 MB / 399.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002924/0.155, allocations: 1.941 MB / 401.6 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009866/0.156, allocations: 481.6 kB / 402.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.1575, allocations: 0.7164 MB / 402.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.159, allocations: 0.724 MB / 403.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.1592, allocations: 64 kB / 403.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002431/0.1616, allocations: 1.127 MB / 404.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003273/0.162, allocations: 255.3 kB / 405 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005767/0.1625, allocations: 402.1 kB / 405.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002501/0.165, allocations: 1.69 MB / 407.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1651, allocations: 4 kB / 407.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1651, allocations: 3.984 kB / 407.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.1651, allocations: 4 kB / 407.1 MB, free: 15.26 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002385/0.1675, allocations: 1.19 MB / 408.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1675, allocations: 8.031 kB / 408.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003097/0.1679, allocations: 100.4 kB / 408.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008679/0.1687, allocations: 0.5756 MB / 409 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.1688, allocations: 44.91 kB / 409 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.754e-05/0.1689, allocations: 51.98 kB / 409.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.1701, allocations: 0.7372 MB / 409.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.1701, allocations: 3.938 kB / 409.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.695e-05/0.1702, allocations: 19.98 kB / 409.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.59e-05/0.1703, allocations: 44.97 kB / 409.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.1714, allocations: 0.6909 MB / 410.5 MB, free: 11.67 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.004227/0.1756, allocations: 3.042 MB / 413.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007806/0.1764, allocations: 0.493 MB / 414.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003931/0.1768, allocations: 270 kB / 414.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002784/0.1771, allocations: 332.9 kB / 414.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.1772, allocations: 50.98 kB / 414.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.485e-06/0.1772, allocations: 0 / 414.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.005463/0.1826, allocations: 2.312 MB / 417 MB, free: 4.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.1827, allocations: 85.67 kB / 417.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007554/0.1835, allocations: 0.6211 MB / 417.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.944e-05/0.1836, allocations: 41.7 kB / 417.8 MB, free: 4.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/0.1838, allocations: 337.1 kB / 418.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.184, allocations: 210.2 kB / 418.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.1842, allocations: 150.5 kB / 418.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1844, allocations: 378.8 kB / 418.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005031/0.1849, allocations: 312.7 kB / 419.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006104/0.1855, allocations: 481.3 kB / 419.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.1866, allocations: 0.7483 MB / 420.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1866, allocations: 3.938 kB / 420.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001559/0.1882, allocations: 0.974 MB / 421.3 MB, free: 312 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1882, allocations: 8 kB / 421.3 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1883, allocations: 4 kB / 421.3 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002445/0.1907, allocations: 408.5 kB / 421.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.1913, allocations: 155.7 kB / 421.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009478/0.1923, allocations: 0.8294 MB / 422.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005464/0.1928, allocations: 39.91 kB / 422.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.757e-05/0.1929, allocations: 36.06 kB / 422.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007354/0.1937, allocations: 473.9 kB / 423.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006365/0.1943, allocations: 470.1 kB / 423.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001041/0.1954, allocations: 0.7321 MB / 424.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.026e-06/0.1954, allocations: 0 / 424.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001521/0.1969, allocations: 0.9095 MB / 425.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1969, allocations: 4 kB / 425.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.1969, allocations: 11.98 kB / 425.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001848/0.1988, allocations: 264.5 kB / 425.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.1994, allocations: 159.7 kB / 425.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006349/0.2, allocations: 0.7123 MB / 426.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.2005, allocations: 35.97 kB / 426.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-05/0.2006, allocations: 28 kB / 426.6 MB, free: 10.85 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],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 (84): * 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: 1 * 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): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003114/0.2009, allocations: 232.1 kB / 426.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.2011, allocations: 75.47 kB / 426.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.2027, allocations: 0.8738 MB / 427.7 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.2027, allocations: 4 kB / 427.7 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2028, allocations: 0 / 427.7 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.2028, allocations: 3.984 kB / 427.7 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.2055, allocations: 1.71 MB / 429.5 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2055, allocations: 0 / 429.5 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004891/0.206, allocations: 111.8 kB / 429.6 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.2075, allocations: 328.5 kB / 429.9 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.707e-05/0.2075, allocations: 19.98 kB / 429.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007981/0.2083, allocations: 0.8139 MB / 430.7 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2083, allocations: 0 / 430.7 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.2103, allocations: 1.292 MB / 432 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.2105, allocations: 152.8 kB / 432.2 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.2107, allocations: 20.03 kB / 432.2 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/0.2111, allocations: 27.98 kB / 432.2 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.2113, allocations: 60.36 kB / 432.3 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-05/0.2113, allocations: 23.98 kB / 432.3 MB, free: 4.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005654/0.2119, allocations: 443.1 kB / 432.7 MB, free: 4.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2119, allocations: 3.938 kB / 432.7 MB, free: 4.539 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001461/0.2134, allocations: 0.538 MB / 433.3 MB, free: 4 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001018/0.2144, allocations: 445.9 kB / 433.7 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.2169, allocations: 1.196 MB / 434.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.2169, allocations: 0.6875 kB / 434.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007186/0.2176, allocations: 399 kB / 435.3 MB, free: 1.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.2193, allocations: 366.5 kB / 435.6 MB, free: 1.609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.2219, allocations: 1.592 MB / 437.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005496/0.2225, allocations: 0.9712 MB / 438.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009197/0.2234, allocations: 290.1 kB / 438.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.2236, allocations: 63.42 kB / 438.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2236, allocations: 4 kB / 438.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of Templates: time 0.2368/0.4604, allocations: 20.49 MB / 459.1 MB, free: 70.18 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)