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.001437/0.001437, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001742/0.001742, allocations: 193.8 kB / 16.25 MB, free: 6.621 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.46/1.46, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001152/0.001153, allocations: 55.91 kB / 278.2 MB, free: 12.64 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2217, allocations: 46.63 MB / 324.9 MB, free: 1.984 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02124/0.243, allocations: 21.19 MB / 346 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.2534, allocations: 7.129 MB / 353.2 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001178/0.2547, allocations: 31.75 kB / 353.2 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.2557, allocations: 322.2 kB / 353.5 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002561/0.2583, allocations: 1.015 MB / 354.5 MB, free: 6.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004115/0.2624, allocations: 1.693 MB / 356.2 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002572/0.265, allocations: 2.144 MB / 358.4 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009862/0.266, allocations: 0.5735 MB / 358.9 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.2676, allocations: 0.8291 MB / 359.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009974/0.2687, allocations: 0.7903 MB / 360.6 MB, free: 272 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.2688, allocations: 76 kB / 360.6 MB, free: 196 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002183/0.271, allocations: 1.236 MB / 361.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002871/0.2713, allocations: 295.1 kB / 362.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00046/0.2718, allocations: 465.9 kB / 362.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00239/0.2742, allocations: 1.886 MB / 364.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2742, allocations: 0 / 364.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.2742, allocations: 4 kB / 364.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2742, allocations: 3.938 kB / 364.5 MB, free: 12.31 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.002529/0.2767, allocations: 1.27 MB / 365.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2768, allocations: 16.03 kB / 365.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.2771, allocations: 99.89 kB / 365.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008457/0.278, allocations: 0.597 MB / 366.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.2781, allocations: 41.31 kB / 366.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.285e-05/0.2781, allocations: 55.98 kB / 366.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.2796, allocations: 0.8867 MB / 367.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.2796, allocations: 4 kB / 367.5 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.791e-05/0.2797, allocations: 24 kB / 367.5 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.99e-05/0.2797, allocations: 45.28 kB / 367.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.281, allocations: 0.8169 MB / 368.4 MB, free: 8.316 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.005056/0.2861, allocations: 3.834 MB / 372.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009453/0.287, allocations: 0.5392 MB / 372.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004029/0.2875, allocations: 270 kB / 373 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003954/0.2879, allocations: 0.5034 MB / 373.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.2879, allocations: 47 kB / 373.5 MB, free: 2.746 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.204e-06/0.2879, allocations: 0 / 373.5 MB, free: 2.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004549/0.2925, allocations: 2.124 MB / 375.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.2926, allocations: 133 kB / 375.8 MB, free: 372 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009667/0.2936, allocations: 0.7309 MB / 376.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-05/0.2936, allocations: 37.7 kB / 376.6 MB, free: 15.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002943/0.2939, allocations: 383.9 kB / 376.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.2941, allocations: 185.4 kB / 377.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002858/0.2944, allocations: 150.6 kB / 377.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003175/0.2947, allocations: 390.7 kB / 377.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004943/0.2952, allocations: 308.7 kB / 378 MB, free: 14.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006693/0.2959, allocations: 0.5148 MB / 378.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.297, allocations: 0.7777 MB / 379.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.297, allocations: 0 / 379.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001778/0.2988, allocations: 1.003 MB / 380.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.2988, allocations: 8 kB / 380.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.2988, allocations: 4.781 kB / 380.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/0.3006, allocations: 297.4 kB / 380.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005777/0.3012, allocations: 151.7 kB / 380.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.3026, allocations: 1.3 MB / 382 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007557/0.3033, allocations: 52 kB / 382.1 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.44e-05/0.3034, allocations: 32 kB / 382.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007833/0.3042, allocations: 481.9 kB / 382.6 MB, free: 9.324 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006948/0.3049, allocations: 0.5001 MB / 383.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00105/0.306, allocations: 0.763 MB / 383.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.086e-06/0.306, allocations: 0 / 383.8 MB, free: 7.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001627/0.3076, allocations: 0.9447 MB / 384.8 MB, free: 6.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.3077, allocations: 8 kB / 384.8 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3077, allocations: 7.938 kB / 384.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.3088, allocations: 173.9 kB / 384.9 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006572/0.3094, allocations: 179.7 kB / 385.1 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008422/0.3103, allocations: 1.183 MB / 386.3 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000627/0.3109, allocations: 51.98 kB / 386.4 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.067e-05/0.311, allocations: 35.98 kB / 386.4 MB, free: 5.242 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.0002945/0.3113, allocations: 231 kB / 386.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.3115, allocations: 79.06 kB / 386.7 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.3134, allocations: 0.9847 MB / 387.7 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.3134, allocations: 8 kB / 387.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.3134, allocations: 240 / 387.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.3135, allocations: 7.984 kB / 387.7 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002747/0.3162, allocations: 1.751 MB / 389.4 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3162, allocations: 3.984 kB / 389.4 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000435/0.3167, allocations: 103.9 kB / 389.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.3178, allocations: 237.5 kB / 389.8 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/0.3178, allocations: 19.92 kB / 389.8 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.3189, allocations: 1.272 MB / 391.1 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3189, allocations: 4.031 kB / 391.1 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.3208, allocations: 1.309 MB / 392.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.321, allocations: 156.1 kB / 392.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.3211, allocations: 15.98 kB / 392.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005002/0.3216, allocations: 43.83 kB / 392.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.3217, allocations: 52.55 kB / 392.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/0.3218, allocations: 35.97 kB / 392.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006663/0.3225, allocations: 0.5068 MB / 393.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3225, allocations: 0 / 393.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00157/0.3241, allocations: 0.5935 MB / 393.8 MB, free: 13.65 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.001157/0.3252, allocations: 0.5025 MB / 394.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.3279, allocations: 1.328 MB / 395.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.3279, allocations: 4 kB / 395.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000654/0.3285, allocations: 399.8 kB / 396 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/0.3304, allocations: 426.1 kB / 396.4 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.3331, allocations: 1.869 MB / 398.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.3336, allocations: 0.9836 MB / 399.3 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.3347, allocations: 327 kB / 399.6 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.335, allocations: 79.42 kB / 399.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of SimCode: time 8.51e-07/0.335, allocations: 0 / 399.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of Templates: time 0.03427/0.3692, allocations: 22.68 MB / 422.4 MB, free: 0.957 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)