Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001332/0.001332, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001252/0.001252, allocations: 186.2 kB / 16.25 MB, free: 6.578 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.519/1.519, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001368/0.001368, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2346, allocations: 46.63 MB / 324.9 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.0198/0.2544, allocations: 18.31 MB / 343.2 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.2647, allocations: 6.125 MB / 349.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001522/0.2662, allocations: 39.69 kB / 349.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.2674, allocations: 294.4 kB / 349.6 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003052/0.2705, allocations: 0.9568 MB / 350.6 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004562/0.2751, allocations: 1.495 MB / 352.1 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003062/0.2782, allocations: 1.949 MB / 354 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009406/0.2791, allocations: 477.7 kB / 354.5 MB, free: 6.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001544/0.2807, allocations: 0.728 MB / 355.2 MB, free: 5.648 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.2819, allocations: 0.7668 MB / 356 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.2821, allocations: 64 kB / 356 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002177/0.2843, allocations: 1.108 MB / 357.1 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003207/0.2846, allocations: 259.3 kB / 357.4 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004983/0.2851, allocations: 406.1 kB / 357.8 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002714/0.2879, allocations: 1.683 MB / 359.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2879, allocations: 0 / 359.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2879, allocations: 0 / 359.5 MB, free: 1.367 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.2879, allocations: 0 / 359.5 MB, free: 1.367 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.002339/0.2903, allocations: 1.172 MB / 360.7 MB, free: 148 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.2903, allocations: 11.97 kB / 360.7 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003092/0.2906, allocations: 84 kB / 360.7 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007976/0.2914, allocations: 0.5439 MB / 361.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.14e-05/0.2915, allocations: 40.98 kB / 361.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.635e-05/0.2916, allocations: 51.89 kB / 361.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.2927, allocations: 0.7411 MB / 362.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.2928, allocations: 0 / 362.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.548e-05/0.2928, allocations: 23.97 kB / 362.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.771e-05/0.2929, allocations: 48.97 kB / 362.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.294, allocations: 0.6947 MB / 362.9 MB, free: 13.84 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.004011/0.298, allocations: 3.026 MB / 365.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007311/0.2987, allocations: 0.4886 MB / 366.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000366/0.2991, allocations: 270 kB / 366.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002486/0.2994, allocations: 337.3 kB / 367 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.2994, allocations: 39 kB / 367 MB, free: 9.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 4.017e-06/0.2994, allocations: 3.984 kB / 367 MB, free: 9.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005326/0.3048, allocations: 2.307 MB / 369.3 MB, free: 6.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.3048, allocations: 85.67 kB / 369.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007857/0.3056, allocations: 0.6211 MB / 370.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/0.3057, allocations: 37.7 kB / 370.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/0.306, allocations: 332.4 kB / 370.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.3061, allocations: 209 kB / 370.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00023/0.3064, allocations: 142.6 kB / 370.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.3066, allocations: 382.8 kB / 371.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005226/0.3071, allocations: 308.7 kB / 371.4 MB, free: 4.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000619/0.3077, allocations: 481.3 kB / 371.9 MB, free: 4.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.3088, allocations: 0.7522 MB / 372.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.3088, allocations: 3.938 kB / 372.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001556/0.3104, allocations: 0.9657 MB / 373.6 MB, free: 2.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.3104, allocations: 11.98 kB / 373.6 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.3104, allocations: 4 kB / 373.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.313, allocations: 416.7 kB / 374 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/0.3136, allocations: 151.7 kB / 374.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.3146, allocations: 0.8293 MB / 375 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005785/0.3152, allocations: 39.92 kB / 375.1 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.189e-05/0.3153, allocations: 31.98 kB / 375.1 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006938/0.316, allocations: 473.9 kB / 375.6 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005801/0.3166, allocations: 478 kB / 376 MB, free: 8 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001069/0.3177, allocations: 0.7282 MB / 376.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.771e-06/0.3177, allocations: 4 kB / 376.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001588/0.3193, allocations: 0.9085 MB / 377.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.3193, allocations: 4 kB / 377.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3193, allocations: 8 kB / 377.7 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.3212, allocations: 277 kB / 377.9 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005834/0.3218, allocations: 159.7 kB / 378.1 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006717/0.3225, allocations: 0.7045 MB / 378.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005877/0.3231, allocations: 51.94 kB / 378.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/0.3231, allocations: 35.98 kB / 378.9 MB, free: 13.03 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.0002838/0.3234, allocations: 220.1 kB / 379.1 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.3236, allocations: 75.09 kB / 379.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.3252, allocations: 0.862 MB / 380 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.3252, allocations: 12 kB / 380.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.3253, allocations: 64 / 380.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3253, allocations: 7.984 kB / 380.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003172/0.3285, allocations: 1.715 MB / 381.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.3285, allocations: 4 kB / 381.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005364/0.329, allocations: 111.9 kB / 381.9 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001616/0.3306, allocations: 328.5 kB / 382.2 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.069e-05/0.3307, allocations: 15.98 kB / 382.2 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007937/0.3315, allocations: 0.8061 MB / 383 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3315, allocations: 3.938 kB / 383 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.3335, allocations: 1.291 MB / 384.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/0.3337, allocations: 140.3 kB / 384.5 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.3339, allocations: 24.12 kB / 384.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005016/0.3344, allocations: 31.89 kB / 384.5 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.3346, allocations: 68.34 kB / 384.6 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.224e-05/0.3347, allocations: 23.98 kB / 384.6 MB, free: 7.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006379/0.3353, allocations: 443 kB / 385 MB, free: 6.723 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3353, allocations: 0 / 385 MB, free: 6.723 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001775/0.3371, allocations: 0.5271 MB / 385.6 MB, free: 6.195 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.001235/0.3383, allocations: 454.7 kB / 386 MB, free: 5.742 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.3412, allocations: 1.301 MB / 387.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.3412, allocations: 0 / 387.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007079/0.3419, allocations: 403.7 kB / 387.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.3437, allocations: 373.2 kB / 388.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.3466, allocations: 1.829 MB / 389.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006399/0.3473, allocations: 0.9674 MB / 390.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.3483, allocations: 278.1 kB / 391.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.3485, allocations: 67.42 kB / 391.2 MB, free: 496 kB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3485, allocations: 0 / 391.2 MB, free: 496 kB / 318.1 MB Notification: Performance of Templates: time 0.0349/0.3835, allocations: 20.17 MB / 411.4 MB, free: 12.28 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)