Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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 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.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0009597/0.0009597, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.008243/0.008243, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.597/1.597, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0005391/0.0005393, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.268, allocations: 47.58 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01807/0.2861, allocations: 17.43 MB / 344.5 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.2979, allocations: 6.807 MB / 351.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001569/0.2995, allocations: 23.81 kB / 351.3 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001614/0.3011, allocations: 342.2 kB / 351.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003703/0.3049, allocations: 0.9491 MB / 352.6 MB, free: 9.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005293/0.3102, allocations: 1.598 MB / 354.2 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003278/0.3135, allocations: 2.862 MB / 357 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007423/0.3142, allocations: 454.7 kB / 357.5 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001229/0.3155, allocations: 0.6693 MB / 358.2 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.3166, allocations: 0.7434 MB / 358.9 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.55e-05/0.3167, allocations: 40 kB / 358.9 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002181/0.3189, allocations: 1.092 MB / 360 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002825/0.3192, allocations: 243.2 kB / 360.3 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000458/0.3196, allocations: 415.7 kB / 360.7 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002069/0.3217, allocations: 1.663 MB / 362.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3217, allocations: 0 / 362.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3217, allocations: 0 / 362.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.3218, allocations: 4 kB / 362.3 MB, free: 15.96 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002265/0.324, allocations: 1.1 MB / 363.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3241, allocations: 8.031 kB / 363.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003359/0.3244, allocations: 95.91 kB / 363.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008255/0.3253, allocations: 0.5655 MB / 364.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.527e-05/0.3254, allocations: 96.38 kB / 364.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.279e-05/0.3255, allocations: 51.98 kB / 364.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.3267, allocations: 0.8008 MB / 365 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.3267, allocations: 4 kB / 365.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.102e-05/0.3268, allocations: 19.98 kB / 365.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.711e-05/0.3269, allocations: 48.97 kB / 365.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3279, allocations: 0.6791 MB / 365.8 MB, free: 12.33 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.004464/0.3324, allocations: 3.436 MB / 369.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006511/0.3331, allocations: 426.8 kB / 369.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003489/0.3334, allocations: 249.4 kB / 369.9 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00156/0.335, allocations: 1.342 MB / 371.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004999/0.3355, allocations: 349.1 kB / 371.6 MB, free: 6.145 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.3355, allocations: 3.938 kB / 371.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003561/0.3391, allocations: 1.795 MB / 373.4 MB, free: 4.254 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.3392, allocations: 269 kB / 373.6 MB, free: 3.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009188/0.3401, allocations: 0.774 MB / 374.4 MB, free: 3.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.876e-05/0.3402, allocations: 37.7 kB / 374.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/0.3405, allocations: 403 kB / 374.8 MB, free: 2.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.3407, allocations: 142.1 kB / 375 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-05/0.3408, allocations: 65.67 kB / 375 MB, free: 2.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3409, allocations: 390.8 kB / 375.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004041/0.3413, allocations: 253.5 kB / 375.7 MB, free: 1.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005895/0.3419, allocations: 0.5042 MB / 376.2 MB, free: 1.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4428/0.7848, allocations: 67.23 MB / 443.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.7848, allocations: 4 kB / 443.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001991/0.7868, allocations: 0.9523 MB / 444.4 MB, free: 12.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002402/0.7871, allocations: 317.4 kB / 444.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.7871, allocations: 8 kB / 444.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005645/0.7877, allocations: 140.7 kB / 444.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.7882, allocations: 139.8 kB / 445 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006358/0.7889, allocations: 0.6849 MB / 445.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006601/0.7896, allocations: 39.98 kB / 445.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.39e-05/0.7896, allocations: 35.98 kB / 445.7 MB, free: 11.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.7896, allocations: 8.062 kB / 445.7 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001585/0.7912, allocations: 0.8816 MB / 446.6 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.7913, allocations: 8.078 kB / 446.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004023/0.7917, allocations: 121.2 kB / 446.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.7922, allocations: 135.8 kB / 446.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005513/0.7927, allocations: 0.6693 MB / 447.5 MB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000584/0.7933, allocations: 44.03 kB / 447.6 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.41e-05/0.7934, allocations: 35.94 kB / 447.6 MB, free: 9.441 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 = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) 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.0005555/0.7939, allocations: 392.2 kB / 448 MB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.7941, allocations: 86.91 kB / 448.1 MB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.7953, allocations: 0.6986 MB / 448.8 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.7953, allocations: 8 kB / 448.8 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.7953, allocations: 0 / 448.8 MB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.7953, allocations: 3.984 kB / 448.8 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.7973, allocations: 1.387 MB / 450.2 MB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.7973, allocations: 0 / 450.2 MB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.7976, allocations: 63.94 kB / 450.2 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004643/0.7981, allocations: 124.8 kB / 450.4 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.7982, allocations: 19.98 kB / 450.4 MB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005375/0.7987, allocations: 0.6615 MB / 451 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.7987, allocations: 8.016 kB / 451 MB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.8001, allocations: 1.018 MB / 452.1 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.8003, allocations: 168.2 kB / 452.2 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.8004, allocations: 8 kB / 452.2 MB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004657/0.8009, allocations: 35.97 kB / 452.3 MB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.957e-05/0.801, allocations: 35.89 kB / 452.3 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.196e-05/0.801, allocations: 19.98 kB / 452.3 MB, free: 4.539 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006457/0.8017, allocations: 0.5381 MB / 452.9 MB, free: 4.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8017, allocations: 4 kB / 452.9 MB, free: 4.004 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001447/0.8032, allocations: 0.531 MB / 453.4 MB, free: 3.473 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001046/0.8042, allocations: 449.4 kB / 453.8 MB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002193/0.8064, allocations: 1.189 MB / 455 MB, free: 1.816 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.8064, allocations: 4 kB / 455 MB, free: 1.812 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000612/0.8071, allocations: 358.9 kB / 455.4 MB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.8088, allocations: 324.3 kB / 455.7 MB, free: 1.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1759/0.9847, allocations: 1.775 MB / 457.5 MB, free: 121.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007774/0.9855, allocations: 0.9662 MB / 458.4 MB, free: 120.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.9868, allocations: 256.6 kB / 458.7 MB, free: 120.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.987, allocations: 55.62 kB / 458.7 MB, free: 120.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.987, allocations: 4.438 kB / 458.7 MB, free: 120.7 MB / 382.1 MB Notification: Performance of Templates: time 0.0281/1.015, allocations: 17.87 MB / 476.6 MB, free: 108.3 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)