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.008845/0.008845, allocations: 99.38 kB / 15.73 MB, free: 6.035 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.001626/0.001627, allocations: 194.5 kB / 16.67 MB, free: 5.965 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.544/1.544, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001202/0.001202, allocations: 55.52 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1139, allocations: 46.61 MB / 373.2 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02067/0.1346, allocations: 17.54 MB / 390.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1449, allocations: 5.988 MB / 396.7 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001179/0.1461, allocations: 19.88 kB / 396.7 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.1473, allocations: 329.9 kB / 397 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00336/0.1507, allocations: 1.03 MB / 398.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004512/0.1552, allocations: 1.637 MB / 399.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003136/0.1584, allocations: 1.933 MB / 401.6 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007511/0.1591, allocations: 481.6 kB / 402.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.1604, allocations: 0.7241 MB / 402.8 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.1615, allocations: 0.724 MB / 403.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.1617, allocations: 68 kB / 403.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.1641, allocations: 1.112 MB / 404.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000357/0.1645, allocations: 275.1 kB / 405 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000522/0.165, allocations: 402.1 kB / 405.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002946/0.168, allocations: 1.691 MB / 407.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.168, allocations: 0 / 407.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.168, allocations: 0 / 407.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.168, allocations: 0 / 407.1 MB, free: 15.3 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.002713/0.1707, allocations: 1.172 MB / 408.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.1708, allocations: 8.031 kB / 408.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003278/0.1711, allocations: 92.08 kB / 408.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009443/0.1721, allocations: 0.5751 MB / 408.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.1721, allocations: 40.98 kB / 409 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-05/0.1722, allocations: 47.98 kB / 409 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.1734, allocations: 0.7411 MB / 409.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.1734, allocations: 0 / 409.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.951e-05/0.1735, allocations: 23.98 kB / 409.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-05/0.1736, allocations: 40.97 kB / 409.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.1747, allocations: 0.7026 MB / 410.5 MB, free: 11.73 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.004334/0.179, allocations: 3.038 MB / 413.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007901/0.1798, allocations: 484.5 kB / 414 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003935/0.1802, allocations: 270 kB / 414.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002904/0.1805, allocations: 349.3 kB / 414.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.1806, allocations: 39 kB / 414.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.826e-06/0.1806, allocations: 0 / 414.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.005504/0.1861, allocations: 2.292 MB / 417 MB, free: 4.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.1862, allocations: 89.61 kB / 417 MB, free: 4.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000797/0.187, allocations: 0.6211 MB / 417.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.828e-05/0.1871, allocations: 37.7 kB / 417.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002625/0.1873, allocations: 332.3 kB / 418 MB, free: 3.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.1875, allocations: 209.1 kB / 418.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.1878, allocations: 142.6 kB / 418.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1879, allocations: 374.8 kB / 418.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005146/0.1885, allocations: 320.6 kB / 419.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006127/0.1891, allocations: 473.3 kB / 419.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.1902, allocations: 0.7444 MB / 420.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.1902, allocations: 7.938 kB / 420.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001585/0.1918, allocations: 0.9733 MB / 421.2 MB, free: 432 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1918, allocations: 9.094 kB / 421.2 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1918, allocations: 4 kB / 421.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002483/0.1943, allocations: 416.8 kB / 421.7 MB, free: 0 / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006051/0.1949, allocations: 151.8 kB / 421.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009424/0.1959, allocations: 0.8255 MB / 422.6 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005589/0.1965, allocations: 31.92 kB / 422.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.017e-05/0.1965, allocations: 35.98 kB / 422.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007474/0.1973, allocations: 477.9 kB / 423.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000613/0.1979, allocations: 466.2 kB / 423.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001035/0.199, allocations: 0.736 MB / 424.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.136e-06/0.199, allocations: 0 / 424.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001555/0.2005, allocations: 0.9011 MB / 425.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.2006, allocations: 8 kB / 425.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2006, allocations: 7.938 kB / 425.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.2025, allocations: 272.8 kB / 425.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006001/0.2031, allocations: 159.8 kB / 425.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006962/0.2038, allocations: 0.7162 MB / 426.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006354/0.2045, allocations: 35.97 kB / 426.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.889e-05/0.2046, allocations: 32 kB / 426.5 MB, free: 10.96 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.0003955/0.205, allocations: 228 kB / 426.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.2051, allocations: 75.16 kB / 426.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.2069, allocations: 0.8542 MB / 427.6 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.2069, allocations: 12 kB / 427.6 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.2069, allocations: 3.984 kB / 427.6 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.2069, allocations: 0 / 427.6 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.21, allocations: 1.714 MB / 429.4 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.21, allocations: 8 kB / 429.4 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.2105, allocations: 111.9 kB / 429.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.212, allocations: 324.5 kB / 429.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.2121, allocations: 15.98 kB / 429.8 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007947/0.2129, allocations: 0.8099 MB / 430.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2129, allocations: 0 / 430.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.2148, allocations: 1.303 MB / 431.9 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.215, allocations: 148.1 kB / 432.1 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.2151, allocations: 16 kB / 432.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004349/0.2156, allocations: 36.03 kB / 432.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.2157, allocations: 48.44 kB / 432.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-05/0.2158, allocations: 27.98 kB / 432.2 MB, free: 5.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005387/0.2163, allocations: 447 kB / 432.6 MB, free: 4.664 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2163, allocations: 0 / 432.6 MB, free: 4.664 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001459/0.2178, allocations: 0.5271 MB / 433.2 MB, free: 4.137 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.0009693/0.2188, allocations: 438.8 kB / 433.6 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002472/0.2213, allocations: 1.192 MB / 434.8 MB, free: 2.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.2213, allocations: 4 kB / 434.8 MB, free: 2.496 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000701/0.222, allocations: 395 kB / 435.2 MB, free: 2.113 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/0.2237, allocations: 366.7 kB / 435.5 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.2262, allocations: 1.574 MB / 437.1 MB, free: 152 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005129/0.2268, allocations: 0.9751 MB / 438.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008806/0.2277, allocations: 286.1 kB / 438.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.2278, allocations: 59.44 kB / 438.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.2279, allocations: 0 / 438.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of Templates: time 0.2229/0.4507, allocations: 20.51 MB / 458.9 MB, free: 70.38 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)