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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.03/2.03, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1137, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.209/1.323, allocations: 319.7 MB / 0.6136 GB, free: 62.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/1.323, allocations: 95.06 kB / 0.6136 GB, free: 62.68 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573/2.897, allocations: 280 MB / 0.887 GB, free: 57.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.294e-06/2.897, allocations: 0 / 0.887 GB, free: 57.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002008/2.897, allocations: 42.72 kB / 0.8871 GB, free: 57.89 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.008338/2.905, allocations: 1.965 MB / 0.889 GB, free: 57.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/2.905, allocations: 10.09 kB / 0.889 GB, free: 57.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009253/2.906, allocations: 162.1 kB / 0.8892 GB, free: 56.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/2.907, allocations: 176.1 kB / 0.8893 GB, free: 56.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004183/2.911, allocations: 1.087 MB / 0.8904 GB, free: 56.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/2.912, allocations: 80.45 kB / 0.8905 GB, free: 56.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004905/2.912, allocations: 98.95 kB / 0.8906 GB, free: 56.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004747/2.917, allocations: 1.614 MB / 0.8921 GB, free: 56.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.369e-05/2.917, allocations: 9.156 kB / 0.8922 GB, free: 56.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/2.917, allocations: 39.42 kB / 0.8922 GB, free: 56.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002204/2.918, allocations: 106.1 kB / 0.8923 GB, free: 56.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005094/2.923, allocations: 1.613 MB / 0.8939 GB, free: 56.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01782/2.941, allocations: 6.524 MB / 0.9002 GB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002589/2.943, allocations: 0.8909 MB / 0.9011 GB, free: 53.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006073/2.949, allocations: 2.728 MB / 0.9038 GB, free: 51.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/2.949, allocations: 42.06 kB / 0.9038 GB, free: 51.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.577e-06/2.949, allocations: 3.688 kB / 0.9038 GB, free: 51.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01444/2.964, allocations: 3.642 MB / 0.9074 GB, free: 50.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/2.964, allocations: 191.5 kB / 0.9076 GB, free: 50.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/2.966, allocations: 1.057 MB / 0.9086 GB, free: 50.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003606/2.967, allocations: 52.38 kB / 0.9086 GB, free: 50.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005765/2.967, allocations: 0.6578 MB / 0.9093 GB, free: 50.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005034/2.968, allocations: 320.2 kB / 0.9096 GB, free: 49.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/2.968, allocations: 32.25 kB / 0.9096 GB, free: 49.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/2.968, allocations: 369.3 kB / 0.91 GB, free: 49.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/2.97, allocations: 0.5443 MB / 0.9105 GB, free: 49.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/2.972, allocations: 1.026 MB / 0.9115 GB, free: 49.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001971/2.974, allocations: 0.6707 MB / 0.9122 GB, free: 49.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/2.974, allocations: 3.625 kB / 0.9122 GB, free: 49.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005359/2.979, allocations: 1.788 MB / 0.9139 GB, free: 48.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001398/2.98, allocations: 5.575 MB / 0.9193 GB, free: 43.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.536e-05/2.981, allocations: 18.19 kB / 0.9194 GB, free: 43.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006624/2.987, allocations: 0.659 MB / 0.92 GB, free: 43.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002252/2.99, allocations: 299.7 kB / 0.9203 GB, free: 43.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/2.992, allocations: 2.143 MB / 0.9224 GB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/2.995, allocations: 104 kB / 0.9225 GB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003469/2.995, allocations: 71.84 kB / 0.9226 GB, free: 41.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/2.995, allocations: 3.5 kB / 0.9226 GB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004905/3, allocations: 1.664 MB / 0.9242 GB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.267e-05/3, allocations: 14.88 kB / 0.9242 GB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005229/3.005, allocations: 0.4901 MB / 0.9247 GB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/3.008, allocations: 299.1 kB / 0.925 GB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/3.01, allocations: 1.973 MB / 0.9269 GB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/3.012, allocations: 104.3 kB / 0.927 GB, free: 39.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002247/3.012, allocations: 79.17 kB / 0.9271 GB, free: 39.83 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001226/3.013, allocations: 473 kB / 0.9275 GB, free: 39.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004351/3.014, allocations: 132.1 kB / 0.9276 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00489/3.019, allocations: 1.516 MB / 0.9291 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/3.019, allocations: 10.91 kB / 0.9291 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/3.019, allocations: 0 / 0.9291 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-05/3.019, allocations: 7.594 kB / 0.9291 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007709/3.027, allocations: 2.756 MB / 0.9318 GB, free: 39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/3.027, allocations: 3.969 kB / 0.9318 GB, free: 39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/3.028, allocations: 148.4 kB / 0.932 GB, free: 38.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004818/3.033, allocations: 0.6187 MB / 0.9326 GB, free: 38.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003161/3.033, allocations: 27.7 kB / 0.9326 GB, free: 38.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002288/3.036, allocations: 2.11 MB / 0.9347 GB, free: 37.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/3.036, allocations: 0 / 0.9347 GB, free: 37.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005724/3.041, allocations: 2.127 MB / 0.9367 GB, free: 36.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007388/3.042, allocations: 233 kB / 0.937 GB, free: 35.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005266/3.043, allocations: 27.69 kB / 0.937 GB, free: 35.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/3.044, allocations: 77.77 kB / 0.9371 GB, free: 35.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/3.044, allocations: 92.56 kB / 0.9372 GB, free: 35.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/3.045, allocations: 38.83 kB / 0.9372 GB, free: 35.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001684/3.046, allocations: 0.8035 MB / 0.938 GB, free: 35.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.72e-07/3.046, allocations: 0 / 0.938 GB, free: 35.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005036/3.051, allocations: 1.189 MB / 0.9391 GB, free: 35.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.008851/3.06, allocations: 3.94 MB / 0.943 GB, free: 33.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007242/3.068, allocations: 2.213 MB / 0.9451 GB, free: 32.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/3.068, allocations: 2.406 kB / 0.9452 GB, free: 32.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002847/3.07, allocations: 0.6972 MB / 0.9458 GB, free: 32.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004429/3.075, allocations: 0.4995 MB / 0.9463 GB, free: 32.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/3.089, allocations: 14.21 MB / 0.9602 GB, free: 35.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/3.09, allocations: 1.279 MB / 0.9614 GB, free: 35.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/3.092, allocations: 0.5337 MB / 0.962 GB, free: 34.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.412e-06/3.092, allocations: 0 / 0.962 GB, free: 34.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.643/6.735, allocations: 49.03 MB / 1.01 GB, free: 292 kB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat