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.001344/0.001345, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00132/0.00132, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.536/1.536, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.001279/0.001279, allocations: 47.92 kB / 280 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08245/0.08374, allocations: 46.63 MB / 326.6 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02133/0.1051, allocations: 21.77 MB / 348.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01325/0.1184, allocations: 9.975 MB / 358.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001096/0.1196, allocations: 27.81 kB / 358.4 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.1208, allocations: 401.4 kB / 358.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003868/0.1247, allocations: 1.411 MB / 360.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006449/0.1311, allocations: 2.641 MB / 362.8 MB, free: 96 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003313/0.1344, allocations: 2.561 MB / 365.4 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009722/0.1354, allocations: 0.6714 MB / 366.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001551/0.137, allocations: 0.9734 MB / 367.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.1383, allocations: 0.9733 MB / 368 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001668/0.1385, allocations: 96 kB / 368.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00315/0.1417, allocations: 1.693 MB / 369.8 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003705/0.142, allocations: 363 kB / 370.2 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005856/0.1426, allocations: 0.5249 MB / 370.7 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00375/0.1464, allocations: 2.447 MB / 373.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1464, allocations: 0 / 373.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1464, allocations: 4 kB / 373.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.1465, allocations: 4 kB / 373.1 MB, free: 5.754 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.003016/0.1495, allocations: 1.488 MB / 374.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1495, allocations: 12.03 kB / 374.6 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003859/0.1499, allocations: 114.8 kB / 374.8 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009629/0.1509, allocations: 0.6785 MB / 375.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/0.151, allocations: 57.22 kB / 375.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.1511, allocations: 63.98 kB / 375.6 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.1527, allocations: 1.052 MB / 376.6 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.1528, allocations: 3.938 kB / 376.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-05/0.1529, allocations: 35.92 kB / 376.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.303e-05/0.153, allocations: 65.27 kB / 376.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.1546, allocations: 1.039 MB / 377.7 MB, free: 1.004 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.1598/0.3144, allocations: 4.436 MB / 382.2 MB, free: 52.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.3156, allocations: 0.5769 MB / 382.8 MB, free: 52.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005007/0.3161, allocations: 317.5 kB / 383.1 MB, free: 52.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002402/0.3185, allocations: 1.978 MB / 385 MB, free: 51.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.3186, allocations: 42.09 kB / 385.1 MB, free: 51.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.494e-06/0.3186, allocations: 0 / 385.1 MB, free: 51.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004425/0.323, allocations: 1.957 MB / 387 MB, free: 50.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.3231, allocations: 168.6 kB / 387.2 MB, free: 49.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.3243, allocations: 0.9287 MB / 388.1 MB, free: 49.42 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.808e-05/0.3244, allocations: 39.25 kB / 388.2 MB, free: 49.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/0.3247, allocations: 482.2 kB / 388.7 MB, free: 49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.3248, allocations: 163.9 kB / 388.8 MB, free: 48.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002752/0.3251, allocations: 181.3 kB / 389 MB, free: 48.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.065e-05/0.3252, allocations: 342.2 kB / 389.3 MB, free: 48.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005426/0.3257, allocations: 335.2 kB / 389.6 MB, free: 48.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006817/0.3264, allocations: 0.6212 MB / 390.3 MB, free: 47.86 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.3275, allocations: 0.887 MB / 391.2 MB, free: 47.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3275, allocations: 4.406 kB / 391.2 MB, free: 47.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001841/0.3294, allocations: 1.132 MB / 392.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3294, allocations: 9 kB / 392.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.3294, allocations: 9.25 kB / 392.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002381/0.3318, allocations: 381.9 kB / 392.7 MB, free: 46.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006191/0.3324, allocations: 176.1 kB / 392.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008526/0.3333, allocations: 1.341 MB / 394.2 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007608/0.3341, allocations: 42.47 kB / 394.2 MB, free: 45.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.525e-05/0.3342, allocations: 44.89 kB / 394.3 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000717/0.3349, allocations: 0.5218 MB / 394.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000591/0.3355, allocations: 0.6234 MB / 395.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001028/0.3365, allocations: 0.8734 MB / 396.3 MB, free: 44.15 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.202e-06/0.3365, allocations: 1.781 kB / 396.3 MB, free: 44.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001832/0.3384, allocations: 1.093 MB / 397.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3384, allocations: 9.062 kB / 397.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3384, allocations: 16.72 kB / 397.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/0.3405, allocations: 337.8 kB / 397.8 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005766/0.3411, allocations: 182.6 kB / 397.9 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008293/0.3419, allocations: 1.313 MB / 399.2 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007183/0.3427, allocations: 48.48 kB / 399.3 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-05/0.3428, allocations: 44.34 kB / 399.3 MB, free: 42.12 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.0003133/0.3431, allocations: 243.1 kB / 399.6 MB, free: 41.9 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.3432, allocations: 96.62 kB / 399.7 MB, free: 41.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.3447, allocations: 0.7901 MB / 400.5 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3447, allocations: 3.938 kB / 400.5 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3447, allocations: 7.938 kB / 400.5 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3448, allocations: 5.172 kB / 400.5 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.3468, allocations: 1.576 MB / 402 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3468, allocations: 0 / 402 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.3471, allocations: 86.48 kB / 402.1 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3484, allocations: 275.6 kB / 402.4 MB, free: 40.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.3484, allocations: 11.8 kB / 402.4 MB, free: 40.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006885/0.3491, allocations: 1.313 MB / 403.7 MB, free: 38.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3491, allocations: 0 / 403.7 MB, free: 38.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.3504, allocations: 1.082 MB / 404.8 MB, free: 38.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3506, allocations: 162.6 kB / 405 MB, free: 38.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.3508, allocations: 23.97 kB / 405 MB, free: 38.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/0.3512, allocations: 23.08 kB / 405 MB, free: 38.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3514, allocations: 50.19 kB / 405.1 MB, free: 38.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-05/0.3514, allocations: 24.7 kB / 405.1 MB, free: 38.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006537/0.3521, allocations: 0.6559 MB / 405.7 MB, free: 37.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3521, allocations: 0 / 405.7 MB, free: 37.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00164/0.3537, allocations: 0.749 MB / 406.5 MB, free: 37.36 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.001102/0.3548, allocations: 0.6282 MB / 407.1 MB, free: 36.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.3571, allocations: 1.352 MB / 408.5 MB, free: 35.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3571, allocations: 0 / 408.5 MB, free: 35.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000543/0.3577, allocations: 330.2 kB / 408.8 MB, free: 35.19 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.3594, allocations: 410.8 kB / 409.2 MB, free: 34.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.3615, allocations: 1.736 MB / 410.9 MB, free: 33.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.3619, allocations: 1.037 MB / 412 MB, free: 31.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.3629, allocations: 368 kB / 412.3 MB, free: 31.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.3631, allocations: 75.42 kB / 412.4 MB, free: 31.55 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3631, allocations: 3.938 kB / 412.4 MB, free: 31.54 MB / 318.1 MB Notification: Performance of Templates: time 0.03069/0.3938, allocations: 25.09 MB / 437.5 MB, free: 6.438 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)