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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 0.9823/0.9823, allocations: 111.2 MB / 124.2 MB, free: 11.22 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.619e-05, allocations: 4 kB / 154.4 MB, free: 13.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1649, allocations: 25.16 MB / 179.5 MB, free: 0.707 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6184/0.7833, allocations: 238.3 MB / 417.8 MB, free: 8.176 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.7836, allocations: 71.84 kB / 417.9 MB, free: 8.141 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9364/1.72, allocations: 177 MB / 0.5809 GB, free: 15.7 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.513e-06/1.72, allocations: 0 / 0.5809 GB, free: 15.7 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.815e-05/1.72, allocations: 20 kB / 0.5809 GB, free: 15.68 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.00347/1.724, allocations: 1.232 MB / 0.5821 GB, free: 14.4 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/1.724, allocations: 8.031 kB / 0.5821 GB, free: 14.39 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/1.724, allocations: 110.4 kB / 0.5822 GB, free: 14.28 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/1.724, allocations: 102.8 kB / 0.5823 GB, free: 14.18 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/1.726, allocations: 0.7335 MB / 0.5831 GB, free: 13.4 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.498e-05/1.726, allocations: 45.81 kB / 0.5831 GB, free: 13.36 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/1.726, allocations: 55.98 kB / 0.5832 GB, free: 13.3 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002072/1.728, allocations: 0.9797 MB / 0.5841 GB, free: 12.26 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/1.728, allocations: 0 / 0.5841 GB, free: 12.26 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/1.729, allocations: 31.98 kB / 0.5841 GB, free: 12.23 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/1.729, allocations: 69.2 kB / 0.5842 GB, free: 12.16 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/1.731, allocations: 0.899 MB / 0.5851 GB, free: 11.27 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008569/1.739, allocations: 4.393 MB / 0.5894 GB, free: 6.555 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/1.741, allocations: 0.5286 MB / 0.5899 GB, free: 6.02 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000829/1.742, allocations: 294 kB / 0.5902 GB, free: 5.73 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00406/1.746, allocations: 2.006 MB / 0.5921 GB, free: 3.492 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/1.746, allocations: 38.89 kB / 0.5922 GB, free: 3.445 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 4.108e-06/1.746, allocations: 4 kB / 0.5922 GB, free: 3.441 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.006255/1.752, allocations: 1.394 MB / 0.5935 GB, free: 1.988 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/1.753, allocations: 170.2 kB / 0.5937 GB, free: 1.785 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/1.754, allocations: 0.6877 MB / 0.5944 GB, free: 1.09 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.685e-05/1.754, allocations: 37.7 kB / 0.5944 GB, free: 1.047 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/1.755, allocations: 0.4893 MB / 0.5949 GB, free: 0.5508 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/1.755, allocations: 161.7 kB / 0.595 GB, free: 400 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.77e-05/1.755, allocations: 24 kB / 0.5951 GB, free: 376 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/1.755, allocations: 346.8 kB / 0.5954 GB, free: 20 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1837/1.939, allocations: 262.9 kB / 0.5956 GB, free: 26.39 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009937/1.94, allocations: 0.6177 MB / 0.5962 GB, free: 25.96 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/1.941, allocations: 375 kB / 0.5966 GB, free: 25.96 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/1.941, allocations: 6.453 kB / 0.5966 GB, free: 25.96 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002692/1.944, allocations: 0.9769 MB / 0.5976 GB, free: 25.89 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/1.944, allocations: 12.78 kB / 0.5976 GB, free: 25.89 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/1.944, allocations: 15.23 kB / 0.5976 GB, free: 25.89 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003156/1.947, allocations: 306.2 kB / 0.5979 GB, free: 25.88 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/1.949, allocations: 183.3 kB / 0.5981 GB, free: 25.88 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/1.95, allocations: 1.304 MB / 0.5993 GB, free: 24.85 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/1.951, allocations: 63.16 kB / 0.5994 GB, free: 24.85 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000178/1.952, allocations: 50.52 kB / 0.5994 GB, free: 24.85 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.0003812/1.952, allocations: 175.6 kB / 0.5996 GB, free: 24.74 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002421/1.952, allocations: 83.47 kB / 0.5997 GB, free: 24.74 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002477/1.955, allocations: 0.7536 MB / 0.6004 GB, free: 24.67 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/1.955, allocations: 7.75 kB / 0.6004 GB, free: 24.67 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/1.955, allocations: 0 / 0.6004 GB, free: 24.67 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/1.955, allocations: 3.375 kB / 0.6004 GB, free: 24.67 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003657/1.958, allocations: 1.494 MB / 0.6019 GB, free: 24.33 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/1.958, allocations: 6.781 kB / 0.6019 GB, free: 24.33 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006969/1.959, allocations: 71.58 kB / 0.602 GB, free: 24.33 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002254/1.961, allocations: 285.5 kB / 0.6022 GB, free: 24.31 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/1.962, allocations: 11.66 kB / 0.6022 GB, free: 24.31 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/1.963, allocations: 1.288 MB / 0.6035 GB, free: 23.28 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/1.963, allocations: 8.203 kB / 0.6035 GB, free: 23.28 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/1.965, allocations: 1.058 MB / 0.6045 GB, free: 23.07 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003716/1.966, allocations: 169.6 kB / 0.6047 GB, free: 22.92 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/1.966, allocations: 10.97 kB / 0.6047 GB, free: 22.92 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008503/1.967, allocations: 45.77 kB / 0.6048 GB, free: 22.92 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/1.967, allocations: 45.39 kB / 0.6048 GB, free: 22.92 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-05/1.967, allocations: 21 kB / 0.6048 GB, free: 22.92 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009438/1.968, allocations: 0.5245 MB / 0.6053 GB, free: 22.82 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.968, allocations: 0 / 0.6053 GB, free: 22.82 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002103/1.97, allocations: 0.5258 MB / 0.6059 GB, free: 22.82 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.004526/1.975, allocations: 2.332 MB / 0.6081 GB, free: 21.89 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002111/1.977, allocations: 0.6922 MB / 0.6088 GB, free: 21.88 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.977, allocations: 7.391 kB / 0.6088 GB, free: 21.88 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008535/1.978, allocations: 300.4 kB / 0.6091 GB, free: 21.88 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002993/1.981, allocations: 347 kB / 0.6094 GB, free: 21.88 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005687/1.986, allocations: 1.692 MB / 0.6111 GB, free: 21.48 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006131/1.987, allocations: 1.043 MB / 0.6121 GB, free: 20.78 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006977/1.988, allocations: 322 kB / 0.6124 GB, free: 20.77 MB / 234.7 MB Notification: Performance of SimCode: time 1.252e-06/1.988, allocations: 0 / 0.6124 GB, free: 20.77 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.237/5.224, allocations: 27.87 MB / 0.6396 GB, free: 19.29 MB / 234.7 MB