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.001285/0.001285, allocations: 107.9 kB / 16.92 MB, free: 6.195 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.00126/0.00126, allocations: 191.4 kB / 17.85 MB, free: 5.297 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.549/1.549, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.001261/0.001261, allocations: 55.92 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1086, allocations: 46.62 MB / 326.6 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01831/0.1269, allocations: 17.54 MB / 344.2 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008857/0.1358, allocations: 5.969 MB / 350.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.1369, allocations: 27.81 kB / 350.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009907/0.1379, allocations: 333.9 kB / 350.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00251/0.1404, allocations: 1.026 MB / 351.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004026/0.1445, allocations: 1.653 MB / 353.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002559/0.147, allocations: 1.941 MB / 355.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006801/0.1477, allocations: 485.6 kB / 355.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001028/0.1488, allocations: 0.7164 MB / 356.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009721/0.1498, allocations: 0.7279 MB / 357 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.1499, allocations: 64 kB / 357.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002277/0.1522, allocations: 1.104 MB / 358.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002728/0.1525, allocations: 267.2 kB / 358.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004867/0.153, allocations: 406.1 kB / 358.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002373/0.1553, allocations: 1.664 MB / 360.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1554, allocations: 0 / 360.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1554, allocations: 0 / 360.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.1554, allocations: 4 kB / 360.5 MB, free: 2.43 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.002364/0.1578, allocations: 1.168 MB / 361.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.1578, allocations: 8.031 kB / 361.7 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.1581, allocations: 88 kB / 361.8 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000777/0.1589, allocations: 0.5517 MB / 362.3 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.512e-05/0.159, allocations: 40.98 kB / 362.4 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.46e-05/0.1591, allocations: 47.98 kB / 362.4 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.1602, allocations: 0.7372 MB / 363.1 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.1602, allocations: 0 / 363.1 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.671e-05/0.1603, allocations: 23.98 kB / 363.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.668e-05/0.1604, allocations: 40.97 kB / 363.2 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1615, allocations: 0.6987 MB / 363.9 MB, free: 14.91 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.004645/0.1662, allocations: 3.05 MB / 367 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007944/0.167, allocations: 488.5 kB / 367.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/0.1674, allocations: 266 kB / 367.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002956/0.1677, allocations: 345.3 kB / 368 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.1677, allocations: 35 kB / 368.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 1.983e-06/0.1677, allocations: 8 kB / 368.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.005443/0.1732, allocations: 2.299 MB / 370.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.1733, allocations: 81.67 kB / 370.5 MB, free: 7.961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000756/0.174, allocations: 0.621 MB / 371.1 MB, free: 7.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.1741, allocations: 45.7 kB / 371.1 MB, free: 7.281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/0.1744, allocations: 324.5 kB / 371.4 MB, free: 6.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.1746, allocations: 205 kB / 371.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.1748, allocations: 146.6 kB / 371.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.175, allocations: 374.8 kB / 372.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005022/0.1755, allocations: 324.6 kB / 372.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006401/0.1762, allocations: 477.3 kB / 372.9 MB, free: 5.379 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.1773, allocations: 0.7483 MB / 373.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1773, allocations: 3.938 kB / 373.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001535/0.1788, allocations: 0.9733 MB / 374.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.1788, allocations: 4 kB / 374.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.1789, allocations: 8 kB / 374.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002479/0.1814, allocations: 405 kB / 375.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005908/0.182, allocations: 155.7 kB / 375.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009759/0.1829, allocations: 0.8293 MB / 376 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005413/0.1835, allocations: 35.92 kB / 376.1 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/0.1836, allocations: 35.98 kB / 376.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007426/0.1843, allocations: 473.9 kB / 376.6 MB, free: 1.621 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006251/0.185, allocations: 478 kB / 377 MB, free: 1.086 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001022/0.186, allocations: 0.7243 MB / 377.8 MB, free: 296 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.001e-06/0.186, allocations: 4 kB / 377.8 MB, free: 292 kB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.1973/0.3833, allocations: 0.8991 MB / 378.7 MB, free: 54.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3834, allocations: 7.547 kB / 378.7 MB, free: 54.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3834, allocations: 12.44 kB / 378.7 MB, free: 54.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002031/0.3855, allocations: 267.3 kB / 379 MB, free: 54.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006689/0.3861, allocations: 159.5 kB / 379.1 MB, free: 54.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006296/0.3868, allocations: 0.7053 MB / 379.8 MB, free: 54.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006489/0.3875, allocations: 35.73 kB / 379.8 MB, free: 54.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.3876, allocations: 30.36 kB / 379.9 MB, free: 54.19 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.0002673/0.3879, allocations: 231.1 kB / 380.1 MB, free: 54.01 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002249/0.3881, allocations: 74.94 kB / 380.2 MB, free: 54.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.3901, allocations: 0.8621 MB / 381 MB, free: 53.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.3901, allocations: 13.72 kB / 381.1 MB, free: 53.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.3901, allocations: 2.625 kB / 381.1 MB, free: 53.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.3901, allocations: 3.281 kB / 381.1 MB, free: 53.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003172/0.3933, allocations: 1.724 MB / 382.8 MB, free: 53.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.3933, allocations: 4.406 kB / 382.8 MB, free: 53.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.3939, allocations: 110.5 kB / 382.9 MB, free: 53.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001531/0.3954, allocations: 320.1 kB / 383.2 MB, free: 53.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.28e-05/0.3955, allocations: 20.95 kB / 383.2 MB, free: 53.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007673/0.3963, allocations: 0.8114 MB / 384 MB, free: 52.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3963, allocations: 1.188 kB / 384 MB, free: 52.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.3984, allocations: 1.295 MB / 385.3 MB, free: 51.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.3987, allocations: 140.6 kB / 385.5 MB, free: 51.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.3988, allocations: 17.98 kB / 385.5 MB, free: 51.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005445/0.3994, allocations: 25.23 kB / 385.5 MB, free: 51.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.3996, allocations: 54.23 kB / 385.6 MB, free: 51.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.352e-05/0.3997, allocations: 32.98 kB / 385.6 MB, free: 51.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008107/0.4005, allocations: 443.3 kB / 386 MB, free: 51.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4005, allocations: 4.859 kB / 386 MB, free: 51.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002183/0.4027, allocations: 0.5266 MB / 386.6 MB, free: 51.56 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.00141/0.4041, allocations: 441.5 kB / 387 MB, free: 51.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003017/0.4071, allocations: 1.305 MB / 388.3 MB, free: 51.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4072, allocations: 4.781 kB / 388.3 MB, free: 51.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008154/0.408, allocations: 398.7 kB / 388.7 MB, free: 50.94 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.4098, allocations: 375.9 kB / 389.1 MB, free: 50.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.4126, allocations: 1.597 MB / 390.7 MB, free: 50.03 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.4132, allocations: 0.9666 MB / 391.6 MB, free: 49.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001015/0.4142, allocations: 277.5 kB / 391.9 MB, free: 49.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.4144, allocations: 64.12 kB / 392 MB, free: 49.26 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4144, allocations: 0 / 392 MB, free: 49.26 MB / 318.1 MB Notification: Performance of Templates: time 0.02899/0.4434, allocations: 20.35 MB / 412.3 MB, free: 32.09 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)