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: 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 1.211/1.211, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002698, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07312/0.07341, allocations: 25.17 MB / 184 MB, free: 6.023 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7902/0.8637, allocations: 236.5 MB / 420.5 MB, free: 55.14 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.864, allocations: 68.97 kB / 420.6 MB, free: 55.12 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.591/1.455, allocations: 122.8 MB / 0.5306 GB, free: 28.92 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.454e-06/1.455, allocations: 0 / 0.5306 GB, free: 28.92 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.092e-05/1.455, allocations: 23.94 kB / 0.5306 GB, free: 28.89 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.003869/1.459, allocations: 1.102 MB / 0.5317 GB, free: 27.75 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/1.459, allocations: 16.02 kB / 0.5317 GB, free: 27.73 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004471/1.46, allocations: 79.06 kB / 0.5318 GB, free: 27.66 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001768/1.461, allocations: 0.5983 MB / 0.5324 GB, free: 27.03 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/1.462, allocations: 108.8 kB / 0.5325 GB, free: 26.91 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/1.462, allocations: 55.7 kB / 0.5325 GB, free: 26.86 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/1.464, allocations: 0.8511 MB / 0.5334 GB, free: 25.99 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/1.464, allocations: 4 kB / 0.5334 GB, free: 25.99 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/1.465, allocations: 23.83 kB / 0.5334 GB, free: 25.97 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/1.465, allocations: 52.95 kB / 0.5334 GB, free: 25.92 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002296/1.467, allocations: 0.7651 MB / 0.5342 GB, free: 25.15 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008255/1.475, allocations: 3.128 MB / 0.5372 GB, free: 21.89 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002033/1.477, allocations: 0.6419 MB / 0.5379 GB, free: 21.23 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004237/1.482, allocations: 1.893 MB / 0.5397 GB, free: 19.18 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/1.482, allocations: 42.98 kB / 0.5398 GB, free: 19.13 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 3.526e-06/1.482, allocations: 3.938 kB / 0.5398 GB, free: 19.12 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.01178/1.494, allocations: 2.87 MB / 0.5426 GB, free: 16.18 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/1.494, allocations: 85.67 kB / 0.5426 GB, free: 16.08 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009948/1.495, allocations: 0.6172 MB / 0.5432 GB, free: 15.46 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/1.495, allocations: 45.64 kB / 0.5433 GB, free: 15.41 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/1.495, allocations: 339 kB / 0.5436 GB, free: 15.07 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/1.495, allocations: 212.1 kB / 0.5438 GB, free: 14.87 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.687e-05/1.495, allocations: 16 kB / 0.5438 GB, free: 14.85 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.833e-05/1.495, allocations: 342.8 kB / 0.5442 GB, free: 14.51 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/1.496, allocations: 349.4 kB / 0.5445 GB, free: 14.17 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/1.497, allocations: 493.2 kB / 0.545 GB, free: 13.63 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/1.499, allocations: 400.2 kB / 0.5453 GB, free: 13.24 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/1.499, allocations: 0 / 0.5453 GB, free: 13.24 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00321/1.502, allocations: 1.105 MB / 0.5464 GB, free: 12.12 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/1.502, allocations: 8 kB / 0.5464 GB, free: 12.12 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/1.502, allocations: 4 kB / 0.5464 GB, free: 12.11 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/1.504, allocations: 480.5 kB / 0.5469 GB, free: 11.64 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/1.505, allocations: 143.8 kB / 0.547 GB, free: 11.5 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/1.508, allocations: 1.095 MB / 0.5481 GB, free: 10.38 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/1.509, allocations: 51.88 kB / 0.5481 GB, free: 10.33 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/1.509, allocations: 31.98 kB / 0.5482 GB, free: 10.3 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" fixed = true 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" fixed = true 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" fixed = true 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" 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: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0007693/1.51, allocations: 283.7 kB / 0.5484 GB, free: 10.02 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/1.51, allocations: 75.14 kB / 0.5485 GB, free: 9.941 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/1.514, allocations: 1.112 MB / 0.5496 GB, free: 8.82 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/1.514, allocations: 4 kB / 0.5496 GB, free: 8.816 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.514, allocations: 4 kB / 0.5496 GB, free: 8.812 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/1.514, allocations: 3.984 kB / 0.5496 GB, free: 8.809 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005808/1.52, allocations: 1.974 MB / 0.5515 GB, free: 6.789 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/1.52, allocations: 0 / 0.5515 GB, free: 6.789 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009936/1.521, allocations: 111.8 kB / 0.5517 GB, free: 6.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002233/1.523, allocations: 496.5 kB / 0.5521 GB, free: 6.191 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/1.523, allocations: 15.98 kB / 0.5521 GB, free: 6.176 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002389/1.525, allocations: 1.109 MB / 0.5532 GB, free: 5.043 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/1.525, allocations: 4 kB / 0.5532 GB, free: 5.039 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004297/1.53, allocations: 1.604 MB / 0.5548 GB, free: 3.41 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002957/1.53, allocations: 144.3 kB / 0.5549 GB, free: 3.25 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001987/1.53, allocations: 16 kB / 0.5549 GB, free: 3.234 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/1.531, allocations: 63.8 kB / 0.555 GB, free: 3.172 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/1.532, allocations: 56.47 kB / 0.5551 GB, free: 3.117 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.599e-05/1.532, allocations: 23.98 kB / 0.5551 GB, free: 3.094 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007177/1.532, allocations: 439 kB / 0.5555 GB, free: 2.668 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.532, allocations: 4 kB / 0.5555 GB, free: 2.664 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001568/1.534, allocations: 435.6 kB / 0.5559 GB, free: 2.238 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 () * Number of clocked 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.001247/1.535, allocations: 0.501 MB / 0.5564 GB, free: 1.762 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003291/1.539, allocations: 0.9172 MB / 0.5573 GB, free: 0.8398 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.539, allocations: 4 kB / 0.5573 GB, free: 0.8359 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002035/1.541, allocations: 0.5114 MB / 0.5578 GB, free: 336 kB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.162/1.703, allocations: 365.1 kB / 0.5582 GB, free: 36.16 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006112/1.709, allocations: 2.021 MB / 0.5601 GB, free: 35.45 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000472/1.709, allocations: 0.9821 MB / 0.5611 GB, free: 34.75 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003978/1.71, allocations: 76.66 kB / 0.5612 GB, free: 34.75 MB / 234.7 MB Notification: Performance of SimCode: time 9.22e-07/1.71, allocations: 2.625 kB / 0.5612 GB, free: 34.75 MB / 234.7 MB Notification: Performance of Templates: time 0.03538/1.745, allocations: 17.55 MB / 0.5783 GB, free: 33.88 MB / 234.7 MB