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.9589/0.9589, allocations: 111.1 MB / 126.7 MB, free: 6.121 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002823, allocations: 7.938 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0478/0.04811, allocations: 25.18 MB / 183.5 MB, free: 5.961 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6435/0.6916, allocations: 239.6 MB / 423.1 MB, free: 54.03 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/0.6919, allocations: 71.27 kB / 423.1 MB, free: 54 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5163/1.208, allocations: 131.6 MB / 0.5417 GB, free: 19.23 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.396e-06/1.208, allocations: 0 / 0.5417 GB, free: 19.23 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.618e-05/1.208, allocations: 24 kB / 0.5418 GB, free: 19.21 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.002437/1.211, allocations: 1.13 MB / 0.5429 GB, free: 18.03 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/1.211, allocations: 8.031 kB / 0.5429 GB, free: 18.02 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002624/1.211, allocations: 83.06 kB / 0.5429 GB, free: 17.94 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001424/1.212, allocations: 0.6199 MB / 0.5436 GB, free: 17.29 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-05/1.213, allocations: 96.39 kB / 0.5436 GB, free: 17.18 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/1.213, allocations: 47.83 kB / 0.5437 GB, free: 17.14 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/1.214, allocations: 0.7662 MB / 0.5444 GB, free: 16.33 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/1.214, allocations: 4 kB / 0.5444 GB, free: 16.32 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.289e-05/1.214, allocations: 16 kB / 0.5445 GB, free: 16.31 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.518e-05/1.214, allocations: 36.98 kB / 0.5445 GB, free: 16.27 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/1.216, allocations: 0.6205 MB / 0.5451 GB, free: 15.65 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00506/1.221, allocations: 3.597 MB / 0.5486 GB, free: 11.8 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/1.222, allocations: 395 kB / 0.549 GB, free: 11.4 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002015/1.224, allocations: 1.343 MB / 0.5503 GB, free: 9.91 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005336/1.224, allocations: 292.2 kB / 0.5506 GB, free: 9.605 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 3.732e-06/1.224, allocations: 0 / 0.5506 GB, free: 9.605 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.004598/1.229, allocations: 1.812 MB / 0.5523 GB, free: 7.684 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/1.229, allocations: 162.2 kB / 0.5525 GB, free: 7.488 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008988/1.23, allocations: 0.5854 MB / 0.5531 GB, free: 6.895 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.421e-05/1.23, allocations: 37.7 kB / 0.5531 GB, free: 6.852 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002362/1.23, allocations: 425 kB / 0.5535 GB, free: 6.434 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/1.23, allocations: 134.1 kB / 0.5536 GB, free: 6.305 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/1.23, allocations: 12 kB / 0.5537 GB, free: 6.293 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.544e-05/1.23, allocations: 338.8 kB / 0.554 GB, free: 5.953 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005008/1.231, allocations: 237.5 kB / 0.5542 GB, free: 5.723 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005883/1.232, allocations: 0.5159 MB / 0.5547 GB, free: 5.078 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/1.232, allocations: 337.7 kB / 0.555 GB, free: 4.734 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.048e-06/1.232, allocations: 4 kB / 0.555 GB, free: 4.73 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002042/1.234, allocations: 0.8975 MB / 0.5559 GB, free: 3.816 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/1.235, allocations: 42.47 kB / 0.556 GB, free: 3.77 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/1.235, allocations: 8 kB / 0.556 GB, free: 3.762 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006596/1.235, allocations: 140.7 kB / 0.5561 GB, free: 3.621 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006162/1.236, allocations: 139.8 kB / 0.5562 GB, free: 3.484 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006143/1.236, allocations: 0.6654 MB / 0.5569 GB, free: 2.793 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008789/1.237, allocations: 43.97 kB / 0.5569 GB, free: 2.75 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/1.238, allocations: 47.92 kB / 0.557 GB, free: 2.703 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.000615/1.238, allocations: 316.2 kB / 0.5573 GB, free: 2.379 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/1.238, allocations: 75.11 kB / 0.5573 GB, free: 2.305 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/1.24, allocations: 0.6877 MB / 0.558 GB, free: 1.602 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.462e-06/1.24, allocations: 4 kB / 0.558 GB, free: 1.598 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.285e-06/1.24, allocations: 0 / 0.558 GB, free: 1.598 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.418e-06/1.24, allocations: 0 / 0.558 GB, free: 1.598 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/1.243, allocations: 1.356 MB / 0.5593 GB, free: 184 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.095e-06/1.243, allocations: 0 / 0.5593 GB, free: 184 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/1.243, allocations: 55.97 kB / 0.5594 GB, free: 128 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006641/1.244, allocations: 124.7 kB / 0.5595 GB, free: 0 / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.14/1.384, allocations: 9.203 kB / 0.5595 GB, free: 32.09 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007781/1.385, allocations: 0.6562 MB / 0.5602 GB, free: 31.58 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.149e-06/1.385, allocations: 1.469 kB / 0.5602 GB, free: 31.58 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/1.387, allocations: 1.013 MB / 0.5612 GB, free: 31.38 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/1.388, allocations: 145.8 kB / 0.5613 GB, free: 31.29 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/1.388, allocations: 16.97 kB / 0.5613 GB, free: 31.29 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/1.388, allocations: 28.61 kB / 0.5613 GB, free: 31.29 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/1.388, allocations: 36.91 kB / 0.5614 GB, free: 31.29 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.207e-05/1.388, allocations: 20.48 kB / 0.5614 GB, free: 31.29 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007354/1.389, allocations: 461.4 kB / 0.5618 GB, free: 31.19 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.59e-07/1.389, allocations: 0 / 0.5618 GB, free: 31.19 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00156/1.391, allocations: 378.7 kB / 0.5622 GB, free: 31.19 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.001368/1.392, allocations: 0.5268 MB / 0.5627 GB, free: 31.1 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001671/1.394, allocations: 0.6293 MB / 0.5633 GB, free: 31.04 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.483e-06/1.394, allocations: 0 / 0.5633 GB, free: 31.04 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008246/1.395, allocations: 315.7 kB / 0.5636 GB, free: 30.98 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/1.396, allocations: 267.2 kB / 0.5639 GB, free: 30.97 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/1.4, allocations: 1.734 MB / 0.5656 GB, free: 30.29 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/1.4, allocations: 0.9715 MB / 0.5665 GB, free: 29.59 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/1.4, allocations: 58.73 kB / 0.5666 GB, free: 29.58 MB / 234.7 MB Notification: Performance of SimCode: time 1.633e-06/1.4, allocations: 1.375 kB / 0.5666 GB, free: 29.58 MB / 234.7 MB Notification: Performance of Templates: time 0.02726/1.428, allocations: 15.64 MB / 0.5818 GB, free: 28.86 MB / 234.7 MB