[: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.039/1.039, allocations: 111.2 MB / 118.2 MB, free: 15.64 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09658/1.136, allocations: 27.5 MB / 145.7 MB, free: 4.164 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/1.302, allocations: 25.16 MB / 170.9 MB, free: 1.852 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5868/1.889, allocations: 240 MB / 410.9 MB, free: 33.95 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/1.889, allocations: 73.17 kB / 410.9 MB, free: 33.91 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: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 1.443/3.332, allocations: 303.1 MB / 0.6973 GB, free: 7.113 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.342e-05/3.332, allocations: 11.94 kB / 0.6973 GB, free: 7.102 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001565/3.334, allocations: 201.7 kB / 0.6975 GB, free: 6.902 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007537/3.341, allocations: 1.2 MB / 0.6987 GB, free: 5.672 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/3.342, allocations: 44 kB / 0.6987 GB, free: 5.629 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006949/3.342, allocations: 64 kB / 0.6988 GB, free: 5.566 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006189/3.349, allocations: 1.629 MB / 0.7004 GB, free: 3.934 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005175/3.354, allocations: 1.696 MB / 0.702 GB, free: 2.133 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.474e-05/3.354, allocations: 3.938 kB / 0.7021 GB, free: 2.129 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/3.354, allocations: 6.734 kB / 0.7021 GB, free: 2.125 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/3.354, allocations: 118.2 kB / 0.7022 GB, free: 2.008 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/3.374, allocations: 7.204 MB / 0.7092 GB, free: 10.43 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003311/3.378, allocations: 0.8781 MB / 0.7101 GB, free: 9.551 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003488/3.381, allocations: 0.6992 MB / 0.7107 GB, free: 8.852 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.014/3.395, allocations: 3.301 MB / 0.714 GB, free: 5.289 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/3.396, allocations: 43.56 kB / 0.714 GB, free: 5.238 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 6.802e-06/3.396, allocations: 3.938 kB / 0.714 GB, free: 5.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.03354/3.429, allocations: 4.697 MB / 0.7186 GB, free: 492 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/3.429, allocations: 171.5 kB / 0.7188 GB, free: 284 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.121/3.55, allocations: 0.8755 MB / 0.7196 GB, free: 46.35 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004438/3.551, allocations: 35.27 kB / 0.7197 GB, free: 46.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005295/3.551, allocations: 0.5299 MB / 0.7202 GB, free: 46.23 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006882/3.552, allocations: 441.3 kB / 0.7206 GB, free: 46.05 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/3.552, allocations: 0 / 0.7206 GB, free: 46.05 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/3.552, allocations: 372.7 kB / 0.7209 GB, free: 45.75 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001924/3.554, allocations: 0.6771 MB / 0.7216 GB, free: 45.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002359/3.557, allocations: 1.122 MB / 0.7227 GB, free: 45.24 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008678/3.565, allocations: 1.23 MB / 0.7239 GB, free: 45.22 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-05/3.566, allocations: 8.625 kB / 0.7239 GB, free: 45.21 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.0128/3.578, allocations: 2.549 MB / 0.7264 GB, free: 45.05 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/3.578, allocations: 2.812 kB / 0.7264 GB, free: 45.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/3.578, allocations: 16.47 kB / 0.7264 GB, free: 45.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/3.581, allocations: 447.3 kB / 0.7268 GB, free: 45.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002972/3.584, allocations: 334.8 kB / 0.7272 GB, free: 45.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01184/3.596, allocations: 3.3 MB / 0.7304 GB, free: 42.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004424/3.6, allocations: 111.5 kB / 0.7305 GB, free: 42.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007745/3.601, allocations: 81.33 kB / 0.7306 GB, free: 42.93 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.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 tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.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 tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.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: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001547/3.603, allocations: 195.9 kB / 0.7308 GB, free: 42.82 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008126/3.604, allocations: 153.8 kB / 0.7309 GB, free: 42.75 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/3.617, allocations: 2.497 MB / 0.7333 GB, free: 42.61 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.308e-05/3.617, allocations: 17.88 kB / 0.7334 GB, free: 42.61 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/3.617, allocations: 5.156 kB / 0.7334 GB, free: 42.61 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.684e-05/3.617, allocations: 7.031 kB / 0.7334 GB, free: 42.61 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01962/3.636, allocations: 3.839 MB / 0.7371 GB, free: 42.21 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/3.637, allocations: 0 / 0.7371 GB, free: 42.21 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002322/3.639, allocations: 237.1 kB / 0.7374 GB, free: 42.21 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002518/3.641, allocations: 440.9 kB / 0.7378 GB, free: 42.18 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003523/3.642, allocations: 26.09 kB / 0.7378 GB, free: 42.18 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006237/3.648, allocations: 3.087 MB / 0.7408 GB, free: 40.09 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/3.648, allocations: 0 / 0.7408 GB, free: 40.09 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01605/3.664, allocations: 3.273 MB / 0.744 GB, free: 39.63 MB / 250.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01474/3.679, allocations: 4.729 MB / 0.7486 GB, free: 38.79 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007263/3.68, allocations: 234 kB / 0.7488 GB, free: 38.61 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006156/3.68, allocations: 8.281 kB / 0.7489 GB, free: 38.61 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002735/3.683, allocations: 82.45 kB / 0.7489 GB, free: 38.61 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005985/3.684, allocations: 141.8 kB / 0.7491 GB, free: 38.61 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002373/3.684, allocations: 57.77 kB / 0.7491 GB, free: 38.61 MB / 250.7 MB Notification: Performance of sort global known variables: time 0.001449/3.686, allocations: 0.6577 MB / 0.7498 GB, free: 38.5 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.005973/3.692, allocations: 0.9294 MB / 0.7507 GB, free: 38.5 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004183/3.696, allocations: 1.052 MB / 0.7517 GB, free: 38.39 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005827/3.702, allocations: 1.763 MB / 0.7534 GB, free: 38.37 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/3.702, allocations: 2.719 kB / 0.7534 GB, free: 38.37 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003437/3.705, allocations: 1.034 MB / 0.7544 GB, free: 38.36 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006979/3.712, allocations: 0.6424 MB / 0.7551 GB, free: 38.34 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009949/3.722, allocations: 2.75 MB / 0.7577 GB, free: 37.76 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002636/3.725, allocations: 1.594 MB / 0.7593 GB, free: 37.04 MB / 250.7 MB Notification: Performance of SimCode: time 1.463e-06/3.725, allocations: 0 / 0.7593 GB, free: 37.04 MB / 250.7 MB