Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001255/0.001255, allocations: 110.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 212 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2104, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.01997/0.2304, allocations: 20.74 MB / 430.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008819/0.2392, allocations: 7.054 MB / 437.7 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005617/0.2398, allocations: 27.81 kB / 437.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008881/0.2407, allocations: 369.6 kB / 438.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.243, allocations: 1.116 MB / 439.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003849/0.2469, allocations: 1.861 MB / 441.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002207/0.2491, allocations: 2.14 MB / 443.2 MB, free: 192 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008087/0.2499, allocations: 0.5853 MB / 443.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.2511, allocations: 0.8215 MB / 444.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.2522, allocations: 0.7629 MB / 445.4 MB, free: 14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001551/0.2524, allocations: 76 kB / 445.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001936/0.2543, allocations: 1.275 MB / 446.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002827/0.2546, allocations: 283.1 kB / 447 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004867/0.2551, allocations: 473.8 kB / 447.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002159/0.2573, allocations: 1.902 MB / 449.4 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2573, allocations: 0 / 449.4 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2573, allocations: 0 / 449.4 MB, free: 10 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.2573, allocations: 0 / 449.4 MB, free: 10 MB / 366.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.002295/0.2596, allocations: 1.274 MB / 450.7 MB, free: 8.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2596, allocations: 8.031 kB / 450.7 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.26, allocations: 95.91 kB / 450.8 MB, free: 8.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009042/0.2609, allocations: 0.6401 MB / 451.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.261, allocations: 41.31 kB / 451.5 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.2611, allocations: 63.98 kB / 451.5 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.2625, allocations: 0.879 MB / 452.4 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.2625, allocations: 3.938 kB / 452.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.366e-05/0.2626, allocations: 24 kB / 452.4 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-05/0.2626, allocations: 45.28 kB / 452.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.264, allocations: 0.8169 MB / 453.3 MB, free: 5.969 MB / 366.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.004776/0.2688, allocations: 3.823 MB / 457.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008948/0.2697, allocations: 0.5423 MB / 457.7 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004175/0.2701, allocations: 274 kB / 457.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00035/0.2705, allocations: 0.5034 MB / 458.4 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.2705, allocations: 43 kB / 458.5 MB, free: 424 kB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.044e-06/0.2705, allocations: 0 / 458.5 MB, free: 424 kB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004347/0.2749, allocations: 2.128 MB / 460.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.2749, allocations: 137 kB / 460.7 MB, free: 14.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008384/0.2758, allocations: 0.7192 MB / 461.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.102e-05/0.2759, allocations: 49.7 kB / 461.5 MB, free: 13.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.2761, allocations: 375.9 kB / 461.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.2763, allocations: 177.5 kB / 462 MB, free: 12.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.2765, allocations: 154.5 kB / 462.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.2767, allocations: 390.8 kB / 462.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000519/0.2772, allocations: 312.7 kB / 462.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00065/0.2779, allocations: 0.5188 MB / 463.4 MB, free: 11.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.2789, allocations: 0.7739 MB / 464.2 MB, free: 10.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.279, allocations: 4 kB / 464.2 MB, free: 10.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001645/0.2806, allocations: 0.9913 MB / 465.2 MB, free: 9.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.2806, allocations: 12.72 kB / 465.2 MB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2807, allocations: 4 kB / 465.2 MB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/0.2823, allocations: 297.3 kB / 465.5 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005756/0.2829, allocations: 147.8 kB / 465.6 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.2839, allocations: 1.307 MB / 466.9 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.2844, allocations: 39.97 kB / 467 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.789e-05/0.2845, allocations: 31.98 kB / 467 MB, free: 7.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006855/0.2852, allocations: 477.9 kB / 467.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006293/0.2858, allocations: 0.508 MB / 468 MB, free: 6.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001033/0.2869, allocations: 0.7553 MB / 468.7 MB, free: 5.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.627e-06/0.2869, allocations: 80 / 468.7 MB, free: 5.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization_lambda0): time 0.001611/0.2885, allocations: 0.945 MB / 469.7 MB, free: 4.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.2885, allocations: 11.94 kB / 469.7 MB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.2885, allocations: 12.06 kB / 469.7 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.2896, allocations: 185.6 kB / 469.9 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007021/0.2903, allocations: 167.7 kB / 470 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007696/0.2911, allocations: 1.187 MB / 471.2 MB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005007/0.2916, allocations: 35.92 kB / 471.3 MB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.071e-05/0.2917, allocations: 35.98 kB / 471.3 MB, free: 2.93 MB / 382.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.0001954/0.2919, allocations: 234.8 kB / 471.5 MB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.292, allocations: 79.06 kB / 471.6 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.2938, allocations: 0.9815 MB / 472.6 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.443e-06/0.2938, allocations: 0 / 472.6 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2939, allocations: 0 / 472.6 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.294, allocations: 164 kB / 472.7 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.2941, allocations: 12 kB / 472.7 MB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004599/0.2946, allocations: 31.98 kB / 472.8 MB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.2947, allocations: 48.48 kB / 472.8 MB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001802/0.2965, allocations: 0.8945 MB / 473.7 MB, free: 476 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001735/0.2983, allocations: 1.233 MB / 475 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004711/0.2988, allocations: 320.3 kB / 475.3 MB, free: 14.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006017/0.2994, allocations: 0.5107 MB / 475.8 MB, free: 14.39 MB / 398.1 MB Notification: Performance of Backend: time 4.51e-07/0.2994, allocations: 4 kB / 475.8 MB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003219/0.3026, allocations: 1.438 MB / 477.2 MB, free: 12.95 MB / 398.1 MB Notification: Performance of SimCode: time 0.003086/0.3057, allocations: 2.228 MB / 479.4 MB, free: 10.68 MB / 398.1 MB Notification: Performance of Templates: time 0.03555/0.3413, allocations: 24.91 MB / 0.4925 GB, free: 1.93 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)