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.001238/0.001238, 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.001437/0.001437, allocations: 197 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.444/1.444, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001382/0.001383, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2111, allocations: 46.63 MB / 325.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.02145/0.2326, allocations: 20.6 MB / 345.9 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009396/0.2421, allocations: 6.992 MB / 352.9 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.2432, allocations: 23.81 kB / 352.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.2443, allocations: 369.6 kB / 353.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002656/0.247, allocations: 1.096 MB / 354.4 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004307/0.2513, allocations: 1.848 MB / 356.2 MB, free: 4.922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002712/0.2541, allocations: 2.148 MB / 358.4 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000825/0.2549, allocations: 0.5774 MB / 359 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.2562, allocations: 0.8059 MB / 359.8 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009863/0.2572, allocations: 0.759 MB / 360.5 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.2574, allocations: 76 kB / 360.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002672/0.2601, allocations: 1.244 MB / 361.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003271/0.2604, allocations: 283.2 kB / 362.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005716/0.261, allocations: 477.8 kB / 362.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002696/0.2637, allocations: 1.874 MB / 364.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2637, allocations: 0 / 364.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2637, allocations: 0 / 364.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.2637, allocations: 0 / 364.5 MB, free: 12.66 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.002593/0.2663, allocations: 1.278 MB / 365.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2664, allocations: 8.031 kB / 365.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003683/0.2668, allocations: 103.9 kB / 365.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008714/0.2676, allocations: 0.5932 MB / 366.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.2677, allocations: 41.31 kB / 366.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-05/0.2678, allocations: 63.97 kB / 366.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.2692, allocations: 0.8867 MB / 367.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2692, allocations: 0 / 367.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.08e-05/0.2693, allocations: 24 kB / 367.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.924e-05/0.2694, allocations: 45.28 kB / 367.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2707, allocations: 0.8091 MB / 368.3 MB, free: 8.676 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.005103/0.2758, allocations: 3.846 MB / 372.1 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009297/0.2767, allocations: 0.547 MB / 372.7 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/0.2772, allocations: 278 kB / 373 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003942/0.2776, allocations: 0.5034 MB / 373.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.2776, allocations: 35 kB / 373.5 MB, free: 3.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.445e-06/0.2776, allocations: 4 kB / 373.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.004581/0.2822, allocations: 2.12 MB / 375.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/0.2823, allocations: 140.9 kB / 375.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000896/0.2832, allocations: 0.7272 MB / 376.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.196e-05/0.2833, allocations: 37.7 kB / 376.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.2836, allocations: 383.9 kB / 376.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.2837, allocations: 181.5 kB / 377.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002376/0.284, allocations: 154.5 kB / 377.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.2841, allocations: 386.8 kB / 377.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005205/0.2847, allocations: 316.7 kB / 377.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006649/0.2853, allocations: 0.5031 MB / 378.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.2865, allocations: 0.7778 MB / 379.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2865, allocations: 4 kB / 379.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001688/0.2882, allocations: 0.9953 MB / 380.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.2882, allocations: 11.94 kB / 380.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.2882, allocations: 8 kB / 380.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.2899, allocations: 293.9 kB / 380.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005712/0.2904, allocations: 143.8 kB / 380.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.2916, allocations: 1.315 MB / 382 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005881/0.2922, allocations: 31.97 kB / 382 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.059e-05/0.2922, allocations: 36 kB / 382 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007299/0.293, allocations: 477.9 kB / 382.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006359/0.2936, allocations: 0.5118 MB / 383 MB, free: 9.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00104/0.2947, allocations: 0.7591 MB / 383.8 MB, free: 8.227 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.246e-06/0.2947, allocations: 0 / 383.8 MB, free: 8.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001634/0.2963, allocations: 0.9412 MB / 384.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.2964, allocations: 8 kB / 384.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.2964, allocations: 11.97 kB / 384.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.2975, allocations: 181.7 kB / 384.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.2982, allocations: 167.7 kB / 385.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008065/0.299, allocations: 1.187 MB / 386.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005539/0.2996, allocations: 31.98 kB / 386.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.637e-05/0.2996, allocations: 39.98 kB / 386.3 MB, free: 5.598 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.0002572/0.2999, allocations: 228.6 kB / 386.5 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.3001, allocations: 79.06 kB / 386.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/0.3019, allocations: 0.9769 MB / 387.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.3019, allocations: 11.98 kB / 387.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3019, allocations: 0 / 387.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.302, allocations: 0 / 387.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.3047, allocations: 1.755 MB / 389.4 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3047, allocations: 0 / 389.4 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004528/0.3052, allocations: 99.89 kB / 389.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.3063, allocations: 241.5 kB / 389.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.539e-05/0.3063, allocations: 19.98 kB / 389.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009154/0.3073, allocations: 1.272 MB / 391 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3073, allocations: 0 / 391 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.3092, allocations: 1.313 MB / 392.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.3094, allocations: 160.1 kB / 392.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.3096, allocations: 12 kB / 392.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.3101, allocations: 27.98 kB / 392.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.3102, allocations: 68.39 kB / 392.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.3103, allocations: 32.05 kB / 392.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006282/0.3109, allocations: 0.5107 MB / 393.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3109, allocations: 0 / 393.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001522/0.3124, allocations: 0.5935 MB / 393.7 MB, free: 14.02 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.001178/0.3136, allocations: 0.5131 MB / 394.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.3164, allocations: 1.325 MB / 395.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3164, allocations: 0 / 395.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006684/0.3171, allocations: 399.3 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.001838/0.3189, allocations: 410.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.002761/0.3217, allocations: 1.619 MB / 397.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.3223, allocations: 0.9914 MB / 398.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.3234, allocations: 327 kB / 399.3 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.3236, allocations: 75.42 kB / 399.3 MB, free: 8.301 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3236, allocations: 0 / 399.3 MB, free: 8.301 MB / 334.1 MB Notification: Performance of Templates: time 0.03641/0.36, allocations: 22.87 MB / 422.2 MB, free: 1.398 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)