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.00119/0.00119, allocations: 91.84 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.01177/0.01177, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.831/1.831, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005014/0.0005015, allocations: 16 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2807, allocations: 47.59 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02188/0.3026, allocations: 20.62 MB / 347.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.3137, allocations: 7.223 MB / 354.9 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.3149, allocations: 27.75 kB / 354.9 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.3159, allocations: 314.2 kB / 355.2 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002875/0.3188, allocations: 1.031 MB / 356.2 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003971/0.3228, allocations: 1.543 MB / 357.8 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003485/0.3263, allocations: 3.127 MB / 360.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008034/0.3271, allocations: 0.512 MB / 361.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.3284, allocations: 0.7081 MB / 362.1 MB, free: 168 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.3295, allocations: 0.7552 MB / 362.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.3297, allocations: 40 kB / 362.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002896/0.3326, allocations: 1.224 MB / 364.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004678/0.3331, allocations: 255.1 kB / 364.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000671/0.3337, allocations: 447.6 kB / 364.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00287/0.3366, allocations: 1.835 MB / 366.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3367, allocations: 4 kB / 366.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.3367, allocations: 0 / 366.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.3367, 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.002496/0.3392, allocations: 1.11 MB / 367.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3393, allocations: 16.02 kB / 367.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003731/0.3396, allocations: 99.91 kB / 367.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009343/0.3406, allocations: 0.5969 MB / 368.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.79e-05/0.3406, allocations: 45.3 kB / 368.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.3408, allocations: 52 kB / 368.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.3422, allocations: 0.8829 MB / 369.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.3422, allocations: 7.938 kB / 369.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.131e-05/0.3423, allocations: 27.98 kB / 369.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.488e-05/0.3424, allocations: 45.28 kB / 369.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.3437, allocations: 0.813 MB / 370.4 MB, free: 7.77 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.005166/0.3488, allocations: 3.838 MB / 374.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008911/0.3497, allocations: 0.5474 MB / 374.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004249/0.3502, allocations: 270 kB / 375 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00039/0.3506, allocations: 0.4991 MB / 375.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.3506, allocations: 43 kB / 375.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.194e-06/0.3506, allocations: 0 / 375.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004505/0.3551, allocations: 2.128 MB / 377.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.3552, allocations: 136.9 kB / 377.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009461/0.3562, allocations: 0.7309 MB / 378.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.93e-05/0.3563, allocations: 41.7 kB / 378.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.3565, allocations: 379.9 kB / 379 MB, free: 14.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.3567, allocations: 185.4 kB / 379.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.329e-05/0.3568, allocations: 65.69 kB / 379.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002428/0.3571, allocations: 390.7 kB / 379.6 MB, free: 14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005879/0.3577, allocations: 305.8 kB / 379.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006573/0.3583, allocations: 0.5109 MB / 380.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.3594, allocations: 0.7701 MB / 381.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3594, allocations: 4 kB / 381.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001728/0.3611, allocations: 0.9951 MB / 382.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002135/0.3614, allocations: 265.4 kB / 382.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.3614, allocations: 4 kB / 382.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.3632, allocations: 309.4 kB / 382.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005849/0.3638, allocations: 151.7 kB / 382.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001093/0.3649, allocations: 1.308 MB / 384.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000624/0.3656, allocations: 43.97 kB / 384.2 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.746e-05/0.3656, allocations: 43.98 kB / 384.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.3657, allocations: 4 kB / 384.3 MB, free: 8.988 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001474/0.3671, allocations: 0.8502 MB / 385.1 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3672, allocations: 4 kB / 385.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.3683, allocations: 189.8 kB / 385.3 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006566/0.369, allocations: 167.7 kB / 385.5 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007911/0.3698, allocations: 1.183 MB / 386.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/0.3704, allocations: 63.97 kB / 386.7 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.034e-05/0.3704, allocations: 32 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.0004341/0.3709, allocations: 328.8 kB / 387.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.371, allocations: 79.06 kB / 387.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/0.3728, allocations: 0.9729 MB / 388.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.3728, allocations: 15.98 kB / 388.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3728, allocations: 0 / 388.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3729, allocations: 0 / 388.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003022/0.3759, allocations: 1.762 MB / 389.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3759, allocations: 0 / 389.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.3764, allocations: 103.9 kB / 390 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/0.3776, allocations: 257.6 kB / 390.3 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/0.3776, allocations: 24 kB / 390.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.3787, allocations: 1.269 MB / 391.5 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.3787, allocations: 7.969 kB / 391.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/0.3808, allocations: 1.305 MB / 392.9 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.3811, allocations: 168.1 kB / 393 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.3812, allocations: 19.98 kB / 393 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000508/0.3817, allocations: 43.97 kB / 393.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.3819, allocations: 60.42 kB / 393.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.759e-05/0.382, allocations: 23.98 kB / 393.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006661/0.3826, allocations: 0.5185 MB / 393.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3826, allocations: 0 / 393.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001566/0.3842, allocations: 0.5857 MB / 394.3 MB, free: 14.71 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.001173/0.3854, allocations: 0.5128 MB / 394.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002336/0.3877, allocations: 1.207 MB / 396 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3878, allocations: 0 / 396 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006746/0.3884, allocations: 402.9 kB / 396.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/0.3906, allocations: 383.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.002825/0.3934, 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.0006038/0.3941, allocations: 0.9914 MB / 399.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001169/0.3952, allocations: 327 kB / 400.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.3954, allocations: 75.42 kB / 400.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of SimCode: time 2.164e-06/0.3955, allocations: 0 / 400.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of Templates: time 0.03569/0.4311, allocations: 21.75 MB / 421.9 MB, free: 3 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)