Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001564/0.001564, allocations: 189.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.923/1.923, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 88.44 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003954, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3429, allocations: 47.57 MB / 374.5 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.387, allocations: 326.8 MB / 0.6849 GB, free: 105.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/1.387, allocations: 101.2 kB / 0.685 GB, free: 105.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.715/3.102, allocations: 326.1 MB / 1.003 GB, free: 51 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.077e-06/3.102, allocations: 0 / 1.003 GB, free: 51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002231/3.103, allocations: 49.73 kB / 1.004 GB, free: 51 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.009506/3.112, allocations: 2.245 MB / 1.006 GB, free: 50.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/3.112, allocations: 7.844 kB / 1.006 GB, free: 50.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001674/3.114, allocations: 208.6 kB / 1.006 GB, free: 49.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004805/3.119, allocations: 1.194 MB / 1.007 GB, free: 49.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/3.119, allocations: 96.16 kB / 1.007 GB, free: 49.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000633/3.12, allocations: 121.8 kB / 1.007 GB, free: 49.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005662/3.125, allocations: 1.952 MB / 1.009 GB, free: 49.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.35e-05/3.125, allocations: 3.5 kB / 1.009 GB, free: 49.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003022/3.126, allocations: 51.45 kB / 1.009 GB, free: 49.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002307/3.126, allocations: 115.4 kB / 1.009 GB, free: 49.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006294/3.132, allocations: 1.967 MB / 1.011 GB, free: 49.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02038/3.153, allocations: 7.668 MB / 1.019 GB, free: 45.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003234/3.156, allocations: 1.173 MB / 1.02 GB, free: 45.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009007/3.165, allocations: 3.427 MB / 1.023 GB, free: 44.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/3.165, allocations: 52.08 kB / 1.023 GB, free: 44.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.468e-06/3.165, allocations: 0 / 1.023 GB, free: 44.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.02136/3.187, allocations: 5.425 MB / 1.029 GB, free: 43.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.136e-05/3.187, allocations: 173.2 kB / 1.029 GB, free: 43.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/3.189, allocations: 1.258 MB / 1.03 GB, free: 42.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005307/3.19, allocations: 59.11 kB / 1.03 GB, free: 42.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005842/3.191, allocations: 0.6668 MB / 1.031 GB, free: 42.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006922/3.191, allocations: 466.7 kB / 1.031 GB, free: 42.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/3.192, allocations: 33.59 kB / 1.031 GB, free: 42.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/3.192, allocations: 378.7 kB / 1.032 GB, free: 41.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/3.194, allocations: 0.7585 MB / 1.032 GB, free: 41.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002799/3.197, allocations: 1.157 MB / 1.033 GB, free: 41.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002472/3.199, allocations: 0.8635 MB / 1.034 GB, free: 41.42 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/3.199, allocations: 4.688 kB / 1.034 GB, free: 41.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.006493/3.206, allocations: 2.293 MB / 1.037 GB, free: 41.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000917/3.207, allocations: 4.279 MB / 1.041 GB, free: 36.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.168e-05/3.207, allocations: 14.56 kB / 1.041 GB, free: 36.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009399/3.216, allocations: 0.953 MB / 1.042 GB, free: 36.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002729/3.219, allocations: 346 kB / 1.042 GB, free: 36.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/3.223, allocations: 2.899 MB / 1.045 GB, free: 34.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00307/3.226, allocations: 141.6 kB / 1.045 GB, free: 34.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003751/3.226, allocations: 78.81 kB / 1.045 GB, free: 34.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/3.226, allocations: 2.406 kB / 1.045 GB, free: 34.7 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005806/3.232, allocations: 2.099 MB / 1.047 GB, free: 34.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.989e-05/3.232, allocations: 11.59 kB / 1.047 GB, free: 34.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00727/3.239, allocations: 0.67 MB / 1.048 GB, free: 34.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/3.242, allocations: 357.9 kB / 1.048 GB, free: 34.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/3.245, allocations: 2.614 MB / 1.051 GB, free: 32.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/3.247, allocations: 134.4 kB / 1.051 GB, free: 32.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002435/3.248, allocations: 79.91 kB / 1.051 GB, free: 32.51 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (200): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001363/3.249, allocations: 0.5114 MB / 1.051 GB, free: 32.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005438/3.25, allocations: 174.9 kB / 1.051 GB, free: 32.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007251/3.257, allocations: 2.364 MB / 1.054 GB, free: 32.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/3.257, allocations: 15.66 kB / 1.054 GB, free: 32.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/3.257, allocations: 0 / 1.054 GB, free: 32.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.342e-05/3.257, allocations: 14.02 kB / 1.054 GB, free: 32.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/3.268, allocations: 4.017 MB / 1.058 GB, free: 31.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/3.268, allocations: 6.469 kB / 1.058 GB, free: 31.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002007/3.27, allocations: 244 kB / 1.058 GB, free: 31.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00677/3.277, allocations: 0.8852 MB / 1.059 GB, free: 31.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004199/3.277, allocations: 48.48 kB / 1.059 GB, free: 31.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/3.281, allocations: 2.838 MB / 1.062 GB, free: 29.47 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/3.281, allocations: 7.75 kB / 1.062 GB, free: 29.47 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008652/3.289, allocations: 3.248 MB / 1.065 GB, free: 28.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008999/3.29, allocations: 281.2 kB / 1.065 GB, free: 28.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007079/3.291, allocations: 36.59 kB / 1.065 GB, free: 28.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002385/3.293, allocations: 107.8 kB / 1.065 GB, free: 28.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005566/3.294, allocations: 148.2 kB / 1.065 GB, free: 28.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000234/3.294, allocations: 61.78 kB / 1.065 GB, free: 28.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002071/3.296, allocations: 0.9764 MB / 1.066 GB, free: 28.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.763e-06/3.296, allocations: 0 / 1.066 GB, free: 28.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006177/3.302, allocations: 1.389 MB / 1.068 GB, free: 28.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0043/3.307, allocations: 1.232 MB / 1.069 GB, free: 28.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009615/3.316, allocations: 3.021 MB / 1.072 GB, free: 27.72 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/3.317, allocations: 3.938 kB / 1.072 GB, free: 27.72 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003374/3.32, allocations: 1.064 MB / 1.073 GB, free: 27.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006496/3.326, allocations: 0.7341 MB / 1.074 GB, free: 27.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009108/3.336, allocations: 4.153 MB / 1.078 GB, free: 25.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/3.337, allocations: 1.422 MB / 1.079 GB, free: 24.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/3.338, allocations: 169.6 kB / 1.079 GB, free: 24.39 MB / 426.7 MB Notification: Performance of SimCode: time 2.786e-06/3.338, allocations: 0 / 1.079 GB, free: 24.39 MB / 426.7 MB Notification: Performance of Templates: time 0.4222/3.76, allocations: 59.98 MB / 1.138 GB, free: 63.03 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)