Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 194.9 MB / 211.1 MB, free: 8.578 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.0004088, allocations: 8 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3087, allocations: 44.5 MB / 308.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.324, allocations: 323.7 MB / 0.6175 GB, free: 95 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/1.324, allocations: 95.02 kB / 0.6176 GB, free: 94.96 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8762/2.201, allocations: 165.2 MB / 0.7789 GB, free: 99.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.295e-06/2.201, allocations: 0 / 0.7789 GB, free: 99.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.933e-05/2.201, allocations: 23.47 kB / 0.7789 GB, free: 99.71 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.003825/2.205, allocations: 1.209 MB / 0.7801 GB, free: 98.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/2.205, allocations: 11.09 kB / 0.7801 GB, free: 98.79 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003922/2.205, allocations: 101.1 kB / 0.7802 GB, free: 98.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005173/2.206, allocations: 98.67 kB / 0.7803 GB, free: 98.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00219/2.208, allocations: 0.6718 MB / 0.781 GB, free: 98.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/2.208, allocations: 46.41 kB / 0.781 GB, free: 98.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/2.208, allocations: 58.08 kB / 0.7811 GB, free: 98.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002047/2.21, allocations: 0.873 MB / 0.7819 GB, free: 97.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/2.21, allocations: 3.938 kB / 0.7819 GB, free: 97.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/2.21, allocations: 27.97 kB / 0.7819 GB, free: 97.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-05/2.211, allocations: 41.08 kB / 0.782 GB, free: 97.51 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/2.213, allocations: 0.7947 MB / 0.7828 GB, free: 97.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007587/2.22, allocations: 3.836 MB / 0.7865 GB, free: 93.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/2.221, allocations: 487.5 kB / 0.787 GB, free: 93.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003468/2.225, allocations: 1.919 MB / 0.7888 GB, free: 91.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/2.225, allocations: 34.31 kB / 0.7889 GB, free: 91.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.326e-06/2.225, allocations: 0 / 0.7889 GB, free: 91.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.004754/2.23, allocations: 1.487 MB / 0.7903 GB, free: 90.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/2.23, allocations: 136.3 kB / 0.7905 GB, free: 90.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/2.231, allocations: 0.6183 MB / 0.7911 GB, free: 90.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/2.231, allocations: 37.7 kB / 0.7911 GB, free: 90.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003652/2.232, allocations: 430.7 kB / 0.7915 GB, free: 89.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/2.232, allocations: 153.8 kB / 0.7917 GB, free: 89.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-05/2.232, allocations: 16 kB / 0.7917 GB, free: 89.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/2.232, allocations: 382.8 kB / 0.792 GB, free: 89.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006502/2.233, allocations: 243.8 kB / 0.7923 GB, free: 88.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000773/2.233, allocations: 0.5528 MB / 0.7928 GB, free: 88.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007348/2.234, allocations: 328.6 kB / 0.7931 GB, free: 87.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-06/2.234, allocations: 4 kB / 0.7931 GB, free: 87.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002237/2.236, allocations: 0.8892 MB / 0.794 GB, free: 87.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008141/2.237, allocations: 3.925 MB / 0.7978 GB, free: 82.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/2.237, allocations: 12 kB / 0.7978 GB, free: 82.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/2.239, allocations: 120.7 kB / 0.798 GB, free: 82.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00221/2.241, allocations: 243.6 kB / 0.7982 GB, free: 82.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/2.242, allocations: 1.205 MB / 0.7994 GB, free: 81.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/2.243, allocations: 63.89 kB / 0.7994 GB, free: 81.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/2.243, allocations: 39.98 kB / 0.7995 GB, free: 81.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/2.243, allocations: 4 kB / 0.7995 GB, free: 81.06 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001964/2.245, allocations: 0.7951 MB / 0.8002 GB, free: 80.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/2.246, allocations: 12 kB / 0.8003 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001161/2.247, allocations: 112.8 kB / 0.8004 GB, free: 80.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/2.248, allocations: 227.7 kB / 0.8006 GB, free: 79.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004719/2.249, allocations: 0.6028 MB / 0.8012 GB, free: 79.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/2.25, allocations: 59.16 kB / 0.8012 GB, free: 79.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/2.25, allocations: 44 kB / 0.8013 GB, free: 79.19 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.0006619/2.251, allocations: 342.8 kB / 0.8016 GB, free: 78.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/2.251, allocations: 75.06 kB / 0.8017 GB, free: 78.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/2.253, allocations: 0.7449 MB / 0.8024 GB, free: 78.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/2.253, allocations: 15.98 kB / 0.8024 GB, free: 78.01 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/2.253, allocations: 7.891 kB / 0.8024 GB, free: 78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/2.253, allocations: 0 / 0.8024 GB, free: 78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003456/2.257, allocations: 1.426 MB / 0.8038 GB, free: 76.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/2.257, allocations: 3.953 kB / 0.8038 GB, free: 76.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/2.258, allocations: 147.9 kB / 0.8039 GB, free: 76.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007406/2.259, allocations: 88.78 kB / 0.804 GB, free: 76.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/2.259, allocations: 15.98 kB / 0.804 GB, free: 76.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007717/2.26, allocations: 1.181 MB / 0.8052 GB, free: 75.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/2.26, allocations: 4.031 kB / 0.8052 GB, free: 75.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/2.262, allocations: 1.008 MB / 0.8062 GB, free: 73.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003572/2.263, allocations: 160.1 kB / 0.8063 GB, free: 73.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/2.263, allocations: 16.06 kB / 0.8064 GB, free: 73.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007692/2.264, allocations: 39.91 kB / 0.8064 GB, free: 73.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/2.264, allocations: 48.48 kB / 0.8064 GB, free: 73.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.377e-05/2.264, allocations: 23.98 kB / 0.8065 GB, free: 73.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008195/2.265, allocations: 483 kB / 0.8069 GB, free: 73.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/2.265, allocations: 0 / 0.8069 GB, free: 73.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002721/2.267, allocations: 0.6284 MB / 0.8075 GB, free: 72.58 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.004386/2.272, allocations: 2.333 MB / 0.8098 GB, free: 70.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003577/2.275, allocations: 1.084 MB / 0.8109 GB, free: 69.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/2.275, allocations: 4.125 kB / 0.8109 GB, free: 69.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/2.277, allocations: 339 kB / 0.8112 GB, free: 68.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00245/2.279, allocations: 291.2 kB / 0.8115 GB, free: 68.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007398/2.287, allocations: 9.348 MB / 0.8206 GB, free: 58.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005407/2.287, allocations: 0.9994 MB / 0.8216 GB, free: 57.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00199/2.289, allocations: 329 kB / 0.8219 GB, free: 57.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006312/2.29, allocations: 291.3 kB / 0.8222 GB, free: 57.36 MB / 410.7 MB Notification: Performance of SimCode: time 9.32e-07/2.29, allocations: 0 / 0.8222 GB, free: 57.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07531/2.365, allocations: 25.68 MB / 0.8473 GB, free: 31.7 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002822/2.365, allocations: 272.9 kB / 0.8475 GB, free: 31.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.923/6.289, allocations: 0 / 0.8475 GB, free: 31.33 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat