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.002112/0.002112, allocations: 181.9 kB / 13.66 MB, free: 1.664 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.999/1.999, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001058/0.001058, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.889e-05/3.904e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.006/1.107, allocations: 326.7 MB / 0.6795 GB, free: 14 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/1.107, allocations: 87.27 kB / 0.6796 GB, free: 13.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.688/2.795, allocations: 325 MB / 0.997 GB, free: 29.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.186e-06/2.795, allocations: 4 kB / 0.997 GB, free: 29.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002309/2.795, allocations: 52.8 kB / 0.9971 GB, free: 29.15 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.008342/2.803, allocations: 2.034 MB / 0.9991 GB, free: 27.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/2.804, allocations: 12.03 kB / 0.9991 GB, free: 27.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001525/2.805, allocations: 205.8 kB / 0.9993 GB, free: 26.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004446/2.81, allocations: 1.192 MB / 1 GB, free: 25.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/2.81, allocations: 90.28 kB / 1.001 GB, free: 25.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007162/2.811, allocations: 120 kB / 1.001 GB, free: 25.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005257/2.816, allocations: 1.924 MB / 1.003 GB, free: 23.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.347e-05/2.816, allocations: 7.938 kB / 1.003 GB, free: 23.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002913/2.816, allocations: 51.97 kB / 1.003 GB, free: 23.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002303/2.816, allocations: 114.3 kB / 1.003 GB, free: 23.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005725/2.822, allocations: 1.926 MB / 1.005 GB, free: 21.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/2.842, allocations: 7.69 MB / 1.012 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/2.845, allocations: 1.147 MB / 1.013 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/2.847, allocations: 0.7275 MB / 1.014 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008009/2.855, allocations: 3.462 MB / 1.017 GB, free: 7.543 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/2.856, allocations: 59.48 kB / 1.017 GB, free: 7.477 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.159e-06/2.856, allocations: 0 / 1.017 GB, free: 7.477 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01524/2.871, allocations: 4.125 MB / 1.021 GB, free: 3.297 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/2.871, allocations: 171.5 kB / 1.022 GB, free: 3.094 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/2.873, allocations: 1.239 MB / 1.023 GB, free: 1.848 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005245/2.874, allocations: 61.69 kB / 1.023 GB, free: 1.781 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005689/2.875, allocations: 0.6655 MB / 1.023 GB, free: 1.109 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000683/2.875, allocations: 469.4 kB / 1.024 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/2.875, allocations: 36 kB / 1.024 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/2.876, allocations: 378.8 kB / 1.024 GB, free: 236 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3172/3.193, allocations: 0.732 MB / 1.025 GB, free: 50.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002833/3.196, allocations: 1.137 MB / 1.026 GB, free: 49.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002697/3.198, allocations: 0.8641 MB / 1.027 GB, free: 49.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-05/3.199, allocations: 3.062 kB / 1.027 GB, free: 49.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007394/3.206, allocations: 2.259 MB / 1.029 GB, free: 49.65 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009562/3.207, allocations: 4.272 MB / 1.033 GB, free: 45.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.812e-05/3.207, allocations: 11.39 kB / 1.033 GB, free: 45.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009762/3.217, allocations: 0.9307 MB / 1.034 GB, free: 45.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002985/3.22, allocations: 347.4 kB / 1.035 GB, free: 45.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003983/3.224, allocations: 2.902 MB / 1.037 GB, free: 43.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003218/3.227, allocations: 135.2 kB / 1.038 GB, free: 43.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006069/3.228, allocations: 79.69 kB / 1.038 GB, free: 43.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/3.228, allocations: 7.125 kB / 1.038 GB, free: 43.11 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00666/3.234, allocations: 2.069 MB / 1.04 GB, free: 43.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.792e-05/3.235, allocations: 10.62 kB / 1.04 GB, free: 43.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007304/3.242, allocations: 0.66 MB / 1.04 GB, free: 43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002911/3.245, allocations: 360.1 kB / 1.041 GB, free: 43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/3.248, allocations: 2.618 MB / 1.043 GB, free: 40.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002397/3.25, allocations: 136.8 kB / 1.043 GB, free: 40.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005479/3.251, allocations: 76.5 kB / 1.043 GB, free: 40.93 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 () * 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.0007284/3.252, allocations: 210.4 kB / 1.044 GB, free: 40.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00059/3.252, allocations: 171.3 kB / 1.044 GB, free: 40.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007962/3.26, allocations: 2.338 MB / 1.046 GB, free: 40.67 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.022e-05/3.26, allocations: 15.22 kB / 1.046 GB, free: 40.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/3.26, allocations: 0.625 kB / 1.046 GB, free: 40.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.525e-05/3.26, allocations: 8.484 kB / 1.046 GB, free: 40.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01261/3.273, allocations: 3.976 MB / 1.05 GB, free: 40.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/3.273, allocations: 5.812 kB / 1.05 GB, free: 40.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002318/3.275, allocations: 240.3 kB / 1.05 GB, free: 40.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00698/3.282, allocations: 0.8815 MB / 1.051 GB, free: 40.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004863/3.283, allocations: 46.11 kB / 1.051 GB, free: 40.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/3.286, allocations: 2.841 MB / 1.054 GB, free: 38.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/3.286, allocations: 0 / 1.054 GB, free: 38.15 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008064/3.294, allocations: 3.207 MB / 1.057 GB, free: 37.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008794/3.295, allocations: 272.8 kB / 1.057 GB, free: 37.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006423/3.296, allocations: 40.2 kB / 1.057 GB, free: 37.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/3.298, allocations: 113.2 kB / 1.057 GB, free: 37.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005399/3.299, allocations: 147.6 kB / 1.058 GB, free: 37.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002434/3.299, allocations: 63.11 kB / 1.058 GB, free: 37.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00199/3.301, allocations: 0.953 MB / 1.059 GB, free: 37.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/3.301, allocations: 2.062 kB / 1.059 GB, free: 37.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006116/3.307, allocations: 1.389 MB / 1.06 GB, free: 37.37 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]) * 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.004244/3.311, allocations: 1.227 MB / 1.061 GB, free: 37.26 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009146/3.32, allocations: 2.969 MB / 1.064 GB, free: 37.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/3.321, allocations: 3.812 kB / 1.064 GB, free: 37.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00315/3.324, allocations: 1.054 MB / 1.065 GB, free: 37.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006213/3.33, allocations: 0.7364 MB / 1.066 GB, free: 37.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007511/3.338, allocations: 2.883 MB / 1.069 GB, free: 36.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/3.339, allocations: 1.423 MB / 1.07 GB, free: 35.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/3.34, allocations: 164.6 kB / 1.07 GB, free: 35.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/3.34, allocations: 0 / 1.07 GB, free: 35.8 MB / 426.7 MB Notification: Performance of Templates: time 0.1038/3.444, allocations: 59.89 MB / 1.129 GB, free: 31.42 MB / 426.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)