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.001307/0.001307, 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.001826/0.001826, allocations: 191.8 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.513/1.513, allocations: 205.1 MB / 222 MB, free: 4.766 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.00131/0.00131, allocations: 48.2 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2387, allocations: 46.63 MB / 324.7 MB, free: 2.273 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01844/0.2572, allocations: 18.35 MB / 343 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009927/0.2671, allocations: 6.328 MB / 349.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.2685, allocations: 31.75 kB / 349.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.2697, allocations: 286.4 kB / 349.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002832/0.2725, allocations: 0.9762 MB / 350.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004081/0.2766, allocations: 1.368 MB / 352 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003595/0.2802, allocations: 3.057 MB / 355.1 MB, free: 5.938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008347/0.2811, allocations: 422.9 kB / 355.5 MB, free: 5.512 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.2824, allocations: 0.6148 MB / 356.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.2836, allocations: 0.7473 MB / 356.8 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.2837, allocations: 40 kB / 356.9 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002511/0.2863, allocations: 1.088 MB / 358 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000291/0.2866, allocations: 231.3 kB / 358.2 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004626/0.287, allocations: 370.1 kB / 358.6 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002452/0.2895, allocations: 1.648 MB / 360.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.2895, allocations: 0 / 360.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2895, allocations: 0 / 360.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.2895, allocations: 0 / 360.2 MB, free: 0.7734 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.002402/0.292, allocations: 1.176 MB / 361.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.292, allocations: 8.031 kB / 361.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003125/0.2923, allocations: 88 kB / 361.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008149/0.2932, allocations: 0.5478 MB / 362 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.422e-05/0.2932, allocations: 41 kB / 362.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.2933, allocations: 47.89 kB / 362.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.2945, allocations: 0.7411 MB / 362.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.2945, allocations: 3.984 kB / 362.9 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.32e-05/0.2946, allocations: 16 kB / 362.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.734e-05/0.2946, allocations: 44.98 kB / 362.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.2957, allocations: 0.6986 MB / 363.6 MB, free: 13.25 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.004297/0.3001, allocations: 3.042 MB / 366.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007655/0.3008, allocations: 492.5 kB / 367.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.3012, allocations: 270 kB / 367.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002878/0.3015, allocations: 341.3 kB / 367.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.3016, allocations: 42.94 kB / 367.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 3.717e-06/0.3016, allocations: 0 / 367.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.00555/0.3071, allocations: 2.296 MB / 370.1 MB, free: 6.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.3072, allocations: 81.67 kB / 370.1 MB, free: 6.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007707/0.308, allocations: 0.6211 MB / 370.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.621e-05/0.3081, allocations: 45.7 kB / 370.8 MB, free: 5.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.3084, allocations: 332.4 kB / 371.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.3085, allocations: 201 kB / 371.3 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/0.3087, allocations: 146.6 kB / 371.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3089, allocations: 378.8 kB / 371.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004986/0.3094, allocations: 316.6 kB / 372.2 MB, free: 4.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.31, allocations: 473.3 kB / 372.6 MB, free: 3.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.311, allocations: 0.7522 MB / 373.4 MB, free: 2.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.311, allocations: 3.938 kB / 373.4 MB, free: 2.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001635/0.3127, allocations: 0.9655 MB / 374.3 MB, free: 1.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.3127, allocations: 4 kB / 374.3 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.3127, allocations: 4 kB / 374.3 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002539/0.3153, allocations: 417 kB / 374.8 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000628/0.3159, allocations: 147.8 kB / 374.9 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.317, allocations: 0.8332 MB / 375.7 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006494/0.3176, allocations: 43.91 kB / 375.8 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.958e-05/0.3177, allocations: 39.92 kB / 375.8 MB, free: 428 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007805/0.3185, allocations: 473.9 kB / 376.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006521/0.3192, allocations: 478 kB / 376.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00103/0.3202, allocations: 0.7321 MB / 377.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.392e-06/0.3202, allocations: 4 kB / 377.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001542/0.3218, allocations: 0.9047 MB / 378.4 MB, free: 13.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3218, allocations: 8 kB / 378.4 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3218, allocations: 4.719 kB / 378.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001921/0.3238, allocations: 276.4 kB / 378.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000609/0.3244, allocations: 155.7 kB / 378.8 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006543/0.325, allocations: 0.7084 MB / 379.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006328/0.3257, allocations: 51.94 kB / 379.6 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/0.3258, allocations: 32 kB / 379.6 MB, free: 12.44 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.000307/0.3261, allocations: 228.6 kB / 379.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.3263, allocations: 75.09 kB / 379.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.328, allocations: 0.8581 MB / 380.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.328, allocations: 8 kB / 380.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.328, allocations: 4 kB / 380.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.328, allocations: 3.984 kB / 380.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002867/0.3309, allocations: 1.719 MB / 382.5 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3309, allocations: 0 / 382.5 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005213/0.3315, allocations: 107.9 kB / 382.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.333, allocations: 340.6 kB / 382.9 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-05/0.333, allocations: 16 kB / 383 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007443/0.3338, allocations: 0.8177 MB / 383.8 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.3338, allocations: 0 / 383.8 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.3357, allocations: 1.291 MB / 385.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.3359, allocations: 144.3 kB / 385.2 MB, free: 6.684 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3361, allocations: 19.92 kB / 385.2 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.3366, allocations: 27.98 kB / 385.2 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3367, allocations: 56.42 kB / 385.3 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.809e-05/0.3368, allocations: 31.98 kB / 385.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005895/0.3374, allocations: 443 kB / 385.8 MB, free: 6.125 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3374, allocations: 0 / 385.8 MB, free: 6.125 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001438/0.3388, allocations: 0.531 MB / 386.3 MB, free: 5.594 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.001094/0.3399, allocations: 442.8 kB / 386.7 MB, free: 5.152 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002556/0.3425, allocations: 1.187 MB / 387.9 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3425, allocations: 0 / 387.9 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007622/0.3433, allocations: 388.2 kB / 388.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.3451, allocations: 338.7 kB / 388.6 MB, free: 3.254 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.3484, allocations: 1.831 MB / 390.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005515/0.349, allocations: 0.9676 MB / 391.4 MB, free: 408 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001009/0.35, allocations: 290.2 kB / 391.7 MB, free: 112 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.3502, allocations: 67.42 kB / 391.8 MB, free: 44 kB / 318.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3502, allocations: 0 / 391.8 MB, free: 44 kB / 318.1 MB Notification: Performance of Templates: time 0.03207/0.3823, allocations: 19.41 MB / 411.2 MB, free: 12.6 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)