Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.267/1.267, allocations: 111.2 MB / 124.2 MB, free: 11.22 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.974e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1765, allocations: 25.16 MB / 179.5 MB, free: 0.8164 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.643/0.8196, allocations: 236.4 MB / 415.9 MB, free: 10.52 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.82, allocations: 68.2 kB / 416 MB, free: 10.48 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.732/1.552, allocations: 122.3 MB / 0.5256 GB, free: 40.39 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.753e-06/1.552, allocations: 0 / 0.5256 GB, free: 40.39 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.837e-05/1.552, allocations: 18.12 kB / 0.5256 GB, free: 40.39 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003024/1.555, allocations: 1.031 MB / 0.5266 GB, free: 39.86 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/1.555, allocations: 7.719 kB / 0.5267 GB, free: 39.86 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001815/1.555, allocations: 95.55 kB / 0.5267 GB, free: 39.82 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002799/1.556, allocations: 84.44 kB / 0.5268 GB, free: 39.78 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001585/1.557, allocations: 0.5877 MB / 0.5274 GB, free: 39.55 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/1.558, allocations: 107.3 kB / 0.5275 GB, free: 39.49 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/1.558, allocations: 59.3 kB / 0.5276 GB, free: 39.48 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/1.56, allocations: 0.8234 MB / 0.5284 GB, free: 39.38 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.793e-05/1.56, allocations: 0.9375 kB / 0.5284 GB, free: 39.38 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/1.56, allocations: 22.28 kB / 0.5284 GB, free: 39.38 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/1.56, allocations: 52.78 kB / 0.5284 GB, free: 39.38 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/1.562, allocations: 0.7259 MB / 0.5291 GB, free: 39.37 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006831/1.568, allocations: 3.105 MB / 0.5322 GB, free: 38.15 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/1.57, allocations: 0.6057 MB / 0.5328 GB, free: 38.12 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007294/1.571, allocations: 343.2 kB / 0.5331 GB, free: 38.11 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003894/1.575, allocations: 1.904 MB / 0.535 GB, free: 37.03 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/1.575, allocations: 51.03 kB / 0.535 GB, free: 36.99 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 3.056e-06/1.575, allocations: 0 / 0.535 GB, free: 36.99 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.006287/1.581, allocations: 2.056 MB / 0.537 GB, free: 36.58 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/1.581, allocations: 87.48 kB / 0.5371 GB, free: 36.49 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009445/1.582, allocations: 0.5372 MB / 0.5376 GB, free: 36.36 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.021e-05/1.582, allocations: 39.89 kB / 0.5377 GB, free: 36.33 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/1.582, allocations: 340.1 kB / 0.538 GB, free: 36.11 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/1.583, allocations: 210.2 kB / 0.5382 GB, free: 35.98 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.43e-05/1.583, allocations: 17.03 kB / 0.5382 GB, free: 35.98 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.064e-05/1.583, allocations: 336.3 kB / 0.5385 GB, free: 35.66 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007378/1.584, allocations: 314.9 kB / 0.5388 GB, free: 35.66 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008332/1.584, allocations: 461.7 kB / 0.5393 GB, free: 35.5 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008334/1.585, allocations: 365.3 kB / 0.5396 GB, free: 35.5 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/1.585, allocations: 3.969 kB / 0.5396 GB, free: 35.5 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002503/1.588, allocations: 1.008 MB / 0.5406 GB, free: 35.43 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/1.588, allocations: 3.75 kB / 0.5406 GB, free: 35.43 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/1.588, allocations: 10.38 kB / 0.5406 GB, free: 35.43 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/1.59, allocations: 421.7 kB / 0.541 GB, free: 35.42 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/1.591, allocations: 146 kB / 0.5412 GB, free: 35.42 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/1.593, allocations: 1.02 MB / 0.5421 GB, free: 34.89 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/1.594, allocations: 55.44 kB / 0.5422 GB, free: 34.88 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-05/1.594, allocations: 27.81 kB / 0.5422 GB, free: 34.88 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = max(0.0, 0.0) start = max(tank2.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of 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 = max(0.0, 0.0) start = max(tank1.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of 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: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003609/1.594, allocations: 179.9 kB / 0.5424 GB, free: 34.78 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/1.594, allocations: 70.62 kB / 0.5425 GB, free: 34.74 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002628/1.597, allocations: 1.023 MB / 0.5435 GB, free: 34.67 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/1.597, allocations: 7.719 kB / 0.5435 GB, free: 34.67 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.597, allocations: 3.75 kB / 0.5435 GB, free: 34.67 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/1.597, allocations: 3.797 kB / 0.5435 GB, free: 34.67 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004138/1.601, allocations: 1.88 MB / 0.5453 GB, free: 34.33 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/1.601, allocations: 1.969 kB / 0.5453 GB, free: 34.33 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/1.602, allocations: 118.9 kB / 0.5454 GB, free: 34.33 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001748/1.604, allocations: 427.8 kB / 0.5458 GB, free: 34.32 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/1.604, allocations: 15.14 kB / 0.5459 GB, free: 34.32 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/1.606, allocations: 1.033 MB / 0.5469 GB, free: 33.8 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.606, allocations: 0 / 0.5469 GB, free: 33.8 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/1.609, allocations: 1.487 MB / 0.5483 GB, free: 33.59 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/1.61, allocations: 152.9 kB / 0.5485 GB, free: 33.46 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/1.61, allocations: 11.41 kB / 0.5485 GB, free: 33.46 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/1.611, allocations: 59.34 kB / 0.5485 GB, free: 33.46 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/1.611, allocations: 58.2 kB / 0.5486 GB, free: 33.46 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.675e-05/1.611, allocations: 31.44 kB / 0.5486 GB, free: 33.46 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007211/1.612, allocations: 428.5 kB / 0.549 GB, free: 33.36 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.612, allocations: 0 / 0.549 GB, free: 33.36 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0016/1.614, allocations: 431.9 kB / 0.5494 GB, free: 33.29 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {4 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.004792/1.618, allocations: 2.442 MB / 0.5518 GB, free: 32.48 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002906/1.621, allocations: 0.8506 MB / 0.5526 GB, free: 32.46 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.621, allocations: 3.938 kB / 0.5527 GB, free: 32.46 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/1.623, allocations: 487 kB / 0.5531 GB, free: 32.34 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/1.626, allocations: 382 kB / 0.5535 GB, free: 32.27 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006109/1.632, allocations: 1.66 MB / 0.5551 GB, free: 31.63 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004791/1.633, allocations: 0.983 MB / 0.5561 GB, free: 30.91 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005556/1.633, allocations: 260.8 kB / 0.5563 GB, free: 30.73 MB / 234.7 MB Notification: Performance of SimCode: time 1.252e-06/1.633, allocations: 0 / 0.5563 GB, free: 30.73 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.168/4.801, allocations: 20.72 MB / 0.5765 GB, free: 19.06 MB / 234.7 MB