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.007081/0.007081, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001363/0.001363, allocations: 193.7 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.603/1.603, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001177/0.001177, allocations: 50.83 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.104, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01931/0.1233, allocations: 17.53 MB / 390.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009511/0.1329, allocations: 5.976 MB / 396.7 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008861/0.1338, allocations: 23.88 kB / 396.7 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009921/0.1349, allocations: 329.9 kB / 397 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002739/0.1376, allocations: 1.05 MB / 398.1 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004201/0.1418, allocations: 1.641 MB / 399.7 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002492/0.1443, allocations: 1.941 MB / 401.7 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006489/0.145, allocations: 481.7 kB / 402.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.146, allocations: 0.7359 MB / 402.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009589/0.147, allocations: 0.7279 MB / 403.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.1471, allocations: 68 kB / 403.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002028/0.1492, allocations: 1.115 MB / 404.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002818/0.1495, allocations: 259.3 kB / 405 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004224/0.1499, allocations: 406.1 kB / 405.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002355/0.1523, allocations: 1.69 MB / 407.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1523, allocations: 4 kB / 407.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.1523, allocations: 3.984 kB / 407.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.1523, allocations: 0 / 407.1 MB, free: 15.23 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.002381/0.1547, allocations: 1.194 MB / 408.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.1547, allocations: 12.03 kB / 408.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.155, allocations: 96.34 kB / 408.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009538/0.156, allocations: 0.5834 MB / 409 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.211e-05/0.1561, allocations: 40.92 kB / 409 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.715e-05/0.1562, allocations: 47.98 kB / 409.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.1573, allocations: 0.7333 MB / 409.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.1574, allocations: 4 kB / 409.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.681e-05/0.1575, allocations: 23.98 kB / 409.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-05/0.1575, allocations: 40.97 kB / 409.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.1586, allocations: 0.6987 MB / 410.6 MB, free: 11.63 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.004741/0.1634, allocations: 3.046 MB / 413.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008503/0.1642, allocations: 496.4 kB / 414.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/0.1647, allocations: 270 kB / 414.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003285/0.165, allocations: 341.3 kB / 414.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.089e-05/0.1651, allocations: 42.98 kB / 414.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 4.568e-06/0.1651, allocations: 0 / 414.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.005606/0.1707, allocations: 2.309 MB / 417.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.126e-05/0.1708, allocations: 81.67 kB / 417.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009057/0.1718, allocations: 0.6289 MB / 417.8 MB, free: 4.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.722e-05/0.1718, allocations: 41.7 kB / 417.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.1721, allocations: 333.1 kB / 418.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.1723, allocations: 214.2 kB / 418.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.1725, allocations: 146.5 kB / 418.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1727, allocations: 378.8 kB / 418.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005285/0.1732, allocations: 312.7 kB / 419.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006247/0.1738, allocations: 481.3 kB / 419.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.1749, allocations: 0.7444 MB / 420.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.1749, allocations: 7.938 kB / 420.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001633/0.1766, allocations: 0.9736 MB / 421.4 MB, free: 280 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.1766, allocations: 8 kB / 421.4 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1766, allocations: 4 kB / 421.4 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002539/0.1792, allocations: 409 kB / 421.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000597/0.1798, allocations: 155.7 kB / 421.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000995/0.1808, allocations: 0.8255 MB / 422.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006079/0.1814, allocations: 43.91 kB / 422.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.462e-05/0.1815, allocations: 28 kB / 422.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007887/0.1823, allocations: 477.9 kB / 423.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006714/0.183, allocations: 470.1 kB / 423.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001102/0.1841, allocations: 0.7282 MB / 424.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.228e-06/0.1841, allocations: 7.984 kB / 424.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001648/0.1858, allocations: 0.9052 MB / 425.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1858, allocations: 8 kB / 425.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1858, allocations: 7.984 kB / 425.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002003/0.1878, allocations: 265 kB / 425.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006163/0.1884, allocations: 163.7 kB / 425.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006551/0.1891, allocations: 0.7123 MB / 426.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005761/0.1897, allocations: 31.97 kB / 426.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.165e-05/0.1898, allocations: 32 kB / 426.6 MB, free: 10.82 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.0002913/0.1901, allocations: 228.1 kB / 426.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.1903, allocations: 79.47 kB / 426.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001694/0.192, allocations: 0.8659 MB / 427.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.192, allocations: 8 kB / 427.8 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.192, allocations: 0 / 427.8 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.192, allocations: 3.984 kB / 427.8 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003169/0.1952, allocations: 1.71 MB / 429.5 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.1952, allocations: 4 kB / 429.5 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005137/0.1957, allocations: 111.8 kB / 429.6 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/0.1972, allocations: 320.6 kB / 429.9 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.756e-05/0.1973, allocations: 19.98 kB / 429.9 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008507/0.1982, allocations: 0.8139 MB / 430.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.1982, allocations: 3.938 kB / 430.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.2003, allocations: 1.296 MB / 432 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.2005, allocations: 148.7 kB / 432.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.2007, allocations: 27.92 kB / 432.2 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/0.2011, allocations: 23.98 kB / 432.2 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.2013, allocations: 60.36 kB / 432.3 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/0.2013, allocations: 24.12 kB / 432.3 MB, free: 4.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005944/0.202, allocations: 439 kB / 432.8 MB, free: 4.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.202, allocations: 4 kB / 432.8 MB, free: 4.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001676/0.2036, allocations: 0.5341 MB / 433.3 MB, free: 3.977 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.001196/0.2049, allocations: 449.8 kB / 433.7 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.2074, allocations: 1.203 MB / 434.9 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.2074, allocations: 4 kB / 434.9 MB, free: 2.312 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007262/0.2081, allocations: 399 kB / 435.3 MB, free: 1.926 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.2099, allocations: 363.3 kB / 435.7 MB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.2127, allocations: 1.588 MB / 437.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005902/0.2133, allocations: 0.9674 MB / 438.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009379/0.2142, allocations: 294 kB / 438.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.2144, allocations: 67.42 kB / 438.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2144, allocations: 0 / 438.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of Templates: time 0.2437/0.4581, allocations: 20.49 MB / 459.1 MB, free: 70.25 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)