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 1.199/1.199, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002935, allocations: 11.94 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04728/0.0476, allocations: 25.15 MB / 183.5 MB, free: 5.992 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6379/0.6856, allocations: 236.5 MB / 420 MB, free: 57 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001808/0.6858, allocations: 66.95 kB / 420 MB, free: 56.97 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5085/1.194, allocations: 122.8 MB / 0.5301 GB, free: 30.96 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.391e-06/1.194, allocations: 0 / 0.5301 GB, free: 30.96 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.455e-05/1.194, allocations: 27.77 kB / 0.5301 GB, free: 30.93 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.002831/1.197, allocations: 1.105 MB / 0.5312 GB, free: 29.79 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/1.197, allocations: 20.02 kB / 0.5312 GB, free: 29.77 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003248/1.198, allocations: 79.06 kB / 0.5313 GB, free: 29.69 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/1.199, allocations: 0.5903 MB / 0.5318 GB, free: 29.07 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/1.199, allocations: 112.8 kB / 0.532 GB, free: 28.95 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/1.199, allocations: 51.86 kB / 0.532 GB, free: 28.9 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/1.201, allocations: 0.8514 MB / 0.5328 GB, free: 28.03 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/1.201, allocations: 4 kB / 0.5328 GB, free: 28.02 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/1.202, allocations: 23.91 kB / 0.5329 GB, free: 28 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-05/1.202, allocations: 56.95 kB / 0.5329 GB, free: 27.95 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/1.203, allocations: 0.7651 MB / 0.5337 GB, free: 27.18 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005816/1.209, allocations: 3.128 MB / 0.5367 GB, free: 23.92 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/1.211, allocations: 0.6418 MB / 0.5373 GB, free: 23.26 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00323/1.214, allocations: 1.885 MB / 0.5392 GB, free: 21.22 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/1.214, allocations: 50.94 kB / 0.5392 GB, free: 21.16 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 3.71e-06/1.214, allocations: 3.938 kB / 0.5392 GB, free: 21.16 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.008832/1.223, allocations: 2.872 MB / 0.542 GB, free: 18.21 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/1.223, allocations: 81.67 kB / 0.5421 GB, free: 18.11 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008498/1.224, allocations: 0.55 MB / 0.5427 GB, free: 17.55 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/1.224, allocations: 37.7 kB / 0.5427 GB, free: 17.51 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/1.224, allocations: 343 kB / 0.543 GB, free: 17.18 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/1.224, allocations: 206.8 kB / 0.5432 GB, free: 16.98 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.764e-05/1.225, allocations: 12 kB / 0.5432 GB, free: 16.96 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.402e-05/1.225, allocations: 338.8 kB / 0.5436 GB, free: 16.62 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008224/1.225, allocations: 349.4 kB / 0.5439 GB, free: 16.29 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008559/1.226, allocations: 497.2 kB / 0.5444 GB, free: 15.75 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008884/1.227, allocations: 404.2 kB / 0.5447 GB, free: 15.35 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.623e-06/1.227, allocations: 0 / 0.5447 GB, free: 15.35 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002682/1.23, allocations: 1.108 MB / 0.5458 GB, free: 14.23 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/1.23, allocations: 8 kB / 0.5458 GB, free: 14.22 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/1.23, allocations: 4 kB / 0.5458 GB, free: 14.22 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/1.232, allocations: 476.5 kB / 0.5463 GB, free: 13.75 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008155/1.233, allocations: 151.8 kB / 0.5464 GB, free: 13.6 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/1.234, allocations: 1.091 MB / 0.5475 GB, free: 12.48 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009456/1.235, allocations: 51.83 kB / 0.5476 GB, free: 12.43 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/1.236, allocations: 35.98 kB / 0.5476 GB, free: 12.4 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.0006181/1.236, allocations: 282.5 kB / 0.5479 GB, free: 12.12 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/1.236, allocations: 71.16 kB / 0.5479 GB, free: 12.05 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/1.239, allocations: 1.108 MB / 0.549 GB, free: 10.93 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/1.239, allocations: 8 kB / 0.549 GB, free: 10.92 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.516e-06/1.239, allocations: 0 / 0.549 GB, free: 10.92 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/1.239, allocations: 7.984 kB / 0.549 GB, free: 10.91 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004129/1.243, allocations: 1.969 MB / 0.5509 GB, free: 8.898 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/1.243, allocations: 3.984 kB / 0.5509 GB, free: 8.895 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007189/1.244, allocations: 115.8 kB / 0.5511 GB, free: 8.781 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001848/1.246, allocations: 492.5 kB / 0.5515 GB, free: 8.297 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/1.246, allocations: 16 kB / 0.5515 GB, free: 8.281 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00205/1.248, allocations: 1.103 MB / 0.5526 GB, free: 7.152 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.174e-06/1.248, allocations: 8.031 kB / 0.5526 GB, free: 7.145 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003444/1.252, allocations: 1.604 MB / 0.5542 GB, free: 5.516 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/1.252, allocations: 144.3 kB / 0.5543 GB, free: 5.355 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/1.252, allocations: 16 kB / 0.5543 GB, free: 5.34 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007866/1.253, allocations: 55.8 kB / 0.5544 GB, free: 5.285 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/1.253, allocations: 64.47 kB / 0.5545 GB, free: 5.223 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.053e-05/1.253, allocations: 31.92 kB / 0.5545 GB, free: 5.191 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006527/1.254, allocations: 435 kB / 0.5549 GB, free: 4.773 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.39e-07/1.254, allocations: 0 / 0.5549 GB, free: 4.773 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001639/1.256, allocations: 431.6 kB / 0.5553 GB, free: 4.352 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.001324/1.257, allocations: 0.4988 MB / 0.5558 GB, free: 3.875 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002772/1.26, allocations: 0.918 MB / 0.5567 GB, free: 2.957 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.114e-06/1.26, allocations: 8 kB / 0.5567 GB, free: 2.949 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/1.261, allocations: 0.5145 MB / 0.5572 GB, free: 2.434 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/1.264, allocations: 373.4 kB / 0.5576 GB, free: 2.07 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004406/1.268, allocations: 2.026 MB / 0.5595 GB, free: 20 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1408/1.409, allocations: 0.9782 MB / 0.5605 GB, free: 35.8 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/1.409, allocations: 74.11 kB / 0.5606 GB, free: 35.8 MB / 234.7 MB Notification: Performance of SimCode: time 2.2e-06/1.409, allocations: 1.656 kB / 0.5606 GB, free: 35.8 MB / 234.7 MB Notification: Performance of Templates: time 0.03194/1.441, allocations: 17.54 MB / 0.5777 GB, free: 35.2 MB / 234.7 MB