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.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.08/1.08, allocations: 111.2 MB / 124.2 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.008e-05/3.026e-05, allocations: 4 kB / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1706, allocations: 25.15 MB / 179.5 MB, free: 0.7188 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6068/0.7775, allocations: 236.7 MB / 416.2 MB, free: 9.801 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.7778, allocations: 74.95 kB / 416.3 MB, free: 9.762 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7424/1.52, allocations: 128 MB / 0.5316 GB, free: 39.17 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.894e-06/1.52, allocations: 0 / 0.5316 GB, free: 39.17 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.641e-05/1.52, allocations: 17.42 kB / 0.5316 GB, free: 39.17 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.002853/1.523, allocations: 1 MB / 0.5325 GB, free: 38.62 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/1.523, allocations: 9.219 kB / 0.5326 GB, free: 38.62 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002432/1.524, allocations: 88.19 kB / 0.5326 GB, free: 38.58 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002816/1.524, allocations: 75.19 kB / 0.5327 GB, free: 38.55 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/1.525, allocations: 0.5517 MB / 0.5332 GB, free: 38.31 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.312e-05/1.526, allocations: 37.59 kB / 0.5333 GB, free: 38.31 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/1.526, allocations: 47.62 kB / 0.5333 GB, free: 38.31 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/1.527, allocations: 0.6942 MB / 0.534 GB, free: 38.2 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/1.527, allocations: 5.938 kB / 0.534 GB, free: 38.2 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-05/1.527, allocations: 21.02 kB / 0.534 GB, free: 38.2 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.235e-05/1.528, allocations: 39.91 kB / 0.5341 GB, free: 38.2 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/1.529, allocations: 0.6244 MB / 0.5347 GB, free: 38.19 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/1.534, allocations: 2.81 MB / 0.5374 GB, free: 36.73 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/1.536, allocations: 458.6 kB / 0.5379 GB, free: 36.7 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005231/1.536, allocations: 246.8 kB / 0.5381 GB, free: 36.69 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003656/1.536, allocations: 420.6 kB / 0.5385 GB, free: 36.22 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/1.537, allocations: 40.12 kB / 0.5385 GB, free: 36.18 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 3.146e-06/1.537, allocations: 2.906 kB / 0.5385 GB, free: 36.18 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.006238/1.543, allocations: 1.747 MB / 0.5402 GB, free: 35.77 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/1.543, allocations: 81.64 kB / 0.5403 GB, free: 35.68 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009298/1.544, allocations: 0.5121 MB / 0.5408 GB, free: 35.55 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/1.544, allocations: 40.36 kB / 0.5409 GB, free: 35.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/1.544, allocations: 338.5 kB / 0.5412 GB, free: 35.3 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/1.544, allocations: 197.8 kB / 0.5414 GB, free: 35.18 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.619e-05/1.545, allocations: 14.56 kB / 0.5414 GB, free: 35.18 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.043e-05/1.545, allocations: 338 kB / 0.5417 GB, free: 34.87 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006793/1.545, allocations: 264 kB / 0.542 GB, free: 34.87 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007282/1.546, allocations: 423.1 kB / 0.5424 GB, free: 34.7 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007202/1.547, allocations: 311.8 kB / 0.5427 GB, free: 34.69 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/1.547, allocations: 3.719 kB / 0.5427 GB, free: 34.69 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002072/1.549, allocations: 0.834 MB / 0.5435 GB, free: 34.62 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/1.549, allocations: 12.53 kB / 0.5435 GB, free: 34.62 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/1.549, allocations: 7.812 kB / 0.5435 GB, free: 34.62 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003172/1.552, allocations: 338 kB / 0.5438 GB, free: 34.61 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/1.553, allocations: 140.9 kB / 0.544 GB, free: 34.61 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/1.555, allocations: 0.8062 MB / 0.5447 GB, free: 34.09 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/1.556, allocations: 50.78 kB / 0.5448 GB, free: 34.09 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.359e-05/1.556, allocations: 31.67 kB / 0.5448 GB, free: 34.09 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real 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 = tank1.T_start 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003671/1.556, allocations: 181.6 kB / 0.545 GB, free: 33.97 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/1.556, allocations: 67.56 kB / 0.5451 GB, free: 33.94 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/1.559, allocations: 0.8233 MB / 0.5459 GB, free: 33.86 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/1.559, allocations: 11.78 kB / 0.5459 GB, free: 33.86 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/1.559, allocations: 0 / 0.5459 GB, free: 33.86 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/1.559, allocations: 3.047 kB / 0.5459 GB, free: 33.86 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004095/1.563, allocations: 1.639 MB / 0.5475 GB, free: 33.51 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/1.563, allocations: 0 / 0.5475 GB, free: 33.51 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009789/1.564, allocations: 105.2 kB / 0.5476 GB, free: 33.51 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002318/1.566, allocations: 319.1 kB / 0.5479 GB, free: 33.5 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/1.566, allocations: 23.41 kB / 0.5479 GB, free: 33.5 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/1.567, allocations: 0.7919 MB / 0.5487 GB, free: 32.97 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.567, allocations: 0 / 0.5487 GB, free: 32.97 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00292/1.57, allocations: 1.24 MB / 0.5499 GB, free: 32.73 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/1.571, allocations: 144.1 kB / 0.55 GB, free: 32.6 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/1.571, allocations: 22.75 kB / 0.5501 GB, free: 32.6 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000872/1.572, allocations: 47.28 kB / 0.5501 GB, free: 32.59 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/1.572, allocations: 47.88 kB / 0.5501 GB, free: 32.59 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.941e-05/1.572, allocations: 24.86 kB / 0.5502 GB, free: 32.59 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007131/1.573, allocations: 406.3 kB / 0.5506 GB, free: 32.5 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.573, allocations: 0 / 0.5506 GB, free: 32.5 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001768/1.575, allocations: 416.3 kB / 0.551 GB, free: 32.43 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004661/1.579, allocations: 2.359 MB / 0.5533 GB, free: 31.44 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002034/1.581, allocations: 0.6643 MB / 0.5539 GB, free: 31.43 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.581, allocations: 5.031 kB / 0.5539 GB, free: 31.43 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009584/1.582, allocations: 365.4 kB / 0.5543 GB, free: 31.34 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003055/1.585, allocations: 372.7 kB / 0.5546 GB, free: 31.26 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004659/1.59, allocations: 1.493 MB / 0.5561 GB, free: 30.65 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/1.591, allocations: 0.973 MB / 0.557 GB, free: 29.93 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006392/1.591, allocations: 258.2 kB / 0.5573 GB, free: 29.75 MB / 234.7 MB Notification: Performance of SimCode: time 2.354e-06/1.591, allocations: 2.375 kB / 0.5573 GB, free: 29.75 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.009/4.6, allocations: 20.34 MB / 0.5771 GB, free: 17.74 MB / 234.7 MB