Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001138/0.001138, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.009183/0.009183, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.56/1.56, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004475/0.0004472, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2413, allocations: 47.58 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02042/0.2618, allocations: 20.62 MB / 347.6 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01284/0.2747, allocations: 7.223 MB / 354.9 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/0.2764, allocations: 27.75 kB / 354.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.2778, allocations: 318.2 kB / 355.2 MB, free: 7.121 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003355/0.2812, allocations: 1.027 MB / 356.2 MB, free: 6.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00442/0.2856, allocations: 1.551 MB / 357.8 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00348/0.2891, allocations: 3.131 MB / 360.9 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009737/0.2901, allocations: 0.5042 MB / 361.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.2917, allocations: 0.712 MB / 362.1 MB, free: 168 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001449/0.2932, allocations: 0.755 MB / 362.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001874/0.2934, allocations: 40 kB / 362.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.2959, allocations: 1.221 MB / 364.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003172/0.2962, allocations: 259.1 kB / 364.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005499/0.2968, allocations: 447.6 kB / 364.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002451/0.2993, allocations: 1.835 MB / 366.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2993, allocations: 4 kB / 366.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2993, allocations: 0 / 366.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.2993, allocations: 0 / 366.7 MB, free: 11.6 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.002386/0.3017, allocations: 1.11 MB / 367.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.3018, allocations: 12.03 kB / 367.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003654/0.3021, allocations: 99.91 kB / 367.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009194/0.3031, allocations: 0.6008 MB / 368.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.947e-05/0.3031, allocations: 41.31 kB / 368.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.3032, allocations: 59.92 kB / 368.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.3047, allocations: 0.879 MB / 369.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.3047, allocations: 7.938 kB / 369.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.602e-05/0.3048, allocations: 27.98 kB / 369.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.195e-05/0.3049, allocations: 45.28 kB / 369.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.3062, allocations: 0.8169 MB / 370.4 MB, free: 7.766 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.004999/0.3112, allocations: 3.842 MB / 374.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009142/0.3121, allocations: 0.5392 MB / 374.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004157/0.3126, allocations: 270 kB / 375 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003816/0.3129, allocations: 0.5034 MB / 375.5 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.313, allocations: 43 kB / 375.6 MB, free: 2.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.214e-06/0.313, allocations: 0 / 375.6 MB, free: 2.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004429/0.3174, allocations: 2.132 MB / 377.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.985e-05/0.3175, allocations: 133 kB / 377.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008838/0.3184, allocations: 0.7309 MB / 378.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.3185, allocations: 41.7 kB / 378.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.3188, allocations: 376 kB / 379 MB, free: 14.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.319, allocations: 185.4 kB / 379.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.836e-05/0.3191, allocations: 65.69 kB / 379.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3192, allocations: 386.8 kB / 379.6 MB, free: 14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005237/0.3197, allocations: 305.8 kB / 379.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006459/0.3204, allocations: 0.5109 MB / 380.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.3215, allocations: 0.7739 MB / 381.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3215, allocations: 4 kB / 381.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001682/0.3232, allocations: 0.9913 MB / 382.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.3234, allocations: 265.4 kB / 382.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3234, allocations: 4 kB / 382.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001825/0.3252, allocations: 309.4 kB / 382.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005587/0.3258, allocations: 151.8 kB / 382.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/0.3269, allocations: 1.315 MB / 384.2 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006258/0.3275, allocations: 39.98 kB / 384.2 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.187e-05/0.3276, allocations: 40.05 kB / 384.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.3276, allocations: 4 kB / 384.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001521/0.3291, allocations: 0.8502 MB / 385.1 MB, free: 8.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3291, allocations: 4 kB / 385.1 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.3303, allocations: 185.8 kB / 385.3 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006877/0.331, allocations: 171.7 kB / 385.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009/0.3319, allocations: 1.187 MB / 386.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006138/0.3325, allocations: 55.97 kB / 386.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.3326, allocations: 39.98 kB / 386.8 MB, free: 6.445 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.0005168/0.3332, allocations: 324.8 kB / 387.1 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.3333, allocations: 79.06 kB / 387.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.3351, allocations: 0.9846 MB / 388.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.3351, allocations: 8 kB / 388.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3352, allocations: 4 kB / 388.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.3352, allocations: 3.984 kB / 388.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.3378, allocations: 1.759 MB / 389.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3378, allocations: 4 kB / 389.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004174/0.3383, allocations: 99.89 kB / 390 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001094/0.3394, allocations: 261.6 kB / 390.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.515e-05/0.3394, allocations: 16 kB / 390.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009186/0.3403, allocations: 1.269 MB / 391.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3404, allocations: 4.031 kB / 391.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.3422, allocations: 1.305 MB / 392.9 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000255/0.3425, allocations: 172.2 kB / 393 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.3426, allocations: 16 kB / 393 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004932/0.3431, allocations: 51.81 kB / 393.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.3432, allocations: 56.48 kB / 393.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.073e-05/0.3433, allocations: 23.98 kB / 393.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006737/0.344, allocations: 0.5107 MB / 393.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.344, allocations: 0 / 393.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00173/0.3457, allocations: 0.5896 MB / 394.3 MB, free: 14.72 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.001298/0.347, allocations: 0.5052 MB / 394.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002321/0.3494, allocations: 1.207 MB / 396 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.3494, allocations: 3.938 kB / 396 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006766/0.3501, allocations: 391 kB / 396.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002092/0.3522, allocations: 399.6 kB / 396.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/0.355, allocations: 1.982 MB / 398.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/0.3556, allocations: 0.9953 MB / 399.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001136/0.3568, allocations: 319 kB / 400 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.357, allocations: 79.36 kB / 400.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of SimCode: time 5.52e-07/0.357, allocations: 0 / 400.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of Templates: time 0.03847/0.3955, allocations: 21.74 MB / 421.9 MB, free: 3.004 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)