Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.683/1.683, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004882/0.0004884, allocations: 8 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.08801, allocations: 38.78 MB / 272.1 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.148/1.236, allocations: 318.4 MB / 0.5767 GB, free: 98.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003475/1.237, allocations: 96.42 kB / 0.5768 GB, free: 98.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8133/2.05, allocations: 165.2 MB / 0.7381 GB, free: 69.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.404e-06/2.05, allocations: 0 / 0.7381 GB, free: 69.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.234e-05/2.05, allocations: 23.58 kB / 0.7381 GB, free: 69.55 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004087/2.054, allocations: 1.204 MB / 0.7393 GB, free: 68.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/2.055, allocations: 11.16 kB / 0.7393 GB, free: 68.92 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003842/2.055, allocations: 106.8 kB / 0.7394 GB, free: 68.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005777/2.056, allocations: 104.4 kB / 0.7395 GB, free: 68.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/2.058, allocations: 0.6689 MB / 0.7401 GB, free: 68.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.108e-05/2.058, allocations: 43.72 kB / 0.7402 GB, free: 68.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/2.058, allocations: 56.08 kB / 0.7402 GB, free: 68.58 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002101/2.06, allocations: 0.8772 MB / 0.7411 GB, free: 68.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/2.06, allocations: 0 / 0.7411 GB, free: 68.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/2.06, allocations: 28.09 kB / 0.7411 GB, free: 68.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.312e-05/2.06, allocations: 46.77 kB / 0.7412 GB, free: 68.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002035/2.062, allocations: 0.7888 MB / 0.7419 GB, free: 68.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007518/2.07, allocations: 3.829 MB / 0.7457 GB, free: 66.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/2.071, allocations: 487.8 kB / 0.7461 GB, free: 66.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003428/2.075, allocations: 1.922 MB / 0.748 GB, free: 64.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/2.075, allocations: 39.38 kB / 0.7481 GB, free: 64.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.467e-06/2.075, allocations: 0 / 0.7481 GB, free: 64.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.004716/2.08, allocations: 1.493 MB / 0.7495 GB, free: 64.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/2.08, allocations: 132.2 kB / 0.7496 GB, free: 64.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/2.081, allocations: 0.6178 MB / 0.7502 GB, free: 64.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/2.081, allocations: 39.16 kB / 0.7503 GB, free: 64.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/2.081, allocations: 447.9 kB / 0.7507 GB, free: 63.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/2.082, allocations: 158.6 kB / 0.7509 GB, free: 63.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-05/2.082, allocations: 18.88 kB / 0.7509 GB, free: 63.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.711e-05/2.082, allocations: 345.3 kB / 0.7512 GB, free: 63.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/2.082, allocations: 243.7 kB / 0.7514 GB, free: 63.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007782/2.083, allocations: 0.5511 MB / 0.752 GB, free: 63.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/2.084, allocations: 330.8 kB / 0.7523 GB, free: 63.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/2.084, allocations: 3.938 kB / 0.7523 GB, free: 63.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002133/2.086, allocations: 0.8404 MB / 0.7531 GB, free: 62.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008165/2.087, allocations: 3.924 MB / 0.757 GB, free: 58.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/2.087, allocations: 10.88 kB / 0.757 GB, free: 58.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/2.088, allocations: 118.2 kB / 0.7571 GB, free: 58.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002187/2.09, allocations: 239 kB / 0.7573 GB, free: 58.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009806/2.091, allocations: 1.218 MB / 0.7585 GB, free: 57.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/2.093, allocations: 63.59 kB / 0.7586 GB, free: 57.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/2.093, allocations: 44.67 kB / 0.7586 GB, free: 57.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/2.093, allocations: 3.844 kB / 0.7586 GB, free: 57.75 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001904/2.095, allocations: 0.7886 MB / 0.7594 GB, free: 57.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/2.095, allocations: 12.98 kB / 0.7594 GB, free: 57.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/2.096, allocations: 120.9 kB / 0.7595 GB, free: 57.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/2.098, allocations: 225.1 kB / 0.7597 GB, free: 57.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004228/2.098, allocations: 0.5921 MB / 0.7603 GB, free: 57.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008375/2.099, allocations: 58.95 kB / 0.7603 GB, free: 57.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.463e-05/2.099, allocations: 45.52 kB / 0.7604 GB, free: 57.2 MB / 362.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.0006512/2.1, allocations: 339.5 kB / 0.7607 GB, free: 57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/2.1, allocations: 68.84 kB / 0.7608 GB, free: 56.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/2.102, allocations: 0.7424 MB / 0.7615 GB, free: 56.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/2.102, allocations: 8.938 kB / 0.7615 GB, free: 56.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/2.102, allocations: 3.625 kB / 0.7615 GB, free: 56.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/2.102, allocations: 3.562 kB / 0.7615 GB, free: 56.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003443/2.106, allocations: 1.429 MB / 0.7629 GB, free: 56.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/2.106, allocations: 3.844 kB / 0.7629 GB, free: 56.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/2.107, allocations: 144.6 kB / 0.7631 GB, free: 56.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000707/2.108, allocations: 87.11 kB / 0.7631 GB, free: 56.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.013e-05/2.108, allocations: 17.94 kB / 0.7632 GB, free: 56.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000702/2.108, allocations: 1.183 MB / 0.7643 GB, free: 55.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/2.108, allocations: 10.17 kB / 0.7643 GB, free: 55.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/2.111, allocations: 1.014 MB / 0.7653 GB, free: 55.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003084/2.111, allocations: 163 kB / 0.7655 GB, free: 55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001812/2.111, allocations: 14.73 kB / 0.7655 GB, free: 55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007425/2.112, allocations: 43.58 kB / 0.7655 GB, free: 54.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/2.112, allocations: 49.61 kB / 0.7656 GB, free: 54.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.11e-05/2.112, allocations: 26.06 kB / 0.7656 GB, free: 54.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008308/2.113, allocations: 474.8 kB / 0.766 GB, free: 54.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/2.113, allocations: 0 / 0.766 GB, free: 54.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002775/2.116, allocations: 0.6369 MB / 0.7667 GB, free: 54.8 MB / 362.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.004378/2.12, allocations: 2.319 MB / 0.7689 GB, free: 53.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003675/2.124, allocations: 1.096 MB / 0.77 GB, free: 53.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/2.124, allocations: 0 / 0.77 GB, free: 53.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/2.125, allocations: 340.8 kB / 0.7703 GB, free: 53.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/2.127, allocations: 287.8 kB / 0.7706 GB, free: 53.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007067/2.134, allocations: 9.381 MB / 0.7798 GB, free: 45.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/2.135, allocations: 0.9977 MB / 0.7807 GB, free: 44.87 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000745/2.136, allocations: 302.7 kB / 0.781 GB, free: 44.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.412e-06/2.136, allocations: 0 / 0.781 GB, free: 44.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.366/5.502, allocations: 25.03 MB / 0.8055 GB, free: 43.38 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat