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.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.137/2.137, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003919/0.0003917, allocations: 15.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 44.5 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9999/1.105, allocations: 317.3 MB / 0.6111 GB, free: 65.14 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/1.105, allocations: 88.41 kB / 0.6112 GB, free: 65.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7469/1.852, allocations: 136.2 MB / 0.7442 GB, free: 102.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.852, allocations: 0 / 0.7442 GB, free: 102.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.688e-05/1.853, allocations: 16 kB / 0.7443 GB, free: 102.7 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003461/1.856, allocations: 1.125 MB / 0.7454 GB, free: 101.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/1.856, allocations: 8.469 kB / 0.7454 GB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002883/1.856, allocations: 98.42 kB / 0.7455 GB, free: 101.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004141/1.857, allocations: 83.11 kB / 0.7455 GB, free: 101.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/1.859, allocations: 0.5865 MB / 0.7461 GB, free: 100.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.338e-05/1.859, allocations: 40.91 kB / 0.7461 GB, free: 100.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/1.859, allocations: 44 kB / 0.7462 GB, free: 100.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/1.86, allocations: 0.7345 MB / 0.7469 GB, free: 99.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/1.861, allocations: 0 / 0.7469 GB, free: 99.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/1.861, allocations: 27.84 kB / 0.7469 GB, free: 99.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.131e-05/1.861, allocations: 40.97 kB / 0.747 GB, free: 99.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/1.862, allocations: 0.6869 MB / 0.7476 GB, free: 99.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006349/1.869, allocations: 2.861 MB / 0.7504 GB, free: 96.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/1.87, allocations: 468.5 kB / 0.7509 GB, free: 95.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003414/1.87, allocations: 344.5 kB / 0.7512 GB, free: 95.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/1.87, allocations: 46.94 kB / 0.7513 GB, free: 95.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.597e-06/1.87, allocations: 0 / 0.7513 GB, free: 95.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.009016/1.879, allocations: 2.281 MB / 0.7535 GB, free: 92.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/1.88, allocations: 81.67 kB / 0.7536 GB, free: 92.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/1.881, allocations: 0.5422 MB / 0.7541 GB, free: 92.17 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001932/1.881, allocations: 41.69 kB / 0.7541 GB, free: 92.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/1.881, allocations: 362.7 kB / 0.7545 GB, free: 91.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/1.881, allocations: 205 kB / 0.7547 GB, free: 91.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/1.881, allocations: 16 kB / 0.7547 GB, free: 91.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.85e-05/1.882, allocations: 342.8 kB / 0.755 GB, free: 91.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007621/1.882, allocations: 281.8 kB / 0.7553 GB, free: 90.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008057/1.883, allocations: 453.1 kB / 0.7557 GB, free: 90.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008057/1.884, allocations: 335.1 kB / 0.756 GB, free: 90.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/1.884, allocations: 0 / 0.756 GB, free: 90.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00222/1.886, allocations: 0.884 MB / 0.7569 GB, free: 89.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003893/1.887, allocations: 1.749 MB / 0.7586 GB, free: 87.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/1.887, allocations: 8 kB / 0.7586 GB, free: 87.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003405/1.89, allocations: 352.5 kB / 0.759 GB, free: 86.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/1.891, allocations: 151.7 kB / 0.7591 GB, free: 86.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/1.893, allocations: 0.8137 MB / 0.7599 GB, free: 85.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/1.894, allocations: 52.03 kB / 0.7599 GB, free: 85.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/1.894, allocations: 32.08 kB / 0.76 GB, free: 85.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/1.894, allocations: 7.938 kB / 0.76 GB, free: 85.89 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002068/1.896, allocations: 0.7811 MB / 0.7607 GB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/1.896, allocations: 4 kB / 0.7607 GB, free: 85.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/1.899, allocations: 225.2 kB / 0.761 GB, free: 84.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/1.9, allocations: 159.7 kB / 0.7611 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008197/1.901, allocations: 0.6851 MB / 0.7618 GB, free: 84.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008283/1.902, allocations: 51.94 kB / 0.7618 GB, free: 83.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.969e-05/1.902, allocations: 31.98 kB / 0.7619 GB, free: 83.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],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 (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006576/1.902, allocations: 321.4 kB / 0.7622 GB, free: 83.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/1.903, allocations: 71.16 kB / 0.7622 GB, free: 83.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002303/1.905, allocations: 0.8493 MB / 0.7631 GB, free: 82.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/1.905, allocations: 4 kB / 0.7631 GB, free: 82.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/1.905, allocations: 0 / 0.7631 GB, free: 82.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/1.905, allocations: 3.984 kB / 0.7631 GB, free: 82.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004161/1.909, allocations: 1.66 MB / 0.7647 GB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/1.909, allocations: 0 / 0.7647 GB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009418/1.91, allocations: 111.8 kB / 0.7648 GB, free: 80.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002416/1.913, allocations: 336.6 kB / 0.7651 GB, free: 80.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/1.913, allocations: 23.98 kB / 0.7651 GB, free: 80.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/1.914, allocations: 0.802 MB / 0.7659 GB, free: 79.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.914, allocations: 0 / 0.7659 GB, free: 79.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/1.917, allocations: 1.259 MB / 0.7672 GB, free: 78.37 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/1.917, allocations: 156.2 kB / 0.7673 GB, free: 78.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/1.917, allocations: 15.98 kB / 0.7673 GB, free: 78.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008608/1.918, allocations: 39.83 kB / 0.7674 GB, free: 78.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/1.919, allocations: 56.42 kB / 0.7674 GB, free: 78.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-05/1.919, allocations: 31.97 kB / 0.7674 GB, free: 78.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000754/1.919, allocations: 439 kB / 0.7679 GB, free: 77.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.919, allocations: 0 / 0.7679 GB, free: 77.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002453/1.922, allocations: 0.5854 MB / 0.7684 GB, free: 77.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004664/1.927, allocations: 2.43 MB / 0.7708 GB, free: 74.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003303/1.93, allocations: 1.121 MB / 0.7719 GB, free: 73.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/1.93, allocations: 3.938 kB / 0.7719 GB, free: 73.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/1.931, allocations: 375 kB / 0.7723 GB, free: 73.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/1.934, allocations: 333.4 kB / 0.7726 GB, free: 72.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005817/1.94, allocations: 5.442 MB / 0.7779 GB, free: 67.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004953/1.94, allocations: 0.9754 MB / 0.7788 GB, free: 66.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006831/1.941, allocations: 259.3 kB / 0.7791 GB, free: 65.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/1.941, allocations: 0 / 0.7791 GB, free: 65.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.261/5.202, allocations: 20.79 MB / 0.7994 GB, free: 45.2 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.TwoTanks_res.mat does not exist to compare? outputFormat=mat