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.TanksWithEmptyingPipe1.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.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_3.2.3_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_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001467/0.001467, allocations: 186 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.957/1.957, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001113/0.001113, allocations: 76.45 kB / 270.9 MB, free: 8.406 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003937, allocations: 8 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3393, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.006/1.345, allocations: 324.2 MB / 0.6824 GB, free: 106.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/1.346, allocations: 95.59 kB / 0.6825 GB, free: 106.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.268/2.614, allocations: 283.1 MB / 0.9589 GB, free: 13.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.414e-06/2.614, allocations: 0 / 0.9589 GB, free: 13.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00015/2.614, allocations: 43.86 kB / 0.959 GB, free: 13.7 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007461/2.622, allocations: 1.954 MB / 0.9609 GB, free: 11.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/2.622, allocations: 12.03 kB / 0.9609 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/2.623, allocations: 170.2 kB / 0.961 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00363/2.627, allocations: 1.042 MB / 0.9621 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/2.627, allocations: 77.97 kB / 0.9621 GB, free: 10.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/2.627, allocations: 95.97 kB / 0.9622 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00405/2.631, allocations: 1.627 MB / 0.9638 GB, free: 8.539 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.792e-05/2.631, allocations: 4 kB / 0.9638 GB, free: 8.535 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002203/2.631, allocations: 39.98 kB / 0.9639 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001944/2.632, allocations: 101.9 kB / 0.9639 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004059/2.636, allocations: 1.62 MB / 0.9655 GB, free: 6.773 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3357/2.971, allocations: 6.536 MB / 0.9719 GB, free: 55.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/2.974, allocations: 0.9184 MB / 0.9728 GB, free: 55.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005938/2.98, allocations: 2.829 MB / 0.9756 GB, free: 54.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/2.98, allocations: 46.66 kB / 0.9756 GB, free: 54.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 4.438e-06/2.98, allocations: 0 / 0.9756 GB, free: 54.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.01415/2.994, allocations: 3.715 MB / 0.9792 GB, free: 53.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/2.995, allocations: 193.3 kB / 0.9794 GB, free: 53.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002323/2.997, allocations: 1.149 MB / 0.9806 GB, free: 53.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003275/2.997, allocations: 48.86 kB / 0.9806 GB, free: 53.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005102/2.998, allocations: 0.6252 MB / 0.9812 GB, free: 52.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004316/2.998, allocations: 319.7 kB / 0.9815 GB, free: 52.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/2.998, allocations: 30.84 kB / 0.9815 GB, free: 52.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/2.999, allocations: 372.1 kB / 0.9819 GB, free: 52.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/3, allocations: 0.5488 MB / 0.9824 GB, free: 52.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001822/3.002, allocations: 0.9599 MB / 0.9834 GB, free: 51.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/3.004, allocations: 0.668 MB / 0.984 GB, free: 51.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/3.004, allocations: 3.656 kB / 0.984 GB, free: 51.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004628/3.008, allocations: 1.755 MB / 0.9857 GB, free: 51.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009963/3.009, allocations: 4.356 MB / 0.99 GB, free: 47.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.24e-05/3.009, allocations: 15.56 kB / 0.99 GB, free: 47.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006679/3.016, allocations: 0.6627 MB / 0.9907 GB, free: 47.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/3.018, allocations: 279.1 kB / 0.9909 GB, free: 47.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/3.021, allocations: 2.164 MB / 0.993 GB, free: 45.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/3.024, allocations: 100.2 kB / 0.9931 GB, free: 45.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/3.024, allocations: 69.84 kB / 0.9932 GB, free: 45.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/3.024, allocations: 3.938 kB / 0.9932 GB, free: 45.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004939/3.029, allocations: 1.626 MB / 0.9948 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.384e-05/3.029, allocations: 13.66 kB / 0.9948 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005309/3.034, allocations: 496.3 kB / 0.9953 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/3.037, allocations: 295.6 kB / 0.9956 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/3.039, allocations: 1.994 MB / 0.9975 GB, free: 43.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00184/3.041, allocations: 100.9 kB / 0.9976 GB, free: 43.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/3.041, allocations: 68.12 kB / 0.9977 GB, free: 43.96 MB / 426.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.001111/3.042, allocations: 461.5 kB / 0.9981 GB, free: 43.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004426/3.042, allocations: 141.5 kB / 0.9982 GB, free: 43.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00492/3.047, allocations: 1.522 MB / 0.9997 GB, free: 43.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.055e-05/3.047, allocations: 11.03 kB / 0.9997 GB, free: 43.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/3.047, allocations: 0 / 0.9997 GB, free: 43.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/3.047, allocations: 7.031 kB / 0.9997 GB, free: 43.58 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00797/3.055, allocations: 2.819 MB / 1.002 GB, free: 43.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/3.055, allocations: 1.25 kB / 1.002 GB, free: 43.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/3.057, allocations: 156.9 kB / 1.003 GB, free: 43.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005043/3.062, allocations: 0.6167 MB / 1.003 GB, free: 43.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002739/3.062, allocations: 30.61 kB / 1.003 GB, free: 43.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/3.065, allocations: 2.117 MB / 1.005 GB, free: 41.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/3.065, allocations: 5.094 kB / 1.005 GB, free: 41.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005659/3.07, allocations: 2.143 MB / 1.007 GB, free: 41.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007812/3.071, allocations: 246.4 kB / 1.008 GB, free: 41.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004269/3.072, allocations: 34.33 kB / 1.008 GB, free: 41.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/3.073, allocations: 77.03 kB / 1.008 GB, free: 41.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000334/3.074, allocations: 89.59 kB / 1.008 GB, free: 41.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/3.074, allocations: 43.47 kB / 1.008 GB, free: 41.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001913/3.076, allocations: 0.8954 MB / 1.009 GB, free: 40.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/3.076, allocations: 0 / 1.009 GB, free: 40.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005001/3.081, allocations: 1.217 MB / 1.01 GB, free: 40.93 MB / 426.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.003627/3.085, allocations: 1.121 MB / 1.011 GB, free: 40.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006746/3.091, allocations: 2.179 MB / 1.013 GB, free: 40.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/3.092, allocations: 10.88 kB / 1.013 GB, free: 40.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002404/3.094, allocations: 0.7024 MB / 1.014 GB, free: 40.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00495/3.099, allocations: 0.5713 MB / 1.014 GB, free: 40.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006531/3.105, allocations: 3.21 MB / 1.018 GB, free: 39.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008635/3.106, allocations: 1.279 MB / 1.019 GB, free: 38.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008092/3.107, allocations: 126.1 kB / 1.019 GB, free: 38.8 MB / 426.7 MB Notification: Performance of SimCode: time 8.42e-07/3.107, allocations: 0 / 1.019 GB, free: 38.8 MB / 426.7 MB Notification: Performance of Templates: time 0.07723/3.184, allocations: 44.73 MB / 1.063 GB, free: 36.69 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)