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.096/1.096, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.187e-05/3.192e-05, allocations: 4 kB / 151.5 MB, free: 15.53 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1919, allocations: 25.16 MB / 176.7 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6852/0.8772, allocations: 239.5 MB / 416.1 MB, free: 21.55 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.8775, allocations: 67.16 kB / 416.2 MB, free: 21.52 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8417/1.719, allocations: 131 MB / 0.5344 GB, free: 36.22 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.003e-06/1.719, allocations: 3.531 kB / 0.5344 GB, free: 36.22 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.771e-05/1.719, allocations: 17.5 kB / 0.5344 GB, free: 36.22 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.002644/1.722, allocations: 1.036 MB / 0.5354 GB, free: 35.67 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/1.722, allocations: 7.25 kB / 0.5354 GB, free: 35.67 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/1.722, allocations: 91.27 kB / 0.5355 GB, free: 35.63 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002397/1.723, allocations: 96.95 kB / 0.5356 GB, free: 35.59 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/1.724, allocations: 0.6144 MB / 0.5362 GB, free: 35.35 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.046e-05/1.724, allocations: 90.66 kB / 0.5363 GB, free: 35.29 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/1.724, allocations: 45.27 kB / 0.5363 GB, free: 35.29 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/1.726, allocations: 0.7582 MB / 0.5371 GB, free: 35.12 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/1.726, allocations: 7.578 kB / 0.5371 GB, free: 35.12 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/1.726, allocations: 25.17 kB / 0.5371 GB, free: 35.12 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.999e-05/1.726, allocations: 37.52 kB / 0.5372 GB, free: 35.12 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/1.728, allocations: 0.6015 MB / 0.5377 GB, free: 35.12 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005587/1.733, allocations: 3.592 MB / 0.5412 GB, free: 32.83 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008467/1.734, allocations: 383.5 kB / 0.5416 GB, free: 32.8 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/1.735, allocations: 225.1 kB / 0.5418 GB, free: 32.8 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00212/1.737, allocations: 1.392 MB / 0.5432 GB, free: 31.84 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005485/1.737, allocations: 279.2 kB / 0.5435 GB, free: 31.76 MB / 234.7 MB Notification: Performance of pre-optimization done (n=33): time 2.605e-06/1.737, allocations: 0 / 0.5435 GB, free: 31.76 MB / 234.7 MB Notification: Performance of matching and sorting (n=37): time 0.00407/1.741, allocations: 1.448 MB / 0.5449 GB, free: 31.26 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.647e-05/1.741, allocations: 171.8 kB / 0.545 GB, free: 31.07 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/1.743, allocations: 0.5789 MB / 0.5456 GB, free: 30.93 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001569/1.743, allocations: 40.78 kB / 0.5456 GB, free: 30.89 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/1.743, allocations: 423.3 kB / 0.546 GB, free: 30.62 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/1.743, allocations: 132.7 kB / 0.5462 GB, free: 30.55 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/1.743, allocations: 17.75 kB / 0.5462 GB, free: 30.55 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.474e-05/1.743, allocations: 342.2 kB / 0.5465 GB, free: 30.23 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005657/1.744, allocations: 227.4 kB / 0.5467 GB, free: 30.23 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006974/1.745, allocations: 0.5006 MB / 0.5472 GB, free: 29.89 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006921/1.745, allocations: 335.9 kB / 0.5475 GB, free: 29.85 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/1.745, allocations: 0 / 0.5475 GB, free: 29.85 MB / 234.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002294/1.748, allocations: 0.8776 MB / 0.5484 GB, free: 29.75 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/1.748, allocations: 42.45 kB / 0.5484 GB, free: 29.72 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/1.748, allocations: 7.75 kB / 0.5484 GB, free: 29.72 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007569/1.749, allocations: 131.2 kB / 0.5486 GB, free: 29.71 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000858/1.749, allocations: 140.3 kB / 0.5487 GB, free: 29.71 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006296/1.75, allocations: 0.6616 MB / 0.5493 GB, free: 29.2 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009435/1.751, allocations: 51.27 kB / 0.5494 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.201e-05/1.751, allocations: 40.66 kB / 0.5494 GB, free: 29.19 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.0002991/1.752, allocations: 199.6 kB / 0.5496 GB, free: 29.05 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/1.752, allocations: 74.14 kB / 0.5497 GB, free: 29.01 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/1.754, allocations: 0.6814 MB / 0.5504 GB, free: 28.91 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/1.754, allocations: 2.781 kB / 0.5504 GB, free: 28.91 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/1.754, allocations: 3.625 kB / 0.5504 GB, free: 28.91 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.754, allocations: 0 / 0.5504 GB, free: 28.91 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002722/1.756, allocations: 1.336 MB / 0.5517 GB, free: 28.56 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/1.756, allocations: 0 / 0.5517 GB, free: 28.56 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005085/1.757, allocations: 63.84 kB / 0.5517 GB, free: 28.56 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006996/1.758, allocations: 118.6 kB / 0.5518 GB, free: 28.55 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.862e-05/1.758, allocations: 19.61 kB / 0.5519 GB, free: 28.55 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005799/1.758, allocations: 0.6571 MB / 0.5525 GB, free: 28.03 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.758, allocations: 2.531 kB / 0.5525 GB, free: 28.03 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/1.76, allocations: 1.003 MB / 0.5535 GB, free: 27.79 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/1.76, allocations: 141.6 kB / 0.5536 GB, free: 27.66 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/1.761, allocations: 20.11 kB / 0.5536 GB, free: 27.65 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006699/1.761, allocations: 28.81 kB / 0.5537 GB, free: 27.65 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/1.761, allocations: 43.03 kB / 0.5537 GB, free: 27.65 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.308e-05/1.761, allocations: 20.91 kB / 0.5537 GB, free: 27.65 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007147/1.762, allocations: 452 kB / 0.5542 GB, free: 27.56 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.762, allocations: 0 / 0.5542 GB, free: 27.56 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001493/1.764, allocations: 374.8 kB / 0.5545 GB, free: 27.5 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.003166/1.767, allocations: 1.988 MB / 0.5565 GB, free: 26.58 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00164/1.769, allocations: 0.6117 MB / 0.5571 GB, free: 26.51 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.769, allocations: 0 / 0.5571 GB, free: 26.51 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000815/1.769, allocations: 315.8 kB / 0.5574 GB, free: 26.45 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/1.772, allocations: 259.7 kB / 0.5576 GB, free: 26.44 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003527/1.775, allocations: 1.357 MB / 0.5589 GB, free: 26.04 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/1.776, allocations: 0.9613 MB / 0.5599 GB, free: 25.34 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004279/1.776, allocations: 243.7 kB / 0.5601 GB, free: 25.33 MB / 234.7 MB Notification: Performance of SimCode: time 1.022e-06/1.776, allocations: 2.188 kB / 0.5601 GB, free: 25.33 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.993/4.769, allocations: 18.91 MB / 0.5786 GB, free: 23.61 MB / 234.7 MB