Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 0.9767/0.9767, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.53e-05/1.543e-05, allocations: 0 / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0519/0.05194, allocations: 25.18 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7548/0.8068, allocations: 235.7 MB / 409 MB, free: 80.77 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.8071, allocations: 67.08 kB / 409.1 MB, free: 80.77 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5482/1.355, allocations: 121.4 MB / 0.5181 GB, free: 43.15 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.021e-06/1.355, allocations: 0 / 0.5181 GB, free: 43.15 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.205e-05/1.355, allocations: 25 kB / 0.5181 GB, free: 43.14 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.002705/1.358, allocations: 1.011 MB / 0.5191 GB, free: 42.58 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/1.358, allocations: 11.56 kB / 0.5191 GB, free: 42.58 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003337/1.359, allocations: 81.41 kB / 0.5192 GB, free: 42.54 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/1.36, allocations: 0.6039 MB / 0.5198 GB, free: 42.27 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/1.36, allocations: 89.08 kB / 0.5199 GB, free: 42.21 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/1.36, allocations: 31.94 kB / 0.5199 GB, free: 42.21 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00144/1.362, allocations: 0.654 MB / 0.5205 GB, free: 42.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/1.363, allocations: 0.7542 MB / 0.5213 GB, free: 41.94 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/1.363, allocations: 3.969 kB / 0.5213 GB, free: 41.94 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/1.364, allocations: 2.469 kB / 0.5213 GB, free: 41.94 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.399e-05/1.364, allocations: 46.27 kB / 0.5213 GB, free: 41.93 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00578/1.369, allocations: 2.986 MB / 0.5242 GB, free: 40.12 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/1.371, allocations: 0.5856 MB / 0.5248 GB, free: 39.89 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006085/1.371, allocations: 325.2 kB / 0.5251 GB, free: 39.77 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003358/1.375, allocations: 1.86 MB / 0.5269 GB, free: 38.4 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/1.375, allocations: 41.5 kB / 0.527 GB, free: 38.36 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 3.359e-06/1.375, allocations: 0 / 0.527 GB, free: 38.36 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.009182/1.384, allocations: 2.358 MB / 0.5293 GB, free: 37.48 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/1.384, allocations: 85.48 kB / 0.5294 GB, free: 37.38 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006055/1.385, allocations: 410.2 kB / 0.5297 GB, free: 37.18 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.515e-05/1.385, allocations: 25.7 kB / 0.5298 GB, free: 37.14 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/1.385, allocations: 352.6 kB / 0.5301 GB, free: 36.84 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/1.385, allocations: 210 kB / 0.5303 GB, free: 36.68 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.289e-05/1.385, allocations: 3.938 kB / 0.5303 GB, free: 36.67 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.714e-05/1.385, allocations: 340.8 kB / 0.5306 GB, free: 36.35 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005849/1.386, allocations: 297.7 kB / 0.5309 GB, free: 36.23 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006709/1.387, allocations: 445.2 kB / 0.5313 GB, free: 35.96 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/1.389, allocations: 0.5288 MB / 0.5319 GB, free: 35.82 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.07e-06/1.389, allocations: 3.938 kB / 0.5319 GB, free: 35.82 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00385/1.393, allocations: 1.13 MB / 0.533 GB, free: 35.47 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/1.393, allocations: 6.844 kB / 0.533 GB, free: 35.47 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/1.393, allocations: 6.438 kB / 0.533 GB, free: 35.47 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000912/1.394, allocations: 350 kB / 0.5333 GB, free: 35.39 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007926/1.395, allocations: 144.7 kB / 0.5335 GB, free: 35.38 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/1.397, allocations: 1.195 MB / 0.5346 GB, free: 34.65 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/1.398, allocations: 36.61 kB / 0.5347 GB, free: 34.65 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/1.399, allocations: 33.12 kB / 0.5347 GB, free: 34.64 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.0003492/1.399, allocations: 168.5 kB / 0.5348 GB, free: 34.52 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/1.399, allocations: 62.75 kB / 0.5349 GB, free: 34.49 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003975/1.403, allocations: 1.139 MB / 0.536 GB, free: 34.11 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/1.403, allocations: 6.594 kB / 0.536 GB, free: 34.11 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.028e-06/1.403, allocations: 0 / 0.536 GB, free: 34.11 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/1.403, allocations: 3.75 kB / 0.536 GB, free: 34.11 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005562/1.409, allocations: 1.932 MB / 0.5379 GB, free: 33.32 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.597e-06/1.409, allocations: 0 / 0.5379 GB, free: 33.32 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007791/1.41, allocations: 115 kB / 0.538 GB, free: 33.3 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/1.411, allocations: 362.4 kB / 0.5384 GB, free: 33.22 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.589e-05/1.411, allocations: 14.52 kB / 0.5384 GB, free: 33.21 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00279/1.414, allocations: 1.216 MB / 0.5396 GB, free: 32.48 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/1.414, allocations: 0 / 0.5396 GB, free: 32.48 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004485/1.418, allocations: 1.602 MB / 0.5411 GB, free: 31.84 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/1.418, allocations: 140.5 kB / 0.5413 GB, free: 31.7 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/1.419, allocations: 3.938 kB / 0.5413 GB, free: 31.7 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000793/1.419, allocations: 48.91 kB / 0.5413 GB, free: 31.7 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/1.42, allocations: 54.47 kB / 0.5414 GB, free: 31.69 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/1.42, allocations: 27.67 kB / 0.5414 GB, free: 31.68 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0004494/1.42, allocations: 313.2 kB / 0.5417 GB, free: 31.52 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.75e-07/1.42, allocations: 0 / 0.5417 GB, free: 31.52 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00159/1.422, allocations: 409.4 kB / 0.5421 GB, free: 31.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.001227/1.423, allocations: 0.4955 MB / 0.5426 GB, free: 30.88 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/1.425, allocations: 0.8193 MB / 0.5434 GB, free: 30.16 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.84e-06/1.425, allocations: 3.938 kB / 0.5434 GB, free: 30.16 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/1.427, allocations: 469 kB / 0.5438 GB, free: 29.77 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002025/1.429, allocations: 325.7 kB / 0.5441 GB, free: 29.49 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/1.432, allocations: 1.314 MB / 0.5454 GB, free: 28.17 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/1.433, allocations: 0.9819 MB / 0.5464 GB, free: 27.16 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/1.433, allocations: 75.41 kB / 0.5464 GB, free: 27.09 MB / 234.7 MB Notification: Performance of SimCode: time 1.768e-06/1.433, allocations: 0 / 0.5464 GB, free: 27.09 MB / 234.7 MB Notification: Performance of Templates: time 0.02591/1.459, allocations: 16.93 MB / 0.563 GB, free: 10.31 MB / 234.7 MB