Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001821/0.001821, allocations: 92.03 kB / 16.65 MB, free: 6.586 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.001896/0.001896, allocations: 182 kB / 17.56 MB, free: 6.203 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.602/1.602, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.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.0004593/0.0004594, allocations: 12 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01864/0.1251, allocations: 17.77 MB / 346.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009606/0.1348, allocations: 6.212 MB / 352.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008243/0.1357, allocations: 31.75 kB / 352.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009006/0.1366, allocations: 294.4 kB / 352.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002533/0.1391, allocations: 0.9763 MB / 353.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003502/0.1426, allocations: 1.372 MB / 355 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003169/0.1458, allocations: 3.053 MB / 358 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000711/0.1465, allocations: 417.5 kB / 358.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.1477, allocations: 0.6187 MB / 359.1 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009968/0.1487, allocations: 0.7317 MB / 359.8 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.556e-05/0.1488, allocations: 36 kB / 359.8 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.1511, allocations: 1.088 MB / 360.9 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002913/0.1514, allocations: 227.2 kB / 361.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004622/0.1519, allocations: 399.8 kB / 361.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002094/0.154, allocations: 1.628 MB / 363.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.154, allocations: 0 / 363.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.154, allocations: 0 / 363.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.154, allocations: 4 kB / 363.2 MB, free: 0.7812 MB / 302.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.002024/0.156, allocations: 1.028 MB / 364.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1561, allocations: 11.97 kB / 364.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002727/0.1564, allocations: 88.08 kB / 364.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007887/0.1572, allocations: 0.5517 MB / 364.8 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/0.1572, allocations: 36.98 kB / 364.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.99e-05/0.1573, allocations: 44 kB / 364.9 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.1585, allocations: 0.745 MB / 365.7 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.1585, allocations: 7.875 kB / 365.7 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-05/0.1586, allocations: 20 kB / 365.7 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.7e-05/0.1586, allocations: 40.97 kB / 365.7 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.1597, allocations: 0.6948 MB / 366.4 MB, free: 13.4 MB / 318.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.004296/0.164, allocations: 3.058 MB / 369.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007974/0.1649, allocations: 496.4 kB / 370 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/0.1653, allocations: 262 kB / 370.2 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000301/0.1656, allocations: 345.3 kB / 370.5 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/0.1657, allocations: 47 kB / 370.6 MB, free: 8.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.825e-06/0.1657, allocations: 0 / 370.6 MB, free: 8.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005384/0.1711, allocations: 2.311 MB / 372.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.1711, allocations: 89.67 kB / 373 MB, free: 6.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007856/0.1719, allocations: 0.6211 MB / 373.6 MB, free: 5.785 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.94e-05/0.172, allocations: 37.7 kB / 373.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002607/0.1723, allocations: 328.4 kB / 374 MB, free: 5.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.1725, allocations: 209.1 kB / 374.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.487e-05/0.1726, allocations: 65.69 kB / 374.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1727, allocations: 378.8 kB / 374.6 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005001/0.1732, allocations: 301.8 kB / 374.9 MB, free: 4.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.1738, allocations: 481.3 kB / 375.4 MB, free: 3.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.1749, allocations: 0.7484 MB / 376.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1749, allocations: 7.938 kB / 376.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001517/0.1764, allocations: 0.9654 MB / 377.1 MB, free: 2.125 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001544/0.1766, allocations: 236 kB / 377.3 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.1766, allocations: 4 kB / 377.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002724/0.1793, allocations: 424.3 kB / 377.7 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006069/0.1799, allocations: 163.7 kB / 377.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009488/0.1809, allocations: 0.8176 MB / 378.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005941/0.1815, allocations: 48.03 kB / 378.8 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.83e-05/0.1816, allocations: 35.98 kB / 378.8 MB, free: 332 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/0.1816, allocations: 4 kB / 378.8 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1841/0.3657, allocations: 0.8138 MB / 379.6 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3658, allocations: 5.344 kB / 379.6 MB, free: 29.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/0.3679, allocations: 286.5 kB / 379.9 MB, free: 29.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006083/0.3686, allocations: 159.8 kB / 380.1 MB, free: 29.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005976/0.3692, allocations: 0.7105 MB / 380.8 MB, free: 29.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006003/0.3698, allocations: 44.27 kB / 380.8 MB, free: 29.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.378e-05/0.3699, allocations: 37.39 kB / 380.9 MB, free: 29.32 MB / 318.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.0004468/0.3703, allocations: 326.6 kB / 381.2 MB, free: 29.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.3705, allocations: 73.72 kB / 381.2 MB, free: 29.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.3722, allocations: 0.861 MB / 382.1 MB, free: 29.08 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.3722, allocations: 7.828 kB / 382.1 MB, free: 29.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3723, allocations: 4.531 kB / 382.1 MB, free: 29.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.3723, allocations: 5.453 kB / 382.1 MB, free: 29.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.3749, allocations: 1.727 MB / 383.9 MB, free: 28.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3749, allocations: 1.312 kB / 383.9 MB, free: 28.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004923/0.3754, allocations: 110.5 kB / 384 MB, free: 28.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001627/0.377, allocations: 352 kB / 384.3 MB, free: 28.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-05/0.3771, allocations: 17.81 kB / 384.3 MB, free: 28.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006998/0.3778, allocations: 0.8078 MB / 385.1 MB, free: 28.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3778, allocations: 1.844 kB / 385.1 MB, free: 28.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.3798, allocations: 1.293 MB / 386.4 MB, free: 28.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.3801, allocations: 157.5 kB / 386.6 MB, free: 27.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.95e-05/0.3802, allocations: 16.52 kB / 386.6 MB, free: 27.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.3806, allocations: 41.17 kB / 386.6 MB, free: 27.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.3808, allocations: 54.55 kB / 386.7 MB, free: 27.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.156e-05/0.3809, allocations: 22.83 kB / 386.7 MB, free: 27.94 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006471/0.3815, allocations: 443.6 kB / 387.1 MB, free: 27.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3815, allocations: 0 / 387.1 MB, free: 27.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001666/0.3832, allocations: 0.5341 MB / 387.7 MB, free: 27.85 MB / 318.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.0009824/0.3842, allocations: 445.5 kB / 388.1 MB, free: 27.76 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.3865, allocations: 1.175 MB / 389.3 MB, free: 27.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.3865, allocations: 1.531 kB / 389.3 MB, free: 27.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006863/0.3872, allocations: 388.9 kB / 389.7 MB, free: 27.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.389, allocations: 345.2 kB / 390 MB, free: 27.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.3914, allocations: 1.952 MB / 392 MB, free: 26.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.3919, allocations: 0.9675 MB / 392.9 MB, free: 26.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009401/0.3928, allocations: 286.1 kB / 393.2 MB, free: 26.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.393, allocations: 64.92 kB / 393.3 MB, free: 26.02 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.393, allocations: 0 / 393.3 MB, free: 26.02 MB / 318.1 MB Notification: Performance of Templates: time 0.02532/0.4183, allocations: 19.25 MB / 412.5 MB, free: 14.05 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)