Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.617/1.617, allocations: 194.9 MB / 202.5 MB, free: 6.922 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2626/1.88, allocations: 46.83 MB / 249.3 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09304/1.973, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7194/2.692, allocations: 320.7 MB / 0.6001 GB, free: 32.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/2.693, allocations: 86.58 kB / 0.6002 GB, free: 32.02 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.7005/3.393, allocations: 142.1 MB / 0.739 GB, free: 52.63 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/3.393, allocations: 8 kB / 0.739 GB, free: 52.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006032/3.394, allocations: 98.95 kB / 0.7391 GB, free: 52.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002071/3.396, allocations: 0.6516 MB / 0.7397 GB, free: 51.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.016e-05/3.396, allocations: 76.39 kB / 0.7398 GB, free: 51.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/3.396, allocations: 28 kB / 0.7398 GB, free: 51.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001596/3.398, allocations: 0.6071 MB / 0.7404 GB, free: 51.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/3.399, allocations: 0.7295 MB / 0.7411 GB, free: 50.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/3.399, allocations: 4 kB / 0.7411 GB, free: 50.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/3.399, allocations: 0 / 0.7411 GB, free: 50.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-05/3.4, allocations: 52.91 kB / 0.7412 GB, free: 50.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006863/3.406, allocations: 3.322 MB / 0.7444 GB, free: 46.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007142/3.407, allocations: 314.2 kB / 0.7447 GB, free: 46.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005048/3.408, allocations: 237.2 kB / 0.7449 GB, free: 46.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002529/3.41, allocations: 1.337 MB / 0.7462 GB, free: 44.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005481/3.411, allocations: 289.5 kB / 0.7465 GB, free: 44.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 3.006e-06/3.411, allocations: 0 / 0.7465 GB, free: 44.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.004396/3.415, allocations: 1.307 MB / 0.7478 GB, free: 43.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/3.415, allocations: 166.4 kB / 0.7479 GB, free: 42.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009156/3.416, allocations: 0.5346 MB / 0.7485 GB, free: 42.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.231e-05/3.416, allocations: 37.62 kB / 0.7485 GB, free: 42.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/3.417, allocations: 327.1 kB / 0.7488 GB, free: 42 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/3.417, allocations: 138.1 kB / 0.7489 GB, free: 41.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/3.417, allocations: 0 / 0.7489 GB, free: 41.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/3.417, allocations: 378.8 kB / 0.7493 GB, free: 41.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005922/3.418, allocations: 241.5 kB / 0.7495 GB, free: 41.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007149/3.418, allocations: 0.5151 MB / 0.75 GB, free: 40.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005948/3.424, allocations: 0.8063 MB / 0.7508 GB, free: 39.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/3.424, allocations: 4 kB / 0.7508 GB, free: 39.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.007768/3.432, allocations: 1.321 MB / 0.7521 GB, free: 38.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006391/3.433, allocations: 3.478 MB / 0.7555 GB, free: 34.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/3.433, allocations: 12 kB / 0.7555 GB, free: 34.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006608/3.433, allocations: 112.8 kB / 0.7556 GB, free: 34.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/3.435, allocations: 151.8 kB / 0.7558 GB, free: 34.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00099/3.436, allocations: 0.7161 MB / 0.7565 GB, free: 33.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/3.437, allocations: 35.95 kB / 0.7565 GB, free: 33.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/3.437, allocations: 44 kB / 0.7566 GB, free: 33.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/3.437, allocations: 4 kB / 0.7566 GB, free: 33.61 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007466/3.444, allocations: 1.207 MB / 0.7577 GB, free: 32.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/3.444, allocations: 8 kB / 0.7577 GB, free: 32.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005856/3.445, allocations: 112.7 kB / 0.7579 GB, free: 32.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009482/3.446, allocations: 147.8 kB / 0.758 GB, free: 32.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006918/3.447, allocations: 0.6772 MB / 0.7587 GB, free: 31.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009782/3.448, allocations: 27.98 kB / 0.7587 GB, free: 31.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.851e-05/3.448, allocations: 44.05 kB / 0.7587 GB, free: 31.36 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(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: 11 ($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,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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.0003563/3.448, allocations: 186.2 kB / 0.7589 GB, free: 31.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/3.448, allocations: 71.16 kB / 0.759 GB, free: 31.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/3.45, allocations: 0.6101 MB / 0.7596 GB, free: 30.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/3.45, allocations: 7.906 kB / 0.7596 GB, free: 30.47 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/3.45, allocations: 0 / 0.7596 GB, free: 30.47 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/3.45, allocations: 3.984 kB / 0.7596 GB, free: 30.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/3.454, allocations: 1.24 MB / 0.7608 GB, free: 29.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/3.454, allocations: 0 / 0.7608 GB, free: 29.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/3.454, allocations: 55.91 kB / 0.7608 GB, free: 29.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005547/3.455, allocations: 104.8 kB / 0.7609 GB, free: 29.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.602e-05/3.455, allocations: 12 kB / 0.761 GB, free: 29.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008726/3.456, allocations: 0.6888 MB / 0.7616 GB, free: 28.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/3.456, allocations: 0 / 0.7616 GB, free: 28.3 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002188/3.458, allocations: 0.9478 MB / 0.7625 GB, free: 27.32 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002851/3.461, allocations: 1.648 MB / 0.7642 GB, free: 25.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/3.461, allocations: 144.2 kB / 0.7643 GB, free: 25.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/3.461, allocations: 8 kB / 0.7643 GB, free: 25.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007331/3.462, allocations: 27.88 kB / 0.7643 GB, free: 25.45 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/3.462, allocations: 35.88 kB / 0.7644 GB, free: 25.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.969e-05/3.462, allocations: 27.92 kB / 0.7644 GB, free: 25.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0007077/3.463, allocations: 407.1 kB / 0.7648 GB, free: 24.99 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004292/3.467, allocations: 0.5894 MB / 0.7654 GB, free: 24.4 MB / 394.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: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * 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.001893/3.469, allocations: 0.5769 MB / 0.7659 GB, free: 23.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002593/3.472, allocations: 0.9903 MB / 0.7669 GB, free: 22.86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/3.472, allocations: 0 / 0.7669 GB, free: 22.86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007015/3.473, allocations: 294.7 kB / 0.7672 GB, free: 22.56 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/3.475, allocations: 218.7 kB / 0.7674 GB, free: 22.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/3.478, allocations: 1.101 MB / 0.7685 GB, free: 21.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007659/3.479, allocations: 1.046 MB / 0.7695 GB, free: 20.13 MB / 394.7 MB Notification: Performance of SimCode: time 1.203e-06/3.479, allocations: 0 / 0.7695 GB, free: 20.13 MB / 394.7 MB