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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.033/1.033, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.724e-05/2.726e-05, allocations: 4 kB / 148.2 MB, free: 6.113 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05989/0.05996, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7782/0.8382, allocations: 238.8 MB / 412.2 MB, free: 58.77 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.8385, allocations: 64.47 kB / 412.3 MB, free: 58.77 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6491/1.488, allocations: 130.1 MB / 0.5297 GB, free: 37.15 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.824e-06/1.488, allocations: 3.938 kB / 0.5297 GB, free: 37.15 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.562e-05/1.488, allocations: 23.83 kB / 0.5297 GB, free: 37.13 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.002623/1.49, allocations: 1.038 MB / 0.5307 GB, free: 36.05 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/1.49, allocations: 8.031 kB / 0.5307 GB, free: 36.04 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/1.491, allocations: 87.05 kB / 0.5308 GB, free: 35.95 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/1.492, allocations: 0.6179 MB / 0.5314 GB, free: 35.31 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.182e-05/1.492, allocations: 80.69 kB / 0.5315 GB, free: 35.21 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/1.493, allocations: 28 kB / 0.5315 GB, free: 35.19 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001233/1.494, allocations: 0.5297 MB / 0.5321 GB, free: 34.66 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/1.495, allocations: 0.6944 MB / 0.5327 GB, free: 33.91 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/1.495, allocations: 4 kB / 0.5327 GB, free: 33.91 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/1.495, allocations: 3.984 kB / 0.5327 GB, free: 33.9 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.966e-05/1.495, allocations: 37.3 kB / 0.5328 GB, free: 33.87 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005399/1.501, allocations: 3.514 MB / 0.5362 GB, free: 30.1 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008186/1.502, allocations: 372.4 kB / 0.5366 GB, free: 29.73 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004164/1.502, allocations: 216.8 kB / 0.5368 GB, free: 29.52 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002094/1.504, allocations: 1.367 MB / 0.5381 GB, free: 28 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005004/1.505, allocations: 276.2 kB / 0.5384 GB, free: 27.71 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 3.437e-06/1.505, allocations: 0 / 0.5384 GB, free: 27.71 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.004202/1.509, allocations: 1.313 MB / 0.5396 GB, free: 26.34 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/1.509, allocations: 162.2 kB / 0.5398 GB, free: 26.15 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008144/1.51, allocations: 0.5072 MB / 0.5403 GB, free: 25.64 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.483e-05/1.51, allocations: 33.69 kB / 0.5403 GB, free: 25.6 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/1.51, allocations: 440.9 kB / 0.5408 GB, free: 25.16 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/1.51, allocations: 118.3 kB / 0.5409 GB, free: 25.05 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.722e-05/1.51, allocations: 7.938 kB / 0.5409 GB, free: 25.04 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.571e-05/1.511, allocations: 338.8 kB / 0.5412 GB, free: 24.7 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/1.511, allocations: 225.4 kB / 0.5414 GB, free: 24.48 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006038/1.512, allocations: 492.8 kB / 0.5419 GB, free: 23.87 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008965/1.513, allocations: 315.7 kB / 0.5422 GB, free: 23.56 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/1.513, allocations: 0 / 0.5422 GB, free: 23.56 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002313/1.515, allocations: 0.8142 MB / 0.543 GB, free: 22.73 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/1.515, allocations: 33.7 kB / 0.543 GB, free: 22.69 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/1.515, allocations: 12 kB / 0.543 GB, free: 22.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005124/1.516, allocations: 105.2 kB / 0.5431 GB, free: 22.57 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00085/1.516, allocations: 143.8 kB / 0.5433 GB, free: 22.43 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007753/1.517, allocations: 0.6772 MB / 0.5439 GB, free: 21.73 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008921/1.518, allocations: 39.94 kB / 0.544 GB, free: 21.69 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.001e-05/1.518, allocations: 40 kB / 0.544 GB, free: 21.65 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.0002849/1.519, allocations: 179.5 kB / 0.5442 GB, free: 21.47 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001723/1.52, allocations: 0.5751 MB / 0.5447 GB, free: 20.88 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/1.52, allocations: 75.16 kB / 0.5448 GB, free: 20.81 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/1.522, allocations: 0.6298 MB / 0.5454 GB, free: 20.17 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/1.522, allocations: 4 kB / 0.5454 GB, free: 20.17 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/1.522, allocations: 0 / 0.5454 GB, free: 20.17 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/1.522, allocations: 3.984 kB / 0.5454 GB, free: 20.16 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/1.525, allocations: 1.242 MB / 0.5466 GB, free: 18.88 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/1.525, allocations: 4 kB / 0.5466 GB, free: 18.88 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005224/1.526, allocations: 59.91 kB / 0.5467 GB, free: 18.82 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004986/1.526, allocations: 96.81 kB / 0.5468 GB, free: 18.72 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.045e-05/1.527, allocations: 12.03 kB / 0.5468 GB, free: 18.71 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007524/1.527, allocations: 0.6772 MB / 0.5475 GB, free: 18 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.527, allocations: 0 / 0.5475 GB, free: 18 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/1.53, allocations: 0.9514 MB / 0.5484 GB, free: 17.02 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/1.53, allocations: 140.2 kB / 0.5485 GB, free: 16.87 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/1.53, allocations: 8 kB / 0.5485 GB, free: 16.86 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006502/1.531, allocations: 19.98 kB / 0.5485 GB, free: 16.84 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/1.531, allocations: 35.8 kB / 0.5486 GB, free: 16.8 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.179e-05/1.531, allocations: 31.98 kB / 0.5486 GB, free: 16.77 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006412/1.532, allocations: 391.1 kB / 0.549 GB, free: 16.39 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.532, allocations: 0 / 0.549 GB, free: 16.39 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001764/1.533, allocations: 355.7 kB / 0.5493 GB, free: 16.05 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.003634/1.537, allocations: 1.916 MB / 0.5512 GB, free: 14.14 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00141/1.538, allocations: 0.5682 MB / 0.5518 GB, free: 13.56 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/1.539, allocations: 0 / 0.5518 GB, free: 13.56 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005988/1.539, allocations: 279.1 kB / 0.552 GB, free: 13.28 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/1.541, allocations: 256.6 kB / 0.5523 GB, free: 13.04 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004062/1.545, allocations: 1.312 MB / 0.5535 GB, free: 11.67 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/1.546, allocations: 0.9646 MB / 0.5545 GB, free: 10.68 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004791/1.546, allocations: 247.3 kB / 0.5547 GB, free: 10.43 MB / 234.7 MB Notification: Performance of SimCode: time 1.222e-06/1.547, allocations: 3.938 kB / 0.5547 GB, free: 10.43 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.706/5.252, allocations: 18.72 MB / 0.573 GB, free: 35.41 MB / 234.7 MB