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.001679/0.001679, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00208/0.00208, allocations: 195.3 kB / 16.14 MB, free: 6.707 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 MB, free: 4.949 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.001192/0.001192, allocations: 47.94 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2475, allocations: 46.62 MB / 324.7 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01862/0.2661, allocations: 18.34 MB / 343 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009116/0.2753, allocations: 6.336 MB / 349.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001396/0.2767, allocations: 35.69 kB / 349.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.2779, allocations: 282.5 kB / 349.7 MB, free: 11.13 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002738/0.2806, allocations: 0.9801 MB / 350.6 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003861/0.2845, allocations: 1.372 MB / 352 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003397/0.2879, allocations: 3.045 MB / 355.1 MB, free: 5.715 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008148/0.2887, allocations: 430.7 kB / 355.5 MB, free: 5.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.2901, allocations: 0.6187 MB / 356.1 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009969/0.2911, allocations: 0.7395 MB / 356.8 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.2912, allocations: 32 kB / 356.9 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.2932, allocations: 1.092 MB / 358 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002585/0.2935, allocations: 235.2 kB / 358.2 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003942/0.2939, allocations: 374.1 kB / 358.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001967/0.2959, allocations: 1.648 MB / 360.2 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2959, allocations: 0 / 360.2 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.2959, allocations: 0 / 360.2 MB, free: 0.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.2959, allocations: 0 / 360.2 MB, free: 0.543 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.002149/0.298, allocations: 1.172 MB / 361.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2981, allocations: 8.031 kB / 361.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.2984, allocations: 87.98 kB / 361.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008528/0.2993, allocations: 0.5439 MB / 362 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.2993, allocations: 36.98 kB / 362.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.429e-05/0.2994, allocations: 59.88 kB / 362.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.3005, allocations: 0.7372 MB / 362.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.3006, allocations: 0 / 362.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.069e-05/0.3006, allocations: 19.98 kB / 362.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.501e-05/0.3007, allocations: 44.97 kB / 362.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3018, allocations: 0.6987 MB / 363.6 MB, free: 13.02 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.003993/0.3058, allocations: 3.034 MB / 366.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007469/0.3065, allocations: 496.9 kB / 367.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.3069, allocations: 266 kB / 367.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002799/0.3072, allocations: 340.8 kB / 367.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3072, allocations: 42.94 kB / 367.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.454e-06/0.3072, allocations: 0 / 367.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005299/0.3126, allocations: 2.299 MB / 370.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.3126, allocations: 89.61 kB / 370.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007378/0.3134, allocations: 0.6172 MB / 370.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.3135, allocations: 41.7 kB / 370.8 MB, free: 5.402 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/0.3137, allocations: 336.3 kB / 371.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.3139, allocations: 205 kB / 371.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/0.3141, allocations: 138.6 kB / 371.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3143, allocations: 382.8 kB / 371.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005036/0.3148, allocations: 316.7 kB / 372.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.3154, allocations: 477.3 kB / 372.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.3165, allocations: 0.7405 MB / 373.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/0.3165, allocations: 7.938 kB / 373.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001591/0.3181, allocations: 0.966 MB / 374.3 MB, free: 1.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3181, allocations: 12.03 kB / 374.3 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3182, allocations: 4 kB / 374.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/0.3207, allocations: 408.3 kB / 374.8 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005628/0.3212, allocations: 151.8 kB / 374.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008854/0.3221, allocations: 0.8293 MB / 375.7 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005512/0.3227, allocations: 47.97 kB / 375.8 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.3228, allocations: 39.88 kB / 375.8 MB, free: 196 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006699/0.3234, allocations: 478 kB / 376.3 MB, free: 15.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005791/0.324, allocations: 470 kB / 376.7 MB, free: 15.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009655/0.325, allocations: 0.7321 MB / 377.5 MB, free: 14.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.907e-06/0.325, allocations: 4 kB / 377.5 MB, free: 14.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001368/0.3264, allocations: 0.9012 MB / 378.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.3264, allocations: 7.984 kB / 378.4 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.3264, allocations: 8 kB / 378.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/0.3283, allocations: 272.6 kB / 378.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005548/0.3289, allocations: 151.8 kB / 378.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000572/0.3294, allocations: 0.7123 MB / 379.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/0.33, allocations: 51.81 kB / 379.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.105e-05/0.33, allocations: 31.98 kB / 379.6 MB, free: 12.22 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.0002321/0.3303, allocations: 224.1 kB / 379.8 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.3304, allocations: 79.09 kB / 379.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.3319, allocations: 0.866 MB / 380.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.332, allocations: 8 kB / 380.8 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.332, allocations: 0 / 380.8 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.332, allocations: 3.984 kB / 380.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.3346, allocations: 1.711 MB / 382.5 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.3346, allocations: 4 kB / 382.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/0.3351, allocations: 111.9 kB / 382.6 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.3366, allocations: 344.5 kB / 382.9 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.3367, allocations: 15.98 kB / 383 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007348/0.3374, allocations: 0.806 MB / 383.8 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3374, allocations: 4.062 kB / 383.8 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.3392, allocations: 1.299 MB / 385.1 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.3394, allocations: 140.3 kB / 385.2 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.3395, allocations: 19.94 kB / 385.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004589/0.34, allocations: 35.97 kB / 385.3 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.3401, allocations: 56.42 kB / 385.3 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.468e-05/0.3402, allocations: 23.98 kB / 385.3 MB, free: 6.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005092/0.3407, allocations: 443 kB / 385.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3407, allocations: 0 / 385.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001336/0.3421, allocations: 0.531 MB / 386.3 MB, free: 5.375 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.0008878/0.3429, allocations: 442.8 kB / 386.7 MB, free: 4.934 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0022/0.3452, allocations: 1.184 MB / 387.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3452, allocations: 0 / 387.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006373/0.3458, allocations: 395 kB / 388.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.3473, allocations: 345.9 kB / 388.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.3498, allocations: 1.835 MB / 390.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.3503, allocations: 0.9676 MB / 391.4 MB, free: 172 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008941/0.3512, allocations: 282.2 kB / 391.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.3513, allocations: 63.36 kB / 391.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3513, allocations: 0 / 391.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of Templates: time 0.02778/0.3791, allocations: 19.42 MB / 411.2 MB, free: 12.37 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)