Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_1_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.672/1.672, allocations: 171.2 MB / 178.1 MB, free: 8.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2285/1.9, allocations: 41.12 MB / 219.3 MB, free: 11.19 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/2.007, allocations: 38.76 MB / 258 MB, free: 4.359 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9396/2.947, allocations: 315.6 MB / 0.5602 GB, free: 83.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/2.947, allocations: 87.89 kB / 0.5603 GB, free: 83.56 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.7569/3.704, allocations: 141.9 MB / 0.6989 GB, free: 71.35 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/3.704, allocations: 10.88 kB / 0.6989 GB, free: 71.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000642/3.705, allocations: 99.83 kB / 0.699 GB, free: 71.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/3.707, allocations: 0.6331 MB / 0.6996 GB, free: 71.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-05/3.707, allocations: 81.52 kB / 0.6997 GB, free: 70.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/3.707, allocations: 33.06 kB / 0.6997 GB, free: 70.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00158/3.709, allocations: 0.6019 MB / 0.7003 GB, free: 70.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/3.711, allocations: 0.7289 MB / 0.701 GB, free: 70.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/3.711, allocations: 0 / 0.701 GB, free: 70.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/3.711, allocations: 2.219 kB / 0.701 GB, free: 70.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-05/3.711, allocations: 42.19 kB / 0.7011 GB, free: 70.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009494/3.72, allocations: 3.315 MB / 0.7043 GB, free: 68.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/3.722, allocations: 296.1 kB / 0.7046 GB, free: 68.88 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009163/3.723, allocations: 229.4 kB / 0.7048 GB, free: 68.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004669/3.727, allocations: 1.315 MB / 0.7061 GB, free: 68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009031/3.728, allocations: 291.4 kB / 0.7064 GB, free: 67.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 6.362e-06/3.728, allocations: 2.688 kB / 0.7064 GB, free: 67.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.00694/3.735, allocations: 1.294 MB / 0.7076 GB, free: 67.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.453e-05/3.736, allocations: 165.2 kB / 0.7078 GB, free: 67.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/3.737, allocations: 0.5318 MB / 0.7083 GB, free: 66.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/3.737, allocations: 29.17 kB / 0.7083 GB, free: 66.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003713/3.738, allocations: 335 kB / 0.7086 GB, free: 66.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002713/3.738, allocations: 127.8 kB / 0.7088 GB, free: 66.44 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.182e-05/3.738, allocations: 0 / 0.7088 GB, free: 66.44 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/3.738, allocations: 386.5 kB / 0.7091 GB, free: 66.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009765/3.739, allocations: 232.6 kB / 0.7094 GB, free: 66.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/3.74, allocations: 0.504 MB / 0.7099 GB, free: 65.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009333/3.75, allocations: 0.8085 MB / 0.7106 GB, free: 65.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.241e-05/3.75, allocations: 0 / 0.7106 GB, free: 65.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.01226/3.762, allocations: 1.307 MB / 0.7119 GB, free: 65.08 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001102/3.763, allocations: 3.478 MB / 0.7153 GB, free: 61.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.831e-05/3.763, allocations: 11.61 kB / 0.7153 GB, free: 61.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/3.765, allocations: 115.7 kB / 0.7154 GB, free: 61.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/3.766, allocations: 148 kB / 0.7156 GB, free: 61.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/3.768, allocations: 0.7169 MB / 0.7163 GB, free: 60.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/3.77, allocations: 40.91 kB / 0.7163 GB, free: 60.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00019/3.77, allocations: 37.75 kB / 0.7164 GB, free: 60.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/3.77, allocations: 3.938 kB / 0.7164 GB, free: 60.74 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007903/3.778, allocations: 1.195 MB / 0.7175 GB, free: 60.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.753e-05/3.778, allocations: 9.281 kB / 0.7175 GB, free: 60.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006683/3.779, allocations: 105.2 kB / 0.7176 GB, free: 60.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/3.78, allocations: 151.5 kB / 0.7178 GB, free: 60.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/3.781, allocations: 0.6664 MB / 0.7184 GB, free: 59.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/3.783, allocations: 32.42 kB / 0.7185 GB, free: 59.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/3.783, allocations: 41 kB / 0.7185 GB, free: 59.85 MB / 346.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: 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 (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.0004034/3.783, allocations: 182.7 kB / 0.7187 GB, free: 59.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/3.783, allocations: 73.41 kB / 0.7187 GB, free: 59.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/3.786, allocations: 0.5973 MB / 0.7193 GB, free: 59.44 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/3.786, allocations: 3.938 kB / 0.7193 GB, free: 59.44 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/3.786, allocations: 0.625 kB / 0.7193 GB, free: 59.44 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/3.786, allocations: 7.688 kB / 0.7193 GB, free: 59.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003615/3.789, allocations: 1.216 MB / 0.7205 GB, free: 58.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/3.789, allocations: 1.188 kB / 0.7205 GB, free: 58.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005951/3.79, allocations: 64.3 kB / 0.7206 GB, free: 58.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006698/3.791, allocations: 101.4 kB / 0.7207 GB, free: 58.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-05/3.791, allocations: 12.25 kB / 0.7207 GB, free: 58.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009731/3.792, allocations: 0.6885 MB / 0.7214 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/3.792, allocations: 0 / 0.7214 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003006/3.795, allocations: 0.9311 MB / 0.7223 GB, free: 57.82 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003405/3.798, allocations: 1.6 MB / 0.7238 GB, free: 56.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004246/3.799, allocations: 144.4 kB / 0.724 GB, free: 56.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/3.799, allocations: 12.94 kB / 0.724 GB, free: 56.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007928/3.8, allocations: 27.06 kB / 0.724 GB, free: 56.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/3.8, allocations: 38.02 kB / 0.7241 GB, free: 56.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.469e-05/3.8, allocations: 22.97 kB / 0.7241 GB, free: 56.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0008738/3.801, allocations: 401.5 kB / 0.7245 GB, free: 56.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006006/3.807, allocations: 0.5931 MB / 0.725 GB, free: 56.39 MB / 346.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 (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.002266/3.809, allocations: 0.567 MB / 0.7256 GB, free: 56.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003013/3.812, allocations: 0.9664 MB / 0.7265 GB, free: 55.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/3.812, allocations: 4 kB / 0.7265 GB, free: 55.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007344/3.813, allocations: 270.2 kB / 0.7268 GB, free: 55.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/3.816, allocations: 224 kB / 0.727 GB, free: 55.67 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003838/3.819, allocations: 1.085 MB / 0.7281 GB, free: 55.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008891/3.82, allocations: 1.038 MB / 0.7291 GB, free: 54.56 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/3.82, allocations: 0 / 0.7291 GB, free: 54.56 MB / 346.7 MB