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.00142/0.001424, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 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.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 94.3 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.757e-05/2.752e-05, allocations: 7.984 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3341, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9971/1.331, allocations: 326.1 MB / 0.6723 GB, free: 119.4 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/1.332, allocations: 89.73 kB / 0.6724 GB, free: 119.4 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.375/2.707, allocations: 323.1 MB / 0.9879 GB, free: 5.145 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.954e-06/2.707, allocations: 4 kB / 0.9879 GB, free: 5.141 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0002061/2.707, allocations: 52 kB / 0.988 GB, free: 5.094 MB / 427.1 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.008026/2.715, allocations: 2.041 MB / 0.99 GB, free: 3.02 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/2.715, allocations: 12.03 kB / 0.99 GB, free: 3.008 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001467/2.717, allocations: 205.7 kB / 0.9902 GB, free: 2.805 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004368/2.721, allocations: 1.173 MB / 0.9913 GB, free: 1.598 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/2.721, allocations: 55.92 kB / 0.9914 GB, free: 1.543 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005102/2.722, allocations: 68 kB / 0.9914 GB, free: 1.477 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3081/3.03, allocations: 1.756 MB / 0.9932 GB, free: 45.18 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00448/3.034, allocations: 1.757 MB / 0.9949 GB, free: 44.91 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.847e-05/3.034, allocations: 5.25 kB / 0.9949 GB, free: 44.91 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002352/3.035, allocations: 3.875 kB / 0.9949 GB, free: 44.91 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002269/3.035, allocations: 115.5 kB / 0.995 GB, free: 44.9 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01693/3.052, allocations: 7.386 MB / 1.002 GB, free: 41.66 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002413/3.054, allocations: 1.122 MB / 1.003 GB, free: 41.63 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001463/3.056, allocations: 0.7064 MB / 1.004 GB, free: 41.62 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00725/3.063, allocations: 3.374 MB / 1.007 GB, free: 40.09 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/3.063, allocations: 50.34 kB / 1.007 GB, free: 40.05 MB / 427.1 MB Notification: Performance of pre-optimization done (n=119): time 5.481e-06/3.063, allocations: 2.625 kB / 1.007 GB, free: 40.05 MB / 427.1 MB Notification: Performance of matching and sorting (n=134): time 0.02345/3.087, allocations: 4.673 MB / 1.012 GB, free: 39.44 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/3.087, allocations: 175 kB / 1.012 GB, free: 39.25 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/3.089, allocations: 0.9505 MB / 1.013 GB, free: 39.1 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003679/3.089, allocations: 28.61 kB / 1.013 GB, free: 39.07 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005547/3.09, allocations: 0.7062 MB / 1.014 GB, free: 38.74 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005543/3.09, allocations: 453.6 kB / 1.014 GB, free: 38.51 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/3.09, allocations: 0 / 1.014 GB, free: 38.51 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/3.09, allocations: 378 kB / 1.015 GB, free: 38.2 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/3.092, allocations: 0.7098 MB / 1.015 GB, free: 38.2 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/3.094, allocations: 1.108 MB / 1.016 GB, free: 37.77 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/3.114, allocations: 2.525 MB / 1.019 GB, free: 37.75 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-05/3.114, allocations: 3.406 kB / 1.019 GB, free: 37.75 MB / 427.1 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.02442/3.138, allocations: 3.822 MB / 1.022 GB, free: 37.61 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000951/3.139, allocations: 4.273 MB / 1.027 GB, free: 33.16 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.129e-05/3.139, allocations: 10.97 kB / 1.027 GB, free: 33.16 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/3.141, allocations: 456.8 kB / 1.027 GB, free: 33.13 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00285/3.144, allocations: 346.9 kB / 1.027 GB, free: 33.13 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007034/3.151, allocations: 3.291 MB / 1.031 GB, free: 31.04 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003005/3.154, allocations: 101.8 kB / 1.031 GB, free: 31.04 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00042/3.155, allocations: 80.11 kB / 1.031 GB, free: 31.04 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/3.155, allocations: 4.281 kB / 1.031 GB, free: 31.04 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0227/3.178, allocations: 3.523 MB / 1.034 GB, free: 30.96 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.963e-05/3.178, allocations: 11.06 kB / 1.034 GB, free: 30.96 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/3.179, allocations: 322.7 kB / 1.035 GB, free: 30.93 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/3.182, allocations: 354.9 kB / 1.035 GB, free: 30.93 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005463/3.188, allocations: 2.923 MB / 1.038 GB, free: 28.85 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002265/3.19, allocations: 93.66 kB / 1.038 GB, free: 28.84 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002713/3.19, allocations: 87.67 kB / 1.038 GB, free: 28.84 MB / 427.1 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.000605/3.191, allocations: 158.5 kB / 1.038 GB, free: 28.73 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005365/3.192, allocations: 156.7 kB / 1.038 GB, free: 28.66 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009289/3.201, allocations: 2.333 MB / 1.041 GB, free: 28.5 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.454e-05/3.201, allocations: 16.03 kB / 1.041 GB, free: 28.5 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/3.201, allocations: 0 / 1.041 GB, free: 28.5 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.485e-05/3.201, allocations: 15.94 kB / 1.041 GB, free: 28.5 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/3.214, allocations: 3.884 MB / 1.044 GB, free: 28.1 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-05/3.214, allocations: 6.531 kB / 1.044 GB, free: 28.1 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/3.216, allocations: 237.9 kB / 1.045 GB, free: 28.1 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002216/3.218, allocations: 447.1 kB / 1.045 GB, free: 28.07 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002689/3.219, allocations: 26.5 kB / 1.045 GB, free: 28.07 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00606/3.225, allocations: 3.06 MB / 1.048 GB, free: 41.98 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/3.225, allocations: 7.281 kB / 1.048 GB, free: 41.98 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009347/3.234, allocations: 3.216 MB / 1.051 GB, free: 41.52 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007519/3.235, allocations: 253.3 kB / 1.051 GB, free: 41.34 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004006/3.235, allocations: 9.672 kB / 1.051 GB, free: 41.34 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/3.237, allocations: 82.41 kB / 1.052 GB, free: 41.34 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004029/3.238, allocations: 145.6 kB / 1.052 GB, free: 41.34 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/3.238, allocations: 67.83 kB / 1.052 GB, free: 41.33 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.001368/3.239, allocations: 0.7118 MB / 1.052 GB, free: 41.22 MB / 443.1 MB Notification: Performance of sort global known variables: time 6.01e-07/3.239, allocations: 1.781 kB / 1.052 GB, free: 41.22 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.005752/3.245, allocations: 1.275 MB / 1.054 GB, free: 41.22 MB / 443.1 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.004003/3.249, allocations: 1.21 MB / 1.055 GB, free: 41.11 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.008508/3.258, allocations: 2.834 MB / 1.058 GB, free: 41.07 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/3.258, allocations: 4.625 kB / 1.058 GB, free: 41.07 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003244/3.261, allocations: 1.024 MB / 1.059 GB, free: 41.07 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005848/3.267, allocations: 0.6206 MB / 1.059 GB, free: 41.05 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007623/3.275, allocations: 2.749 MB / 1.062 GB, free: 40.4 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/3.276, allocations: 1.43 MB / 1.063 GB, free: 39.68 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/3.277, allocations: 151.4 kB / 1.063 GB, free: 39.67 MB / 443.1 MB Notification: Performance of SimCode: time 1.172e-06/3.277, allocations: 0 / 1.063 GB, free: 39.67 MB / 443.1 MB Notification: Performance of Templates: time 0.09904/3.376, allocations: 58.47 MB / 1.121 GB, free: 30.4 MB / 443.1 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)