Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.62/1.62, allocations: 171.2 MB / 184.2 MB, free: 12.05 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.554e-05/2.568e-05, allocations: 8 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2096, allocations: 38.77 MB / 267.6 MB, free: 9.441 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7502/0.9599, allocations: 314 MB / 0.5679 GB, free: 57.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.9602, allocations: 88.12 kB / 0.568 GB, free: 57.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9779/1.938, allocations: 190.2 MB / 0.7537 GB, free: 21.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.921e-06/1.938, allocations: 4 kB / 0.7537 GB, free: 21.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.099e-05/1.938, allocations: 27.98 kB / 0.7538 GB, free: 21.64 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003272/1.941, allocations: 1.301 MB / 0.755 GB, free: 20.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/1.942, allocations: 8.031 kB / 0.755 GB, free: 20.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000605/1.942, allocations: 111.3 kB / 0.7552 GB, free: 20.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/1.944, allocations: 0.7685 MB / 0.7559 GB, free: 19.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.149e-05/1.944, allocations: 53.28 kB / 0.756 GB, free: 19.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/1.944, allocations: 63.98 kB / 0.756 GB, free: 19.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/1.946, allocations: 1.038 MB / 0.757 GB, free: 18.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.672e-05/1.946, allocations: 0 / 0.757 GB, free: 18.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/1.946, allocations: 27.98 kB / 0.7571 GB, free: 18.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/1.947, allocations: 69.2 kB / 0.7571 GB, free: 18.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/1.949, allocations: 0.9967 MB / 0.7581 GB, free: 17.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007556/1.956, allocations: 4.402 MB / 0.7624 GB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/1.957, allocations: 0.5252 MB / 0.7629 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/1.958, allocations: 298 kB / 0.7632 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003065/1.961, allocations: 2.001 MB / 0.7651 GB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/1.961, allocations: 38.89 kB / 0.7652 GB, free: 9.309 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.945e-06/1.961, allocations: 3.938 kB / 0.7652 GB, free: 9.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.003884/1.965, allocations: 1.456 MB / 0.7666 GB, free: 7.789 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/1.965, allocations: 158.2 kB / 0.7668 GB, free: 7.598 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/1.966, allocations: 0.7347 MB / 0.7675 GB, free: 6.859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.972e-05/1.966, allocations: 41.69 kB / 0.7675 GB, free: 6.812 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/1.967, allocations: 0.497 MB / 0.768 GB, free: 6.309 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/1.967, allocations: 169.7 kB / 0.7682 GB, free: 6.141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/1.967, allocations: 16 kB / 0.7682 GB, free: 6.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.698e-05/1.967, allocations: 346.8 kB / 0.7685 GB, free: 5.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006086/1.968, allocations: 297.8 kB / 0.7688 GB, free: 5.484 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007598/1.968, allocations: 0.6444 MB / 0.7694 GB, free: 4.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007308/1.969, allocations: 403.1 kB / 0.7698 GB, free: 4.281 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.198e-06/1.969, allocations: 0 / 0.7698 GB, free: 4.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002214/1.971, allocations: 1.043 MB / 0.7708 GB, free: 3.223 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2089/2.18, allocations: 4.436 MB / 0.7752 GB, free: 59.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.996e-05/2.18, allocations: 11.78 kB / 0.7752 GB, free: 59.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002829/2.183, allocations: 312.3 kB / 0.7755 GB, free: 59.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/2.184, allocations: 191.2 kB / 0.7756 GB, free: 59.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001523/2.186, allocations: 1.328 MB / 0.7769 GB, free: 58.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/2.187, allocations: 65.91 kB / 0.777 GB, free: 58.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/2.187, allocations: 47.77 kB / 0.7771 GB, free: 58.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/2.187, allocations: 3.969 kB / 0.7771 GB, free: 58.2 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002242/2.19, allocations: 0.9683 MB / 0.778 GB, free: 58.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/2.19, allocations: 11.44 kB / 0.778 GB, free: 58.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002264/2.192, allocations: 278.2 kB / 0.7783 GB, free: 58.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/2.193, allocations: 194 kB / 0.7785 GB, free: 58.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/2.194, allocations: 1.279 MB / 0.7797 GB, free: 57.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009521/2.195, allocations: 65.72 kB / 0.7798 GB, free: 57.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/2.195, allocations: 46.47 kB / 0.7798 GB, free: 57.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000302/2.196, allocations: 169.7 kB / 0.78 GB, free: 57.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002299/2.196, allocations: 90.97 kB / 0.7801 GB, free: 57.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/2.198, allocations: 0.7588 MB / 0.7808 GB, free: 56.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/2.198, allocations: 9.375 kB / 0.7808 GB, free: 56.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.595e-06/2.198, allocations: 5.109 kB / 0.7808 GB, free: 56.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.045e-06/2.198, allocations: 0 / 0.7808 GB, free: 56.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003629/2.202, allocations: 1.54 MB / 0.7823 GB, free: 56.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.761e-06/2.202, allocations: 6.547 kB / 0.7823 GB, free: 56.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005348/2.203, allocations: 78.72 kB / 0.7824 GB, free: 56.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001871/2.205, allocations: 284.4 kB / 0.7827 GB, free: 56.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.985e-05/2.205, allocations: 10.94 kB / 0.7827 GB, free: 56.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/2.206, allocations: 1.31 MB / 0.784 GB, free: 55.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.321e-06/2.206, allocations: 3.938 kB / 0.784 GB, free: 55.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/2.208, allocations: 1.075 MB / 0.785 GB, free: 55.35 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003932/2.208, allocations: 181 kB / 0.7852 GB, free: 55.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/2.209, allocations: 11.09 kB / 0.7852 GB, free: 55.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007661/2.209, allocations: 44.44 kB / 0.7852 GB, free: 55.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/2.21, allocations: 47.03 kB / 0.7853 GB, free: 55.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/2.21, allocations: 22.34 kB / 0.7853 GB, free: 55.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009664/2.211, allocations: 0.5538 MB / 0.7859 GB, free: 55.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.61e-07/2.211, allocations: 6.438 kB / 0.7859 GB, free: 55.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003206/2.214, allocations: 0.8044 MB / 0.7866 GB, free: 55.12 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002461/2.216, allocations: 0.7896 MB / 0.7874 GB, free: 55.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003246/2.22, allocations: 1.222 MB / 0.7886 GB, free: 55.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.421e-06/2.22, allocations: 0 / 0.7886 GB, free: 55.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/2.221, allocations: 344.2 kB / 0.7889 GB, free: 55.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/2.223, allocations: 319.1 kB / 0.7892 GB, free: 55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003346/2.226, allocations: 1.38 MB / 0.7906 GB, free: 54.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/2.227, allocations: 1.048 MB / 0.7916 GB, free: 53.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003768/2.228, allocations: 79.25 kB / 0.7917 GB, free: 53.95 MB / 362.7 MB Notification: Performance of SimCode: time 2.133e-06/2.228, allocations: 0 / 0.7917 GB, free: 53.95 MB / 362.7 MB Notification: Performance of Templates: time 0.03821/2.266, allocations: 25.1 MB / 0.8162 GB, free: 53 MB / 362.7 MB