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.OneTank.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.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.035/1.035, allocations: 111.1 MB / 127.3 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002576, allocations: 8 kB / 158.9 MB, free: 15.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05669/0.05696, allocations: 25.16 MB / 184 MB, free: 6.008 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7819/0.8389, allocations: 239.6 MB / 423.6 MB, free: 52.2 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.8393, allocations: 75.2 kB / 423.7 MB, free: 52.17 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5946/1.434, allocations: 131.6 MB / 0.5422 GB, free: 17.19 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.824e-06/1.434, allocations: 0 / 0.5422 GB, free: 17.19 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.053e-05/1.434, allocations: 23.67 kB / 0.5423 GB, free: 17.17 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002889/1.437, allocations: 1.134 MB / 0.5434 GB, free: 15.99 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/1.437, allocations: 8.031 kB / 0.5434 GB, free: 15.98 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/1.437, allocations: 87.06 kB / 0.5435 GB, free: 15.9 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/1.439, allocations: 0.6156 MB / 0.5441 GB, free: 15.25 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.113e-05/1.439, allocations: 92.31 kB / 0.5442 GB, free: 15.16 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/1.439, allocations: 44 kB / 0.5442 GB, free: 15.11 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/1.441, allocations: 0.7741 MB / 0.545 GB, free: 14.29 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.988e-05/1.441, allocations: 0 / 0.545 GB, free: 14.29 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.975e-05/1.441, allocations: 27.91 kB / 0.545 GB, free: 14.27 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-05/1.441, allocations: 40.97 kB / 0.545 GB, free: 14.23 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/1.442, allocations: 0.6166 MB / 0.5456 GB, free: 13.61 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005447/1.448, allocations: 3.601 MB / 0.5491 GB, free: 9.746 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009543/1.449, allocations: 391.1 kB / 0.5495 GB, free: 9.355 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001994/1.451, allocations: 1.343 MB / 0.5508 GB, free: 7.867 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005757/1.451, allocations: 289.7 kB / 0.5511 GB, free: 7.566 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 2.274e-06/1.451, allocations: 0 / 0.5511 GB, free: 7.566 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.005298/1.457, allocations: 1.824 MB / 0.5529 GB, free: 5.629 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/1.457, allocations: 166.2 kB / 0.553 GB, free: 5.43 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/1.458, allocations: 0.6604 MB / 0.5537 GB, free: 4.762 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.309e-05/1.458, allocations: 33.7 kB / 0.5537 GB, free: 4.723 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002762/1.458, allocations: 429 kB / 0.5541 GB, free: 4.305 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/1.458, allocations: 138 kB / 0.5543 GB, free: 4.172 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.168e-05/1.458, allocations: 16 kB / 0.5543 GB, free: 4.156 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.401e-05/1.459, allocations: 334.8 kB / 0.5546 GB, free: 3.82 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005592/1.459, allocations: 237.5 kB / 0.5548 GB, free: 3.59 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007/1.46, allocations: 0.507 MB / 0.5553 GB, free: 2.957 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007236/1.461, allocations: 337.7 kB / 0.5556 GB, free: 2.613 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/1.461, allocations: 7.938 kB / 0.5556 GB, free: 2.605 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002347/1.463, allocations: 0.906 MB / 0.5565 GB, free: 1.684 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/1.463, allocations: 45.69 kB / 0.5566 GB, free: 1.633 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/1.463, allocations: 12.03 kB / 0.5566 GB, free: 1.621 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008287/1.464, allocations: 128.7 kB / 0.5567 GB, free: 1.492 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008437/1.465, allocations: 139.8 kB / 0.5568 GB, free: 1.355 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006994/1.465, allocations: 0.6694 MB / 0.5575 GB, free: 0.6602 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009314/1.466, allocations: 43.98 kB / 0.5575 GB, free: 0.6172 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.088e-05/1.467, allocations: 43.97 kB / 0.5576 GB, free: 0.5742 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(min = 0.0 start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.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" 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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006249/1.467, allocations: 312.4 kB / 0.5579 GB, free: 264 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/1.467, allocations: 79.14 kB / 0.5579 GB, free: 184 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1686/1.636, allocations: 0.6849 MB / 0.5586 GB, free: 31.92 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/1.636, allocations: 5.609 kB / 0.5586 GB, free: 31.92 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/1.636, allocations: 0 / 0.5586 GB, free: 31.92 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.636, allocations: 3.094 kB / 0.5586 GB, free: 31.92 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/1.639, allocations: 1.352 MB / 0.5599 GB, free: 31.57 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/1.639, allocations: 7.984 kB / 0.56 GB, free: 31.57 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004971/1.64, allocations: 59.25 kB / 0.56 GB, free: 31.57 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007743/1.641, allocations: 118.4 kB / 0.5601 GB, free: 31.57 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.988e-05/1.641, allocations: 8.688 kB / 0.5601 GB, free: 31.57 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006601/1.641, allocations: 0.6608 MB / 0.5608 GB, free: 31.05 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.641, allocations: 3.609 kB / 0.5608 GB, free: 31.05 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/1.644, allocations: 1.004 MB / 0.5618 GB, free: 30.87 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002194/1.644, allocations: 143.3 kB / 0.5619 GB, free: 30.78 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/1.644, allocations: 12.31 kB / 0.5619 GB, free: 30.78 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006772/1.645, allocations: 33.23 kB / 0.5619 GB, free: 30.78 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/1.645, allocations: 36.89 kB / 0.562 GB, free: 30.78 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.987e-05/1.645, allocations: 22.47 kB / 0.562 GB, free: 30.78 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008232/1.646, allocations: 461.8 kB / 0.5624 GB, free: 30.68 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.646, allocations: 0 / 0.5624 GB, free: 30.68 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001724/1.648, allocations: 379 kB / 0.5628 GB, free: 30.68 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001766/1.649, allocations: 0.5255 MB / 0.5633 GB, free: 30.59 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001986/1.651, allocations: 0.6257 MB / 0.5639 GB, free: 30.52 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.652, allocations: 1.375 kB / 0.5639 GB, free: 30.52 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009708/1.652, allocations: 320.1 kB / 0.5642 GB, free: 30.46 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/1.655, allocations: 272.2 kB / 0.5645 GB, free: 30.46 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003925/1.659, allocations: 1.735 MB / 0.5662 GB, free: 29.77 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006544/1.66, allocations: 0.9659 MB / 0.5671 GB, free: 29.07 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/1.66, allocations: 58.44 kB / 0.5672 GB, free: 29.07 MB / 234.7 MB Notification: Performance of SimCode: time 1.342e-06/1.66, allocations: 1.156 kB / 0.5672 GB, free: 29.07 MB / 234.7 MB Notification: Performance of Templates: time 0.03345/1.693, allocations: 15.64 MB / 0.5825 GB, free: 28.35 MB / 234.7 MB