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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001519/0.00152, allocations: 184.3 kB / 13.65 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.126/2.126, allocations: 194.3 MB / 208.4 MB, free: 6.629 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001885/0.001885, allocations: 114.2 kB / 253.5 MB, free: 9.508 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.352e-05/4.354e-05, allocations: 4 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1232, allocations: 44.51 MB / 349.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.049/1.172, allocations: 321.4 MB / 0.6552 GB, free: 51.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/1.172, allocations: 87.89 kB / 0.6552 GB, free: 51.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6319/1.804, allocations: 141.5 MB / 0.7934 GB, free: 84.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.804, allocations: 0 / 0.7934 GB, free: 84.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.059e-05/1.804, allocations: 19.94 kB / 0.7934 GB, free: 84.14 MB / 410.7 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.003549/1.808, allocations: 1.065 MB / 0.7944 GB, free: 83.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.625e-05/1.808, allocations: 15.97 kB / 0.7945 GB, free: 83.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004382/1.809, allocations: 106.9 kB / 0.7946 GB, free: 82.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/1.81, allocations: 0.6436 MB / 0.7952 GB, free: 82.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/1.81, allocations: 88.41 kB / 0.7953 GB, free: 82.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.922e-05/1.81, allocations: 47.98 kB / 0.7953 GB, free: 82.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/1.812, allocations: 0.7939 MB / 0.7961 GB, free: 81.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/1.812, allocations: 0 / 0.7961 GB, free: 81.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.462e-05/1.812, allocations: 28 kB / 0.7961 GB, free: 81.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.695e-05/1.812, allocations: 36.98 kB / 0.7962 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008808/1.813, allocations: 0.6674 MB / 0.7968 GB, free: 80.49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004147/1.817, allocations: 3.425 MB / 0.8002 GB, free: 76.85 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005181/1.817, allocations: 390.6 kB / 0.8005 GB, free: 76.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/1.818, allocations: 241.1 kB / 0.8008 GB, free: 76.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001469/1.819, allocations: 1.354 MB / 0.8021 GB, free: 74.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003746/1.819, allocations: 293.1 kB / 0.8024 GB, free: 74.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.144e-06/1.82, allocations: 0 / 0.8024 GB, free: 74.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.002594/1.822, allocations: 1.41 MB / 0.8037 GB, free: 72.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/1.822, allocations: 170.4 kB / 0.8039 GB, free: 72.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006682/1.823, allocations: 0.6051 MB / 0.8045 GB, free: 72.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.577e-05/1.823, allocations: 37.7 kB / 0.8045 GB, free: 72.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/1.823, allocations: 426.5 kB / 0.8049 GB, free: 71.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.534e-05/1.823, allocations: 138.1 kB / 0.8051 GB, free: 71.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/1.823, allocations: 16 kB / 0.8051 GB, free: 71.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/1.823, allocations: 386.8 kB / 0.8054 GB, free: 71.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/1.824, allocations: 237.5 kB / 0.8057 GB, free: 70.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004693/1.824, allocations: 0.5365 MB / 0.8062 GB, free: 70.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004325/1.825, allocations: 351.9 kB / 0.8065 GB, free: 69.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/1.825, allocations: 0 / 0.8065 GB, free: 69.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001374/1.826, allocations: 0.9351 MB / 0.8074 GB, free: 68.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008298/1.827, allocations: 3.515 MB / 0.8109 GB, free: 65.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/1.827, allocations: 8 kB / 0.8109 GB, free: 65.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005927/1.828, allocations: 124.8 kB / 0.811 GB, free: 64.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/1.828, allocations: 151.7 kB / 0.8111 GB, free: 64.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005111/1.829, allocations: 0.6694 MB / 0.8118 GB, free: 64.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/1.829, allocations: 52.03 kB / 0.8118 GB, free: 64.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.787e-05/1.829, allocations: 36 kB / 0.8119 GB, free: 64.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/1.829, allocations: 4 kB / 0.8119 GB, free: 64.05 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001422/1.831, allocations: 0.8717 MB / 0.8127 GB, free: 63.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/1.831, allocations: 8 kB / 0.8127 GB, free: 63.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003497/1.831, allocations: 117.1 kB / 0.8129 GB, free: 63.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/1.832, allocations: 151.7 kB / 0.813 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003904/1.832, allocations: 0.6615 MB / 0.8136 GB, free: 62.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005234/1.832, allocations: 39.92 kB / 0.8137 GB, free: 62.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.158e-05/1.833, allocations: 52.05 kB / 0.8137 GB, free: 62.12 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" 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 = 293.15 unit = "K" 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: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002981/1.833, allocations: 198.8 kB / 0.8139 GB, free: 61.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/1.833, allocations: 71.16 kB / 0.814 GB, free: 61.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/1.834, allocations: 0.6411 MB / 0.8146 GB, free: 61.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/1.834, allocations: 7.984 kB / 0.8146 GB, free: 61.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.834, allocations: 0 / 0.8146 GB, free: 61.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/1.834, allocations: 3.984 kB / 0.8146 GB, free: 61.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/1.836, allocations: 1.346 MB / 0.8159 GB, free: 59.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/1.836, allocations: 0 / 0.8159 GB, free: 59.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002617/1.836, allocations: 55.97 kB / 0.816 GB, free: 59.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004661/1.837, allocations: 120.7 kB / 0.8161 GB, free: 59.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/1.837, allocations: 15.98 kB / 0.8161 GB, free: 59.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004154/1.837, allocations: 0.6616 MB / 0.8168 GB, free: 58.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.837, allocations: 4.031 kB / 0.8168 GB, free: 58.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/1.839, allocations: 1.001 MB / 0.8178 GB, free: 57.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/1.839, allocations: 144.3 kB / 0.8179 GB, free: 57.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/1.839, allocations: 15.98 kB / 0.8179 GB, free: 57.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/1.839, allocations: 31.95 kB / 0.8179 GB, free: 57.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/1.839, allocations: 43.89 kB / 0.818 GB, free: 57.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/1.84, allocations: 23.98 kB / 0.818 GB, free: 57.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005453/1.84, allocations: 471.1 kB / 0.8185 GB, free: 57.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.84, allocations: 3.938 kB / 0.8185 GB, free: 57.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002421/1.842, allocations: 0.562 MB / 0.819 GB, free: 56.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002617/1.845, allocations: 0.5874 MB / 0.8196 GB, free: 55.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002747/1.848, allocations: 1.187 MB / 0.8207 GB, free: 54.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/1.848, allocations: 0 / 0.8207 GB, free: 54.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006439/1.849, allocations: 347.2 kB / 0.8211 GB, free: 54.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/1.85, allocations: 248.1 kB / 0.8213 GB, free: 54.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/1.853, allocations: 1.09 MB / 0.8224 GB, free: 53.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/1.853, allocations: 0.9822 MB / 0.8233 GB, free: 52.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00112/1.854, allocations: 291.7 kB / 0.8236 GB, free: 51.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/1.854, allocations: 47.42 kB / 0.8237 GB, free: 51.68 MB / 410.7 MB Notification: Performance of SimCode: time 1.753e-06/1.855, allocations: 0 / 0.8237 GB, free: 51.68 MB / 410.7 MB Notification: Performance of Templates: time 0.02609/1.881, allocations: 16.95 MB / 0.8402 GB, free: 34.7 MB / 410.7 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)