Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 111.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.196, allocations: 50.54 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01742/0.2134, allocations: 17.61 MB / 427.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00852/0.222, allocations: 6.664 MB / 434.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005318/0.2225, allocations: 23.81 kB / 434.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008671/0.2234, allocations: 381.8 kB / 434.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002064/0.2255, allocations: 1.019 MB / 435.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003905/0.2294, allocations: 1.896 MB / 437.5 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001902/0.2313, allocations: 1.949 MB / 439.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005811/0.2319, allocations: 0.5019 MB / 440 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009176/0.2328, allocations: 0.7942 MB / 440.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008441/0.2337, allocations: 0.7397 MB / 441.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.2338, allocations: 68 kB / 441.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001691/0.2355, allocations: 1.143 MB / 442.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002594/0.2358, allocations: 271.2 kB / 443 MB, free: 460 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003955/0.2362, allocations: 429.9 kB / 443.4 MB, free: 28 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00184/0.2381, allocations: 1.727 MB / 445.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2381, allocations: 3.984 kB / 445.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2381, allocations: 0 / 445.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.2381, allocations: 0 / 445.1 MB, free: 14.29 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002107/0.2402, allocations: 1.24 MB / 446.4 MB, free: 13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2403, allocations: 12.03 kB / 446.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003537/0.2406, allocations: 103.9 kB / 446.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008955/0.2415, allocations: 0.6008 MB / 447.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.548e-05/0.2416, allocations: 92.39 kB / 447.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.801e-05/0.2417, allocations: 51.98 kB / 447.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.2429, allocations: 0.7969 MB / 448 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.2429, allocations: 3.938 kB / 448 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.628e-05/0.243, allocations: 27.98 kB / 448.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.404e-05/0.2431, allocations: 36.98 kB / 448.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.2441, allocations: 0.6869 MB / 448.8 MB, free: 10.48 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.004398/0.2485, allocations: 3.412 MB / 452.2 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006611/0.2492, allocations: 426.2 kB / 452.6 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003722/0.2496, allocations: 257 kB / 452.9 MB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001642/0.2512, allocations: 1.343 MB / 454.2 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005023/0.2518, allocations: 350 kB / 454.5 MB, free: 4.316 MB / 366.1 MB Notification: Performance of pre-optimization done (n=35): time 1.673e-06/0.2518, allocations: 0 / 454.5 MB, free: 4.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.003619/0.2554, allocations: 1.783 MB / 456.3 MB, free: 2.441 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.2555, allocations: 273 kB / 456.6 MB, free: 2.113 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008619/0.2564, allocations: 0.7817 MB / 457.4 MB, free: 1.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.2565, allocations: 33.7 kB / 457.4 MB, free: 1.277 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.2567, allocations: 399.1 kB / 457.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.2569, allocations: 134.2 kB / 457.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/0.2571, allocations: 150.1 kB / 458.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2573, allocations: 394.7 kB / 458.5 MB, free: 208 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004356/0.2577, allocations: 263.7 kB / 458.7 MB, free: 15.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005875/0.2583, allocations: 0.5036 MB / 459.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007441/0.2658, allocations: 1.903 MB / 461.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2658, allocations: 4 kB / 461.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001591/0.2674, allocations: 0.9527 MB / 462.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.2674, allocations: 45.62 kB / 462.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.2674, allocations: 8 kB / 462.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/0.268, allocations: 141.1 kB / 462.3 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005113/0.2685, allocations: 143.8 kB / 462.4 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005871/0.2691, allocations: 0.6772 MB / 463.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005626/0.2696, allocations: 32.05 kB / 463.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-05/0.2697, allocations: 36 kB / 463.2 MB, free: 11.23 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006442/0.2704, allocations: 454 kB / 463.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005721/0.271, allocations: 0.5044 MB / 464.1 MB, free: 10.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002524/0.2735, allocations: 1.26 MB / 465.4 MB, free: 8.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.956e-06/0.2735, allocations: 0 / 465.4 MB, free: 8.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.001589/0.2751, allocations: 0.9468 MB / 466.3 MB, free: 7.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.2751, allocations: 45.69 kB / 466.4 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2752, allocations: 8 kB / 466.4 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000396/0.2756, allocations: 124.8 kB / 466.5 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/0.2761, allocations: 131.8 kB / 466.6 MB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005181/0.2766, allocations: 0.6577 MB / 467.3 MB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006003/0.2772, allocations: 43.97 kB / 467.3 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.906e-05/0.2773, allocations: 28 kB / 467.3 MB, free: 6.762 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.tank.aboveLevel[1],timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,tank.aboveLevel[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002357/0.2775, allocations: 288.6 kB / 467.6 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.2776, allocations: 86.91 kB / 467.7 MB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.2789, allocations: 0.698 MB / 468.4 MB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2789, allocations: 0 / 468.4 MB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2789, allocations: 0 / 468.4 MB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.2791, allocations: 152.1 kB / 468.6 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.2792, allocations: 19.91 kB / 468.6 MB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004247/0.2796, allocations: 19.98 kB / 468.6 MB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.055e-05/0.2797, allocations: 31.95 kB / 468.6 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001356/0.2811, allocations: 0.7796 MB / 469.4 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001298/0.2824, allocations: 1.032 MB / 470.4 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003455/0.2828, allocations: 251.9 kB / 470.7 MB, free: 3.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006163/0.2834, allocations: 0.5381 MB / 471.2 MB, free: 2.781 MB / 382.1 MB Notification: Performance of Backend: time 4.51e-07/0.2834, allocations: 3.938 kB / 471.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002922/0.2863, allocations: 1.432 MB / 472.7 MB, free: 1.316 MB / 382.1 MB Notification: Performance of SimCode: time 0.002741/0.2891, allocations: 2.133 MB / 474.8 MB, free: 15.13 MB / 398.1 MB Notification: Performance of Templates: time 0.02978/0.3189, allocations: 21.23 MB / 496 MB, free: 10.02 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)