Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.623/1.623, allocations: 171.1 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003922/0.0003923, allocations: 8 kB / 233.4 MB, free: 172 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08782, allocations: 38.77 MB / 272.1 MB, free: 9.32 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.112/1.2, allocations: 318.4 MB / 0.5767 GB, free: 96.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/1.2, allocations: 95.92 kB / 0.5768 GB, free: 96.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8035/2.004, allocations: 165.2 MB / 0.7381 GB, free: 74.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.875e-06/2.004, allocations: 0 / 0.7381 GB, free: 74.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.923e-05/2.004, allocations: 29.73 kB / 0.7381 GB, free: 74.95 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.004116/2.008, allocations: 1.209 MB / 0.7393 GB, free: 74.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/2.008, allocations: 10.5 kB / 0.7393 GB, free: 74.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004512/2.009, allocations: 101.6 kB / 0.7394 GB, free: 74.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005687/2.009, allocations: 104.2 kB / 0.7395 GB, free: 74.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002295/2.011, allocations: 0.6604 MB / 0.7402 GB, free: 73.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.971e-05/2.012, allocations: 46.19 kB / 0.7402 GB, free: 73.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/2.012, allocations: 64.23 kB / 0.7403 GB, free: 73.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/2.014, allocations: 0.8692 MB / 0.7411 GB, free: 73.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.471e-05/2.014, allocations: 7.344 kB / 0.7411 GB, free: 73.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/2.014, allocations: 30.02 kB / 0.7412 GB, free: 73.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.206e-05/2.014, allocations: 42.75 kB / 0.7412 GB, free: 73.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/2.016, allocations: 0.7895 MB / 0.742 GB, free: 73.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008055/2.024, allocations: 3.826 MB / 0.7457 GB, free: 71.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/2.026, allocations: 0.4916 MB / 0.7462 GB, free: 70.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003752/2.029, allocations: 1.915 MB / 0.748 GB, free: 69.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/2.03, allocations: 41.97 kB / 0.7481 GB, free: 69.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.106e-06/2.03, allocations: 0 / 0.7481 GB, free: 69.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.004786/2.034, allocations: 1.484 MB / 0.7495 GB, free: 68.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/2.034, allocations: 139.9 kB / 0.7497 GB, free: 68.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/2.036, allocations: 0.6089 MB / 0.7503 GB, free: 68.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001531/2.036, allocations: 32.86 kB / 0.7503 GB, free: 68.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003633/2.036, allocations: 444.9 kB / 0.7507 GB, free: 67.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/2.036, allocations: 150.9 kB / 0.7509 GB, free: 67.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.568e-05/2.036, allocations: 15.62 kB / 0.7509 GB, free: 67.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/2.037, allocations: 379.4 kB / 0.7512 GB, free: 67.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006847/2.037, allocations: 247.6 kB / 0.7515 GB, free: 67.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008275/2.038, allocations: 0.5616 MB / 0.752 GB, free: 66.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007826/2.039, allocations: 318.5 kB / 0.7523 GB, free: 66.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.398e-05/2.039, allocations: 5.562 kB / 0.7523 GB, free: 66.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002211/2.041, allocations: 0.8892 MB / 0.7532 GB, free: 66.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008431/2.042, allocations: 3.916 MB / 0.757 GB, free: 61.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/2.042, allocations: 10.88 kB / 0.757 GB, free: 61.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/2.044, allocations: 114.8 kB / 0.7571 GB, free: 61.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002182/2.046, allocations: 248.8 kB / 0.7574 GB, free: 61.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000962/2.047, allocations: 1.218 MB / 0.7586 GB, free: 60.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/2.048, allocations: 56.11 kB / 0.7586 GB, free: 60.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/2.048, allocations: 44.62 kB / 0.7587 GB, free: 60.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/2.048, allocations: 7.438 kB / 0.7587 GB, free: 60.76 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001875/2.05, allocations: 0.7864 MB / 0.7594 GB, free: 60.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/2.05, allocations: 14.03 kB / 0.7595 GB, free: 60.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/2.051, allocations: 126.8 kB / 0.7596 GB, free: 60.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/2.053, allocations: 216.1 kB / 0.7598 GB, free: 60.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004251/2.053, allocations: 0.5989 MB / 0.7604 GB, free: 59.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009972/2.054, allocations: 64.19 kB / 0.7604 GB, free: 59.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.293e-05/2.054, allocations: 38.38 kB / 0.7605 GB, free: 59.85 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.0006093/2.055, allocations: 339 kB / 0.7608 GB, free: 59.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/2.055, allocations: 68.81 kB / 0.7609 GB, free: 59.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002765/2.058, allocations: 0.7569 MB / 0.7616 GB, free: 59.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/2.058, allocations: 6.656 kB / 0.7616 GB, free: 59.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/2.058, allocations: 3.938 kB / 0.7616 GB, free: 59.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/2.058, allocations: 3.938 kB / 0.7616 GB, free: 59.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00426/2.062, allocations: 1.421 MB / 0.763 GB, free: 58.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/2.062, allocations: 3.875 kB / 0.763 GB, free: 58.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/2.064, allocations: 149.1 kB / 0.7631 GB, free: 58.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008848/2.065, allocations: 81.98 kB / 0.7632 GB, free: 58.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.9e-05/2.065, allocations: 18.38 kB / 0.7632 GB, free: 58.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008619/2.066, allocations: 1.181 MB / 0.7644 GB, free: 57.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/2.066, allocations: 2.953 kB / 0.7644 GB, free: 57.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/2.069, allocations: 1.013 MB / 0.7654 GB, free: 56.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/2.069, allocations: 161.1 kB / 0.7655 GB, free: 56.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002218/2.069, allocations: 19.14 kB / 0.7656 GB, free: 56.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009904/2.07, allocations: 43.77 kB / 0.7656 GB, free: 56.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/2.07, allocations: 52.62 kB / 0.7657 GB, free: 56.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.205e-05/2.07, allocations: 23.16 kB / 0.7657 GB, free: 56.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001134/2.072, allocations: 477.2 kB / 0.7661 GB, free: 56.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.072, allocations: 0 / 0.7661 GB, free: 56.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003702/2.075, allocations: 0.6399 MB / 0.7668 GB, free: 56.25 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.006043/2.081, allocations: 2.33 MB / 0.769 GB, free: 54.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004689/2.086, allocations: 1.09 MB / 0.7701 GB, free: 54.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/2.086, allocations: 3.75 kB / 0.7701 GB, free: 54.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/2.088, allocations: 338.7 kB / 0.7704 GB, free: 54.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003085/2.091, allocations: 289 kB / 0.7707 GB, free: 54.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009028/2.1, allocations: 9.337 MB / 0.7798 GB, free: 45.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007024/2.101, allocations: 1.002 MB / 0.7808 GB, free: 45.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002563/2.103, allocations: 335.7 kB / 0.7811 GB, free: 45.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00076/2.104, allocations: 292 kB / 0.7814 GB, free: 44.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.443e-06/2.104, allocations: 0 / 0.7814 GB, free: 44.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07143/2.176, allocations: 25.68 MB / 0.8065 GB, free: 22.85 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002071/2.176, allocations: 280.4 kB / 0.8067 GB, free: 22.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.761/5.937, allocations: 3.906 kB / 0.8067 GB, free: 22.47 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat