Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, 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.002118/0.002118, allocations: 191.9 kB / 16.25 MB, free: 6.637 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.436/1.436, 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.001159/0.001159, allocations: 47.92 kB / 278.2 MB, free: 12.64 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2295, allocations: 46.63 MB / 324.9 MB, free: 1.895 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02495/0.2545, allocations: 21.19 MB / 346.1 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009881/0.2645, allocations: 7.117 MB / 353.2 MB, free: 7.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.2656, allocations: 35.69 kB / 353.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.2667, allocations: 330.3 kB / 353.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002518/0.2693, allocations: 1.015 MB / 354.5 MB, free: 6.328 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004115/0.2734, allocations: 1.69 MB / 356.2 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003395/0.2768, allocations: 2.14 MB / 358.4 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008298/0.2776, allocations: 0.5773 MB / 358.9 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.2789, allocations: 0.833 MB / 359.8 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009414/0.2798, allocations: 0.7824 MB / 360.6 MB, free: 284 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.28, allocations: 76 kB / 360.6 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002198/0.2822, allocations: 1.236 MB / 361.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003089/0.2825, allocations: 303.1 kB / 362.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005042/0.283, allocations: 453.9 kB / 362.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002488/0.2855, allocations: 1.893 MB / 364.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2855, allocations: 4 kB / 364.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2855, allocations: 0 / 364.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.2856, allocations: 0 / 364.5 MB, free: 12.32 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002419/0.288, allocations: 1.27 MB / 365.8 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.288, allocations: 12.03 kB / 365.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003828/0.2884, allocations: 99.89 kB / 365.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008569/0.2893, allocations: 0.601 MB / 366.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.859e-05/0.2893, allocations: 41.31 kB / 366.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.265e-05/0.2894, allocations: 55.98 kB / 366.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.2908, allocations: 0.8868 MB / 367.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.2909, allocations: 3.938 kB / 367.5 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/0.2909, allocations: 27.94 kB / 367.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.073e-05/0.291, allocations: 45.28 kB / 367.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.2923, allocations: 0.813 MB / 368.4 MB, free: 8.328 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.005007/0.2973, allocations: 3.834 MB / 372.2 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009198/0.2982, allocations: 0.5392 MB / 372.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004257/0.2987, allocations: 282 kB / 373 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000399/0.2991, allocations: 0.5034 MB / 373.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.2991, allocations: 39 kB / 373.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.264e-06/0.2991, allocations: 0 / 373.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004564/0.3037, allocations: 2.132 MB / 375.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.3038, allocations: 133 kB / 375.8 MB, free: 372 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009422/0.3048, allocations: 0.7309 MB / 376.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.823e-05/0.3048, allocations: 37.7 kB / 376.6 MB, free: 15.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.3051, allocations: 376 kB / 376.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.3053, allocations: 185.4 kB / 377.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.3055, allocations: 146.6 kB / 377.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.3058, allocations: 386.8 kB / 377.6 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.3063, allocations: 320.7 kB / 378 MB, free: 14.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006475/0.3069, allocations: 0.507 MB / 378.5 MB, free: 13.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.308, allocations: 0.7816 MB / 379.3 MB, free: 12.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.308, allocations: 0 / 379.3 MB, free: 12.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0017/0.3097, allocations: 1.007 MB / 380.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.3097, allocations: 4 kB / 380.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.3098, allocations: 11.94 kB / 380.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001735/0.3115, allocations: 293.5 kB / 380.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005704/0.3121, allocations: 143.8 kB / 380.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.3134, allocations: 1.3 MB / 382 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007854/0.3142, allocations: 51.94 kB / 382.1 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.607e-05/0.3143, allocations: 35.98 kB / 382.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008628/0.3152, allocations: 481.9 kB / 382.6 MB, free: 9.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006916/0.3159, allocations: 0.504 MB / 383.1 MB, free: 8.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001062/0.317, allocations: 0.7553 MB / 383.8 MB, free: 7.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.336e-06/0.317, allocations: 4.016 kB / 383.8 MB, free: 7.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001621/0.3186, allocations: 0.9406 MB / 384.8 MB, free: 6.941 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3186, allocations: 8.781 kB / 384.8 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.3186, allocations: 15.92 kB / 384.8 MB, free: 6.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.3197, allocations: 177.5 kB / 385 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006614/0.3204, allocations: 175.7 kB / 385.1 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008457/0.3213, allocations: 1.183 MB / 386.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006101/0.3219, allocations: 43.91 kB / 386.4 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.223e-05/0.322, allocations: 39.98 kB / 386.4 MB, free: 5.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (85): * 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: 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,2), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002853/0.3223, allocations: 235 kB / 386.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.3224, allocations: 83 kB / 386.7 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.3243, allocations: 0.9807 MB / 387.7 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.3243, allocations: 8 kB / 387.7 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3243, allocations: 0 / 387.7 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.3243, allocations: 3.984 kB / 387.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.3271, allocations: 1.755 MB / 389.5 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3271, allocations: 0 / 389.5 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/0.3276, allocations: 99.89 kB / 389.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.3286, allocations: 241.5 kB / 389.8 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.833e-05/0.3287, allocations: 19.98 kB / 389.8 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009562/0.3296, allocations: 1.273 MB / 391.1 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3297, allocations: 3.938 kB / 391.1 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001958/0.3316, allocations: 1.313 MB / 392.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.3318, allocations: 156.1 kB / 392.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.332, allocations: 12 kB / 392.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.3325, allocations: 47.88 kB / 392.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.3326, allocations: 56.42 kB / 392.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.158e-05/0.3327, allocations: 31.98 kB / 392.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006241/0.3333, allocations: 0.5107 MB / 393.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3333, allocations: 0 / 393.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001556/0.3349, allocations: 0.5896 MB / 393.8 MB, free: 13.65 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001183/0.3361, allocations: 0.5024 MB / 394.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.3387, allocations: 1.328 MB / 395.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3387, allocations: 0 / 395.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006523/0.3394, allocations: 398.9 kB / 396 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.3413, allocations: 426.9 kB / 396.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.3439, allocations: 1.865 MB / 398.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/0.3445, allocations: 0.9875 MB / 399.3 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001026/0.3455, allocations: 323 kB / 399.6 MB, free: 7.762 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.3457, allocations: 87.41 kB / 399.7 MB, free: 7.676 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3458, allocations: 0 / 399.7 MB, free: 7.676 MB / 334.1 MB Notification: Performance of Templates: time 0.03834/0.3841, allocations: 22.68 MB / 422.4 MB, free: 0.9609 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)