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.073/1.073, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002809/0.0002809, allocations: 11.98 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06147/0.06178, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8341/0.896, allocations: 236.8 MB / 420.4 MB, free: 55.89 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.8963, allocations: 74.59 kB / 420.4 MB, free: 55.86 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5937/1.49, allocations: 128.6 MB / 0.5361 GB, free: 24.18 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.013e-06/1.49, allocations: 0 / 0.5361 GB, free: 24.18 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.183e-05/1.49, allocations: 20 kB / 0.5362 GB, free: 24.16 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.003373/1.494, allocations: 1.084 MB / 0.5372 GB, free: 23.04 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/1.494, allocations: 8.031 kB / 0.5372 GB, free: 23.03 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004552/1.494, allocations: 93.25 kB / 0.5373 GB, free: 22.93 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002939/1.494, allocations: 79.06 kB / 0.5374 GB, free: 22.86 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/1.496, allocations: 0.5515 MB / 0.5379 GB, free: 22.27 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.286e-05/1.496, allocations: 43.77 kB / 0.538 GB, free: 22.23 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/1.496, allocations: 47.45 kB / 0.538 GB, free: 22.19 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/1.498, allocations: 0.6965 MB / 0.5387 GB, free: 21.47 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/1.498, allocations: 4 kB / 0.5387 GB, free: 21.46 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.591e-05/1.498, allocations: 26.03 kB / 0.5387 GB, free: 21.44 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.914e-05/1.498, allocations: 40.97 kB / 0.5388 GB, free: 21.4 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/1.5, allocations: 0.6362 MB / 0.5394 GB, free: 20.77 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005112/1.505, allocations: 2.812 MB / 0.5421 GB, free: 17.79 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/1.506, allocations: 468.9 kB / 0.5426 GB, free: 17.32 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003525/1.507, allocations: 425.9 kB / 0.543 GB, free: 16.81 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/1.507, allocations: 39 kB / 0.543 GB, free: 16.77 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 3.046e-06/1.507, allocations: 0 / 0.543 GB, free: 16.77 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.008054/1.515, allocations: 2.203 MB / 0.5452 GB, free: 14.48 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/1.515, allocations: 85.67 kB / 0.5452 GB, free: 14.38 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000889/1.516, allocations: 0.5139 MB / 0.5458 GB, free: 13.86 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/1.516, allocations: 37.7 kB / 0.5458 GB, free: 13.82 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/1.516, allocations: 338.3 kB / 0.5461 GB, free: 13.48 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/1.516, allocations: 196.1 kB / 0.5463 GB, free: 13.3 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.606e-05/1.516, allocations: 16 kB / 0.5463 GB, free: 13.28 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.275e-05/1.517, allocations: 342.8 kB / 0.5466 GB, free: 12.94 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006753/1.517, allocations: 261.5 kB / 0.5469 GB, free: 12.68 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007496/1.518, allocations: 431.5 kB / 0.5473 GB, free: 12.2 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007463/1.519, allocations: 316.3 kB / 0.5476 GB, free: 11.89 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/1.519, allocations: 4 kB / 0.5476 GB, free: 11.89 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002053/1.521, allocations: 0.8545 MB / 0.5484 GB, free: 11.02 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/1.521, allocations: 7.938 kB / 0.5484 GB, free: 11.01 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/1.521, allocations: 4 kB / 0.5485 GB, free: 11.01 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003148/1.524, allocations: 348.9 kB / 0.5488 GB, free: 10.66 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/1.525, allocations: 143.8 kB / 0.5489 GB, free: 10.52 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/1.526, allocations: 0.8059 MB / 0.5497 GB, free: 9.691 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009453/1.527, allocations: 43.92 kB / 0.5498 GB, free: 9.648 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-05/1.527, allocations: 32.05 kB / 0.5498 GB, free: 9.617 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" fixed = true 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true 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" fixed = true 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 () * Number of clocked 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.0006545/1.528, allocations: 288.8 kB / 0.5501 GB, free: 9.336 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/1.528, allocations: 67.16 kB / 0.5501 GB, free: 9.27 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002204/1.53, allocations: 0.8349 MB / 0.5509 GB, free: 8.426 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/1.53, allocations: 8 kB / 0.5509 GB, free: 8.418 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.53, allocations: 0 / 0.5509 GB, free: 8.418 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/1.53, allocations: 3.984 kB / 0.5509 GB, free: 8.414 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003896/1.534, allocations: 1.638 MB / 0.5525 GB, free: 6.727 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/1.534, allocations: 4 kB / 0.5526 GB, free: 6.723 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008972/1.535, allocations: 107.9 kB / 0.5527 GB, free: 6.617 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002333/1.538, allocations: 336.5 kB / 0.553 GB, free: 6.285 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-05/1.538, allocations: 16 kB / 0.553 GB, free: 6.27 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009498/1.539, allocations: 0.7905 MB / 0.5538 GB, free: 5.453 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/1.539, allocations: 0 / 0.5538 GB, free: 5.453 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/1.542, allocations: 1.251 MB / 0.555 GB, free: 4.164 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/1.542, allocations: 148.3 kB / 0.5551 GB, free: 4 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/1.542, allocations: 15.95 kB / 0.5551 GB, free: 3.984 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008084/1.543, allocations: 47.91 kB / 0.5552 GB, free: 3.938 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/1.543, allocations: 56.42 kB / 0.5552 GB, free: 3.883 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-05/1.543, allocations: 23.98 kB / 0.5553 GB, free: 3.859 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007041/1.544, allocations: 414.8 kB / 0.5557 GB, free: 3.457 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.544, allocations: 7.938 kB / 0.5557 GB, free: 3.449 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001635/1.546, allocations: 415.6 kB / 0.5561 GB, free: 3.043 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]) * Number of clocked states: 0 () * 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.004509/1.55, allocations: 2.367 MB / 0.5584 GB, free: 0.6719 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.1723/1.722, allocations: 0.6741 MB / 0.559 GB, free: 34.84 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.723, allocations: 1.812 kB / 0.559 GB, free: 34.84 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/1.724, allocations: 368.5 kB / 0.5594 GB, free: 34.84 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/1.727, allocations: 375 kB / 0.5597 GB, free: 34.84 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/1.739, allocations: 7.665 MB / 0.5672 GB, free: 30.63 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/1.74, allocations: 0.9645 MB / 0.5682 GB, free: 29.93 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006674/1.741, allocations: 260.9 kB / 0.5684 GB, free: 29.93 MB / 234.7 MB Notification: Performance of SimCode: time 1.353e-06/1.741, allocations: 0 / 0.5684 GB, free: 29.93 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.153/4.893, allocations: 20.46 MB / 0.5884 GB, free: 28.7 MB / 234.7 MB