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.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.891/1.891, allocations: 194.8 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004784/0.0004784, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09524, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9763/1.072, allocations: 319.4 MB / 0.6132 GB, free: 63.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003285/1.072, allocations: 99.03 kB / 0.6133 GB, free: 63.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9396/2.012, allocations: 190.8 MB / 0.7996 GB, free: 46.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.445e-06/2.012, allocations: 0 / 0.7996 GB, free: 46.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.117e-05/2.012, allocations: 23.94 kB / 0.7997 GB, free: 46.22 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004648/2.016, allocations: 1.418 MB / 0.801 GB, free: 44.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/2.017, allocations: 12.03 kB / 0.8011 GB, free: 44.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003965/2.017, allocations: 114.5 kB / 0.8012 GB, free: 44.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005464/2.017, allocations: 110.8 kB / 0.8013 GB, free: 44.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002475/2.02, allocations: 0.7724 MB / 0.802 GB, free: 43.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.465e-05/2.02, allocations: 49.3 kB / 0.8021 GB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001811/2.02, allocations: 59.98 kB / 0.8021 GB, free: 43.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/2.023, allocations: 1.062 MB / 0.8032 GB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/2.023, allocations: 7.984 kB / 0.8032 GB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001439/2.023, allocations: 27.98 kB / 0.8032 GB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/2.023, allocations: 61.28 kB / 0.8033 GB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/2.026, allocations: 1.008 MB / 0.8042 GB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01066/2.036, allocations: 4.408 MB / 0.8086 GB, free: 36.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/2.038, allocations: 0.5363 MB / 0.8091 GB, free: 36.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004701/2.043, allocations: 1.915 MB / 0.8109 GB, free: 34.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/2.043, allocations: 38.89 kB / 0.811 GB, free: 33.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 4.389e-06/2.043, allocations: 0 / 0.811 GB, free: 33.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.009704/2.052, allocations: 1.879 MB / 0.8128 GB, free: 31.99 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.029e-05/2.053, allocations: 162.2 kB / 0.813 GB, free: 31.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/2.055, allocations: 0.7386 MB / 0.8137 GB, free: 31.05 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002255/2.055, allocations: 33.7 kB / 0.8137 GB, free: 31.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005578/2.056, allocations: 0.5047 MB / 0.8142 GB, free: 30.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/2.056, allocations: 165.7 kB / 0.8144 GB, free: 30.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/2.056, allocations: 20 kB / 0.8144 GB, free: 30.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/2.056, allocations: 350.8 kB / 0.8147 GB, free: 29.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/2.057, allocations: 301.8 kB / 0.815 GB, free: 29.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/2.059, allocations: 0.6599 MB / 0.8157 GB, free: 28.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/2.06, allocations: 389.9 kB / 0.816 GB, free: 28.47 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/2.06, allocations: 8 kB / 0.816 GB, free: 28.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003614/2.064, allocations: 1.047 MB / 0.8171 GB, free: 27.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001098/2.065, allocations: 4.45 MB / 0.8214 GB, free: 22.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.563e-05/2.065, allocations: 11.94 kB / 0.8214 GB, free: 22.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004497/2.07, allocations: 321.4 kB / 0.8217 GB, free: 22.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/2.071, allocations: 187.7 kB / 0.8219 GB, free: 22.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/2.073, allocations: 1.335 MB / 0.8232 GB, free: 20.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/2.075, allocations: 64 kB / 0.8233 GB, free: 20.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001551/2.076, allocations: 47.98 kB / 0.8233 GB, free: 20.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/2.076, allocations: 4.938 kB / 0.8233 GB, free: 20.59 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003351/2.079, allocations: 0.9827 MB / 0.8243 GB, free: 19.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/2.079, allocations: 12.88 kB / 0.8243 GB, free: 19.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003885/2.083, allocations: 277.4 kB / 0.8246 GB, free: 19.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/2.085, allocations: 191.7 kB / 0.8247 GB, free: 19.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/2.087, allocations: 1.276 MB / 0.826 GB, free: 17.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/2.088, allocations: 71.94 kB / 0.8261 GB, free: 17.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/2.088, allocations: 43.98 kB / 0.8261 GB, free: 17.68 MB / 410.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 () * Number of clocked 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.0009388/2.089, allocations: 373.1 kB / 0.8265 GB, free: 17.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003454/2.09, allocations: 90.97 kB / 0.8265 GB, free: 17.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/2.093, allocations: 0.7681 MB / 0.8273 GB, free: 16.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/2.093, allocations: 4 kB / 0.8273 GB, free: 16.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/2.093, allocations: 7.938 kB / 0.8273 GB, free: 16.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/2.093, allocations: 7.922 kB / 0.8273 GB, free: 16.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005205/2.099, allocations: 1.544 MB / 0.8288 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/2.099, allocations: 4.031 kB / 0.8288 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009011/2.1, allocations: 79.89 kB / 0.8289 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003206/2.103, allocations: 281.4 kB / 0.8292 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/2.103, allocations: 15.95 kB / 0.8292 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/2.105, allocations: 1.316 MB / 0.8305 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/2.105, allocations: 0 / 0.8305 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003399/2.108, allocations: 1.091 MB / 0.8315 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005186/2.109, allocations: 187.9 kB / 0.8317 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003201/2.109, allocations: 15.95 kB / 0.8317 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/2.11, allocations: 35.97 kB / 0.8318 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/2.111, allocations: 48.36 kB / 0.8318 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.093e-05/2.111, allocations: 27.98 kB / 0.8318 GB, free: 11.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001452/2.112, allocations: 0.5654 MB / 0.8324 GB, free: 11.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/2.112, allocations: 0 / 0.8324 GB, free: 11.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004661/2.117, allocations: 0.8 MB / 0.8332 GB, free: 10.23 MB / 410.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]) * Number of clocked states: 0 () * 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.005486/2.122, allocations: 2.481 MB / 0.8356 GB, free: 7.719 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00391/2.126, allocations: 1.24 MB / 0.8368 GB, free: 6.484 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/2.126, allocations: 0 / 0.8368 GB, free: 6.484 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/2.128, allocations: 358.9 kB / 0.8371 GB, free: 6.129 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/2.13, allocations: 308.9 kB / 0.8374 GB, free: 5.824 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3068/2.437, allocations: 10.68 MB / 0.8479 GB, free: 71.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007275/2.438, allocations: 1.05 MB / 0.8489 GB, free: 70.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008744/2.439, allocations: 333.5 kB / 0.8492 GB, free: 70.46 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/2.439, allocations: 0 / 0.8492 GB, free: 70.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.771/6.209, allocations: 28.97 MB / 0.8775 GB, free: 69.72 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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat