Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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 1.391/1.391, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002625, allocations: 4 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05423/0.05452, allocations: 25.17 MB / 184.1 MB, free: 6.004 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7863/0.8409, allocations: 236.8 MB / 420.8 MB, free: 54.86 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.8412, allocations: 71.61 kB / 420.9 MB, free: 54.83 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6634/1.505, allocations: 128.6 MB / 0.5366 GB, free: 22.96 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.505, allocations: 0 / 0.5366 GB, free: 22.96 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.923e-05/1.505, allocations: 24.09 kB / 0.5366 GB, free: 22.94 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.002913/1.508, allocations: 1.075 MB / 0.5376 GB, free: 21.82 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/1.508, allocations: 8.031 kB / 0.5376 GB, free: 21.82 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002589/1.508, allocations: 83.06 kB / 0.5377 GB, free: 21.73 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/1.509, allocations: 0.5524 MB / 0.5383 GB, free: 21.15 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.006e-05/1.509, allocations: 44.91 kB / 0.5383 GB, free: 21.11 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/1.51, allocations: 54.16 kB / 0.5384 GB, free: 21.06 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/1.511, allocations: 0.7019 MB / 0.539 GB, free: 20.33 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/1.511, allocations: 0 / 0.539 GB, free: 20.33 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.57e-05/1.512, allocations: 30.77 kB / 0.5391 GB, free: 20.3 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.859e-05/1.512, allocations: 40.98 kB / 0.5391 GB, free: 20.27 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/1.513, allocations: 0.6362 MB / 0.5397 GB, free: 19.63 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005342/1.519, allocations: 2.799 MB / 0.5425 GB, free: 16.66 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/1.52, allocations: 468.9 kB / 0.5429 GB, free: 16.19 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003367/1.52, allocations: 424.2 kB / 0.5433 GB, free: 15.69 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/1.52, allocations: 39 kB / 0.5434 GB, free: 15.64 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 3.126e-06/1.52, allocations: 3.984 kB / 0.5434 GB, free: 15.64 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.008023/1.528, allocations: 2.199 MB / 0.5455 GB, free: 13.36 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/1.528, allocations: 81.67 kB / 0.5456 GB, free: 13.27 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009604/1.529, allocations: 0.5849 MB / 0.5462 GB, free: 12.67 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/1.529, allocations: 41.69 kB / 0.5462 GB, free: 12.62 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/1.53, allocations: 334.4 kB / 0.5465 GB, free: 12.3 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/1.53, allocations: 212.9 kB / 0.5467 GB, free: 12.09 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.395e-05/1.53, allocations: 12 kB / 0.5467 GB, free: 12.08 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.823e-05/1.53, allocations: 334.8 kB / 0.5471 GB, free: 11.75 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006778/1.531, allocations: 265.5 kB / 0.5473 GB, free: 11.49 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007595/1.531, allocations: 431.6 kB / 0.5477 GB, free: 11 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007511/1.532, allocations: 320.3 kB / 0.548 GB, free: 10.69 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/1.532, allocations: 4 kB / 0.548 GB, free: 10.69 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002053/1.534, allocations: 0.8468 MB / 0.5489 GB, free: 9.828 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/1.534, allocations: 4 kB / 0.5489 GB, free: 9.824 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/1.534, allocations: 4 kB / 0.5489 GB, free: 9.82 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00316/1.538, allocations: 356.8 kB / 0.5492 GB, free: 9.469 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/1.539, allocations: 139.8 kB / 0.5493 GB, free: 9.332 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/1.54, allocations: 0.8021 MB / 0.5501 GB, free: 8.504 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009849/1.541, allocations: 43.97 kB / 0.5502 GB, free: 8.461 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-05/1.541, allocations: 31.98 kB / 0.5502 GB, free: 8.43 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" fixed = true 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true 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" 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: 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 () * Number of clocked 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.0006506/1.542, allocations: 285.1 kB / 0.5505 GB, free: 8.148 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/1.542, allocations: 71.16 kB / 0.5505 GB, free: 8.078 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002229/1.544, allocations: 0.8304 MB / 0.5513 GB, free: 7.234 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/1.544, allocations: 8 kB / 0.5513 GB, free: 7.227 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/1.544, allocations: 0 / 0.5513 GB, free: 7.227 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/1.544, allocations: 3.984 kB / 0.5514 GB, free: 7.223 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00405/1.548, allocations: 1.64 MB / 0.553 GB, free: 5.531 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/1.548, allocations: 4 kB / 0.553 GB, free: 5.527 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008825/1.549, allocations: 103.9 kB / 0.5531 GB, free: 5.426 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/1.551, allocations: 336.5 kB / 0.5534 GB, free: 5.094 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.163e-05/1.552, allocations: 15.98 kB / 0.5534 GB, free: 5.078 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009742/1.553, allocations: 0.7943 MB / 0.5542 GB, free: 4.258 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/1.553, allocations: 0 / 0.5542 GB, free: 4.258 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002948/1.555, allocations: 1.232 MB / 0.5554 GB, free: 3 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/1.556, allocations: 144.4 kB / 0.5555 GB, free: 2.84 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001913/1.556, allocations: 19.97 kB / 0.5555 GB, free: 2.82 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008096/1.557, allocations: 35.98 kB / 0.5556 GB, free: 2.785 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/1.557, allocations: 56.44 kB / 0.5556 GB, free: 2.73 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.508e-05/1.557, allocations: 27.97 kB / 0.5556 GB, free: 2.703 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006983/1.558, allocations: 406.8 kB / 0.556 GB, free: 2.309 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.5e-07/1.558, allocations: 0 / 0.556 GB, free: 2.309 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001638/1.56, allocations: 427.5 kB / 0.5564 GB, free: 1.891 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]) * Number of clocked states: 0 () * 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.001461/1.561, allocations: 0.5465 MB / 0.557 GB, free: 1.375 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/1.563, allocations: 0.6793 MB / 0.5576 GB, free: 0.6914 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/1.563, allocations: 0 / 0.5576 GB, free: 0.6914 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/1.564, allocations: 367 kB / 0.558 GB, free: 344 kB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1671/1.732, allocations: 362 kB / 0.5583 GB, free: 35.09 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/1.736, allocations: 1.873 MB / 0.5602 GB, free: 34.38 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005135/1.737, allocations: 0.9705 MB / 0.5611 GB, free: 33.68 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004174/1.737, allocations: 71.48 kB / 0.5612 GB, free: 33.67 MB / 234.7 MB Notification: Performance of SimCode: time 1.032e-06/1.737, allocations: 0 / 0.5612 GB, free: 33.67 MB / 234.7 MB Notification: Performance of Templates: time 0.03821/1.775, allocations: 17.27 MB / 0.578 GB, free: 32.69 MB / 234.7 MB