Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001485/0.001485, 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.001806/0.001805, allocations: 191.7 kB / 16.25 MB, free: 6.629 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.419/1.419, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.001322/0.001322, allocations: 55.86 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2236, allocations: 46.63 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02203/0.2457, allocations: 22.52 MB / 347.4 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.2588, allocations: 10.11 MB / 357.5 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.26, allocations: 43.62 kB / 357.5 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.261, allocations: 350.1 kB / 357.9 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.2639, allocations: 1.33 MB / 359.2 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005745/0.2697, allocations: 2.405 MB / 361.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003243/0.2729, allocations: 2.58 MB / 364.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009927/0.2739, allocations: 0.652 MB / 364.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001589/0.2755, allocations: 0.9889 MB / 365.8 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001395/0.2769, allocations: 1.02 MB / 366.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.2771, allocations: 92 kB / 366.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003026/0.2802, allocations: 1.704 MB / 368.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004158/0.2806, allocations: 367 kB / 369 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006197/0.2812, allocations: 0.5289 MB / 369.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003301/0.2845, allocations: 2.451 MB / 372 MB, free: 4.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2846, allocations: 0 / 372 MB, free: 4.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2846, allocations: 0 / 372 MB, free: 4.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.2846, allocations: 0 / 372 MB, free: 4.832 MB / 302.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.003186/0.2878, allocations: 1.495 MB / 373.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2878, allocations: 8.031 kB / 373.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004001/0.2882, allocations: 110.8 kB / 373.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.2893, allocations: 0.6941 MB / 374.3 MB, free: 2.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.866e-05/0.2893, allocations: 45.3 kB / 374.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.2895, allocations: 63.92 kB / 374.4 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.2912, allocations: 1.056 MB / 375.4 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.2913, allocations: 3.938 kB / 375.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.291e-05/0.2914, allocations: 27.98 kB / 375.5 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.972e-05/0.2915, allocations: 73.2 kB / 375.5 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/0.2932, allocations: 1.032 MB / 376.6 MB, free: 80 kB / 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.006453/0.2997, allocations: 4.449 MB / 381 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009692/0.3007, allocations: 0.5592 MB / 381.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.3012, allocations: 326 kB / 381.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002441/0.3036, allocations: 1.965 MB / 383.9 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.3037, allocations: 42.83 kB / 383.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.864e-06/0.3037, allocations: 4 kB / 383.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00452/0.3082, allocations: 1.961 MB / 385.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.583e-05/0.3083, allocations: 162.2 kB / 386 MB, free: 5.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.3095, allocations: 0.9312 MB / 387 MB, free: 5.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.077e-05/0.3096, allocations: 41.7 kB / 387 MB, free: 4.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/0.3099, allocations: 490.9 kB / 387.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.3101, allocations: 161.7 kB / 387.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002782/0.3103, allocations: 190.5 kB / 387.8 MB, free: 4.141 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.3105, allocations: 334 kB / 388.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/0.311, allocations: 340.7 kB / 388.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007418/0.3118, allocations: 0.6173 MB / 389.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.3129, allocations: 0.8929 MB / 390 MB, free: 1.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.3129, allocations: 4 kB / 390 MB, free: 1.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002038/0.315, allocations: 1.12 MB / 391.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.315, allocations: 8 kB / 391.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.315, allocations: 12.75 kB / 391.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002553/0.3176, allocations: 377.3 kB / 391.5 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/0.3183, allocations: 187.7 kB / 391.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.3195, allocations: 1.346 MB / 393 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007893/0.3203, allocations: 48.09 kB / 393.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.681e-05/0.3204, allocations: 48 kB / 393.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008202/0.3212, allocations: 0.5175 MB / 393.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007042/0.3219, allocations: 0.6189 MB / 394.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001117/0.323, allocations: 0.8753 MB / 395.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.777e-06/0.323, allocations: 0 / 395.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001734/0.3248, allocations: 1.093 MB / 396.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3248, allocations: 11.98 kB / 396.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.3248, allocations: 12 kB / 396.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.3271, allocations: 337.6 kB / 396.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006349/0.3277, allocations: 183.6 kB / 396.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.3289, allocations: 1.315 MB / 398.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008263/0.3297, allocations: 47.97 kB / 398.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/0.3298, allocations: 47.92 kB / 398.2 MB, free: 9.105 MB / 334.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.0003173/0.3301, allocations: 247.3 kB / 398.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.3303, allocations: 94.86 kB / 398.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.332, allocations: 0.7935 MB / 399.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.332, allocations: 4 kB / 399.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.332, allocations: 0 / 399.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.332, allocations: 7.922 kB / 399.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002417/0.3344, allocations: 1.591 MB / 400.9 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3345, allocations: 0 / 400.9 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003883/0.3349, allocations: 75.91 kB / 401 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.3362, allocations: 277.5 kB / 401.3 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.3363, allocations: 12 kB / 401.3 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/0.3373, allocations: 1.308 MB / 402.6 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3373, allocations: 3.938 kB / 402.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.3389, allocations: 1.084 MB / 403.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/0.3391, allocations: 167.9 kB / 403.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.3393, allocations: 19.94 kB / 403.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005338/0.3398, allocations: 36.03 kB / 403.9 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.3399, allocations: 48.38 kB / 403.9 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.223e-05/0.34, allocations: 19.98 kB / 403.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008568/0.3409, allocations: 0.652 MB / 404.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3409, allocations: 0 / 404.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001869/0.3427, allocations: 0.7496 MB / 405.4 MB, free: 1.723 MB / 334.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.001396/0.3442, allocations: 0.6116 MB / 406 MB, free: 1.102 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.347, allocations: 1.357 MB / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.347, allocations: 4 kB / 407.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006268/0.3476, allocations: 334.5 kB / 407.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001785/0.3494, allocations: 406.7 kB / 408 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.3522, allocations: 2.003 MB / 410.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005736/0.3528, allocations: 1.037 MB / 411.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00114/0.354, allocations: 368 kB / 411.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001933/0.3542, allocations: 79.42 kB / 411.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3542, allocations: 0 / 411.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of Templates: time 0.03733/0.3915, allocations: 24.93 MB / 436.5 MB, free: 2.492 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)