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.AST_BatchPlant.Test.TwoTanks.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.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 0.957/0.957, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.359e-05/1.385e-05, allocations: 0 / 148.1 MB, free: 6.219 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04496/0.04499, allocations: 25.17 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6081/0.6532, allocations: 236 MB / 409.3 MB, free: 80.59 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.6534, allocations: 68.33 kB / 409.4 MB, free: 80.59 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5206/1.174, allocations: 127.4 MB / 0.5242 GB, free: 42.78 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.292e-06/1.174, allocations: 0 / 0.5242 GB, free: 42.78 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.406e-05/1.174, allocations: 17.16 kB / 0.5242 GB, free: 42.78 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001949/1.176, allocations: 0.9883 MB / 0.5252 GB, free: 42.14 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/1.176, allocations: 11.25 kB / 0.5252 GB, free: 42.14 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/1.176, allocations: 78.44 kB / 0.5252 GB, free: 42.1 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/1.177, allocations: 0.5595 MB / 0.5258 GB, free: 41.74 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/1.178, allocations: 19.53 kB / 0.5258 GB, free: 41.74 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.956e-05/1.178, allocations: 29.77 kB / 0.5258 GB, free: 41.73 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001071/1.179, allocations: 0.5466 MB / 0.5264 GB, free: 41.55 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/1.18, allocations: 0.6322 MB / 0.527 GB, free: 41.27 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/1.18, allocations: 3.938 kB / 0.527 GB, free: 41.26 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/1.18, allocations: 0 / 0.527 GB, free: 41.26 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.957e-05/1.18, allocations: 43.12 kB / 0.527 GB, free: 41.26 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003986/1.184, allocations: 2.695 MB / 0.5297 GB, free: 39.35 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007297/1.185, allocations: 441.9 kB / 0.5301 GB, free: 39.17 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/1.185, allocations: 230 kB / 0.5303 GB, free: 39.08 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000274/1.186, allocations: 418.7 kB / 0.5307 GB, free: 38.61 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/1.186, allocations: 42.44 kB / 0.5307 GB, free: 38.56 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 3.754e-06/1.186, allocations: 6.969 kB / 0.5307 GB, free: 38.56 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.006573/1.192, allocations: 1.753 MB / 0.5325 GB, free: 37.8 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/1.192, allocations: 84.61 kB / 0.5325 GB, free: 37.71 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005952/1.193, allocations: 427 kB / 0.5329 GB, free: 37.49 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.26e-05/1.193, allocations: 37.23 kB / 0.533 GB, free: 37.46 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002096/1.193, allocations: 356.5 kB / 0.5333 GB, free: 37.14 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/1.193, allocations: 193.7 kB / 0.5335 GB, free: 37 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/1.193, allocations: 0 / 0.5335 GB, free: 37 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.423e-05/1.194, allocations: 340.3 kB / 0.5338 GB, free: 36.67 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/1.194, allocations: 241.7 kB / 0.5341 GB, free: 36.58 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000527/1.195, allocations: 410.7 kB / 0.5345 GB, free: 36.3 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/1.196, allocations: 390.5 kB / 0.5348 GB, free: 36.19 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/1.196, allocations: 0 / 0.5348 GB, free: 36.19 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00263/1.199, allocations: 0.8549 MB / 0.5357 GB, free: 35.9 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/1.199, allocations: 7.781 kB / 0.5357 GB, free: 35.9 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/1.199, allocations: 3.938 kB / 0.5357 GB, free: 35.9 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005886/1.2, allocations: 167.7 kB / 0.5358 GB, free: 35.85 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006517/1.2, allocations: 137.4 kB / 0.536 GB, free: 35.84 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/1.202, allocations: 0.9272 MB / 0.5369 GB, free: 35.2 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007186/1.203, allocations: 29.16 kB / 0.5369 GB, free: 35.2 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.764e-05/1.203, allocations: 31.88 kB / 0.5369 GB, free: 35.19 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the 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 = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002849/1.203, allocations: 166.2 kB / 0.5371 GB, free: 35.06 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/1.203, allocations: 69.67 kB / 0.5372 GB, free: 35.03 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002379/1.206, allocations: 0.8069 MB / 0.5379 GB, free: 34.66 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.66e-06/1.206, allocations: 5.688 kB / 0.5379 GB, free: 34.66 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.206, allocations: 3.938 kB / 0.538 GB, free: 34.66 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/1.206, allocations: 3.984 kB / 0.538 GB, free: 34.65 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/1.21, allocations: 1.555 MB / 0.5395 GB, free: 33.65 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/1.21, allocations: 3.969 kB / 0.5395 GB, free: 33.65 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000612/1.21, allocations: 106.6 kB / 0.5396 GB, free: 33.63 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006/1.211, allocations: 155.8 kB / 0.5397 GB, free: 33.56 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/1.211, allocations: 11.73 kB / 0.5397 GB, free: 33.55 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/1.212, allocations: 0.8641 MB / 0.5406 GB, free: 32.86 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.099e-06/1.212, allocations: 0 / 0.5406 GB, free: 32.86 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002842/1.215, allocations: 1.224 MB / 0.5418 GB, free: 32.15 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/1.216, allocations: 145.9 kB / 0.5419 GB, free: 32 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/1.216, allocations: 3.156 kB / 0.5419 GB, free: 32 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006071/1.216, allocations: 29.22 kB / 0.5419 GB, free: 31.98 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/1.216, allocations: 56.44 kB / 0.542 GB, free: 31.93 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.699e-05/1.217, allocations: 25.17 kB / 0.542 GB, free: 31.91 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0004487/1.217, allocations: 326.9 kB / 0.5423 GB, free: 31.59 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.273e-06/1.217, allocations: 4 kB / 0.5423 GB, free: 31.59 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001382/1.218, allocations: 389 kB / 0.5427 GB, free: 31.21 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/1.219, allocations: 0.5422 MB / 0.5432 GB, free: 30.73 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/1.221, allocations: 0.626 MB / 0.5439 GB, free: 30.1 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/1.221, allocations: 7.281 kB / 0.5439 GB, free: 30.1 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006976/1.222, allocations: 345.9 kB / 0.5442 GB, free: 29.76 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001752/1.223, allocations: 333.2 kB / 0.5445 GB, free: 29.46 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/1.226, allocations: 1.174 MB / 0.5457 GB, free: 28.28 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/1.226, allocations: 0.9702 MB / 0.5466 GB, free: 27.28 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002913/1.226, allocations: 63.41 kB / 0.5467 GB, free: 27.22 MB / 234.7 MB Notification: Performance of SimCode: time 2.292e-06/1.226, allocations: 4 kB / 0.5467 GB, free: 27.21 MB / 234.7 MB Notification: Performance of Templates: time 0.02372/1.25, allocations: 16.79 MB / 0.5631 GB, free: 10.57 MB / 234.7 MB