Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.0008951/0.0008949, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.001377/0.001377, allocations: 177 kB / 17.56 MB, free: 6.18 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.591/1.591, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0006388/0.0006387, allocations: 12 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.106, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.01755/0.1236, allocations: 17.44 MB / 345.8 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01158/0.1352, allocations: 6.806 MB / 352.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009497/0.1362, allocations: 27.75 kB / 352.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.1373, allocations: 338.3 kB / 352.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002596/0.1399, allocations: 0.9491 MB / 353.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00487/0.1448, allocations: 1.586 MB / 355.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003661/0.1485, allocations: 2.869 MB / 358.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009646/0.1495, allocations: 457.5 kB / 358.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001409/0.1509, allocations: 0.6693 MB / 359.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/0.1521, allocations: 0.7473 MB / 360.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.93e-05/0.1522, allocations: 32 kB / 360.2 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002497/0.1547, allocations: 1.096 MB / 361.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002965/0.155, allocations: 235.3 kB / 361.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004684/0.1555, allocations: 419.6 kB / 362 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002166/0.1576, allocations: 1.659 MB / 363.6 MB, free: 332 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1577, allocations: 4 kB / 363.6 MB, free: 328 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1577, allocations: 0 / 363.6 MB, free: 328 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1577, allocations: 0 / 363.6 MB, free: 328 kB / 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.00228/0.16, allocations: 1.084 MB / 364.7 MB, free: 15.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.16, allocations: 8.031 kB / 364.7 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003492/0.1604, allocations: 107.9 kB / 364.8 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008553/0.1612, allocations: 0.5733 MB / 365.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.776e-05/0.1614, allocations: 92.39 kB / 365.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.812e-05/0.1615, allocations: 51.98 kB / 365.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.1627, allocations: 0.797 MB / 366.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.1627, allocations: 3.938 kB / 366.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.567e-05/0.1628, allocations: 23.98 kB / 366.4 MB, free: 13.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-05/0.1629, allocations: 40.97 kB / 366.4 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.1639, allocations: 0.683 MB / 367.1 MB, free: 12.7 MB / 318.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.004751/0.1687, allocations: 3.444 MB / 370.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007183/0.1694, allocations: 418.9 kB / 370.9 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003724/0.1698, allocations: 253.4 kB / 371.2 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001581/0.1714, allocations: 1.342 MB / 372.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/0.1719, allocations: 345.1 kB / 372.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.693e-06/0.1719, allocations: 0 / 372.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.003544/0.1755, allocations: 1.802 MB / 374.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.1756, allocations: 273 kB / 374.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009638/0.1766, allocations: 0.7779 MB / 375.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.1767, allocations: 33.7 kB / 375.7 MB, free: 3.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/0.177, allocations: 407 kB / 376.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.1771, allocations: 130.2 kB / 376.3 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.102e-05/0.1772, allocations: 61.69 kB / 376.3 MB, free: 2.863 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1774, allocations: 390.8 kB / 376.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/0.1778, allocations: 253.5 kB / 377 MB, free: 2.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005835/0.1784, allocations: 0.512 MB / 377.5 MB, free: 1.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.6073/0.7857, allocations: 67.22 MB / 444.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.7858, allocations: 0 / 444.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001697/0.7875, allocations: 0.9583 MB / 445.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001948/0.7877, allocations: 317 kB / 446 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.7877, allocations: 4 kB / 446 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005467/0.7883, allocations: 144 kB / 446.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.7888, allocations: 138.4 kB / 446.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006017/0.7894, allocations: 0.6829 MB / 446.9 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006405/0.7901, allocations: 47.34 kB / 447 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-05/0.7901, allocations: 30.19 kB / 447 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.194e-06/0.7901, allocations: 4 kB / 447 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001644/0.7918, allocations: 0.8867 MB / 447.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.7918, allocations: 8 kB / 447.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003851/0.7922, allocations: 126.1 kB / 448 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004508/0.7927, allocations: 139.2 kB / 448.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005244/0.7932, allocations: 0.6577 MB / 448.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005405/0.7938, allocations: 48.78 kB / 448.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.369e-05/0.7938, allocations: 32.83 kB / 448.9 MB, free: 11.35 MB / 334.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.0005683/0.7944, allocations: 401.2 kB / 449.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.7945, allocations: 83.69 kB / 449.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.7958, allocations: 0.6951 MB / 450.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.7958, allocations: 4 kB / 450.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.7959, allocations: 4 kB / 450.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.7959, allocations: 3.938 kB / 450.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.7979, allocations: 1.389 MB / 451.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.7979, allocations: 0 / 451.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002895/0.7982, allocations: 63.16 kB / 451.5 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004697/0.7987, allocations: 136.5 kB / 451.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.7987, allocations: 8 kB / 451.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005569/0.7993, allocations: 0.666 MB / 452.3 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.7993, allocations: 0 / 452.3 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.8007, allocations: 1.025 MB / 453.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.8009, allocations: 162.7 kB / 453.5 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.801, allocations: 16.11 kB / 453.5 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000453/0.8014, allocations: 39.5 kB / 453.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.722e-05/0.8016, allocations: 35.78 kB / 453.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.201e-05/0.8016, allocations: 19.98 kB / 453.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006608/0.8023, allocations: 0.5341 MB / 454.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8023, allocations: 0 / 454.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001443/0.8037, allocations: 0.5344 MB / 454.7 MB, free: 5.691 MB / 334.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.0009764/0.8047, allocations: 453.3 kB / 455.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002107/0.8068, allocations: 1.189 MB / 456.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.8069, allocations: 4 kB / 456.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005979/0.8075, allocations: 355.4 kB / 456.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.8091, allocations: 318.5 kB / 457 MB, free: 3.449 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.8114, allocations: 1.784 MB / 458.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.8119, allocations: 0.966 MB / 459.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007979/0.8127, allocations: 252.3 kB / 460 MB, free: 424 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.8128, allocations: 63.42 kB / 460 MB, free: 360 kB / 334.1 MB Notification: Performance of SimCode: time 4.3e-07/0.8128, allocations: 1.422 kB / 460 MB, free: 360 kB / 334.1 MB Notification: Performance of Templates: time 0.02892/0.8418, allocations: 17.86 MB / 477.9 MB, free: 14.48 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)