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.00682/0.00682, 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.001324/0.001324, allocations: 198.2 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.553/1.553, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001176/0.001176, allocations: 54.72 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1062, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.0175/0.1238, allocations: 17.54 MB / 390.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009383/0.1332, allocations: 5.972 MB / 396.7 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001379/0.1347, allocations: 19.88 kB / 396.7 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001816/0.1366, allocations: 333.9 kB / 397 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003597/0.1402, allocations: 1.03 MB / 398.1 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004926/0.1452, allocations: 1.645 MB / 399.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003273/0.1485, allocations: 1.937 MB / 401.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007971/0.1493, allocations: 485.6 kB / 402.1 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001287/0.1506, allocations: 0.7202 MB / 402.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.1516, allocations: 0.7279 MB / 403.6 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.1518, allocations: 72 kB / 403.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002259/0.154, allocations: 1.115 MB / 404.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.1543, allocations: 263.2 kB / 405 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000447/0.1548, allocations: 406.1 kB / 405.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0023/0.1571, allocations: 1.683 MB / 407.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1571, allocations: 0 / 407.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1571, allocations: 0 / 407.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.1571, allocations: 0 / 407.1 MB, free: 15.28 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.002375/0.1595, allocations: 1.176 MB / 408.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1595, allocations: 8.031 kB / 408.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003242/0.1599, allocations: 88.08 kB / 408.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009706/0.1609, allocations: 0.5789 MB / 408.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.1609, allocations: 37 kB / 409 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.024e-05/0.161, allocations: 47.98 kB / 409 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.1622, allocations: 0.7411 MB / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.1622, allocations: 0 / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.835e-05/0.1623, allocations: 27.98 kB / 409.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.078e-05/0.1624, allocations: 44.91 kB / 409.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.1634, allocations: 0.6947 MB / 410.5 MB, free: 11.71 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.004345/0.1678, allocations: 3.046 MB / 413.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007618/0.1686, allocations: 488.5 kB / 414 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000402/0.169, allocations: 266 kB / 414.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003067/0.1693, allocations: 341.3 kB / 414.6 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.1693, allocations: 42.98 kB / 414.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.395e-06/0.1694, allocations: 4 kB / 414.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.00539/0.1747, allocations: 2.292 MB / 417 MB, free: 4.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.1748, allocations: 81.67 kB / 417.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007266/0.1756, allocations: 0.625 MB / 417.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.159e-05/0.1756, allocations: 37.7 kB / 417.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.1759, allocations: 332.3 kB / 418 MB, free: 3.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.176, allocations: 205.1 kB / 418.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.1762, allocations: 142.6 kB / 418.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1764, allocations: 378.8 kB / 418.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/0.1769, allocations: 320.6 kB / 419.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005743/0.1775, allocations: 481.3 kB / 419.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.1785, allocations: 0.7444 MB / 420.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.1785, allocations: 7.938 kB / 420.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001503/0.18, allocations: 0.9697 MB / 421.3 MB, free: 404 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.1801, allocations: 9.094 kB / 421.3 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1801, allocations: 4 kB / 421.3 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002422/0.1825, allocations: 404.5 kB / 421.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005556/0.1831, allocations: 159.7 kB / 421.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008929/0.184, allocations: 0.8216 MB / 422.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004967/0.1845, allocations: 35.92 kB / 422.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.326e-05/0.1846, allocations: 32.08 kB / 422.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000694/0.1853, allocations: 485.9 kB / 423.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006085/0.1859, allocations: 474 kB / 423.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000962/0.1869, allocations: 0.7243 MB / 424.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.681e-06/0.1869, allocations: 8 kB / 424.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001502/0.1884, allocations: 0.9013 MB / 425.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1884, allocations: 12.12 kB / 425.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1884, allocations: 4 kB / 425.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/0.1904, allocations: 268.5 kB / 425.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005539/0.1909, allocations: 159.7 kB / 425.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006705/0.1916, allocations: 0.7162 MB / 426.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/0.1921, allocations: 31.97 kB / 426.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.955e-05/0.1922, allocations: 32 kB / 426.5 MB, free: 10.94 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.0002783/0.1925, allocations: 224.1 kB / 426.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.1927, allocations: 75.09 kB / 426.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.1948, allocations: 0.8581 MB / 427.6 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.1948, allocations: 11.98 kB / 427.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1949, allocations: 0 / 427.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1949, allocations: 0 / 427.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.198, allocations: 1.718 MB / 429.4 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.198, allocations: 4 kB / 429.4 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004894/0.1985, allocations: 115.9 kB / 429.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001539/0.2001, allocations: 332.6 kB / 429.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.825e-05/0.2001, allocations: 15.98 kB / 429.8 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009679/0.2011, allocations: 0.8061 MB / 430.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.2011, allocations: 3.938 kB / 430.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.2032, allocations: 1.292 MB / 431.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002392/0.2035, allocations: 148.1 kB / 432.1 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.2036, allocations: 20 kB / 432.1 MB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004815/0.2041, allocations: 32.03 kB / 432.1 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.2042, allocations: 56.38 kB / 432.2 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-05/0.2043, allocations: 23.98 kB / 432.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005673/0.2048, allocations: 443 kB / 432.6 MB, free: 4.645 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2048, allocations: 4 kB / 432.6 MB, free: 4.641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001561/0.2064, allocations: 0.5232 MB / 433.2 MB, free: 4.117 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.001028/0.2074, allocations: 446.6 kB / 433.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002449/0.2099, allocations: 1.192 MB / 434.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.2099, allocations: 4 kB / 434.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006712/0.2106, allocations: 403.7 kB / 435.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.2122, allocations: 366.5 kB / 435.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.215, allocations: 1.574 MB / 437.1 MB, free: 116 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006103/0.2156, allocations: 0.9713 MB / 438.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008443/0.2165, allocations: 282.1 kB / 438.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.2167, allocations: 59.44 kB / 438.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2167, allocations: 0 / 438.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of Templates: time 0.2227/0.4394, allocations: 20.85 MB / 459.3 MB, free: 70.2 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)