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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.668/1.668, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003583, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08338/0.08378, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.329/1.413, allocations: 314.4 MB / 0.5728 GB, free: 99.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004236/1.413, allocations: 95.64 kB / 0.5728 GB, free: 99.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.26/2.673, allocations: 280 MB / 0.8463 GB, free: 8.277 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.064e-06/2.673, allocations: 0 / 0.8463 GB, free: 8.277 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001575/2.673, allocations: 39.98 kB / 0.8463 GB, free: 8.238 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007315/2.68, allocations: 1.962 MB / 0.8482 GB, free: 6.219 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/2.68, allocations: 12.03 kB / 0.8482 GB, free: 6.207 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000778/2.681, allocations: 156.3 kB / 0.8484 GB, free: 6.047 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009682/2.682, allocations: 174.1 kB / 0.8485 GB, free: 5.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004065/2.686, allocations: 1.097 MB / 0.8496 GB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/2.687, allocations: 77.97 kB / 0.8497 GB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004184/2.687, allocations: 91.98 kB / 0.8498 GB, free: 4.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004349/2.691, allocations: 1.631 MB / 0.8514 GB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.482e-05/2.691, allocations: 0 / 0.8514 GB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/2.692, allocations: 43.97 kB / 0.8514 GB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002091/2.692, allocations: 97.94 kB / 0.8515 GB, free: 2.707 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00437/2.696, allocations: 1.616 MB / 0.8531 GB, free: 1.094 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.292/2.988, allocations: 6.517 MB / 0.8595 GB, free: 36.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/2.991, allocations: 0.899 MB / 0.8603 GB, free: 36.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005946/2.997, allocations: 2.73 MB / 0.863 GB, free: 35.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/2.997, allocations: 41.78 kB / 0.863 GB, free: 35.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 4.078e-06/2.997, allocations: 0 / 0.863 GB, free: 35.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.01457/3.011, allocations: 3.645 MB / 0.8666 GB, free: 34.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/3.012, allocations: 191.6 kB / 0.8668 GB, free: 34.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002431/3.014, allocations: 1.051 MB / 0.8678 GB, free: 33.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003754/3.014, allocations: 51.56 kB / 0.8679 GB, free: 33.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006156/3.015, allocations: 0.6568 MB / 0.8685 GB, free: 33.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005079/3.016, allocations: 319.2 kB / 0.8688 GB, free: 33.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/3.016, allocations: 27.91 kB / 0.8688 GB, free: 33.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/3.016, allocations: 373.3 kB / 0.8692 GB, free: 33.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/3.018, allocations: 0.5444 MB / 0.8697 GB, free: 33.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001957/3.02, allocations: 1.024 MB / 0.8707 GB, free: 32.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002026/3.022, allocations: 0.6693 MB / 0.8714 GB, free: 32.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-05/3.022, allocations: 4.062 kB / 0.8714 GB, free: 32.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005373/3.027, allocations: 1.8 MB / 0.8731 GB, free: 32.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001325/3.028, allocations: 5.573 MB / 0.8786 GB, free: 26.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.748e-05/3.029, allocations: 14.94 kB / 0.8786 GB, free: 26.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00667/3.035, allocations: 0.6576 MB / 0.8792 GB, free: 26.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/3.038, allocations: 299.4 kB / 0.8795 GB, free: 26.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002759/3.04, allocations: 2.144 MB / 0.8816 GB, free: 25.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/3.043, allocations: 103.9 kB / 0.8817 GB, free: 25.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003492/3.043, allocations: 75.72 kB / 0.8818 GB, free: 25.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/3.043, allocations: 3.062 kB / 0.8818 GB, free: 25.07 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004888/3.048, allocations: 1.669 MB / 0.8834 GB, free: 25.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.804e-05/3.048, allocations: 11.41 kB / 0.8834 GB, free: 25.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005054/3.054, allocations: 494.3 kB / 0.8839 GB, free: 25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/3.056, allocations: 307.1 kB / 0.8842 GB, free: 25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002692/3.059, allocations: 1.969 MB / 0.8861 GB, free: 39.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/3.06, allocations: 102.4 kB / 0.8862 GB, free: 39.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/3.061, allocations: 70.12 kB / 0.8863 GB, free: 39.44 MB / 378.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.001267/3.062, allocations: 478.3 kB / 0.8867 GB, free: 39.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/3.062, allocations: 143 kB / 0.8869 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004805/3.067, allocations: 1.503 MB / 0.8883 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-05/3.067, allocations: 14.48 kB / 0.8883 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/3.067, allocations: 4.5 kB / 0.8884 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/3.067, allocations: 3.609 kB / 0.8884 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00736/3.075, allocations: 2.758 MB / 0.891 GB, free: 38.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/3.075, allocations: 3.562 kB / 0.8911 GB, free: 38.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/3.076, allocations: 153.7 kB / 0.8912 GB, free: 38.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004655/3.081, allocations: 0.6084 MB / 0.8918 GB, free: 38.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003028/3.081, allocations: 25.39 kB / 0.8918 GB, free: 38.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002625/3.084, allocations: 2.115 MB / 0.8939 GB, free: 37.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/3.084, allocations: 3.281 kB / 0.8939 GB, free: 37.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00517/3.089, allocations: 2.124 MB / 0.896 GB, free: 36.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007099/3.09, allocations: 229.3 kB / 0.8962 GB, free: 36.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004262/3.09, allocations: 29.78 kB / 0.8962 GB, free: 36.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/3.092, allocations: 76.8 kB / 0.8963 GB, free: 36.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/3.092, allocations: 96.33 kB / 0.8964 GB, free: 36.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/3.092, allocations: 32.89 kB / 0.8964 GB, free: 36.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001668/3.094, allocations: 0.8021 MB / 0.8972 GB, free: 36.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/3.094, allocations: 4.875 kB / 0.8972 GB, free: 36.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005339/3.099, allocations: 1.181 MB / 0.8983 GB, free: 36.45 MB / 378.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.009112/3.108, allocations: 3.951 MB / 0.9022 GB, free: 35.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006856/3.115, allocations: 2.204 MB / 0.9044 GB, free: 35.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/3.115, allocations: 0 / 0.9044 GB, free: 35.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002407/3.118, allocations: 0.697 MB / 0.905 GB, free: 35.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004153/3.122, allocations: 0.5004 MB / 0.9055 GB, free: 35.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01557/3.138, allocations: 14.22 MB / 0.9194 GB, free: 23.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/3.139, allocations: 1.272 MB / 0.9207 GB, free: 22.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/3.14, allocations: 0.535 MB / 0.9212 GB, free: 22.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/3.14, allocations: 0 / 0.9212 GB, free: 22.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.738/6.878, allocations: 49.05 MB / 0.9691 GB, free: 20.08 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat