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.001586/0.001586, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.4 MB, free: 4.438 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.001221/0.001221, allocations: 43.94 kB / 278.7 MB, free: 12.24 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2443, allocations: 46.63 MB / 325.3 MB, free: 2.062 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02286/0.2672, allocations: 21.79 MB / 347.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01293/0.2801, allocations: 9.964 MB / 357.1 MB, free: 4.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009676/0.2812, allocations: 31.81 kB / 357.1 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.2822, allocations: 401.4 kB / 357.5 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003243/0.2855, allocations: 1.419 MB / 358.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005833/0.2913, allocations: 2.637 MB / 361.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.2942, allocations: 2.565 MB / 364.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008587/0.2951, allocations: 0.6559 MB / 364.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.2965, allocations: 0.9657 MB / 365.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.2977, allocations: 0.9694 MB / 366.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.2979, allocations: 92 kB / 366.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003064/0.301, allocations: 1.704 MB / 368.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003735/0.3014, allocations: 367 kB / 368.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005613/0.3019, allocations: 0.5289 MB / 369.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003303/0.3052, allocations: 2.443 MB / 371.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3053, allocations: 0 / 371.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3053, allocations: 0 / 371.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.3053, allocations: 0 / 371.8 MB, free: 5.262 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.002885/0.3082, allocations: 1.499 MB / 373.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3082, allocations: 12.03 kB / 373.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003818/0.3086, allocations: 114.8 kB / 373.4 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009648/0.3096, allocations: 0.6747 MB / 374.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.91e-05/0.3097, allocations: 57.28 kB / 374.2 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.3098, allocations: 59.98 kB / 374.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.3114, allocations: 1.056 MB / 375.3 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.3114, allocations: 3.938 kB / 375.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.855e-05/0.3115, allocations: 31.97 kB / 375.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.709e-05/0.3116, allocations: 69.27 kB / 375.4 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.3132, allocations: 1.043 MB / 376.4 MB, free: 0.5 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.006041/0.3192, allocations: 4.453 MB / 380.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000973/0.3202, allocations: 0.567 MB / 381.5 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004932/0.3207, allocations: 322 kB / 381.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002413/0.3232, allocations: 1.961 MB / 383.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.3232, allocations: 42.89 kB / 383.8 MB, free: 8.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.384e-06/0.3232, allocations: 3.938 kB / 383.8 MB, free: 8.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004335/0.3276, allocations: 1.957 MB / 385.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3277, allocations: 162.2 kB / 385.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.3288, allocations: 0.9273 MB / 386.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.457e-05/0.3289, allocations: 41.69 kB / 386.9 MB, free: 5.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.3292, allocations: 490.8 kB / 387.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.3294, allocations: 165.7 kB / 387.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/0.3297, allocations: 182.5 kB / 387.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3298, allocations: 345.9 kB / 388 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005294/0.3304, allocations: 332.7 kB / 388.3 MB, free: 3.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007724/0.3311, allocations: 0.6251 MB / 389 MB, free: 3.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.3324, allocations: 0.889 MB / 389.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.3324, allocations: 0 / 389.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002064/0.3345, allocations: 1.124 MB / 391 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/0.3345, allocations: 8 kB / 391 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.3345, allocations: 12 kB / 391 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002403/0.3369, allocations: 377.5 kB / 391.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006153/0.3376, allocations: 183.7 kB / 391.6 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.3388, allocations: 1.347 MB / 392.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000685/0.3395, allocations: 35.98 kB / 392.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.513e-05/0.3395, allocations: 43.98 kB / 393 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007543/0.3403, allocations: 0.5175 MB / 393.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007149/0.341, allocations: 0.6267 MB / 394.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001121/0.3422, allocations: 0.8753 MB / 395 MB, free: 12.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.731e-06/0.3422, allocations: 4 kB / 395 MB, free: 12.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001725/0.3439, allocations: 1.093 MB / 396.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.3439, allocations: 8 kB / 396.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3439, allocations: 8 kB / 396.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002139/0.3461, allocations: 337.9 kB / 396.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006168/0.3467, allocations: 187.6 kB / 396.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.3479, allocations: 1.311 MB / 397.9 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006952/0.3486, allocations: 39.98 kB / 398 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-05/0.3487, allocations: 51.92 kB / 398 MB, free: 9.539 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.0002932/0.349, allocations: 244.4 kB / 398.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.3491, allocations: 94.88 kB / 398.4 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.3508, allocations: 0.8012 MB / 399.2 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.3508, allocations: 8 kB / 399.2 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3508, allocations: 0 / 399.2 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3508, allocations: 3.984 kB / 399.2 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.3532, allocations: 1.595 MB / 400.8 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3532, allocations: 0 / 400.8 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.3536, allocations: 79.89 kB / 400.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001309/0.3549, allocations: 265.5 kB / 401.1 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.843e-05/0.3549, allocations: 12 kB / 401.1 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.356, allocations: 1.304 MB / 402.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.356, allocations: 160 / 402.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.3576, allocations: 1.084 MB / 403.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002151/0.3578, allocations: 175.9 kB / 403.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.358, allocations: 12 kB / 403.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004967/0.3585, allocations: 27.97 kB / 403.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3586, allocations: 48.44 kB / 403.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.247e-05/0.3587, allocations: 23.98 kB / 403.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008313/0.3595, allocations: 0.6481 MB / 404.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3595, allocations: 4 kB / 404.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001911/0.3615, allocations: 0.7496 MB / 405.2 MB, free: 2.168 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.001435/0.3629, allocations: 0.6184 MB / 405.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.3656, allocations: 1.359 MB / 407.2 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3656, allocations: 0 / 407.2 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006238/0.3663, allocations: 335.8 kB / 407.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001763/0.368, allocations: 402.8 kB / 407.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.3708, allocations: 1.722 MB / 409.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005909/0.3714, allocations: 1.033 MB / 410.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001148/0.3726, allocations: 379.9 kB / 411 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000193/0.3728, allocations: 71.44 kB / 411.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3728, allocations: 0 / 411.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Templates: time 0.03848/0.4113, allocations: 25.11 MB / 436.2 MB, free: 3.039 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)