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.979/0.979, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.000273, allocations: 8 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04597/0.04626, allocations: 25.16 MB / 183.5 MB, free: 5.969 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6315/0.6778, allocations: 236.8 MB / 420.3 MB, free: 66.52 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001885/0.678, allocations: 71.73 kB / 420.3 MB, free: 66.46 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5409/1.219, allocations: 128.6 MB / 0.5361 GB, free: 29.56 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.648e-06/1.219, allocations: 0 / 0.5361 GB, free: 29.56 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.692e-05/1.219, allocations: 24.88 kB / 0.5361 GB, free: 29.54 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.002475/1.222, allocations: 1.072 MB / 0.5371 GB, free: 28.43 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/1.222, allocations: 8.031 kB / 0.5371 GB, free: 28.42 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002657/1.222, allocations: 79.06 kB / 0.5372 GB, free: 28.34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/1.223, allocations: 0.5603 MB / 0.5378 GB, free: 27.75 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/1.223, allocations: 34.95 kB / 0.5378 GB, free: 27.72 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/1.223, allocations: 47.86 kB / 0.5378 GB, free: 27.68 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/1.225, allocations: 0.7078 MB / 0.5385 GB, free: 26.94 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/1.225, allocations: 0 / 0.5385 GB, free: 26.94 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.09e-05/1.225, allocations: 22.34 kB / 0.5385 GB, free: 26.92 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.789e-05/1.225, allocations: 40.98 kB / 0.5386 GB, free: 26.88 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/1.226, allocations: 0.6323 MB / 0.5392 GB, free: 26.25 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004527/1.231, allocations: 2.803 MB / 0.5419 GB, free: 23.28 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009054/1.232, allocations: 472.8 kB / 0.5424 GB, free: 22.8 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002993/1.232, allocations: 425.9 kB / 0.5428 GB, free: 22.3 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/1.232, allocations: 35 kB / 0.5428 GB, free: 22.26 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 3.453e-06/1.232, allocations: 0 / 0.5428 GB, free: 22.26 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.006346/1.239, allocations: 2.202 MB / 0.545 GB, free: 19.98 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/1.239, allocations: 85.67 kB / 0.5451 GB, free: 19.88 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008037/1.24, allocations: 0.5139 MB / 0.5456 GB, free: 19.35 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/1.24, allocations: 41.64 kB / 0.5456 GB, free: 19.3 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/1.24, allocations: 341.3 kB / 0.5459 GB, free: 18.97 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/1.24, allocations: 197.8 kB / 0.5461 GB, free: 18.78 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/1.24, allocations: 19.94 kB / 0.5461 GB, free: 18.76 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.396e-05/1.24, allocations: 334.8 kB / 0.5465 GB, free: 18.42 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005707/1.241, allocations: 265.5 kB / 0.5467 GB, free: 18.16 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/1.241, allocations: 435.6 kB / 0.5471 GB, free: 17.68 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000624/1.242, allocations: 316.3 kB / 0.5474 GB, free: 17.37 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.613e-06/1.242, allocations: 0 / 0.5474 GB, free: 17.37 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001824/1.244, allocations: 0.8466 MB / 0.5483 GB, free: 16.51 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/1.244, allocations: 15.94 kB / 0.5483 GB, free: 16.5 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/1.244, allocations: 4 kB / 0.5483 GB, free: 16.49 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/1.247, allocations: 345 kB / 0.5486 GB, free: 16.15 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007812/1.247, allocations: 143.8 kB / 0.5487 GB, free: 16.01 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009458/1.248, allocations: 0.8021 MB / 0.5495 GB, free: 15.18 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008376/1.249, allocations: 43.97 kB / 0.5496 GB, free: 15.14 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.875e-05/1.249, allocations: 32.05 kB / 0.5496 GB, free: 15.11 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.0005745/1.25, allocations: 283.4 kB / 0.5499 GB, free: 14.82 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/1.25, allocations: 71.16 kB / 0.5499 GB, free: 14.75 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/1.252, allocations: 0.8304 MB / 0.5507 GB, free: 13.92 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/1.252, allocations: 4 kB / 0.5507 GB, free: 13.91 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.252, allocations: 7.938 kB / 0.5508 GB, free: 13.91 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.985e-06/1.252, allocations: 3.984 kB / 0.5508 GB, free: 13.9 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003468/1.255, allocations: 1.646 MB / 0.5524 GB, free: 12.2 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.471e-06/1.255, allocations: 0 / 0.5524 GB, free: 12.2 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000641/1.256, allocations: 111.9 kB / 0.5525 GB, free: 12.09 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/1.258, allocations: 328.5 kB / 0.5528 GB, free: 11.77 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/1.258, allocations: 19.98 kB / 0.5528 GB, free: 11.75 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008493/1.259, allocations: 0.7904 MB / 0.5536 GB, free: 10.93 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.039e-06/1.259, allocations: 4.031 kB / 0.5536 GB, free: 10.93 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/1.261, allocations: 1.247 MB / 0.5548 GB, free: 9.645 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002961/1.262, allocations: 148.3 kB / 0.5549 GB, free: 9.48 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/1.262, allocations: 19.94 kB / 0.555 GB, free: 9.461 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006483/1.263, allocations: 39.92 kB / 0.555 GB, free: 9.422 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/1.263, allocations: 60.47 kB / 0.5551 GB, free: 9.363 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/1.263, allocations: 23.98 kB / 0.5551 GB, free: 9.34 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006144/1.263, allocations: 410.8 kB / 0.5555 GB, free: 8.941 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.29e-07/1.263, allocations: 0 / 0.5555 GB, free: 8.941 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001503/1.265, allocations: 415.6 kB / 0.5559 GB, free: 8.535 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.001216/1.266, allocations: 0.5425 MB / 0.5564 GB, free: 8.023 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001672/1.268, allocations: 0.675 MB / 0.5571 GB, free: 7.348 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.523e-06/1.268, allocations: 0 / 0.5571 GB, free: 7.348 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008056/1.269, allocations: 368.3 kB / 0.5574 GB, free: 6.988 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003826/1.273, allocations: 385 kB / 0.5578 GB, free: 6.621 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004962/1.278, allocations: 1.867 MB / 0.5596 GB, free: 4.723 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/1.278, allocations: 0.9669 MB / 0.5605 GB, free: 3.727 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005308/1.279, allocations: 79.34 kB / 0.5606 GB, free: 3.648 MB / 234.7 MB Notification: Performance of SimCode: time 2.602e-06/1.279, allocations: 0 / 0.5606 GB, free: 3.648 MB / 234.7 MB Notification: Performance of Templates: time 0.2212/1.5, allocations: 17.26 MB / 0.5775 GB, free: 32.73 MB / 234.7 MB