Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003646, allocations: 15.98 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1272, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.043/1.17, allocations: 323.7 MB / 0.6175 GB, free: 58.76 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/1.171, allocations: 94.27 kB / 0.6176 GB, free: 58.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8322/2.003, allocations: 165.2 MB / 0.7789 GB, free: 67.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.505e-06/2.003, allocations: 0 / 0.7789 GB, free: 67.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.179e-05/2.003, allocations: 22.81 kB / 0.7789 GB, free: 67.66 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003695/2.007, allocations: 1.213 MB / 0.7801 GB, free: 66.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/2.007, allocations: 12.03 kB / 0.7801 GB, free: 66.4 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003216/2.007, allocations: 101.4 kB / 0.7802 GB, free: 66.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005245/2.008, allocations: 102.9 kB / 0.7803 GB, free: 66.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/2.01, allocations: 0.6678 MB / 0.7809 GB, free: 65.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.153e-05/2.01, allocations: 44.52 kB / 0.781 GB, free: 65.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/2.01, allocations: 55.05 kB / 0.781 GB, free: 65.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/2.012, allocations: 0.8705 MB / 0.7819 GB, free: 64.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/2.012, allocations: 3.938 kB / 0.7819 GB, free: 64.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/2.012, allocations: 29.58 kB / 0.7819 GB, free: 64.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.018e-05/2.012, allocations: 49.23 kB / 0.782 GB, free: 64.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001988/2.014, allocations: 0.7896 MB / 0.7827 GB, free: 63.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007399/2.022, allocations: 3.84 MB / 0.7865 GB, free: 59.53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/2.023, allocations: 487.9 kB / 0.7869 GB, free: 59.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003389/2.026, allocations: 1.914 MB / 0.7888 GB, free: 56.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/2.027, allocations: 38.56 kB / 0.7889 GB, free: 56.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.176e-06/2.027, allocations: 0 / 0.7889 GB, free: 56.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.004542/2.031, allocations: 1.485 MB / 0.7903 GB, free: 55.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/2.031, allocations: 140.5 kB / 0.7904 GB, free: 55.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/2.032, allocations: 0.6088 MB / 0.791 GB, free: 54.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-05/2.032, allocations: 37.7 kB / 0.7911 GB, free: 54.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002964/2.033, allocations: 457.4 kB / 0.7915 GB, free: 54.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/2.033, allocations: 153.9 kB / 0.7917 GB, free: 53.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-05/2.033, allocations: 16 kB / 0.7917 GB, free: 53.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/2.033, allocations: 346.8 kB / 0.792 GB, free: 53.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006281/2.034, allocations: 241.8 kB / 0.7922 GB, free: 53.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007658/2.034, allocations: 0.5533 MB / 0.7928 GB, free: 52.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007244/2.035, allocations: 329.8 kB / 0.7931 GB, free: 52.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/2.035, allocations: 4 kB / 0.7931 GB, free: 52.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002001/2.037, allocations: 0.8504 MB / 0.7939 GB, free: 51.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007604/2.038, allocations: 3.914 MB / 0.7977 GB, free: 47.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/2.038, allocations: 16 kB / 0.7978 GB, free: 47.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/2.039, allocations: 112.8 kB / 0.7979 GB, free: 47.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/2.042, allocations: 243.6 kB / 0.7981 GB, free: 46.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000972/2.043, allocations: 1.212 MB / 0.7993 GB, free: 45.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/2.044, allocations: 67.97 kB / 0.7993 GB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/2.044, allocations: 40 kB / 0.7994 GB, free: 45.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/2.044, allocations: 7.984 kB / 0.7994 GB, free: 45.44 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001894/2.046, allocations: 0.7913 MB / 0.8002 GB, free: 44.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/2.046, allocations: 8 kB / 0.8002 GB, free: 44.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/2.047, allocations: 124.9 kB / 0.8003 GB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/2.049, allocations: 223.7 kB / 0.8005 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004474/2.049, allocations: 0.5913 MB / 0.8011 GB, free: 43.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008677/2.05, allocations: 55.98 kB / 0.8011 GB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-05/2.05, allocations: 43.98 kB / 0.8012 GB, free: 43.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006283/2.051, allocations: 337.3 kB / 0.8015 GB, free: 43.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/2.051, allocations: 75.06 kB / 0.8016 GB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00217/2.053, allocations: 0.7511 MB / 0.8023 GB, free: 42.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/2.053, allocations: 8 kB / 0.8023 GB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/2.053, allocations: 3.938 kB / 0.8023 GB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/2.053, allocations: 3.984 kB / 0.8023 GB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003244/2.056, allocations: 1.426 MB / 0.8037 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/2.057, allocations: 0 / 0.8037 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/2.058, allocations: 147.9 kB / 0.8038 GB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007098/2.058, allocations: 88.77 kB / 0.8039 GB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.839e-05/2.059, allocations: 12 kB / 0.8039 GB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006849/2.059, allocations: 1.181 MB / 0.8051 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/2.059, allocations: 8.031 kB / 0.8051 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/2.061, allocations: 1.02 MB / 0.8061 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/2.062, allocations: 160.1 kB / 0.8063 GB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/2.062, allocations: 12 kB / 0.8063 GB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007527/2.063, allocations: 36.05 kB / 0.8063 GB, free: 38.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/2.063, allocations: 56.42 kB / 0.8064 GB, free: 38.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.117e-05/2.063, allocations: 23.98 kB / 0.8064 GB, free: 38.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008251/2.064, allocations: 479 kB / 0.8068 GB, free: 37.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.172e-06/2.064, allocations: 0 / 0.8068 GB, free: 37.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002687/2.067, allocations: 0.64 MB / 0.8075 GB, free: 36.94 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004322/2.071, allocations: 2.327 MB / 0.8097 GB, free: 34.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003566/2.074, allocations: 1.089 MB / 0.8108 GB, free: 33.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/2.075, allocations: 448 / 0.8108 GB, free: 33.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/2.076, allocations: 339 kB / 0.8111 GB, free: 33.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/2.078, allocations: 277.9 kB / 0.8114 GB, free: 32.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006943/2.085, allocations: 9.404 MB / 0.8206 GB, free: 23.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/2.086, allocations: 0.9916 MB / 0.8215 GB, free: 22.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007658/2.086, allocations: 307.2 kB / 0.8218 GB, free: 21.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.663e-06/2.086, allocations: 0 / 0.8218 GB, free: 21.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.752/5.839, allocations: 24.99 MB / 0.8462 GB, free: 85.87 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat