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/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.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 1.043/1.043, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.653e-05/2.652e-05, allocations: 4 kB / 148.2 MB, free: 6.113 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05788/0.05794, allocations: 25.18 MB / 173.4 MB, free: 12.89 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8399/0.8979, allocations: 240.1 MB / 413.5 MB, free: 58.4 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.8982, allocations: 68.16 kB / 413.5 MB, free: 58.4 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663/2.561, allocations: 299.3 MB / 0.6961 GB, free: 29.03 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.424e-06/2.561, allocations: 2.406 kB / 0.6961 GB, free: 29.03 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002182/2.561, allocations: 44.88 kB / 0.6961 GB, free: 29.02 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.007715/2.569, allocations: 1.933 MB / 0.698 GB, free: 28.04 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/2.569, allocations: 13.81 kB / 0.698 GB, free: 28.04 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/2.57, allocations: 186.7 kB / 0.6982 GB, free: 27.94 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004273/2.575, allocations: 1.183 MB / 0.6994 GB, free: 27.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/2.575, allocations: 42.5 kB / 0.6994 GB, free: 27.57 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003854/2.575, allocations: 76.33 kB / 0.6995 GB, free: 27.56 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004236/2.579, allocations: 1.581 MB / 0.701 GB, free: 27.55 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004313/2.584, allocations: 1.657 MB / 0.7026 GB, free: 27.27 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.392e-05/2.584, allocations: 7.719 kB / 0.7027 GB, free: 27.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002379/2.584, allocations: 5.094 kB / 0.7027 GB, free: 27.27 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002274/2.584, allocations: 110.8 kB / 0.7028 GB, free: 27.26 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0161/2.6, allocations: 7.16 MB / 0.7098 GB, free: 23.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002763/2.603, allocations: 1.087 MB / 0.7108 GB, free: 23.62 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/2.605, allocations: 0.6786 MB / 0.7115 GB, free: 23.62 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007365/2.612, allocations: 3.286 MB / 0.7147 GB, free: 21.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/2.612, allocations: 48.44 kB / 0.7147 GB, free: 21.92 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 4.829e-06/2.612, allocations: 4 kB / 0.7147 GB, free: 21.92 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.02574/2.638, allocations: 4.503 MB / 0.7191 GB, free: 21.23 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/2.638, allocations: 168.1 kB / 0.7193 GB, free: 21.05 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/2.64, allocations: 0.8744 MB / 0.7202 GB, free: 20.85 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004822/2.641, allocations: 32.23 kB / 0.7202 GB, free: 20.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006876/2.641, allocations: 0.7044 MB / 0.7209 GB, free: 20.21 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007076/2.642, allocations: 440.2 kB / 0.7213 GB, free: 19.88 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/2.642, allocations: 3.938 kB / 0.7213 GB, free: 19.87 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002286/2.643, allocations: 381.7 kB / 0.7217 GB, free: 19.53 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001702/2.644, allocations: 0.6504 MB / 0.7223 GB, free: 19.29 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/2.646, allocations: 1.098 MB / 0.7234 GB, free: 18.48 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006683/2.653, allocations: 1.155 MB / 0.7245 GB, free: 18.15 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.506e-05/2.653, allocations: 3.781 kB / 0.7245 GB, free: 18.15 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.0104/2.664, allocations: 2.379 MB / 0.7268 GB, free: 17.38 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/2.664, allocations: 16.42 kB / 0.7268 GB, free: 17.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.119e-05/2.664, allocations: 17.81 kB / 0.7269 GB, free: 17.38 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/2.666, allocations: 430.2 kB / 0.7273 GB, free: 17.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002689/2.669, allocations: 333.7 kB / 0.7276 GB, free: 17.21 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007548/2.676, allocations: 3.209 MB / 0.7307 GB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002954/2.679, allocations: 97.09 kB / 0.7308 GB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005988/2.68, allocations: 86.7 kB / 0.7309 GB, free: 14.24 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" 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" 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 = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" 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" 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 () * 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.001016/2.681, allocations: 214.2 kB / 0.7311 GB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01028/2.691, allocations: 1.99 MB / 0.733 GB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008725/2.692, allocations: 153.4 kB / 0.7332 GB, free: 12.24 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/2.704, allocations: 2.32 MB / 0.7355 GB, free: 10.34 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.524e-05/2.704, allocations: 16 kB / 0.7355 GB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/2.704, allocations: 0 / 0.7355 GB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.161e-05/2.704, allocations: 11.17 kB / 0.7355 GB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01554/2.719, allocations: 3.738 MB / 0.7391 GB, free: 7.289 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2e-05/2.72, allocations: 4 kB / 0.7391 GB, free: 7.285 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002371/2.722, allocations: 231.5 kB / 0.7394 GB, free: 7.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002448/2.724, allocations: 440.6 kB / 0.7398 GB, free: 6.73 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004512/2.725, allocations: 31.59 kB / 0.7398 GB, free: 6.707 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006273/2.731, allocations: 3.015 MB / 0.7428 GB, free: 3.762 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/2.731, allocations: 4.031 kB / 0.7428 GB, free: 3.758 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01147/2.743, allocations: 3.15 MB / 0.7458 GB, free: 0.918 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008251/2.744, allocations: 237.6 kB / 0.7461 GB, free: 0.6758 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007603/2.744, allocations: 12 kB / 0.7461 GB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/2.747, allocations: 80.52 kB / 0.7461 GB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006871/2.747, allocations: 145.2 kB / 0.7463 GB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/2.748, allocations: 66.08 kB / 0.7463 GB, free: 480 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.1999/2.948, allocations: 0.6471 MB / 0.747 GB, free: 27.67 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.112e-06/2.948, allocations: 0 / 0.747 GB, free: 27.67 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004902/2.953, allocations: 0.8223 MB / 0.7478 GB, free: 27.67 MB / 250.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]) * 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.01521/2.968, allocations: 5.043 MB / 0.7527 GB, free: 26.38 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005844/2.974, allocations: 1.71 MB / 0.7544 GB, free: 26.36 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/2.974, allocations: 1.062 kB / 0.7544 GB, free: 26.36 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003308/2.977, allocations: 0.9944 MB / 0.7553 GB, free: 26.35 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006445/2.984, allocations: 0.6749 MB / 0.756 GB, free: 26.34 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/2.995, allocations: 3.301 MB / 0.7592 GB, free: 25.62 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/2.997, allocations: 1.415 MB / 0.7606 GB, free: 24.9 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/2.998, allocations: 0.6438 MB / 0.7612 GB, free: 24.89 MB / 250.7 MB Notification: Performance of SimCode: time 1.572e-06/2.998, allocations: 1.25 kB / 0.7612 GB, free: 24.89 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.921/6.919, allocations: 63.21 MB / 0.823 GB, free: 2.969 MB / 250.7 MB