Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.00125/0.00125, allocations: 111.6 kB / 16.62 MB, free: 6.812 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.001372/0.001372, allocations: 190 kB / 17.55 MB, free: 5.934 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.402/1.402, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.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.00132/0.00132, allocations: 51.92 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.08743, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02408/0.1115, allocations: 22.52 MB / 348.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01291/0.1245, allocations: 10.12 MB / 358.8 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001162/0.1257, allocations: 39.69 kB / 358.8 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.127, allocations: 342.1 kB / 359.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003328/0.1303, allocations: 1.323 MB / 360.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006667/0.137, allocations: 2.413 MB / 362.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003689/0.1407, allocations: 2.576 MB / 365.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.1424, allocations: 0.6636 MB / 366.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003766/0.1462, allocations: 0.9811 MB / 367.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002721/0.149, allocations: 1.02 MB / 368.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004459/0.1494, allocations: 96 kB / 368.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004167/0.1536, allocations: 1.7 MB / 369.9 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006509/0.1543, allocations: 367 kB / 370.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001032/0.1553, allocations: 0.5366 MB / 370.8 MB, free: 7.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004542/0.1599, allocations: 2.451 MB / 373.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1599, allocations: 0 / 373.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1599, allocations: 0 / 373.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.402e-05/0.16, allocations: 4 kB / 373.3 MB, free: 5.48 MB / 318.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.003705/0.1637, allocations: 1.495 MB / 374.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.1637, allocations: 8.031 kB / 374.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004362/0.1642, allocations: 114.8 kB / 374.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.1653, allocations: 0.6824 MB / 375.6 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.1653, allocations: 57.22 kB / 375.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.1654, allocations: 59.98 kB / 375.7 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.167, allocations: 1.052 MB / 376.7 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.1671, allocations: 7.875 kB / 376.7 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.945e-05/0.1672, allocations: 31.98 kB / 376.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.1673, allocations: 69.27 kB / 376.8 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.169, allocations: 1.036 MB / 377.9 MB, free: 0.7227 MB / 318.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.1519/0.3209, allocations: 4.425 MB / 382.3 MB, free: 53.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.322, allocations: 0.5716 MB / 382.9 MB, free: 52.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004702/0.3225, allocations: 321.1 kB / 383.2 MB, free: 52.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002334/0.3249, allocations: 1.976 MB / 385.2 MB, free: 51.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.3249, allocations: 39.61 kB / 385.2 MB, free: 51.24 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.464e-06/0.3249, allocations: 0 / 385.2 MB, free: 51.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004466/0.3294, allocations: 1.963 MB / 387.2 MB, free: 50.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.3295, allocations: 159.2 kB / 387.3 MB, free: 50 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.3308, allocations: 0.9326 MB / 388.3 MB, free: 49.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.985e-05/0.3308, allocations: 39.97 kB / 388.3 MB, free: 49.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002832/0.3311, allocations: 484.6 kB / 388.8 MB, free: 49.17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.3313, allocations: 161.9 kB / 388.9 MB, free: 49.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000293/0.3316, allocations: 192.3 kB / 389.1 MB, free: 48.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.375e-05/0.3316, allocations: 342.7 kB / 389.4 MB, free: 48.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005361/0.3322, allocations: 331.8 kB / 389.8 MB, free: 48.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006712/0.3329, allocations: 0.6201 MB / 390.4 MB, free: 48.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.3339, allocations: 0.8879 MB / 391.3 MB, free: 47.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.3339, allocations: 1.5 kB / 391.3 MB, free: 47.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001834/0.3358, allocations: 1.125 MB / 392.4 MB, free: 46.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.3358, allocations: 7.781 kB / 392.4 MB, free: 46.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.3358, allocations: 12.12 kB / 392.4 MB, free: 46.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.3383, allocations: 377.7 kB / 392.8 MB, free: 46.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006495/0.3389, allocations: 183.4 kB / 393 MB, free: 46.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008808/0.3398, allocations: 1.344 MB / 394.3 MB, free: 45.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008377/0.3407, allocations: 51.8 kB / 394.4 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.041e-05/0.3408, allocations: 47.3 kB / 394.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007502/0.3415, allocations: 0.5136 MB / 394.9 MB, free: 45.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005832/0.3421, allocations: 0.6218 MB / 395.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009229/0.3431, allocations: 0.8842 MB / 396.4 MB, free: 44.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.384e-06/0.3431, allocations: 2.656 kB / 396.4 MB, free: 44.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001689/0.3448, allocations: 1.096 MB / 397.5 MB, free: 43.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3448, allocations: 13.62 kB / 397.5 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.3448, allocations: 8.25 kB / 397.6 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002095/0.3469, allocations: 337.2 kB / 397.9 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.3476, allocations: 179.3 kB / 398.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000874/0.3484, allocations: 1.31 MB / 399.4 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008484/0.3493, allocations: 60.38 kB / 399.4 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.3494, allocations: 48.91 kB / 399.5 MB, free: 42.27 MB / 318.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.00028/0.3497, allocations: 248.7 kB / 399.7 MB, free: 42.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/0.3499, allocations: 94.22 kB / 399.8 MB, free: 41.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.3514, allocations: 0.7895 MB / 400.6 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.3514, allocations: 3.938 kB / 400.6 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.3514, allocations: 8.922 kB / 400.6 MB, free: 41.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3514, allocations: 3.984 kB / 400.6 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002263/0.3537, allocations: 1.581 MB / 402.2 MB, free: 40.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.3537, allocations: 0 / 402.2 MB, free: 40.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/0.354, allocations: 85.38 kB / 402.3 MB, free: 40.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/0.3553, allocations: 268.8 kB / 402.5 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.526e-05/0.3554, allocations: 11.97 kB / 402.6 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007677/0.3562, allocations: 1.309 MB / 403.9 MB, free: 39.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3562, allocations: 5.078 kB / 403.9 MB, free: 39.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.3576, allocations: 1.076 MB / 404.9 MB, free: 38.44 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/0.3579, allocations: 170.6 kB / 405.1 MB, free: 38.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002101/0.3581, allocations: 18.94 kB / 405.1 MB, free: 38.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006015/0.3587, allocations: 36.25 kB / 405.2 MB, free: 38.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.3588, allocations: 50.53 kB / 405.2 MB, free: 38.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.406e-05/0.3589, allocations: 27.86 kB / 405.2 MB, free: 38.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006894/0.3596, allocations: 0.6488 MB / 405.9 MB, free: 37.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3596, allocations: 0 / 405.9 MB, free: 37.83 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001839/0.3615, allocations: 0.7515 MB / 406.6 MB, free: 37.27 MB / 318.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.001613/0.3631, allocations: 0.6121 MB / 407.3 MB, free: 36.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002474/0.3656, allocations: 1.347 MB / 408.6 MB, free: 35.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.3656, allocations: 4 kB / 408.6 MB, free: 35.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005413/0.3661, allocations: 331.5 kB / 408.9 MB, free: 35.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.3679, allocations: 428.2 kB / 409.3 MB, free: 34.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.3706, allocations: 2.006 MB / 411.4 MB, free: 32.69 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.371, allocations: 1.033 MB / 412.4 MB, free: 31.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.3721, allocations: 369.7 kB / 412.7 MB, free: 31.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3723, allocations: 75.44 kB / 412.8 MB, free: 31.19 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3723, allocations: 0 / 412.8 MB, free: 31.19 MB / 318.1 MB Notification: Performance of Templates: time 0.03115/0.4035, allocations: 24.93 MB / 437.8 MB, free: 6.246 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)