Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001185, allocations: 108.8 kB / 16.51 MB, free: 6.707 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.001139/0.001139, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.348/1.348, allocations: 205.1 MB / 223.3 MB, free: 12.4 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.001161/0.001161, allocations: 51.92 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08466/0.08583, allocations: 46.62 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02088/0.1067, allocations: 22.55 MB / 348.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.1195, allocations: 10.43 MB / 358.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001385/0.121, allocations: 43.69 kB / 359 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.1222, allocations: 346.1 kB / 359.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00315/0.1253, allocations: 1.334 MB / 360.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005851/0.1312, allocations: 2.217 MB / 362.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004116/0.1353, allocations: 3.809 MB / 366.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009264/0.1363, allocations: 0.5731 MB / 367.3 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.1378, allocations: 0.8483 MB / 368.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.1392, allocations: 0.9693 MB / 369.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.1393, allocations: 48 kB / 369.1 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00321/0.1425, allocations: 1.681 MB / 370.8 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003243/0.1429, allocations: 319 kB / 371.1 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005464/0.1434, allocations: 0.4897 MB / 371.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003139/0.1466, allocations: 2.4 MB / 374 MB, free: 4.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1466, allocations: 8 kB / 374 MB, free: 4.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1466, allocations: 0 / 374 MB, free: 4.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.917e-05/0.1466, allocations: 0 / 374 MB, free: 4.648 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.0029/0.1496, allocations: 1.495 MB / 375.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.1496, allocations: 8.031 kB / 375.5 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003803/0.15, allocations: 114.8 kB / 375.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009738/0.151, allocations: 0.6824 MB / 376.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.151, allocations: 53.3 kB / 376.4 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1511, allocations: 59.98 kB / 376.4 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.1527, allocations: 1.06 MB / 377.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.1527, allocations: 7.875 kB / 377.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.814e-05/0.1528, allocations: 27.98 kB / 377.5 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-05/0.1529, allocations: 65.27 kB / 377.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1355/0.2885, allocations: 1.027 MB / 378.6 MB, free: 55.61 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.006777/0.2953, allocations: 4.442 MB / 383 MB, free: 53.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009772/0.2963, allocations: 0.5695 MB / 383.6 MB, free: 52.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004446/0.2968, allocations: 321.5 kB / 383.9 MB, free: 52.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002124/0.2989, allocations: 1.968 MB / 385.9 MB, free: 51.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.2989, allocations: 38.47 kB / 385.9 MB, free: 51.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.344e-06/0.2989, allocations: 5.281 kB / 385.9 MB, free: 51.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004262/0.3032, allocations: 1.963 MB / 387.9 MB, free: 50.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.3033, allocations: 161.3 kB / 388.1 MB, free: 49.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.3044, allocations: 0.9348 MB / 389 MB, free: 49.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.3045, allocations: 42.3 kB / 389 MB, free: 49.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.3047, allocations: 479.5 kB / 389.5 MB, free: 49.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.3048, allocations: 169.1 kB / 389.7 MB, free: 48.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.3051, allocations: 191.7 kB / 389.9 MB, free: 48.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.087e-05/0.3052, allocations: 335.6 kB / 390.2 MB, free: 48.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005351/0.3057, allocations: 335.2 kB / 390.5 MB, free: 48.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006529/0.3064, allocations: 0.6205 MB / 391.1 MB, free: 47.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.3074, allocations: 0.886 MB / 392 MB, free: 47.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.3074, allocations: 9.438 kB / 392 MB, free: 47.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001671/0.3091, allocations: 1.123 MB / 393.1 MB, free: 46.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3091, allocations: 13 kB / 393.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.3091, allocations: 9.125 kB / 393.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002374/0.3115, allocations: 375 kB / 393.5 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006513/0.3122, allocations: 182.9 kB / 393.7 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000924/0.3131, allocations: 1.338 MB / 395.1 MB, free: 45.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007486/0.3139, allocations: 50.72 kB / 395.1 MB, free: 45.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.898e-05/0.314, allocations: 44.75 kB / 395.1 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000696/0.3147, allocations: 0.5257 MB / 395.7 MB, free: 45.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005642/0.3152, allocations: 0.6172 MB / 396.3 MB, free: 44.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009101/0.3162, allocations: 0.8748 MB / 397.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.22e-06/0.3162, allocations: 2.219 kB / 397.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001565/0.3177, allocations: 1.095 MB / 398.3 MB, free: 43.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.3178, allocations: 9.625 kB / 398.3 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3178, allocations: 9.625 kB / 398.3 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002119/0.3199, allocations: 342.2 kB / 398.6 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006015/0.3205, allocations: 180.7 kB / 398.8 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000773/0.3213, allocations: 1.314 MB / 400.1 MB, free: 41.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007145/0.322, allocations: 51.53 kB / 400.2 MB, free: 41.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.3221, allocations: 47.55 kB / 400.2 MB, free: 41.91 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank1.ports_m_flow_out[2],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 (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.3223, allocations: 256.6 kB / 400.5 MB, free: 41.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3225, allocations: 93.97 kB / 400.5 MB, free: 41.63 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.3239, allocations: 0.793 MB / 401.3 MB, free: 41.17 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3239, allocations: 3.906 kB / 401.3 MB, free: 41.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3239, allocations: 3.938 kB / 401.3 MB, free: 41.17 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.324, allocations: 3.984 kB / 401.3 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.326, allocations: 1.581 MB / 402.9 MB, free: 40.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.326, allocations: 3.969 kB / 402.9 MB, free: 40.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.3263, allocations: 75.34 kB / 403 MB, free: 40.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00133/0.3277, allocations: 286.4 kB / 403.3 MB, free: 39.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.3277, allocations: 15.95 kB / 403.3 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006729/0.3284, allocations: 1.304 MB / 404.6 MB, free: 38.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3284, allocations: 0 / 404.6 MB, free: 38.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.3298, allocations: 1.088 MB / 405.7 MB, free: 38.06 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000239/0.33, allocations: 167.6 kB / 405.9 MB, free: 37.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.3302, allocations: 15.56 kB / 405.9 MB, free: 37.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005475/0.3307, allocations: 35.34 kB / 405.9 MB, free: 37.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.3309, allocations: 50.67 kB / 406 MB, free: 37.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.152e-05/0.3309, allocations: 23.14 kB / 406 MB, free: 37.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007128/0.3317, allocations: 0.646 MB / 406.6 MB, free: 37.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3317, allocations: 0 / 406.6 MB, free: 37.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002289/0.334, allocations: 0.7512 MB / 407.4 MB, free: 36.63 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001351/0.3353, allocations: 0.6083 MB / 408 MB, free: 36.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.3377, allocations: 1.264 MB / 409.2 MB, free: 34.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.3377, allocations: 5.688 kB / 409.3 MB, free: 34.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005047/0.3382, allocations: 315.5 kB / 409.6 MB, free: 34.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.34, allocations: 394.3 kB / 409.9 MB, free: 34.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.3422, allocations: 2.002 MB / 411.9 MB, free: 32.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.3426, allocations: 1.033 MB / 413 MB, free: 31.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001085/0.3437, allocations: 370.4 kB / 413.3 MB, free: 30.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.3439, allocations: 79.42 kB / 413.4 MB, free: 30.67 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3439, allocations: 0 / 413.4 MB, free: 30.67 MB / 318.1 MB Notification: Performance of Templates: time 0.02756/0.3714, allocations: 24.12 MB / 437.5 MB, free: 6.531 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)