Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002857/0.002857, allocations: 199.4 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.759/2.759, allocations: 226.5 MB / 245.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001531/0.001531, allocations: 91.5 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000511/0.0005112, allocations: 4 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6239/0.6245, allocations: 51.3 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.674/2.298, allocations: 325.6 MB / 0.7171 GB, free: 145.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/2.299, allocations: 98.88 kB / 0.7172 GB, free: 145.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.732/4.031, allocations: 285.6 MB / 0.9961 GB, free: 37.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.958e-06/4.031, allocations: 0 / 0.9961 GB, free: 37.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002861/4.031, allocations: 41.73 kB / 0.9961 GB, free: 37.66 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.01502/4.046, allocations: 1.951 MB / 0.998 GB, free: 35.69 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.062e-05/4.047, allocations: 8.031 kB / 0.998 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002287/4.049, allocations: 181.1 kB / 0.9982 GB, free: 35.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005889/4.055, allocations: 1.072 MB / 0.9993 GB, free: 34.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/4.055, allocations: 80.55 kB / 0.9993 GB, free: 34.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008175/4.056, allocations: 98.09 kB / 0.9994 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007156/4.063, allocations: 1.638 MB / 1.001 GB, free: 32.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.045e-05/4.063, allocations: 11.98 kB / 1.001 GB, free: 32.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006131/4.064, allocations: 44.84 kB / 1.001 GB, free: 32.49 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002724/4.064, allocations: 97.94 kB / 1.001 GB, free: 32.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/4.074, allocations: 1.616 MB / 1.003 GB, free: 30.78 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02321/4.098, allocations: 6.475 MB / 1.009 GB, free: 24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002987/4.101, allocations: 0.9216 MB / 1.01 GB, free: 23.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/4.103, allocations: 0.554 MB / 1.011 GB, free: 22.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01087/4.114, allocations: 2.814 MB / 1.013 GB, free: 19.48 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001181/4.114, allocations: 43.22 kB / 1.013 GB, free: 19.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 1.488e-05/4.114, allocations: 0 / 1.013 GB, free: 19.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01721/4.131, allocations: 3.722 MB / 1.017 GB, free: 15.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/4.132, allocations: 188.9 kB / 1.017 GB, free: 15.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004628/4.136, allocations: 1.302 MB / 1.018 GB, free: 14.05 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.004772/4.141, allocations: 45.7 kB / 1.018 GB, free: 14 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/4.143, allocations: 0.6419 MB / 1.019 GB, free: 13.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008987/4.144, allocations: 326.5 kB / 1.019 GB, free: 13.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004436/4.144, allocations: 32 kB / 1.019 GB, free: 13.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002408/4.144, allocations: 353.9 kB / 1.02 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/4.146, allocations: 0.5583 MB / 1.02 GB, free: 12.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002378/4.149, allocations: 0.959 MB / 1.021 GB, free: 10.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003735/4.153, allocations: 1.425 MB / 1.023 GB, free: 9.395 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.09e-05/4.153, allocations: 4 kB / 1.023 GB, free: 9.391 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00674/4.159, allocations: 1.842 MB / 1.024 GB, free: 7.527 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003555/4.16, allocations: 419.6 kB / 1.025 GB, free: 6.965 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/4.16, allocations: 12 kB / 1.025 GB, free: 6.953 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006221/4.166, allocations: 0.6619 MB / 1.025 GB, free: 6.281 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002359/4.169, allocations: 287.5 kB / 1.026 GB, free: 6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/4.172, allocations: 2.164 MB / 1.028 GB, free: 3.758 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/4.175, allocations: 107.8 kB / 1.028 GB, free: 3.652 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006169/4.176, allocations: 63.98 kB / 1.028 GB, free: 3.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/4.176, allocations: 4 kB / 1.028 GB, free: 3.586 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006139/4.182, allocations: 1.634 MB / 1.03 GB, free: 1.938 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.973e-05/4.182, allocations: 8 kB / 1.03 GB, free: 1.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005198/4.188, allocations: 0.4987 MB / 1.03 GB, free: 1.422 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/4.19, allocations: 287.5 kB / 1.03 GB, free: 1.141 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.604/4.794, allocations: 2.011 MB / 1.032 GB, free: 65.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003797/4.798, allocations: 104.1 kB / 1.032 GB, free: 65.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009695/4.799, allocations: 63.12 kB / 1.033 GB, free: 65.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.003681/4.803, allocations: 473 kB / 1.033 GB, free: 64.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00161/4.804, allocations: 140.6 kB / 1.033 GB, free: 64.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009429/4.814, allocations: 1.511 MB / 1.035 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.957e-05/4.814, allocations: 11.53 kB / 1.035 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-05/4.814, allocations: 0 / 1.035 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.622e-05/4.814, allocations: 6.656 kB / 1.035 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/4.824, allocations: 2.809 MB / 1.037 GB, free: 64.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/4.824, allocations: 1.75 kB / 1.037 GB, free: 64.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/4.826, allocations: 160.6 kB / 1.037 GB, free: 64.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00457/4.83, allocations: 0.6059 MB / 1.038 GB, free: 64.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/4.831, allocations: 29.16 kB / 1.038 GB, free: 64.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/4.834, allocations: 2.117 MB / 1.04 GB, free: 62.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.321e-05/4.834, allocations: 2.812 kB / 1.04 GB, free: 62.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006746/4.841, allocations: 2.101 MB / 1.042 GB, free: 62.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001795/4.842, allocations: 238 kB / 1.042 GB, free: 62.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001154/4.844, allocations: 25.73 kB / 1.042 GB, free: 62.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002653/4.846, allocations: 79.53 kB / 1.043 GB, free: 62.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005676/4.847, allocations: 98.23 kB / 1.043 GB, free: 62.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003297/4.847, allocations: 46.5 kB / 1.043 GB, free: 62.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003829/4.851, allocations: 0.8925 MB / 1.044 GB, free: 62.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.3e-07/4.851, allocations: 0 / 1.044 GB, free: 62.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01078/4.862, allocations: 1.223 MB / 1.045 GB, free: 62.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007751/4.87, allocations: 1.126 MB / 1.046 GB, free: 62.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009895/4.88, allocations: 2.188 MB / 1.048 GB, free: 62.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.854e-05/4.88, allocations: 0 / 1.048 GB, free: 62.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003628/4.884, allocations: 0.7027 MB / 1.049 GB, free: 62.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005833/4.889, allocations: 0.5908 MB / 1.049 GB, free: 62.28 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007876/4.897, allocations: 3.216 MB / 1.052 GB, free: 61.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/4.899, allocations: 1.256 MB / 1.054 GB, free: 60.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008741/4.9, allocations: 125.6 kB / 1.054 GB, free: 60.32 MB / 458.7 MB Notification: Performance of SimCode: time 1.412e-06/4.9, allocations: 0 / 1.054 GB, free: 60.32 MB / 458.7 MB Notification: Performance of Templates: time 0.1104/5.01, allocations: 45.71 MB / 1.098 GB, free: 57.57 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)