Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001225/0.001225, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 47.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2307, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01784/0.2486, allocations: 17.51 MB / 418.9 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00905/0.2577, allocations: 6.645 MB / 425.6 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005687/0.2583, allocations: 23.81 kB / 425.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008913/0.2592, allocations: 381.8 kB / 426 MB, free: 236 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002074/0.2613, allocations: 1.021 MB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004005/0.2653, allocations: 1.894 MB / 428.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002068/0.2674, allocations: 1.953 MB / 430.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007242/0.2681, allocations: 0.5214 MB / 431.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.2693, allocations: 0.7787 MB / 432.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.2703, allocations: 0.7514 MB / 432.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.2705, allocations: 68 kB / 432.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001747/0.2723, allocations: 1.112 MB / 434.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.2726, allocations: 271.2 kB / 434.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.273, allocations: 425.9 kB / 434.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002007/0.275, allocations: 1.715 MB / 436.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.275, allocations: 4 kB / 436.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.275, allocations: 0 / 436.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.2751, allocations: 3.938 kB / 436.5 MB, free: 5.707 MB / 350.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.002303/0.2774, allocations: 1.24 MB / 437.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.2774, allocations: 15.97 kB / 437.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.2778, allocations: 95.91 kB / 437.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009388/0.2787, allocations: 0.6008 MB / 438.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.551e-05/0.2788, allocations: 96.38 kB / 438.5 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.535e-05/0.2789, allocations: 40 kB / 438.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.2802, allocations: 0.8085 MB / 439.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.2802, allocations: 4 kB / 439.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.442e-05/0.2803, allocations: 27.98 kB / 439.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-05/0.2804, allocations: 36.98 kB / 439.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.2815, allocations: 0.6869 MB / 440.1 MB, free: 1.898 MB / 350.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.004712/0.2862, allocations: 3.432 MB / 443.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006701/0.2869, allocations: 419 kB / 443.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.2872, allocations: 249.1 kB / 444.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001635/0.2889, allocations: 1.331 MB / 445.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000505/0.2894, allocations: 353.1 kB / 445.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=35): time 3.176e-06/0.2894, allocations: 0 / 445.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.003617/0.293, allocations: 1.791 MB / 447.7 MB, free: 9.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.2932, allocations: 269 kB / 447.9 MB, free: 9.527 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008637/0.294, allocations: 0.7662 MB / 448.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.478e-05/0.2941, allocations: 45.69 kB / 448.7 MB, free: 8.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/0.2944, allocations: 399 kB / 449.1 MB, free: 8.305 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.2945, allocations: 142.2 kB / 449.3 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.2947, allocations: 146.2 kB / 449.4 MB, free: 8.016 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2949, allocations: 386.8 kB / 449.8 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004237/0.2953, allocations: 263.7 kB / 450 MB, free: 7.367 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/0.2959, allocations: 0.5078 MB / 450.5 MB, free: 6.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006846/0.3028, allocations: 1.848 MB / 452.4 MB, free: 4.785 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3028, allocations: 4 kB / 452.4 MB, free: 4.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001642/0.3044, allocations: 0.9644 MB / 453.4 MB, free: 3.801 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.3045, allocations: 37.7 kB / 453.4 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3045, allocations: 4 kB / 453.4 MB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005139/0.305, allocations: 145.1 kB / 453.5 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.3056, allocations: 135.8 kB / 453.7 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005916/0.3062, allocations: 0.6772 MB / 454.3 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/0.3067, allocations: 39.97 kB / 454.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.3068, allocations: 32.06 kB / 454.4 MB, free: 2.703 MB / 366.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.0006713/0.3075, allocations: 459.8 kB / 454.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005873/0.3081, allocations: 0.5083 MB / 455.4 MB, free: 1.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002505/0.3106, allocations: 1.252 MB / 456.6 MB, free: 268 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.909e-06/0.3106, allocations: 4 kB / 456.6 MB, free: 264 kB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.001633/0.3123, allocations: 0.9431 MB / 457.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.3123, allocations: 41.7 kB / 457.6 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3123, allocations: 8.156 kB / 457.6 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003895/0.3127, allocations: 116.8 kB / 457.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.3132, allocations: 159.7 kB / 457.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005283/0.3138, allocations: 0.6654 MB / 458.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006107/0.3144, allocations: 35.98 kB / 458.6 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.805e-05/0.3145, allocations: 35.98 kB / 458.6 MB, free: 14.2 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.0002397/0.3147, allocations: 270.2 kB / 458.9 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.3149, allocations: 83 kB / 459 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.3161, allocations: 0.691 MB / 459.7 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3161, allocations: 3.984 kB / 459.7 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3161, allocations: 0 / 459.7 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.3163, allocations: 148.2 kB / 459.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.3164, allocations: 15.98 kB / 459.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004187/0.3169, allocations: 23.98 kB / 459.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.746e-05/0.317, allocations: 28 kB / 459.9 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001377/0.3183, allocations: 0.7948 MB / 460.7 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001328/0.3197, allocations: 1.025 MB / 461.7 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003506/0.32, allocations: 248.5 kB / 461.9 MB, free: 10.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006215/0.3207, allocations: 0.5458 MB / 462.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of Backend: time 3.11e-07/0.3207, allocations: 0 / 462.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003086/0.3238, allocations: 1.447 MB / 463.9 MB, free: 8.777 MB / 382.1 MB Notification: Performance of SimCode: time 0.002934/0.3267, allocations: 2.127 MB / 466.1 MB, free: 6.598 MB / 382.1 MB Notification: Performance of Templates: time 0.03084/0.3576, allocations: 21.17 MB / 487.2 MB, free: 1.586 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)