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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.081/1.081, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.282e-05, allocations: 0 / 154.4 MB, free: 13.1 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1785, allocations: 25.16 MB / 179.5 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6248/0.8034, allocations: 239.5 MB / 419 MB, free: 7.367 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.8037, allocations: 68.03 kB / 419.1 MB, free: 7.336 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7401/1.544, allocations: 131 MB / 0.5372 GB, free: 39.76 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.563e-06/1.544, allocations: 0 / 0.5372 GB, free: 39.76 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.623e-05/1.544, allocations: 21.2 kB / 0.5372 GB, free: 39.76 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.002591/1.547, allocations: 1.035 MB / 0.5382 GB, free: 39.18 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/1.547, allocations: 9.031 kB / 0.5382 GB, free: 39.18 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/1.547, allocations: 87.8 kB / 0.5383 GB, free: 39.14 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/1.547, allocations: 89.56 kB / 0.5384 GB, free: 39.1 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001695/1.549, allocations: 0.6211 MB / 0.539 GB, free: 38.84 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/1.549, allocations: 93.69 kB / 0.5391 GB, free: 38.78 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/1.549, allocations: 45.44 kB / 0.5392 GB, free: 38.78 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/1.551, allocations: 0.7609 MB / 0.5399 GB, free: 38.61 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/1.551, allocations: 3.953 kB / 0.5399 GB, free: 38.61 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.766e-05/1.551, allocations: 21.25 kB / 0.5399 GB, free: 38.61 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-05/1.551, allocations: 43.84 kB / 0.54 GB, free: 38.61 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/1.552, allocations: 0.6088 MB / 0.5406 GB, free: 38.6 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005816/1.558, allocations: 3.601 MB / 0.5441 GB, free: 36.29 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008634/1.559, allocations: 394.1 kB / 0.5444 GB, free: 36.26 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000468/1.559, allocations: 224.8 kB / 0.5447 GB, free: 36.25 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00216/1.562, allocations: 1.384 MB / 0.546 GB, free: 35.29 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005546/1.562, allocations: 289.9 kB / 0.5463 GB, free: 35.21 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 3.216e-06/1.562, allocations: 0 / 0.5463 GB, free: 35.21 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.004048/1.566, allocations: 1.445 MB / 0.5477 GB, free: 34.71 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/1.566, allocations: 175 kB / 0.5479 GB, free: 34.52 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009364/1.567, allocations: 0.5811 MB / 0.5484 GB, free: 34.38 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.198e-05/1.567, allocations: 33.92 kB / 0.5485 GB, free: 34.35 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002881/1.568, allocations: 431.1 kB / 0.5489 GB, free: 34.08 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/1.568, allocations: 126 kB / 0.549 GB, free: 34 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.038e-05/1.568, allocations: 15.62 kB / 0.549 GB, free: 34 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.475e-05/1.568, allocations: 339.9 kB / 0.5493 GB, free: 33.69 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005382/1.569, allocations: 225.6 kB / 0.5496 GB, free: 33.69 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000702/1.569, allocations: 0.5057 MB / 0.55 GB, free: 33.34 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006668/1.57, allocations: 329.3 kB / 0.5504 GB, free: 33.3 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/1.57, allocations: 3.812 kB / 0.5504 GB, free: 33.3 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002289/1.572, allocations: 0.896 MB / 0.5512 GB, free: 33.21 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.871e-05/1.572, allocations: 47.78 kB / 0.5513 GB, free: 33.18 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/1.572, allocations: 10.19 kB / 0.5513 GB, free: 33.18 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007683/1.573, allocations: 126.4 kB / 0.5514 GB, free: 33.17 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000856/1.574, allocations: 146.5 kB / 0.5516 GB, free: 33.16 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006454/1.575, allocations: 0.6653 MB / 0.5522 GB, free: 32.64 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000936/1.576, allocations: 45.47 kB / 0.5522 GB, free: 32.64 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-05/1.576, allocations: 40.27 kB / 0.5523 GB, free: 32.64 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.000295/1.576, allocations: 200.7 kB / 0.5525 GB, free: 32.49 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/1.576, allocations: 75.73 kB / 0.5525 GB, free: 32.45 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/1.578, allocations: 0.6823 MB / 0.5532 GB, free: 32.36 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/1.578, allocations: 8.031 kB / 0.5532 GB, free: 32.36 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/1.578, allocations: 0 / 0.5532 GB, free: 32.36 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/1.578, allocations: 3.938 kB / 0.5532 GB, free: 32.36 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/1.581, allocations: 1.342 MB / 0.5545 GB, free: 31.81 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/1.581, allocations: 3.125 kB / 0.5545 GB, free: 31.81 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005287/1.582, allocations: 58.91 kB / 0.5546 GB, free: 31.8 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007073/1.582, allocations: 120.2 kB / 0.5547 GB, free: 31.78 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.252e-05/1.582, allocations: 14.84 kB / 0.5547 GB, free: 31.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006133/1.583, allocations: 0.655 MB / 0.5554 GB, free: 31.2 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.583, allocations: 0 / 0.5554 GB, free: 31.2 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/1.585, allocations: 1.009 MB / 0.5564 GB, free: 30.72 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/1.585, allocations: 142.6 kB / 0.5565 GB, free: 30.59 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/1.585, allocations: 15.17 kB / 0.5565 GB, free: 30.58 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006746/1.586, allocations: 39.84 kB / 0.5565 GB, free: 30.57 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/1.586, allocations: 33.62 kB / 0.5566 GB, free: 30.56 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.507e-05/1.586, allocations: 18.94 kB / 0.5566 GB, free: 30.56 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007516/1.587, allocations: 460.9 kB / 0.557 GB, free: 30.36 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.587, allocations: 0 / 0.557 GB, free: 30.36 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001463/1.589, allocations: 377.1 kB / 0.5574 GB, free: 30.27 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.003355/1.592, allocations: 1.96 MB / 0.5593 GB, free: 29.12 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00175/1.594, allocations: 0.6248 MB / 0.5599 GB, free: 28.88 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.594, allocations: 0 / 0.5599 GB, free: 28.88 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008541/1.595, allocations: 317.5 kB / 0.5602 GB, free: 28.74 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/1.597, allocations: 273.5 kB / 0.5605 GB, free: 28.68 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/1.601, allocations: 1.368 MB / 0.5618 GB, free: 28.1 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/1.601, allocations: 0.9651 MB / 0.5628 GB, free: 27.38 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004504/1.602, allocations: 242.5 kB / 0.563 GB, free: 27.21 MB / 234.7 MB Notification: Performance of SimCode: time 9.82e-07/1.602, allocations: 3.812 kB / 0.563 GB, free: 27.21 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.196/4.798, allocations: 18.92 MB / 0.5815 GB, free: 13.95 MB / 234.7 MB