Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003613, allocations: 8 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08845/0.08883, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.204/1.293, allocations: 317 MB / 0.5758 GB, free: 99.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003628/1.293, allocations: 105.5 kB / 0.5759 GB, free: 99.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.626/2.919, allocations: 322.5 MB / 0.8908 GB, free: 35.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.765e-06/2.919, allocations: 0 / 0.8908 GB, free: 35.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002592/2.919, allocations: 50.98 kB / 0.8909 GB, free: 35.73 MB / 362.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.009655/2.929, allocations: 2.247 MB / 0.8931 GB, free: 34.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/2.929, allocations: 8.281 kB / 0.8931 GB, free: 34.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001666/2.931, allocations: 203 kB / 0.8933 GB, free: 34.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004995/2.936, allocations: 1.258 MB / 0.8945 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002321/2.936, allocations: 96.08 kB / 0.8946 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007481/2.937, allocations: 124.5 kB / 0.8947 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006137/2.943, allocations: 1.939 MB / 0.8966 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.363e-05/2.943, allocations: 2.062 kB / 0.8966 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003271/2.943, allocations: 54.77 kB / 0.8967 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002423/2.944, allocations: 113 kB / 0.8968 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006327/2.95, allocations: 1.957 MB / 0.8987 GB, free: 33.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01983/2.97, allocations: 7.62 MB / 0.9061 GB, free: 30.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003227/2.973, allocations: 1.156 MB / 0.9073 GB, free: 30.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007947/2.981, allocations: 3.341 MB / 0.9105 GB, free: 28.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/2.981, allocations: 54.33 kB / 0.9106 GB, free: 28.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.849e-06/2.981, allocations: 0 / 0.9106 GB, free: 28.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.02182/3.003, allocations: 5.365 MB / 0.9158 GB, free: 27.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.908e-05/3.003, allocations: 171.4 kB / 0.916 GB, free: 27.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002656/3.006, allocations: 1.325 MB / 0.9173 GB, free: 27.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004771/3.006, allocations: 57.33 kB / 0.9173 GB, free: 27.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007233/3.007, allocations: 0.7265 MB / 0.918 GB, free: 27.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007224/3.008, allocations: 475.3 kB / 0.9185 GB, free: 26.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/3.008, allocations: 34.69 kB / 0.9185 GB, free: 26.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/3.008, allocations: 376.8 kB / 0.9189 GB, free: 26.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002245/3.011, allocations: 0.746 MB / 0.9196 GB, free: 26.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002763/3.013, allocations: 1.204 MB / 0.9208 GB, free: 26.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002558/3.016, allocations: 0.8763 MB / 0.9217 GB, free: 26.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.788e-05/3.016, allocations: 3.844 kB / 0.9217 GB, free: 26.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007384/3.023, allocations: 2.413 MB / 0.924 GB, free: 25.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000332/3.024, allocations: 495 kB / 0.9245 GB, free: 25.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/3.024, allocations: 14.75 kB / 0.9245 GB, free: 25.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009249/3.033, allocations: 0.9547 MB / 0.9254 GB, free: 25.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002709/3.036, allocations: 356.8 kB / 0.9258 GB, free: 25.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003502/3.039, allocations: 2.89 MB / 0.9286 GB, free: 23.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002993/3.042, allocations: 139.8 kB / 0.9287 GB, free: 23.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005108/3.043, allocations: 84.56 kB / 0.9288 GB, free: 23.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/3.043, allocations: 6.281 kB / 0.9288 GB, free: 23.14 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006797/3.05, allocations: 2.134 MB / 0.9309 GB, free: 23.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-05/3.05, allocations: 13.69 kB / 0.9309 GB, free: 23.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007392/3.057, allocations: 0.6811 MB / 0.9316 GB, free: 23.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/3.06, allocations: 371.1 kB / 0.9319 GB, free: 23.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/3.063, allocations: 2.638 MB / 0.9345 GB, free: 20.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002793/3.066, allocations: 130.4 kB / 0.9346 GB, free: 20.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005574/3.066, allocations: 83.94 kB / 0.9347 GB, free: 20.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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.001703/3.068, allocations: 0.5245 MB / 0.9352 GB, free: 20.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005919/3.069, allocations: 162.2 kB / 0.9354 GB, free: 20.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00841/3.077, allocations: 2.332 MB / 0.9377 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.181e-05/3.077, allocations: 13.5 kB / 0.9377 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/3.077, allocations: 10.09 kB / 0.9377 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.943e-05/3.077, allocations: 14.42 kB / 0.9377 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01923/3.097, allocations: 3.931 MB / 0.9415 GB, free: 19.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.062e-05/3.097, allocations: 2.625 kB / 0.9415 GB, free: 19.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003622/3.1, allocations: 248.5 kB / 0.9418 GB, free: 19.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01084/3.111, allocations: 0.8857 MB / 0.9426 GB, free: 19.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004961/3.112, allocations: 38.98 kB / 0.9427 GB, free: 19.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004321/3.116, allocations: 2.842 MB / 0.9454 GB, free: 17.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/3.116, allocations: 2.219 kB / 0.9454 GB, free: 17.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009089/3.125, allocations: 3.132 MB / 0.9485 GB, free: 16.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007817/3.126, allocations: 263.9 kB / 0.9488 GB, free: 16.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007267/3.127, allocations: 34.5 kB / 0.9488 GB, free: 16.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002469/3.129, allocations: 104 kB / 0.9489 GB, free: 16.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006322/3.13, allocations: 146.4 kB / 0.949 GB, free: 16.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/3.13, allocations: 56.12 kB / 0.9491 GB, free: 16.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001992/3.132, allocations: 0.9067 MB / 0.95 GB, free: 16.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.51e-07/3.132, allocations: 0 / 0.95 GB, free: 16.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007013/3.139, allocations: 1.354 MB / 0.9513 GB, free: 15.77 MB / 362.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]) * Number of clocked states: 0 () * 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.004703/3.144, allocations: 1.224 MB / 0.9525 GB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/3.155, allocations: 3.044 MB / 0.9555 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/3.155, allocations: 3.906 kB / 0.9555 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003491/3.159, allocations: 1.067 MB / 0.9565 GB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005714/3.164, allocations: 0.6654 MB / 0.9572 GB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009247/3.174, allocations: 4.131 MB / 0.9612 GB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/3.175, allocations: 1.434 MB / 0.9626 GB, free: 26.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004273/3.18, allocations: 0.7099 MB / 0.9633 GB, free: 26.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007717/3.18, allocations: 148.2 kB / 0.9634 GB, free: 26.79 MB / 378.7 MB Notification: Performance of SimCode: time 1.233e-06/3.18, allocations: 0 / 0.9634 GB, free: 26.79 MB / 378.7 MB Notification: Performance of Templates: time 0.3843/3.565, allocations: 45.26 MB / 1.008 GB, free: 49 MB / 378.7 MB