Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.121/1.121, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.046e-05/3.047e-05, allocations: 4 kB / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05994/0.06001, allocations: 25.18 MB / 173.4 MB, free: 12.9 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8684/0.9285, allocations: 237.6 MB / 411 MB, free: 59.3 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.9288, allocations: 67.12 kB / 411.1 MB, free: 59.3 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.067/1.996, allocations: 175.8 MB / 0.5731 GB, free: 24.39 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.996, allocations: 1.375 kB / 0.5731 GB, free: 24.39 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001324/1.996, allocations: 24.45 kB / 0.5732 GB, free: 24.39 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004819/2.001, allocations: 1.222 MB / 0.5744 GB, free: 23.84 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/2.001, allocations: 9.656 kB / 0.5744 GB, free: 23.84 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007144/2.001, allocations: 105.5 kB / 0.5745 GB, free: 23.79 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002808/2.004, allocations: 0.7395 MB / 0.5752 GB, free: 23.54 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.373e-05/2.004, allocations: 23.69 kB / 0.5752 GB, free: 23.54 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002267/2.005, allocations: 33.33 kB / 0.5752 GB, free: 23.54 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002404/2.007, allocations: 0.7895 MB / 0.576 GB, free: 23.54 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/2.01, allocations: 0.8839 MB / 0.5769 GB, free: 23.35 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/2.01, allocations: 3.219 kB / 0.5769 GB, free: 23.35 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/2.01, allocations: 2.656 kB / 0.5769 GB, free: 23.35 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001665/2.01, allocations: 62.83 kB / 0.5769 GB, free: 23.35 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009197/2.019, allocations: 4.274 MB / 0.5811 GB, free: 20.92 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/2.021, allocations: 0.4975 MB / 0.5816 GB, free: 20.9 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006165/2.021, allocations: 267.4 kB / 0.5819 GB, free: 20.89 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0038/2.025, allocations: 1.984 MB / 0.5838 GB, free: 19.56 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/2.025, allocations: 38.48 kB / 0.5838 GB, free: 19.52 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.727e-06/2.025, allocations: 3.062 kB / 0.5838 GB, free: 19.52 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.008925/2.034, allocations: 1.646 MB / 0.5854 GB, free: 19.1 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.865e-05/2.034, allocations: 161.1 kB / 0.5856 GB, free: 18.91 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001094/2.035, allocations: 0.5728 MB / 0.5862 GB, free: 18.78 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001676/2.035, allocations: 34.42 kB / 0.5862 GB, free: 18.75 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004282/2.036, allocations: 0.5038 MB / 0.5867 GB, free: 18.44 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/2.036, allocations: 152.6 kB / 0.5868 GB, free: 18.35 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/2.036, allocations: 3.781 kB / 0.5868 GB, free: 18.35 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/2.036, allocations: 341.8 kB / 0.5872 GB, free: 18.04 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006344/2.037, allocations: 252.9 kB / 0.5874 GB, free: 18.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008329/2.038, allocations: 0.603 MB / 0.588 GB, free: 17.6 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002331/2.04, allocations: 472.4 kB / 0.5884 GB, free: 17.59 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.679e-05/2.04, allocations: 3.938 kB / 0.5884 GB, free: 17.59 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003888/2.044, allocations: 0.9969 MB / 0.5894 GB, free: 17.51 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/2.044, allocations: 16.42 kB / 0.5894 GB, free: 17.51 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.25e-05/2.044, allocations: 14.03 kB / 0.5894 GB, free: 17.51 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008432/2.045, allocations: 147.8 kB / 0.5896 GB, free: 17.49 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/2.046, allocations: 179.5 kB / 0.5898 GB, free: 17.49 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002699/2.049, allocations: 1.441 MB / 0.5912 GB, free: 16.45 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/2.051, allocations: 43.5 kB / 0.5912 GB, free: 16.45 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/2.051, allocations: 44.69 kB / 0.5913 GB, free: 16.45 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003675/2.051, allocations: 156.2 kB / 0.5914 GB, free: 16.33 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003626/2.055, allocations: 0.6848 MB / 0.5921 GB, free: 16.23 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/2.055, allocations: 77.22 kB / 0.5921 GB, free: 16.2 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003426/2.059, allocations: 0.7678 MB / 0.5929 GB, free: 16.1 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/2.059, allocations: 7.094 kB / 0.5929 GB, free: 16.1 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/2.059, allocations: 0.5625 kB / 0.5929 GB, free: 16.1 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/2.059, allocations: 7.312 kB / 0.5929 GB, free: 16.1 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/2.063, allocations: 1.462 MB / 0.5943 GB, free: 15.79 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/2.064, allocations: 3.906 kB / 0.5943 GB, free: 15.79 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007285/2.064, allocations: 76.03 kB / 0.5944 GB, free: 15.79 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000938/2.065, allocations: 148 kB / 0.5946 GB, free: 15.77 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/2.065, allocations: 6.969 kB / 0.5946 GB, free: 15.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002135/2.068, allocations: 1.372 MB / 0.5959 GB, free: 14.73 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/2.068, allocations: 1.625 kB / 0.5959 GB, free: 14.73 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003389/2.071, allocations: 1.081 MB / 0.597 GB, free: 14.48 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005018/2.072, allocations: 159.4 kB / 0.5971 GB, free: 14.34 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/2.072, allocations: 13.84 kB / 0.5971 GB, free: 14.34 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008806/2.073, allocations: 36.56 kB / 0.5972 GB, free: 14.33 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/2.073, allocations: 50.47 kB / 0.5972 GB, free: 14.33 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.377e-05/2.073, allocations: 19.94 kB / 0.5972 GB, free: 14.33 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008321/2.074, allocations: 437.2 kB / 0.5976 GB, free: 14.24 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.02e-07/2.074, allocations: 0 / 0.5976 GB, free: 14.24 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00287/2.077, allocations: 0.5013 MB / 0.5981 GB, free: 14.14 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005976/2.083, allocations: 2.356 MB / 0.6004 GB, free: 13.11 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001901/2.085, allocations: 0.6322 MB / 0.601 GB, free: 13.1 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/2.085, allocations: 0 / 0.601 GB, free: 13.1 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007848/2.086, allocations: 291.4 kB / 0.6013 GB, free: 13.1 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/2.088, allocations: 328.2 kB / 0.6016 GB, free: 13.09 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00562/2.094, allocations: 1.626 MB / 0.6032 GB, free: 12.59 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/2.095, allocations: 1.045 MB / 0.6042 GB, free: 11.89 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007066/2.096, allocations: 321.8 kB / 0.6046 GB, free: 11.88 MB / 234.7 MB Notification: Performance of SimCode: time 1.082e-06/2.096, allocations: 0 / 0.6046 GB, free: 11.88 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.66/5.756, allocations: 27.49 MB / 0.6314 GB, free: 10.32 MB / 234.7 MB