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.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9937/0.9937, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003543, allocations: 4 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05534/0.05574, allocations: 25.17 MB / 183.6 MB, free: 5.871 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.788/0.8438, allocations: 240.8 MB / 424.4 MB, free: 50.97 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.8441, allocations: 69.64 kB / 424.5 MB, free: 50.94 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.646/2.49, allocations: 302.1 MB / 0.7096 GB, free: 20.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.977e-06/2.49, allocations: 3.906 kB / 0.7096 GB, free: 20.16 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002153/2.49, allocations: 43.83 kB / 0.7097 GB, free: 20.16 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.008708/2.499, allocations: 2.143 MB / 0.7118 GB, free: 19.09 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.016e-05/2.499, allocations: 10.88 kB / 0.7118 GB, free: 19.09 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009567/2.5, allocations: 190.5 kB / 0.712 GB, free: 19.05 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007842/2.501, allocations: 184.8 kB / 0.7121 GB, free: 18.96 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004364/2.505, allocations: 1.203 MB / 0.7133 GB, free: 18.58 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/2.505, allocations: 94.91 kB / 0.7134 GB, free: 18.57 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005321/2.506, allocations: 119.3 kB / 0.7135 GB, free: 18.57 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005334/2.511, allocations: 1.839 MB / 0.7153 GB, free: 18.29 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.887e-05/2.511, allocations: 0.8438 kB / 0.7153 GB, free: 18.29 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003245/2.512, allocations: 57.5 kB / 0.7154 GB, free: 18.29 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002239/2.512, allocations: 112.4 kB / 0.7155 GB, free: 18.28 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00566/2.517, allocations: 1.817 MB / 0.7172 GB, free: 18.25 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01765/2.535, allocations: 7.413 MB / 0.7245 GB, free: 14.59 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003238/2.538, allocations: 1.148 MB / 0.7256 GB, free: 14.55 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0078/2.546, allocations: 3.31 MB / 0.7288 GB, free: 12.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.353e-05/2.546, allocations: 57.92 kB / 0.7289 GB, free: 12.76 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 4.729e-06/2.546, allocations: 0 / 0.7289 GB, free: 12.76 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.0218/2.568, allocations: 5.192 MB / 0.734 GB, free: 10.46 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/2.568, allocations: 170.9 kB / 0.7341 GB, free: 10.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/2.571, allocations: 1.106 MB / 0.7352 GB, free: 9.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004481/2.571, allocations: 61.36 kB / 0.7353 GB, free: 9.785 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006396/2.572, allocations: 0.6697 MB / 0.7359 GB, free: 9.203 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007646/2.573, allocations: 460.4 kB / 0.7364 GB, free: 8.859 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/2.573, allocations: 30.62 kB / 0.7364 GB, free: 8.836 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/2.573, allocations: 380 kB / 0.7368 GB, free: 8.496 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002052/2.575, allocations: 0.7062 MB / 0.7374 GB, free: 8.25 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002527/2.578, allocations: 1.158 MB / 0.7386 GB, free: 7.438 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002506/2.58, allocations: 0.834 MB / 0.7394 GB, free: 7.082 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/2.58, allocations: 3.75 kB / 0.7394 GB, free: 7.082 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006796/2.587, allocations: 2.22 MB / 0.7416 GB, free: 6.203 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/2.587, allocations: 8.656 kB / 0.7416 GB, free: 6.203 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/2.587, allocations: 14.75 kB / 0.7416 GB, free: 6.203 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009314/2.596, allocations: 0.9373 MB / 0.7425 GB, free: 6.047 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/2.599, allocations: 336.9 kB / 0.7428 GB, free: 6.012 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003453/2.603, allocations: 2.851 MB / 0.7456 GB, free: 3.398 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002789/2.605, allocations: 129.7 kB / 0.7457 GB, free: 3.293 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004011/2.606, allocations: 90.27 kB / 0.7458 GB, free: 3.215 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 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 = 293.15 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 = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.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" 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: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (195): * Single equations (assignments): 191 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001705/2.608, allocations: 0.4915 MB / 0.7463 GB, free: 2.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005332/2.608, allocations: 162 kB / 0.7464 GB, free: 2.613 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007587/2.616, allocations: 2.301 MB / 0.7487 GB, free: 0.6719 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-05/2.616, allocations: 16 kB / 0.7487 GB, free: 0.6562 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/2.616, allocations: 3.938 kB / 0.7487 GB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.391e-05/2.616, allocations: 10.08 kB / 0.7487 GB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/2.63, allocations: 3.94 MB / 0.7526 GB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/2.63, allocations: 0 / 0.7526 GB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002253/2.632, allocations: 233.7 kB / 0.7528 GB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00722/2.639, allocations: 0.8697 MB / 0.7536 GB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004492/2.64, allocations: 38.66 kB / 0.7537 GB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003922/2.644, allocations: 2.816 MB / 0.7564 GB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/2.644, allocations: 3.047 kB / 0.7564 GB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009467/2.653, allocations: 3.162 MB / 0.7595 GB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008065/2.654, allocations: 245.8 kB / 0.7598 GB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007744/2.655, allocations: 35.05 kB / 0.7598 GB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002319/2.657, allocations: 118.5 kB / 0.7599 GB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000592/2.658, allocations: 142.3 kB / 0.76 GB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002426/2.658, allocations: 56.02 kB / 0.7601 GB, free: 6.516 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002086/2.66, allocations: 0.8475 MB / 0.7609 GB, free: 5.668 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.6e-07/2.66, allocations: 0 / 0.7609 GB, free: 5.668 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00476/2.665, allocations: 0.8859 MB / 0.7618 GB, free: 4.781 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.2132/2.878, allocations: 5.065 MB / 0.7667 GB, free: 34.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.006434/2.885, allocations: 1.838 MB / 0.7685 GB, free: 34.78 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/2.885, allocations: 3.891 kB / 0.7685 GB, free: 34.78 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00363/2.889, allocations: 1.051 MB / 0.7695 GB, free: 34.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006431/2.895, allocations: 0.7333 MB / 0.7703 GB, free: 34.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03427/2.929, allocations: 20.28 MB / 0.7901 GB, free: 22.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/2.931, allocations: 1.408 MB / 0.7914 GB, free: 21.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/2.933, allocations: 0.6539 MB / 0.7921 GB, free: 21.6 MB / 266.7 MB Notification: Performance of SimCode: time 2.013e-06/2.933, allocations: 2.75 kB / 0.7921 GB, free: 21.6 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.042/6.974, allocations: 64.07 MB / 0.8547 GB, free: 2.809 MB / 266.7 MB