Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001301/0.001302, allocations: 182.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.656/1.656, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001778/0.001778, allocations: 128.6 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.761e-05/3.763e-05, allocations: 7.984 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 44.5 MB / 349.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8851/0.9916, allocations: 317.2 MB / 0.651 GB, free: 55.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003639/0.992, allocations: 90 kB / 0.6511 GB, free: 55.72 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4858/1.478, allocations: 135.8 MB / 0.7837 GB, free: 93.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.102e-06/1.478, allocations: 4 kB / 0.7837 GB, free: 93.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.329e-05/1.478, allocations: 19.05 kB / 0.7837 GB, free: 93.93 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001968/1.48, allocations: 1.024 MB / 0.7847 GB, free: 92.87 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/1.48, allocations: 12.03 kB / 0.7847 GB, free: 92.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002684/1.48, allocations: 91.09 kB / 0.7848 GB, free: 92.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009555/1.481, allocations: 0.5806 MB / 0.7853 GB, free: 92.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.377e-05/1.481, allocations: 37 kB / 0.7854 GB, free: 92.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/1.481, allocations: 49.08 kB / 0.7854 GB, free: 92.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009593/1.482, allocations: 0.7192 MB / 0.7861 GB, free: 91.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/1.482, allocations: 4 kB / 0.7861 GB, free: 91.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.344e-05/1.482, allocations: 23.45 kB / 0.7861 GB, free: 91.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.266e-05/1.483, allocations: 44.97 kB / 0.7862 GB, free: 91.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008395/1.483, allocations: 0.6714 MB / 0.7868 GB, free: 90.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003501/1.487, allocations: 2.859 MB / 0.7896 GB, free: 87.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005477/1.487, allocations: 468.2 kB / 0.7901 GB, free: 87.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/1.488, allocations: 246.1 kB / 0.7903 GB, free: 86.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002032/1.488, allocations: 340.8 kB / 0.7906 GB, free: 86.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/1.488, allocations: 50.94 kB / 0.7907 GB, free: 86.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.146e-06/1.488, allocations: 0 / 0.7907 GB, free: 86.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.003494/1.491, allocations: 1.823 MB / 0.7925 GB, free: 84.53 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/1.492, allocations: 81.67 kB / 0.7926 GB, free: 84.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000542/1.492, allocations: 0.5462 MB / 0.7931 GB, free: 83.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.036e-05/1.492, allocations: 37.7 kB / 0.7931 GB, free: 83.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/1.492, allocations: 323.8 kB / 0.7934 GB, free: 83.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/1.492, allocations: 209.6 kB / 0.7936 GB, free: 83.31 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-05/1.492, allocations: 16 kB / 0.7936 GB, free: 83.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.431e-05/1.493, allocations: 382.8 kB / 0.794 GB, free: 82.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/1.493, allocations: 281.5 kB / 0.7943 GB, free: 82.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/1.493, allocations: 439.1 kB / 0.7947 GB, free: 82.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003981/1.494, allocations: 333.9 kB / 0.795 GB, free: 81.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/1.494, allocations: 0 / 0.795 GB, free: 81.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001133/1.495, allocations: 0.9141 MB / 0.7959 GB, free: 80.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002993/1.495, allocations: 1.753 MB / 0.7976 GB, free: 79.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/1.495, allocations: 4 kB / 0.7976 GB, free: 79.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/1.497, allocations: 344.5 kB / 0.798 GB, free: 78.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005447/1.498, allocations: 155.7 kB / 0.7981 GB, free: 78.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006812/1.498, allocations: 0.8137 MB / 0.7989 GB, free: 77.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005665/1.499, allocations: 55.91 kB / 0.7989 GB, free: 77.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.835e-05/1.499, allocations: 35.92 kB / 0.799 GB, free: 77.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/1.499, allocations: 4 kB / 0.799 GB, free: 77.58 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001032/1.5, allocations: 0.7724 MB / 0.7997 GB, free: 76.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/1.5, allocations: 4 kB / 0.7997 GB, free: 76.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/1.501, allocations: 221.2 kB / 0.8 GB, free: 76.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/1.502, allocations: 163.7 kB / 0.8001 GB, free: 76.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004555/1.502, allocations: 0.6929 MB / 0.8008 GB, free: 75.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005131/1.503, allocations: 47.88 kB / 0.8008 GB, free: 75.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.442e-05/1.503, allocations: 35.98 kB / 0.8009 GB, free: 75.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000178/1.503, allocations: 156.8 kB / 0.801 GB, free: 75.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/1.503, allocations: 71.16 kB / 0.8011 GB, free: 75.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/1.505, allocations: 0.8227 MB / 0.8019 GB, free: 74.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/1.505, allocations: 7.984 kB / 0.8019 GB, free: 74.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/1.505, allocations: 4 kB / 0.8019 GB, free: 74.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/1.505, allocations: 0 / 0.8019 GB, free: 74.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/1.507, allocations: 1.647 MB / 0.8035 GB, free: 72.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/1.507, allocations: 0 / 0.8035 GB, free: 72.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/1.507, allocations: 107.9 kB / 0.8036 GB, free: 72.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/1.509, allocations: 340.5 kB / 0.8039 GB, free: 72.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-05/1.509, allocations: 12 kB / 0.8039 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005733/1.509, allocations: 0.7982 MB / 0.8047 GB, free: 71.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/1.509, allocations: 0 / 0.8047 GB, free: 71.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/1.51, allocations: 1.242 MB / 0.8059 GB, free: 70.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/1.511, allocations: 156.2 kB / 0.8061 GB, free: 70.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.236e-05/1.511, allocations: 19.94 kB / 0.8061 GB, free: 70.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004457/1.511, allocations: 47.81 kB / 0.8062 GB, free: 70.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/1.511, allocations: 56.44 kB / 0.8062 GB, free: 70 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.112e-05/1.511, allocations: 23.98 kB / 0.8062 GB, free: 69.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004602/1.512, allocations: 435.1 kB / 0.8066 GB, free: 69.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.512, allocations: 0 / 0.8066 GB, free: 69.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001537/1.513, allocations: 0.5854 MB / 0.8072 GB, free: 68.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001018/1.514, allocations: 0.6007 MB / 0.8078 GB, free: 68.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001646/1.516, allocations: 1.123 MB / 0.8089 GB, free: 67.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.516, allocations: 0 / 0.8089 GB, free: 67.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004988/1.517, allocations: 367.4 kB / 0.8093 GB, free: 66.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/1.518, allocations: 332.5 kB / 0.8096 GB, free: 66.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/1.52, allocations: 1.194 MB / 0.8107 GB, free: 65.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/1.52, allocations: 0.9879 MB / 0.8117 GB, free: 64.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009426/1.521, allocations: 318.1 kB / 0.812 GB, free: 64.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/1.521, allocations: 51.42 kB / 0.8121 GB, free: 63.99 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/1.521, allocations: 0 / 0.8121 GB, free: 63.99 MB / 410.7 MB Notification: Performance of Templates: time 0.02477/1.546, allocations: 20.71 MB / 0.8323 GB, free: 43.27 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)