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.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 0.9382/0.9382, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.901e-05/1.911e-05, allocations: 4 kB / 148.1 MB, free: 6.219 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04471/0.04475, allocations: 25.18 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.618/0.6628, allocations: 240.7 MB / 414 MB, free: 77.48 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.663, allocations: 69.41 kB / 414.1 MB, free: 77.46 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6608/1.324, allocations: 152.9 MB / 0.5536 GB, free: 20.82 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.64e-06/1.324, allocations: 0 / 0.5536 GB, free: 20.82 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.273e-05/1.324, allocations: 20 kB / 0.5537 GB, free: 20.8 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002313/1.326, allocations: 1.079 MB / 0.5547 GB, free: 19.68 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/1.326, allocations: 12.03 kB / 0.5547 GB, free: 19.67 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002396/1.327, allocations: 86.97 kB / 0.5548 GB, free: 19.59 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/1.328, allocations: 0.6475 MB / 0.5554 GB, free: 18.91 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.086e-05/1.328, allocations: 16 kB / 0.5555 GB, free: 18.89 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/1.328, allocations: 36.5 kB / 0.5555 GB, free: 18.86 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001283/1.329, allocations: 0.6624 MB / 0.5561 GB, free: 18.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/1.331, allocations: 0.778 MB / 0.5569 GB, free: 17.36 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/1.331, allocations: 4 kB / 0.5569 GB, free: 17.36 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.735e-05/1.331, allocations: 4 kB / 0.5569 GB, free: 17.35 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-05/1.331, allocations: 45.28 kB / 0.5569 GB, free: 17.3 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00502/1.336, allocations: 3.875 MB / 0.5607 GB, free: 13.17 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008038/1.337, allocations: 462.9 kB / 0.5612 GB, free: 12.71 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/1.337, allocations: 213.5 kB / 0.5614 GB, free: 12.5 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002991/1.34, allocations: 2.088 MB / 0.5634 GB, free: 10.18 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/1.34, allocations: 38.55 kB / 0.5635 GB, free: 10.14 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.104e-06/1.34, allocations: 0 / 0.5635 GB, free: 10.14 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.007969/1.348, allocations: 1.653 MB / 0.5651 GB, free: 8.426 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/1.348, allocations: 132.5 kB / 0.5652 GB, free: 8.266 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007125/1.349, allocations: 0.4994 MB / 0.5657 GB, free: 7.762 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.299e-05/1.349, allocations: 33.7 kB / 0.5657 GB, free: 7.723 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/1.35, allocations: 472.9 kB / 0.5662 GB, free: 7.258 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/1.35, allocations: 149.8 kB / 0.5663 GB, free: 7.113 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/1.35, allocations: 0 / 0.5663 GB, free: 7.113 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.952e-05/1.35, allocations: 346.8 kB / 0.5666 GB, free: 6.766 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000403/1.35, allocations: 214 kB / 0.5668 GB, free: 6.555 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/1.351, allocations: 0.5305 MB / 0.5674 GB, free: 5.871 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002594/1.353, allocations: 489.1 kB / 0.5678 GB, free: 5.395 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.294e-06/1.353, allocations: 4 kB / 0.5678 GB, free: 5.391 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003615/1.357, allocations: 0.926 MB / 0.5687 GB, free: 4.457 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/1.357, allocations: 8 kB / 0.5687 GB, free: 4.449 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/1.357, allocations: 12 kB / 0.5688 GB, free: 4.438 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002349/1.357, allocations: 56.83 kB / 0.5688 GB, free: 4.379 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/1.359, allocations: 244.1 kB / 0.569 GB, free: 4.141 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/1.36, allocations: 1.264 MB / 0.5703 GB, free: 2.828 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/1.361, allocations: 51.75 kB / 0.5703 GB, free: 2.777 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/1.361, allocations: 40 kB / 0.5704 GB, free: 2.738 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: 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 = 293.15 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: 48 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003122/1.362, allocations: 153.8 kB / 0.5705 GB, free: 2.582 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/1.362, allocations: 71.11 kB / 0.5706 GB, free: 2.512 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002853/1.365, allocations: 0.7877 MB / 0.5713 GB, free: 1.707 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/1.365, allocations: 11.98 kB / 0.5714 GB, free: 1.695 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.64e-06/1.365, allocations: 0 / 0.5714 GB, free: 1.695 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/1.365, allocations: 0 / 0.5714 GB, free: 1.695 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003869/1.369, allocations: 1.359 MB / 0.5727 GB, free: 300 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.484e-06/1.369, allocations: 4 kB / 0.5727 GB, free: 296 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009667/1.37, allocations: 139.9 kB / 0.5728 GB, free: 156 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002016/1.37, allocations: 52.91 kB / 0.5729 GB, free: 100 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.125e-05/1.37, allocations: 11.98 kB / 0.5729 GB, free: 88 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1395/1.51, allocations: 1.197 MB / 0.5741 GB, free: 28.49 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.699e-06/1.51, allocations: 3.531 kB / 0.5741 GB, free: 28.49 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/1.513, allocations: 1.039 MB / 0.5751 GB, free: 28.28 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/1.513, allocations: 149.2 kB / 0.5752 GB, free: 28.18 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/1.513, allocations: 4.438 kB / 0.5752 GB, free: 28.18 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006425/1.514, allocations: 28.42 kB / 0.5752 GB, free: 28.18 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/1.514, allocations: 52.33 kB / 0.5753 GB, free: 28.18 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/1.514, allocations: 27.75 kB / 0.5753 GB, free: 28.18 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006604/1.515, allocations: 382.9 kB / 0.5757 GB, free: 28.09 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.29e-07/1.515, allocations: 0 / 0.5757 GB, free: 28.09 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001843/1.517, allocations: 424.2 kB / 0.5761 GB, free: 28.09 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001577/1.518, allocations: 0.604 MB / 0.5767 GB, free: 28 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001688/1.52, allocations: 0.5919 MB / 0.5773 GB, free: 27.99 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.66e-06/1.52, allocations: 0 / 0.5773 GB, free: 27.99 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008721/1.521, allocations: 312.6 kB / 0.5776 GB, free: 27.99 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/1.523, allocations: 301.1 kB / 0.5778 GB, free: 27.99 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/1.525, allocations: 1.119 MB / 0.5789 GB, free: 27.66 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005861/1.526, allocations: 1.003 MB / 0.5799 GB, free: 26.96 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000375/1.526, allocations: 79.92 kB / 0.58 GB, free: 26.96 MB / 234.7 MB Notification: Performance of SimCode: time 2.033e-06/1.526, allocations: 0 / 0.58 GB, free: 26.96 MB / 234.7 MB Notification: Performance of Templates: time 0.03324/1.56, allocations: 21.16 MB / 0.6007 GB, free: 25.96 MB / 234.7 MB