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/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.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.103/1.103, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.852e-05/2.864e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0639/0.06398, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8234/0.8875, allocations: 235.7 MB / 409.1 MB, free: 60.45 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.8878, allocations: 69.67 kB / 409.2 MB, free: 60.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5769/1.465, allocations: 121.4 MB / 0.5182 GB, free: 44.95 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.734e-06/1.465, allocations: 0 / 0.5182 GB, free: 44.95 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.33e-05/1.465, allocations: 22.34 kB / 0.5182 GB, free: 44.95 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.003199/1.468, allocations: 1.027 MB / 0.5192 GB, free: 44.24 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/1.468, allocations: 11.12 kB / 0.5192 GB, free: 44.24 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003235/1.468, allocations: 79.34 kB / 0.5193 GB, free: 44.2 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/1.47, allocations: 0.5911 MB / 0.5199 GB, free: 43.83 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/1.47, allocations: 96.38 kB / 0.52 GB, free: 43.77 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/1.47, allocations: 26.47 kB / 0.52 GB, free: 43.77 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001542/1.472, allocations: 0.6623 MB / 0.5206 GB, free: 43.54 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/1.474, allocations: 0.7467 MB / 0.5214 GB, free: 43.1 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/1.474, allocations: 3.938 kB / 0.5214 GB, free: 43.1 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/1.474, allocations: 2.906 kB / 0.5214 GB, free: 43.1 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/1.474, allocations: 47.53 kB / 0.5214 GB, free: 43.09 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006803/1.481, allocations: 2.989 MB / 0.5243 GB, free: 40.78 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/1.482, allocations: 0.5845 MB / 0.5249 GB, free: 40.47 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006621/1.483, allocations: 323.6 kB / 0.5252 GB, free: 40.31 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003839/1.487, allocations: 1.854 MB / 0.527 GB, free: 38.71 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/1.487, allocations: 45.45 kB / 0.5271 GB, free: 38.66 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 3.356e-06/1.487, allocations: 3.938 kB / 0.5271 GB, free: 38.66 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.01047/1.497, allocations: 2.354 MB / 0.5294 GB, free: 37.2 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/1.497, allocations: 85.67 kB / 0.5294 GB, free: 37.1 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007624/1.498, allocations: 413.3 kB / 0.5298 GB, free: 36.69 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/1.498, allocations: 25.7 kB / 0.5299 GB, free: 36.66 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/1.499, allocations: 358.6 kB / 0.5302 GB, free: 36.31 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/1.499, allocations: 211.9 kB / 0.5304 GB, free: 36.1 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.319e-05/1.499, allocations: 0 / 0.5304 GB, free: 36.1 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.033e-05/1.499, allocations: 330.8 kB / 0.5307 GB, free: 35.77 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006839/1.5, allocations: 305.4 kB / 0.531 GB, free: 35.47 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007308/1.501, allocations: 442.6 kB / 0.5314 GB, free: 34.98 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002944/1.504, allocations: 0.5312 MB / 0.532 GB, free: 34.45 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/1.504, allocations: 0 / 0.532 GB, free: 34.45 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004664/1.508, allocations: 1.128 MB / 0.5331 GB, free: 33.31 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/1.508, allocations: 16.03 kB / 0.5331 GB, free: 33.3 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/1.508, allocations: 4 kB / 0.5331 GB, free: 33.29 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/1.51, allocations: 344.1 kB / 0.5334 GB, free: 32.96 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.511, allocations: 147.8 kB / 0.5335 GB, free: 32.82 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003268/1.514, allocations: 1.192 MB / 0.5347 GB, free: 31.6 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/1.515, allocations: 47.84 kB / 0.5348 GB, free: 31.55 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/1.516, allocations: 28 kB / 0.5348 GB, free: 31.52 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.0004114/1.516, allocations: 172.8 kB / 0.5349 GB, free: 31.36 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004085/1.52, allocations: 1.007 MB / 0.5359 GB, free: 30.35 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/1.52, allocations: 63.25 kB / 0.536 GB, free: 30.29 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004675/1.525, allocations: 1.135 MB / 0.5371 GB, free: 29.13 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/1.525, allocations: 8 kB / 0.5371 GB, free: 29.12 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/1.525, allocations: 4 kB / 0.5371 GB, free: 29.12 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/1.525, allocations: 3.984 kB / 0.5371 GB, free: 29.12 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006314/1.532, allocations: 1.941 MB / 0.539 GB, free: 27.14 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/1.532, allocations: 0 / 0.539 GB, free: 27.14 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/1.533, allocations: 115.8 kB / 0.5391 GB, free: 27.03 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/1.534, allocations: 356.2 kB / 0.5395 GB, free: 26.68 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/1.534, allocations: 11.98 kB / 0.5395 GB, free: 26.67 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003158/1.537, allocations: 1.212 MB / 0.5407 GB, free: 25.43 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.537, allocations: 4 kB / 0.5407 GB, free: 25.43 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004932/1.542, allocations: 1.608 MB / 0.5422 GB, free: 23.8 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002959/1.543, allocations: 140.3 kB / 0.5424 GB, free: 23.65 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/1.543, allocations: 0 / 0.5424 GB, free: 23.65 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/1.544, allocations: 51.48 kB / 0.5424 GB, free: 23.6 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/1.544, allocations: 52.48 kB / 0.5425 GB, free: 23.55 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.951e-05/1.544, allocations: 27.97 kB / 0.5425 GB, free: 23.52 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0004856/1.545, allocations: 310.9 kB / 0.5428 GB, free: 23.22 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.545, allocations: 0 / 0.5428 GB, free: 23.22 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001795/1.546, allocations: 407.6 kB / 0.5432 GB, free: 22.82 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.00663/1.553, allocations: 2.546 MB / 0.5457 GB, free: 20.28 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002777/1.556, allocations: 0.8162 MB / 0.5465 GB, free: 19.47 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.556, allocations: 4.125 kB / 0.5465 GB, free: 19.46 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001747/1.558, allocations: 477.8 kB / 0.5469 GB, free: 19 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/1.561, allocations: 324.2 kB / 0.5472 GB, free: 18.7 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006397/1.567, allocations: 1.581 MB / 0.5488 GB, free: 17.09 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005081/1.568, allocations: 0.9858 MB / 0.5497 GB, free: 16.07 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006212/1.568, allocations: 259.3 kB / 0.55 GB, free: 15.82 MB / 234.7 MB Notification: Performance of SimCode: time 9.62e-07/1.568, allocations: 0 / 0.55 GB, free: 15.82 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.555/5.124, allocations: 20.05 MB / 0.5696 GB, free: 40.64 MB / 234.7 MB