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/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.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.9424/0.9424, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.14e-05/2.148e-05, allocations: 4 kB / 154.3 MB, free: 13.12 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1355, allocations: 25.14 MB / 179.4 MB, free: 0.7891 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4923/0.6279, allocations: 236.7 MB / 416.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001869/0.6281, allocations: 70.7 kB / 416.2 MB, free: 12.05 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.625/1.253, allocations: 128 MB / 0.5315 GB, free: 38.78 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.768e-06/1.253, allocations: 3.797 kB / 0.5315 GB, free: 38.78 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.376e-05/1.253, allocations: 19.03 kB / 0.5315 GB, free: 38.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.002029/1.255, allocations: 0.9825 MB / 0.5324 GB, free: 38.25 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/1.255, allocations: 11.59 kB / 0.5325 GB, free: 38.25 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/1.255, allocations: 77.41 kB / 0.5325 GB, free: 38.21 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/1.257, allocations: 0.5616 MB / 0.5331 GB, free: 37.98 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/1.257, allocations: 35.64 kB / 0.5331 GB, free: 37.97 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/1.257, allocations: 44.61 kB / 0.5332 GB, free: 37.97 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/1.258, allocations: 0.6984 MB / 0.5338 GB, free: 37.86 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/1.258, allocations: 0 / 0.5338 GB, free: 37.86 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.57e-05/1.258, allocations: 18.38 kB / 0.5339 GB, free: 37.86 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-05/1.258, allocations: 41.42 kB / 0.5339 GB, free: 37.86 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/1.26, allocations: 0.62 MB / 0.5345 GB, free: 37.85 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/1.264, allocations: 2.818 MB / 0.5373 GB, free: 36.38 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008391/1.265, allocations: 454.8 kB / 0.5377 GB, free: 36.36 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004291/1.265, allocations: 243.8 kB / 0.5379 GB, free: 36.35 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002979/1.266, allocations: 418.8 kB / 0.5383 GB, free: 35.88 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/1.266, allocations: 45.05 kB / 0.5384 GB, free: 35.84 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 4.67e-06/1.266, allocations: 3.469 kB / 0.5384 GB, free: 35.84 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.004916/1.271, allocations: 1.749 MB / 0.5401 GB, free: 35.42 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/1.271, allocations: 85.02 kB / 0.5402 GB, free: 35.33 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/1.272, allocations: 0.5004 MB / 0.5406 GB, free: 35.21 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.439e-05/1.272, allocations: 40.33 kB / 0.5407 GB, free: 35.18 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/1.272, allocations: 346.7 kB / 0.541 GB, free: 34.96 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/1.272, allocations: 195.4 kB / 0.5412 GB, free: 34.84 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/1.272, allocations: 12.97 kB / 0.5412 GB, free: 34.84 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.743e-05/1.272, allocations: 338.6 kB / 0.5415 GB, free: 34.53 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005663/1.273, allocations: 256.6 kB / 0.5418 GB, free: 34.53 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006468/1.274, allocations: 423.5 kB / 0.5422 GB, free: 34.36 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006454/1.274, allocations: 315.6 kB / 0.5425 GB, free: 34.35 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.938e-06/1.274, allocations: 0 / 0.5425 GB, free: 34.35 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001824/1.276, allocations: 0.8344 MB / 0.5433 GB, free: 34.29 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/1.276, allocations: 7.031 kB / 0.5433 GB, free: 34.29 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/1.276, allocations: 7.703 kB / 0.5433 GB, free: 34.28 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002628/1.279, allocations: 344.7 kB / 0.5436 GB, free: 34.27 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007819/1.28, allocations: 141.8 kB / 0.5438 GB, free: 34.27 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/1.281, allocations: 0.8099 MB / 0.5446 GB, free: 33.75 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008372/1.282, allocations: 50.61 kB / 0.5446 GB, free: 33.75 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.875e-05/1.282, allocations: 32.44 kB / 0.5446 GB, free: 33.75 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.0003/1.282, allocations: 174.2 kB / 0.5448 GB, free: 33.64 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/1.282, allocations: 69.16 kB / 0.5449 GB, free: 33.6 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/1.284, allocations: 0.8307 MB / 0.5457 GB, free: 33.52 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.556e-06/1.284, allocations: 6.688 kB / 0.5457 GB, free: 33.52 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.177e-06/1.284, allocations: 0 / 0.5457 GB, free: 33.52 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/1.284, allocations: 2.578 kB / 0.5457 GB, free: 33.52 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/1.288, allocations: 1.625 MB / 0.5473 GB, free: 33.18 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.592e-06/1.288, allocations: 7.266 kB / 0.5473 GB, free: 33.18 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/1.289, allocations: 102.6 kB / 0.5474 GB, free: 33.18 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/1.291, allocations: 327.7 kB / 0.5477 GB, free: 33.17 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/1.291, allocations: 17.89 kB / 0.5477 GB, free: 33.16 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009241/1.292, allocations: 0.797 MB / 0.5485 GB, free: 32.64 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.881e-06/1.292, allocations: 0 / 0.5485 GB, free: 32.64 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/1.294, allocations: 1.226 MB / 0.5497 GB, free: 32.39 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002987/1.294, allocations: 152.5 kB / 0.5498 GB, free: 32.26 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/1.295, allocations: 17.33 kB / 0.5499 GB, free: 32.26 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000723/1.295, allocations: 53.58 kB / 0.5499 GB, free: 32.25 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/1.296, allocations: 51 kB / 0.55 GB, free: 32.25 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.903e-05/1.296, allocations: 29.33 kB / 0.55 GB, free: 32.25 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006517/1.296, allocations: 404 kB / 0.5504 GB, free: 32.16 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.57e-07/1.296, allocations: 0 / 0.5504 GB, free: 32.16 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001512/1.298, allocations: 415.2 kB / 0.5508 GB, free: 32.09 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.001222/1.299, allocations: 0.541 MB / 0.5513 GB, free: 31.92 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001663/1.301, allocations: 0.6655 MB / 0.5519 GB, free: 31.91 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.806e-06/1.301, allocations: 2.031 kB / 0.5519 GB, free: 31.91 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008133/1.302, allocations: 366.2 kB / 0.5523 GB, free: 31.9 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/1.304, allocations: 358.2 kB / 0.5526 GB, free: 31.9 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/1.306, allocations: 1.229 MB / 0.5538 GB, free: 31.58 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/1.307, allocations: 0.9671 MB / 0.5548 GB, free: 30.88 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003501/1.307, allocations: 69.94 kB / 0.5548 GB, free: 30.88 MB / 234.7 MB Notification: Performance of SimCode: time 2.066e-06/1.307, allocations: 0 / 0.5548 GB, free: 30.88 MB / 234.7 MB Notification: Performance of Templates: time 0.02603/1.333, allocations: 17.23 MB / 0.5717 GB, free: 24.94 MB / 234.7 MB