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.001516/0.001515, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001745/0.001745, allocations: 191.4 kB / 16.13 MB, free: 6.668 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.48/1.48, allocations: 205.1 MB / 222 MB, free: 4.723 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: 51.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2354, allocations: 46.63 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02332/0.2588, allocations: 21.24 MB / 345.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.2699, allocations: 7.328 MB / 353.2 MB, free: 7.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.271, allocations: 31.75 kB / 353.3 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.2722, allocations: 314.2 kB / 353.6 MB, free: 7.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002582/0.2748, allocations: 1.031 MB / 354.6 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004233/0.279, allocations: 1.555 MB / 356.2 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003245/0.2823, allocations: 3.127 MB / 359.3 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008403/0.2831, allocations: 0.5001 MB / 359.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.2845, allocations: 0.7159 MB / 360.5 MB, free: 224 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.2856, allocations: 0.7669 MB / 361.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.2857, allocations: 40 kB / 361.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002746/0.2885, allocations: 1.224 MB / 362.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003042/0.2888, allocations: 255.1 kB / 362.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004693/0.2893, allocations: 429.9 kB / 363.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002445/0.2917, allocations: 1.854 MB / 365.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2918, allocations: 4 kB / 365.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2918, allocations: 0 / 365.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.2918, allocations: 0 / 365.1 MB, free: 11.65 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.002809/0.2946, allocations: 1.274 MB / 366.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2947, allocations: 8.031 kB / 366.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004152/0.2951, allocations: 107.9 kB / 366.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.2961, allocations: 0.5971 MB / 367.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.762e-05/0.2962, allocations: 41.31 kB / 367.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-05/0.2963, allocations: 55.98 kB / 367.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.2977, allocations: 0.8906 MB / 368 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.2978, allocations: 3.938 kB / 368 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.447e-05/0.2978, allocations: 24 kB / 368.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.867e-05/0.2979, allocations: 45.3 kB / 368.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.2992, allocations: 0.813 MB / 368.9 MB, free: 7.652 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.005099/0.3044, allocations: 3.838 MB / 372.8 MB, free: 3.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000866/0.3052, allocations: 0.543 MB / 373.3 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003954/0.3056, allocations: 274.5 kB / 373.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003441/0.306, allocations: 0.5069 MB / 374.1 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.306, allocations: 39 kB / 374.1 MB, free: 2.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.144e-06/0.306, allocations: 0 / 374.1 MB, free: 2.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004614/0.3107, allocations: 2.124 MB / 376.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.896e-05/0.3108, allocations: 133 kB / 376.4 MB, free: 15.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.312, allocations: 0.7386 MB / 377.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.751e-05/0.312, allocations: 37.7 kB / 377.1 MB, free: 14.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.3123, allocations: 376 kB / 377.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.3125, allocations: 189.4 kB / 377.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.3127, allocations: 150.5 kB / 377.8 MB, free: 14.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3129, allocations: 386.8 kB / 378.2 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000538/0.3135, allocations: 312.7 kB / 378.5 MB, free: 13.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006764/0.3141, allocations: 0.5148 MB / 379 MB, free: 12.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.3153, allocations: 0.7701 MB / 379.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3153, allocations: 0 / 379.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001669/0.3169, allocations: 0.9997 MB / 380.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.317, allocations: 4 kB / 380.8 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.317, allocations: 12.03 kB / 380.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001698/0.3187, allocations: 293.3 kB / 381.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005652/0.3193, allocations: 143.8 kB / 381.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.3204, allocations: 1.307 MB / 382.6 MB, free: 9.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006132/0.3211, allocations: 44.03 kB / 382.6 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.391e-05/0.3211, allocations: 43.98 kB / 382.7 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007653/0.3219, allocations: 478 kB / 383.1 MB, free: 8.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006216/0.3226, allocations: 0.5078 MB / 383.6 MB, free: 8.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001047/0.3236, allocations: 0.7553 MB / 384.4 MB, free: 7.227 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.986e-06/0.3236, allocations: 4 kB / 384.4 MB, free: 7.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001581/0.3252, allocations: 0.9446 MB / 385.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3252, allocations: 8.625 kB / 385.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3253, allocations: 11.94 kB / 385.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.3263, allocations: 177.9 kB / 385.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007673/0.3271, allocations: 167.7 kB / 385.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009321/0.3281, allocations: 1.187 MB / 386.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006114/0.3287, allocations: 52.03 kB / 386.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.649e-05/0.3288, allocations: 43.92 kB / 387 MB, free: 4.57 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.0002753/0.3291, allocations: 228 kB / 387.2 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.3292, allocations: 79.06 kB / 387.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.3311, allocations: 0.9807 MB / 388.2 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.3311, allocations: 8 kB / 388.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.3312, allocations: 3.984 kB / 388.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3312, allocations: 4 kB / 388.3 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002902/0.3341, allocations: 1.751 MB / 390 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3341, allocations: 0 / 390 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004586/0.3346, allocations: 104 kB / 390.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.3357, allocations: 237.5 kB / 390.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.231e-05/0.3358, allocations: 19.98 kB / 390.4 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.337, allocations: 1.273 MB / 391.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.337, allocations: 4.062 kB / 391.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.3389, allocations: 1.305 MB / 392.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/0.3391, allocations: 160.1 kB / 393.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.3393, allocations: 24.05 kB / 393.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.3398, allocations: 39.83 kB / 393.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.3399, allocations: 56.47 kB / 393.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.351e-05/0.34, allocations: 27.98 kB / 393.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006166/0.3406, allocations: 0.5184 MB / 393.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3406, allocations: 0 / 393.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001523/0.3421, allocations: 0.5935 MB / 394.4 MB, free: 12.97 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.001165/0.3433, allocations: 0.5014 MB / 394.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.3456, allocations: 1.211 MB / 396.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3457, allocations: 0 / 396.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006461/0.3463, allocations: 395 kB / 396.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/0.3481, allocations: 387.6 kB / 396.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.3507, allocations: 1.88 MB / 398.7 MB, free: 8.578 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.3513, allocations: 0.9914 MB / 399.7 MB, free: 7.555 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009926/0.3523, allocations: 331 kB / 400 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.3525, allocations: 79.41 kB / 400.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3525, allocations: 0 / 400.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of Templates: time 0.03232/0.3848, allocations: 21.9 MB / 422 MB, free: 1.207 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)