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.966/0.966, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001931/0.00193, allocations: 143.5 kB / 149.1 MB, free: 0.9688 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 3.766e-05/3.769e-05, allocations: 0 / 180.2 MB, free: 17.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06373/0.06379, allocations: 25.18 MB / 205.4 MB, free: 8.414 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7447/0.8086, allocations: 241.3 MB / 446.7 MB, free: 62.64 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.809, allocations: 71.06 kB / 446.8 MB, free: 62.64 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4785/1.288, allocations: 153.9 MB / 0.5866 GB, free: 9.152 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.494e-06/1.288, allocations: 0 / 0.5866 GB, free: 9.152 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.648e-05/1.288, allocations: 23.91 kB / 0.5866 GB, free: 9.133 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.002652/1.29, allocations: 1.079 MB / 0.5877 GB, free: 8.012 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/1.29, allocations: 12.03 kB / 0.5877 GB, free: 8 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/1.291, allocations: 86.97 kB / 0.5878 GB, free: 7.914 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/1.292, allocations: 0.6477 MB / 0.5884 GB, free: 7.238 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/1.292, allocations: 48.83 kB / 0.5885 GB, free: 7.195 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.115e-05/1.292, allocations: 56.45 kB / 0.5885 GB, free: 7.141 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/1.293, allocations: 0.8529 MB / 0.5893 GB, free: 6.234 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/1.293, allocations: 7.844 kB / 0.5893 GB, free: 6.227 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.691e-05/1.293, allocations: 26.89 kB / 0.5894 GB, free: 6.203 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.759e-05/1.293, allocations: 49.28 kB / 0.5894 GB, free: 6.156 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009657/1.294, allocations: 0.7507 MB / 0.5902 GB, free: 5.406 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004041/1.298, allocations: 3.99 MB / 0.594 GB, free: 1.141 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006512/1.299, allocations: 477.8 kB / 0.5945 GB, free: 0.668 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/1.299, allocations: 233.5 kB / 0.5947 GB, free: 448 kB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1866/1.486, allocations: 2.1 MB / 0.5968 GB, free: 24.23 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/1.486, allocations: 33.56 kB / 0.5968 GB, free: 24.2 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 2.765e-06/1.486, allocations: 0 / 0.5968 GB, free: 24.2 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.002871/1.489, allocations: 1.211 MB / 0.598 GB, free: 23.85 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/1.489, allocations: 133.8 kB / 0.5981 GB, free: 23.69 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009518/1.49, allocations: 0.5954 MB / 0.5987 GB, free: 23.55 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/1.49, allocations: 38.33 kB / 0.5987 GB, free: 23.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003433/1.49, allocations: 435.3 kB / 0.5992 GB, free: 23.33 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/1.491, allocations: 150.3 kB / 0.5993 GB, free: 23.26 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/1.491, allocations: 11.94 kB / 0.5993 GB, free: 23.26 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/1.491, allocations: 388.2 kB / 0.5997 GB, free: 22.95 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/1.491, allocations: 228.5 kB / 0.5999 GB, free: 22.95 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004756/1.492, allocations: 0.5534 MB / 0.6004 GB, free: 22.54 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/1.492, allocations: 318.5 kB / 0.6007 GB, free: 22.54 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/1.492, allocations: 3.031 kB / 0.6007 GB, free: 22.54 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001398/1.493, allocations: 0.8647 MB / 0.6016 GB, free: 22.45 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/1.493, allocations: 11.69 kB / 0.6016 GB, free: 22.45 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/1.493, allocations: 13.86 kB / 0.6016 GB, free: 22.45 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000822/1.494, allocations: 116.7 kB / 0.6017 GB, free: 22.44 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009536/1.495, allocations: 232.6 kB / 0.6019 GB, free: 22.44 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008091/1.496, allocations: 1.209 MB / 0.6031 GB, free: 21.34 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009879/1.497, allocations: 61.38 kB / 0.6032 GB, free: 21.33 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001681/1.497, allocations: 45.05 kB / 0.6032 GB, free: 21.33 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" 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" 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 () * 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.000352/1.498, allocations: 177.1 kB / 0.6034 GB, free: 21.23 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002169/1.498, allocations: 75.06 kB / 0.6035 GB, free: 21.19 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/1.5, allocations: 0.7348 MB / 0.6042 GB, free: 21.11 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/1.5, allocations: 13.78 kB / 0.6042 GB, free: 21.11 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/1.5, allocations: 2.969 kB / 0.6042 GB, free: 21.11 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/1.5, allocations: 4.109 kB / 0.6042 GB, free: 21.11 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/1.502, allocations: 1.398 MB / 0.6056 GB, free: 20.76 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/1.502, allocations: 3.438 kB / 0.6056 GB, free: 20.76 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007018/1.503, allocations: 144.5 kB / 0.6057 GB, free: 20.76 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004739/1.503, allocations: 87.67 kB / 0.6058 GB, free: 20.75 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/1.503, allocations: 15.72 kB / 0.6058 GB, free: 20.75 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005769/1.504, allocations: 1.171 MB / 0.607 GB, free: 19.65 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.504, allocations: 6.5 kB / 0.607 GB, free: 19.65 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/1.505, allocations: 0.9925 MB / 0.6079 GB, free: 19.38 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/1.506, allocations: 156.1 kB / 0.6081 GB, free: 19.24 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/1.506, allocations: 20.83 kB / 0.6081 GB, free: 19.24 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/1.506, allocations: 30.73 kB / 0.6081 GB, free: 19.24 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/1.506, allocations: 55.12 kB / 0.6082 GB, free: 19.24 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/1.506, allocations: 20.11 kB / 0.6082 GB, free: 19.24 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006156/1.507, allocations: 462.5 kB / 0.6086 GB, free: 19.15 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.507, allocations: 0 / 0.6086 GB, free: 19.15 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001906/1.509, allocations: 451.8 kB / 0.6091 GB, free: 19.15 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]) * 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.001478/1.51, allocations: 0.6006 MB / 0.6097 GB, free: 19.04 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001482/1.512, allocations: 0.6317 MB / 0.6103 GB, free: 19.04 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.512, allocations: 5.438 kB / 0.6103 GB, free: 19.04 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007172/1.513, allocations: 324.4 kB / 0.6106 GB, free: 19.03 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/1.514, allocations: 327.6 kB / 0.6109 GB, free: 19.02 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/1.516, allocations: 1.123 MB / 0.612 GB, free: 18.71 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/1.517, allocations: 1.008 MB / 0.613 GB, free: 34.01 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0008518/1.518, allocations: 229.7 kB / 0.6132 GB, free: 34 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/1.518, allocations: 71.59 kB / 0.6133 GB, free: 33.99 MB / 250.7 MB Notification: Performance of SimCode: time 2.204e-06/1.518, allocations: 6 kB / 0.6133 GB, free: 33.99 MB / 250.7 MB Notification: Performance of Templates: time 0.02626/1.545, allocations: 17.34 MB / 0.6302 GB, free: 33 MB / 250.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)