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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.9592/0.9592, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.354e-05/2.378e-05, allocations: 4 kB / 154.3 MB, free: 13.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1984, allocations: 25.15 MB / 179.4 MB, free: 0.8203 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5031/0.7015, allocations: 236.4 MB / 415.8 MB, free: 12.51 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/0.7017, allocations: 70.95 kB / 415.9 MB, free: 12.47 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6337/1.335, allocations: 122.3 MB / 0.5255 GB, free: 39.97 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.375e-06/1.336, allocations: 0 / 0.5255 GB, free: 39.97 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.406e-05/1.336, allocations: 18.38 kB / 0.5255 GB, free: 39.97 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.002441/1.338, allocations: 1.027 MB / 0.5265 GB, free: 39.45 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/1.338, allocations: 11.53 kB / 0.5266 GB, free: 39.45 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002745/1.338, allocations: 85.97 kB / 0.5266 GB, free: 39.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/1.34, allocations: 0.5802 MB / 0.5272 GB, free: 39.18 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/1.34, allocations: 112.5 kB / 0.5273 GB, free: 39.11 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/1.34, allocations: 53.09 kB / 0.5274 GB, free: 39.11 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/1.342, allocations: 0.8248 MB / 0.5282 GB, free: 39 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/1.342, allocations: 0 / 0.5282 GB, free: 39 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/1.342, allocations: 25.39 kB / 0.5282 GB, free: 39 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.644e-05/1.342, allocations: 49.16 kB / 0.5282 GB, free: 39 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/1.343, allocations: 0.7236 MB / 0.5289 GB, free: 38.99 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005694/1.349, allocations: 3.116 MB / 0.532 GB, free: 37.77 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/1.35, allocations: 0.6144 MB / 0.5326 GB, free: 37.74 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006137/1.351, allocations: 340.2 kB / 0.5329 GB, free: 37.73 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003289/1.354, allocations: 1.907 MB / 0.5348 GB, free: 36.66 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/1.354, allocations: 41.62 kB / 0.5348 GB, free: 36.62 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 4.044e-06/1.354, allocations: 2.906 kB / 0.5348 GB, free: 36.62 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.005104/1.36, allocations: 2.057 MB / 0.5368 GB, free: 36.21 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/1.36, allocations: 84.61 kB / 0.5369 GB, free: 36.12 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008373/1.36, allocations: 0.5397 MB / 0.5374 GB, free: 35.99 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.875e-05/1.361, allocations: 35.77 kB / 0.5375 GB, free: 35.96 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/1.361, allocations: 341 kB / 0.5378 GB, free: 35.74 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/1.361, allocations: 211.4 kB / 0.538 GB, free: 35.61 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/1.361, allocations: 12.84 kB / 0.538 GB, free: 35.61 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.641e-05/1.361, allocations: 341.4 kB / 0.5383 GB, free: 35.29 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006367/1.362, allocations: 316.1 kB / 0.5386 GB, free: 35.29 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00068/1.362, allocations: 462 kB / 0.5391 GB, free: 35.13 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006952/1.363, allocations: 368.6 kB / 0.5394 GB, free: 35.12 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.765e-06/1.363, allocations: 0 / 0.5394 GB, free: 35.12 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002177/1.365, allocations: 1.009 MB / 0.5404 GB, free: 35.05 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/1.365, allocations: 10.12 kB / 0.5404 GB, free: 35.05 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/1.365, allocations: 7.484 kB / 0.5404 GB, free: 35.05 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/1.367, allocations: 416.9 kB / 0.5408 GB, free: 35.05 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007733/1.368, allocations: 149.8 kB / 0.541 GB, free: 35.05 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/1.369, allocations: 1.019 MB / 0.542 GB, free: 34.52 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008998/1.37, allocations: 49.62 kB / 0.542 GB, free: 34.52 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.901e-05/1.37, allocations: 31.44 kB / 0.542 GB, free: 34.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.0003289/1.37, allocations: 177.5 kB / 0.5422 GB, free: 34.41 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/1.371, allocations: 72.84 kB / 0.5423 GB, free: 34.37 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/1.373, allocations: 1.021 MB / 0.5433 GB, free: 34.3 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.566e-06/1.373, allocations: 3.969 kB / 0.5433 GB, free: 34.3 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.971e-06/1.373, allocations: 0 / 0.5433 GB, free: 34.3 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/1.373, allocations: 6.141 kB / 0.5433 GB, free: 34.3 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003647/1.377, allocations: 1.889 MB / 0.5451 GB, free: 33.96 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/1.377, allocations: 3.469 kB / 0.5451 GB, free: 33.96 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007176/1.377, allocations: 107.4 kB / 0.5452 GB, free: 33.96 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/1.379, allocations: 438.8 kB / 0.5457 GB, free: 33.95 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-05/1.379, allocations: 15.08 kB / 0.5457 GB, free: 33.95 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/1.381, allocations: 1.031 MB / 0.5467 GB, free: 33.42 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.524e-06/1.381, allocations: 0 / 0.5467 GB, free: 33.42 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/1.383, allocations: 1.49 MB / 0.5481 GB, free: 33.22 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002966/1.384, allocations: 145 kB / 0.5483 GB, free: 33.09 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/1.384, allocations: 15.94 kB / 0.5483 GB, free: 33.09 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008118/1.385, allocations: 54.39 kB / 0.5483 GB, free: 33.09 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/1.385, allocations: 55.39 kB / 0.5484 GB, free: 33.09 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-05/1.385, allocations: 27.48 kB / 0.5484 GB, free: 33.09 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006303/1.386, allocations: 431.4 kB / 0.5488 GB, free: 32.99 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.386, allocations: 0 / 0.5488 GB, free: 32.99 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001441/1.387, allocations: 440.5 kB / 0.5493 GB, free: 32.91 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.00114/1.388, allocations: 0.5047 MB / 0.5497 GB, free: 32.74 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002232/1.39, allocations: 0.853 MB / 0.5506 GB, free: 32.73 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.39, allocations: 3.219 kB / 0.5506 GB, free: 32.73 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/1.392, allocations: 489.3 kB / 0.551 GB, free: 32.71 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/1.394, allocations: 371.8 kB / 0.5514 GB, free: 32.71 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005397/1.399, allocations: 1.362 MB / 0.5527 GB, free: 32.4 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008112/1.4, allocations: 0.9849 MB / 0.5537 GB, free: 31.7 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005352/1.401, allocations: 70.3 kB / 0.5538 GB, free: 31.7 MB / 234.7 MB Notification: Performance of SimCode: time 2.777e-06/1.401, allocations: 0 / 0.5538 GB, free: 31.7 MB / 234.7 MB Notification: Performance of Templates: time 0.03094/1.432, allocations: 17.51 MB / 0.5709 GB, free: 25.93 MB / 234.7 MB