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.001595/0.001601, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002105/0.002105, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.491/1.491, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.001443/0.001443, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2479, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02197/0.2699, allocations: 20.6 MB / 345.9 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.2808, allocations: 6.988 MB / 352.9 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.2822, allocations: 23.81 kB / 352.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.2834, allocations: 369.6 kB / 353.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003304/0.2868, allocations: 1.096 MB / 354.4 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005211/0.292, allocations: 1.848 MB / 356.2 MB, free: 4.922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003137/0.2951, allocations: 2.14 MB / 358.4 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009739/0.2961, allocations: 0.5891 MB / 359 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001444/0.2976, allocations: 0.802 MB / 359.8 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.2986, allocations: 0.7667 MB / 360.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001539/0.2988, allocations: 76 kB / 360.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002739/0.3015, allocations: 1.24 MB / 361.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003151/0.3019, allocations: 287.2 kB / 362.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004861/0.3023, allocations: 473.8 kB / 362.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002841/0.3052, allocations: 1.874 MB / 364.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3052, allocations: 0 / 364.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3052, allocations: 0 / 364.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.3053, allocations: 4 kB / 364.5 MB, free: 12.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.002647/0.3079, allocations: 1.274 MB / 365.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.308, allocations: 8.031 kB / 365.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003785/0.3083, allocations: 99.89 kB / 365.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009145/0.3093, allocations: 0.5971 MB / 366.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.596e-05/0.3093, allocations: 49.31 kB / 366.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.386e-05/0.3094, allocations: 55.98 kB / 366.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.3107, allocations: 0.8867 MB / 367.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.3108, allocations: 0 / 367.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.636e-05/0.3109, allocations: 24 kB / 367.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.134e-05/0.3109, allocations: 45.28 kB / 367.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.3121, allocations: 0.8091 MB / 368.3 MB, free: 8.672 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.00486/0.317, allocations: 3.854 MB / 372.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009473/0.318, allocations: 0.5392 MB / 372.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004187/0.3184, allocations: 282 kB / 373 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003814/0.3188, allocations: 0.4956 MB / 373.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.3188, allocations: 43 kB / 373.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.655e-06/0.3188, allocations: 0 / 373.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004458/0.3233, allocations: 2.128 MB / 375.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.529e-05/0.3234, allocations: 133 kB / 375.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008837/0.3243, allocations: 0.7233 MB / 376.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.835e-05/0.3244, allocations: 41.7 kB / 376.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002629/0.3246, allocations: 379.9 kB / 376.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.3248, allocations: 181.5 kB / 377.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002401/0.325, allocations: 154.5 kB / 377.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3252, allocations: 394.7 kB / 377.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005069/0.3257, allocations: 312.6 kB / 377.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006383/0.3264, allocations: 0.511 MB / 378.4 MB, free: 13.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3275, allocations: 0.77 MB / 379.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3275, allocations: 0 / 379.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001643/0.3291, allocations: 0.9992 MB / 380.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.3291, allocations: 4 kB / 380.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.3292, allocations: 8 kB / 380.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001689/0.3309, allocations: 297.9 kB / 380.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005569/0.3314, allocations: 155.7 kB / 380.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.3326, allocations: 1.304 MB / 382 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000595/0.3332, allocations: 31.98 kB / 382 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.257e-05/0.3332, allocations: 39.92 kB / 382 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007356/0.334, allocations: 477.9 kB / 382.5 MB, free: 9.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006232/0.3346, allocations: 0.5158 MB / 383 MB, free: 9.062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001033/0.3357, allocations: 0.7474 MB / 383.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.949e-06/0.3357, allocations: 4 kB / 383.8 MB, free: 8.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001578/0.3373, allocations: 0.9373 MB / 384.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3373, allocations: 8 kB / 384.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3373, allocations: 11.97 kB / 384.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.3384, allocations: 177.7 kB / 384.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006773/0.3391, allocations: 175.7 kB / 385.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008095/0.3399, allocations: 1.19 MB / 386.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.3405, allocations: 43.97 kB / 386.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.851e-05/0.3405, allocations: 28 kB / 386.3 MB, free: 5.594 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.0002537/0.3408, allocations: 236 kB / 386.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.341, allocations: 79.06 kB / 386.6 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/0.3428, allocations: 0.9769 MB / 387.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.3429, allocations: 8 kB / 387.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.3429, allocations: 0 / 387.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3429, allocations: 3.984 kB / 387.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00288/0.3458, allocations: 1.751 MB / 389.4 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3458, allocations: 0 / 389.4 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.3462, allocations: 111.8 kB / 389.5 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.3473, allocations: 233.6 kB / 389.7 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.3474, allocations: 16 kB / 389.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009027/0.3483, allocations: 1.28 MB / 391 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3483, allocations: 4.031 kB / 391 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.3502, allocations: 1.305 MB / 392.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002121/0.3505, allocations: 160 kB / 392.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.3506, allocations: 19.98 kB / 392.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.3511, allocations: 23.98 kB / 392.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.3513, allocations: 56.48 kB / 392.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.355e-05/0.3513, allocations: 28.05 kB / 392.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006537/0.352, allocations: 0.5146 MB / 393.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.352, allocations: 3.938 kB / 393.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001648/0.3537, allocations: 0.5896 MB / 393.7 MB, free: 14.01 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.001392/0.3551, allocations: 0.5053 MB / 394.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.3578, allocations: 1.321 MB / 395.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.3578, allocations: 0 / 395.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006862/0.3585, allocations: 407.4 kB / 395.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.3605, allocations: 414.3 kB / 396.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.3637, allocations: 1.626 MB / 398 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006713/0.3644, allocations: 0.9836 MB / 398.9 MB, free: 8.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001251/0.3657, allocations: 327 kB / 399.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.3659, allocations: 79.41 kB / 399.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3659, allocations: 0 / 399.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of Templates: time 0.03913/0.4051, allocations: 22.86 MB / 422.2 MB, free: 1.395 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)