Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9086/0.9086, allocations: 110.9 MB / 125.9 MB, free: 6.223 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001995/0.001995, allocations: 150.5 kB / 151.8 MB, free: 4.992 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003855, allocations: 12 kB / 184.9 MB, free: 3.918 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.184, allocations: 25.15 MB / 210.1 MB, free: 29.76 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4822/0.6662, allocations: 241.5 MB / 451.5 MB, free: 19.68 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.6665, allocations: 71.84 kB / 451.6 MB, free: 19.64 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5822/1.249, allocations: 154.5 MB / 0.5919 GB, free: 33.86 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.563e-06/1.249, allocations: 0 / 0.5919 GB, free: 33.86 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.464e-05/1.249, allocations: 23.84 kB / 0.5919 GB, free: 33.85 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002511/1.251, allocations: 1.183 MB / 0.5931 GB, free: 33.23 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/1.251, allocations: 12.17 kB / 0.5931 GB, free: 33.23 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/1.252, allocations: 90.06 kB / 0.5932 GB, free: 33.18 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/1.253, allocations: 0.6374 MB / 0.5938 GB, free: 32.9 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/1.253, allocations: 53.59 kB / 0.5938 GB, free: 32.9 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.617e-05/1.253, allocations: 58.97 kB / 0.5939 GB, free: 32.9 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/1.254, allocations: 0.8686 MB / 0.5947 GB, free: 32.71 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/1.254, allocations: 3 kB / 0.5947 GB, free: 32.71 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-05/1.254, allocations: 25.08 kB / 0.5948 GB, free: 32.71 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.235e-05/1.254, allocations: 45.09 kB / 0.5948 GB, free: 32.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009951/1.255, allocations: 0.7653 MB / 0.5956 GB, free: 32.71 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/1.259, allocations: 3.995 MB / 0.5995 GB, free: 30.09 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000651/1.26, allocations: 489.1 kB / 0.5999 GB, free: 29.91 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002103/1.262, allocations: 2.046 MB / 0.6019 GB, free: 28.2 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/1.262, allocations: 45.75 kB / 0.602 GB, free: 28.16 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.076e-06/1.262, allocations: 3.938 kB / 0.602 GB, free: 28.16 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.002526/1.264, allocations: 1.458 MB / 0.6034 GB, free: 27.33 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/1.264, allocations: 131.8 kB / 0.6035 GB, free: 27.18 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005851/1.265, allocations: 0.6017 MB / 0.6041 GB, free: 26.91 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/1.265, allocations: 37.39 kB / 0.6041 GB, free: 26.87 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002161/1.265, allocations: 437.6 kB / 0.6046 GB, free: 26.52 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/1.265, allocations: 149.4 kB / 0.6047 GB, free: 26.41 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.177e-05/1.266, allocations: 12 kB / 0.6047 GB, free: 26.4 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/1.266, allocations: 391.9 kB / 0.6051 GB, free: 26.05 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/1.266, allocations: 234.3 kB / 0.6053 GB, free: 25.97 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/1.266, allocations: 0.5647 MB / 0.6059 GB, free: 25.45 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/1.267, allocations: 313.8 kB / 0.6062 GB, free: 25.34 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/1.267, allocations: 3.75 kB / 0.6062 GB, free: 25.34 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001124/1.268, allocations: 0.877 MB / 0.607 GB, free: 24.98 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/1.268, allocations: 11.45 kB / 0.607 GB, free: 24.98 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/1.268, allocations: 12.44 kB / 0.607 GB, free: 24.98 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007429/1.269, allocations: 116.2 kB / 0.6072 GB, free: 24.96 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009061/1.27, allocations: 242.1 kB / 0.6074 GB, free: 24.94 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005255/1.27, allocations: 1.207 MB / 0.6086 GB, free: 23.79 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006074/1.271, allocations: 58.23 kB / 0.6086 GB, free: 23.77 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.428e-05/1.271, allocations: 41.72 kB / 0.6087 GB, free: 23.77 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.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" 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: 48 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003997/1.271, allocations: 283.5 kB / 0.6089 GB, free: 23.58 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.792e-05/1.271, allocations: 77.23 kB / 0.609 GB, free: 23.54 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/1.273, allocations: 0.7447 MB / 0.6097 GB, free: 23.23 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/1.273, allocations: 3.875 kB / 0.6097 GB, free: 23.23 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/1.273, allocations: 0 / 0.6097 GB, free: 23.23 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/1.273, allocations: 3.656 kB / 0.6097 GB, free: 23.23 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/1.275, allocations: 1.408 MB / 0.6111 GB, free: 22.51 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/1.275, allocations: 3.5 kB / 0.6111 GB, free: 22.51 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006372/1.275, allocations: 146.4 kB / 0.6113 GB, free: 22.5 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004204/1.276, allocations: 91.16 kB / 0.6113 GB, free: 22.49 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/1.276, allocations: 15.94 kB / 0.6114 GB, free: 22.48 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004608/1.276, allocations: 1.173 MB / 0.6125 GB, free: 21.34 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.276, allocations: 10.83 kB / 0.6125 GB, free: 21.33 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/1.277, allocations: 1.005 MB / 0.6135 GB, free: 20.79 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/1.278, allocations: 152.2 kB / 0.6136 GB, free: 20.65 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.929e-05/1.278, allocations: 14.41 kB / 0.6137 GB, free: 20.64 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/1.278, allocations: 38.59 kB / 0.6137 GB, free: 20.63 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.971e-05/1.278, allocations: 53.48 kB / 0.6137 GB, free: 20.62 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/1.278, allocations: 31.45 kB / 0.6138 GB, free: 20.61 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0005018/1.279, allocations: 464.2 kB / 0.6142 GB, free: 20.41 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.279, allocations: 3.938 kB / 0.6142 GB, free: 20.41 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001576/1.28, allocations: 448.2 kB / 0.6147 GB, free: 20.29 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001195/1.282, allocations: 0.6009 MB / 0.6152 GB, free: 20.09 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00124/1.283, allocations: 0.6518 MB / 0.6159 GB, free: 19.9 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.283, allocations: 3.812 kB / 0.6159 GB, free: 19.9 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005924/1.283, allocations: 333.3 kB / 0.6162 GB, free: 19.81 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/1.285, allocations: 305.4 kB / 0.6165 GB, free: 19.75 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/1.287, allocations: 1.866 MB / 0.6183 GB, free: 18.76 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/1.287, allocations: 1.005 MB / 0.6193 GB, free: 17.84 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0007476/1.288, allocations: 234.4 kB / 0.6195 GB, free: 17.68 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/1.288, allocations: 78.61 kB / 0.6196 GB, free: 17.61 MB / 234.7 MB Notification: Performance of SimCode: time 1.232e-06/1.288, allocations: 4 kB / 0.6196 GB, free: 17.61 MB / 234.7 MB Notification: Performance of Templates: time 0.02522/1.314, allocations: 16.99 MB / 0.6362 GB, free: 3.199 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)