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.OneTank.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.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 0.9362/0.9362, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.18e-05/2.182e-05, allocations: 0 / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1372, allocations: 25.15 MB / 179.4 MB, free: 0.8203 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5845/0.7218, allocations: 239.5 MB / 418.9 MB, free: 9.398 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.722, allocations: 67.53 kB / 419 MB, free: 9.367 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6447/1.367, allocations: 131 MB / 0.5371 GB, free: 39.74 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.042e-06/1.367, allocations: 0 / 0.5371 GB, free: 39.74 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.315e-05/1.367, allocations: 21.5 kB / 0.5371 GB, free: 39.74 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.002044/1.369, allocations: 1.03 MB / 0.5381 GB, free: 39.16 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/1.369, allocations: 7.625 kB / 0.5381 GB, free: 39.16 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002059/1.369, allocations: 91.22 kB / 0.5382 GB, free: 39.12 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/1.371, allocations: 0.6179 MB / 0.5388 GB, free: 38.86 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.608e-05/1.371, allocations: 90.69 kB / 0.5389 GB, free: 38.8 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/1.371, allocations: 51.66 kB / 0.539 GB, free: 38.8 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/1.372, allocations: 0.7541 MB / 0.5397 GB, free: 38.64 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/1.372, allocations: 0 / 0.5397 GB, free: 38.64 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.812e-05/1.372, allocations: 28.58 kB / 0.5397 GB, free: 38.64 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.214e-05/1.372, allocations: 42.91 kB / 0.5398 GB, free: 38.64 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/1.374, allocations: 0.6056 MB / 0.5404 GB, free: 38.63 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004569/1.378, allocations: 3.603 MB / 0.5439 GB, free: 36.31 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007401/1.379, allocations: 386.4 kB / 0.5443 GB, free: 36.29 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004271/1.379, allocations: 229.2 kB / 0.5445 GB, free: 36.28 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001926/1.381, allocations: 1.386 MB / 0.5458 GB, free: 35.32 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004896/1.382, allocations: 283.1 kB / 0.5461 GB, free: 35.24 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 4.239e-06/1.382, allocations: 4.406 kB / 0.5461 GB, free: 35.24 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.003586/1.385, allocations: 1.453 MB / 0.5475 GB, free: 34.74 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/1.385, allocations: 173.8 kB / 0.5477 GB, free: 34.55 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008503/1.386, allocations: 0.5714 MB / 0.5482 GB, free: 34.41 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.609e-05/1.386, allocations: 33.36 kB / 0.5483 GB, free: 34.38 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/1.387, allocations: 438.1 kB / 0.5487 GB, free: 34.11 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/1.387, allocations: 125.6 kB / 0.5488 GB, free: 34.03 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.933e-05/1.387, allocations: 14.19 kB / 0.5488 GB, free: 34.03 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/1.387, allocations: 340 kB / 0.5492 GB, free: 33.72 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/1.387, allocations: 236.9 kB / 0.5494 GB, free: 33.72 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006027/1.388, allocations: 0.4978 MB / 0.5499 GB, free: 33.37 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005944/1.389, allocations: 329.8 kB / 0.5502 GB, free: 33.33 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.475e-06/1.389, allocations: 7.281 kB / 0.5502 GB, free: 33.33 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002066/1.391, allocations: 0.8983 MB / 0.5511 GB, free: 33.23 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/1.391, allocations: 40.44 kB / 0.5511 GB, free: 33.2 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/1.391, allocations: 11.5 kB / 0.5511 GB, free: 33.2 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000615/1.391, allocations: 127.9 kB / 0.5512 GB, free: 33.2 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006489/1.392, allocations: 143.9 kB / 0.5514 GB, free: 33.2 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005584/1.393, allocations: 0.6637 MB / 0.552 GB, free: 32.68 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007778/1.394, allocations: 48.45 kB / 0.5521 GB, free: 32.67 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.843e-05/1.394, allocations: 40.62 kB / 0.5521 GB, free: 32.67 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" 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" 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 () * 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.000269/1.394, allocations: 203.1 kB / 0.5523 GB, free: 32.53 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/1.394, allocations: 79.89 kB / 0.5524 GB, free: 32.48 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/1.396, allocations: 0.6849 MB / 0.553 GB, free: 32.39 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.23e-06/1.396, allocations: 3.375 kB / 0.553 GB, free: 32.39 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/1.396, allocations: 0 / 0.553 GB, free: 32.39 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.858e-06/1.396, allocations: 0 / 0.553 GB, free: 32.39 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002575/1.398, allocations: 1.339 MB / 0.5544 GB, free: 32.03 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.802e-06/1.398, allocations: 0 / 0.5544 GB, free: 32.03 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/1.399, allocations: 58.89 kB / 0.5544 GB, free: 32.03 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000615/1.399, allocations: 115.6 kB / 0.5545 GB, free: 32.02 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/1.4, allocations: 14.25 kB / 0.5545 GB, free: 32.02 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005564/1.4, allocations: 0.6608 MB / 0.5552 GB, free: 31.5 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.953e-06/1.4, allocations: 11.08 kB / 0.5552 GB, free: 31.5 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/1.402, allocations: 1.015 MB / 0.5562 GB, free: 31.26 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/1.402, allocations: 137 kB / 0.5563 GB, free: 31.13 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/1.402, allocations: 15.22 kB / 0.5563 GB, free: 31.13 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000577/1.403, allocations: 34.58 kB / 0.5564 GB, free: 31.12 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/1.403, allocations: 30.06 kB / 0.5564 GB, free: 31.12 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.187e-05/1.403, allocations: 21.91 kB / 0.5564 GB, free: 31.12 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006477/1.404, allocations: 448.5 kB / 0.5568 GB, free: 31.03 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.53e-07/1.404, allocations: 3.969 kB / 0.5568 GB, free: 31.03 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001382/1.405, allocations: 376.3 kB / 0.5572 GB, free: 30.97 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) * 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.001165/1.406, allocations: 0.5319 MB / 0.5577 GB, free: 30.8 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001465/1.408, allocations: 0.6174 MB / 0.5583 GB, free: 30.58 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.49e-06/1.408, allocations: 0 / 0.5583 GB, free: 30.58 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006888/1.409, allocations: 328.9 kB / 0.5586 GB, free: 30.43 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/1.41, allocations: 279.3 kB / 0.5589 GB, free: 30.36 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/1.412, allocations: 1.075 MB / 0.56 GB, free: 29.93 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/1.413, allocations: 0.965 MB / 0.5609 GB, free: 29.21 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/1.413, allocations: 62.8 kB / 0.561 GB, free: 29.2 MB / 234.7 MB Notification: Performance of SimCode: time 2.004e-06/1.413, allocations: 3.938 kB / 0.561 GB, free: 29.2 MB / 234.7 MB Notification: Performance of Templates: time 0.02273/1.436, allocations: 15.58 MB / 0.5762 GB, free: 21.12 MB / 234.7 MB