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.001103/0.001103, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.444/1.444, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001189/0.001189, allocations: 51.94 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2724, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02115/0.2936, allocations: 17.53 MB / 342.8 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01/0.3036, allocations: 5.977 MB / 348.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.3054, allocations: 23.81 kB / 348.8 MB, free: 12.33 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.3068, allocations: 337.9 kB / 349.2 MB, free: 12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002952/0.3098, allocations: 1.026 MB / 350.2 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003648/0.3135, allocations: 1.642 MB / 351.8 MB, free: 9.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002141/0.3156, allocations: 1.941 MB / 353.8 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005946/0.3162, allocations: 481.7 kB / 354.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009099/0.3171, allocations: 0.7125 MB / 355 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008923/0.318, allocations: 0.7318 MB / 355.7 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.3182, allocations: 75.92 kB / 355.8 MB, free: 5.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00191/0.3201, allocations: 1.104 MB / 356.9 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.3204, allocations: 259.2 kB / 357.1 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003903/0.3208, allocations: 406.1 kB / 357.5 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.323, allocations: 1.671 MB / 359.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.323, allocations: 0 / 359.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3231, allocations: 0 / 359.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.3231, allocations: 0 / 359.2 MB, free: 1.934 MB / 286.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.002183/0.3253, allocations: 1.176 MB / 360.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3253, allocations: 11.97 kB / 360.4 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000306/0.3256, allocations: 88 kB / 360.5 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007872/0.3264, allocations: 0.5439 MB / 361 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.088e-05/0.3265, allocations: 37.03 kB / 361 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.825e-05/0.3266, allocations: 51.98 kB / 361.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.3278, allocations: 0.7411 MB / 361.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.3278, allocations: 0 / 361.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-05/0.3279, allocations: 19.98 kB / 361.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.086e-05/0.328, allocations: 44.97 kB / 361.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.3291, allocations: 0.6947 MB / 362.6 MB, free: 14.41 MB / 302.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.004323/0.3334, allocations: 3.042 MB / 365.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007865/0.3342, allocations: 0.493 MB / 366.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000412/0.3346, allocations: 270 kB / 366.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002965/0.3349, allocations: 340.8 kB / 366.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.335, allocations: 42.94 kB / 366.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.984e-06/0.335, allocations: 0 / 366.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005291/0.3403, allocations: 2.3 MB / 369.1 MB, free: 7.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.3404, allocations: 85.67 kB / 369.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007529/0.3411, allocations: 0.6172 MB / 369.8 MB, free: 6.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.658e-05/0.3412, allocations: 41.7 kB / 369.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.3415, allocations: 332.3 kB / 370.1 MB, free: 6.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.3416, allocations: 213 kB / 370.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.3418, allocations: 142.6 kB / 370.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.342, allocations: 382.8 kB / 370.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004979/0.3425, allocations: 312.7 kB / 371.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005982/0.3431, allocations: 477.3 kB / 371.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3441, allocations: 0.7444 MB / 372.4 MB, free: 4.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3441, allocations: 3.938 kB / 372.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001532/0.3457, allocations: 0.9737 MB / 373.4 MB, free: 3.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.3457, allocations: 8 kB / 373.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.3457, allocations: 4 kB / 373.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/0.3482, allocations: 408.5 kB / 373.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005922/0.3488, allocations: 155.7 kB / 373.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000884/0.3497, allocations: 0.8177 MB / 374.7 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.3502, allocations: 39.98 kB / 374.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.44e-05/0.3503, allocations: 35.98 kB / 374.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007237/0.351, allocations: 469.9 kB / 375.3 MB, free: 1.117 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005832/0.3516, allocations: 481.9 kB / 375.7 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000999/0.3526, allocations: 0.7282 MB / 376.5 MB, free: 15.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.056e-06/0.3526, allocations: 0 / 376.5 MB, free: 15.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001479/0.3541, allocations: 0.905 MB / 377.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.3542, allocations: 8.094 kB / 377.4 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3542, allocations: 7.938 kB / 377.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/0.3561, allocations: 276.7 kB / 377.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006046/0.3567, allocations: 159.7 kB / 377.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006646/0.3574, allocations: 0.7123 MB / 378.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005209/0.3579, allocations: 35.97 kB / 378.6 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.95e-05/0.358, allocations: 28 kB / 378.6 MB, free: 13.61 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.0003019/0.3583, allocations: 232.6 kB / 378.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.3585, allocations: 79.16 kB / 378.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.3601, allocations: 0.8504 MB / 379.7 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.3601, allocations: 11.98 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.3601, allocations: 4.062 kB / 379.8 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3601, allocations: 4.031 kB / 379.8 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.3628, allocations: 1.723 MB / 381.5 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3628, allocations: 0 / 381.5 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005094/0.3633, allocations: 107.9 kB / 381.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001462/0.3648, allocations: 324.5 kB / 381.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.341e-05/0.3648, allocations: 19.98 kB / 381.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000781/0.3656, allocations: 0.8176 MB / 382.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3656, allocations: 4.031 kB / 382.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.3675, allocations: 1.291 MB / 384 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/0.3677, allocations: 144.2 kB / 384.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.3679, allocations: 16.06 kB / 384.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.3683, allocations: 31.97 kB / 384.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.3684, allocations: 48.44 kB / 384.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/0.3685, allocations: 27.98 kB / 384.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005594/0.3691, allocations: 447 kB / 384.7 MB, free: 7.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3691, allocations: 0 / 384.7 MB, free: 7.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001464/0.3705, allocations: 0.5271 MB / 385.3 MB, free: 6.781 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.0009489/0.3715, allocations: 442.6 kB / 385.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002533/0.374, allocations: 1.306 MB / 387 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3741, allocations: 0 / 387 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006651/0.3747, allocations: 403 kB / 387.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.3763, allocations: 362.7 kB / 387.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.3787, allocations: 1.606 MB / 389.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.3792, allocations: 0.9751 MB / 390.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008852/0.38, allocations: 278.1 kB / 390.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.3802, allocations: 67.42 kB / 390.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3802, allocations: 0 / 390.7 MB, free: 1.297 MB / 318.1 MB Notification: Performance of Templates: time 0.0297/0.4099, allocations: 20.33 MB / 411 MB, free: 12.94 MB / 350.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)