Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_5_0_1_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"dynamic"}) [: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(Buildings): time 3.991/3.991, allocations: 404 MB / 410.9 MB, free: 4.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2792/4.27, allocations: 95 MB / 0.4941 GB, free: 7.34 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5328/4.803, allocations: 92.67 MB / 0.5846 GB, free: 3.395 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9943/5.797, allocations: 384.4 MB / 0.96 GB, free: 47.88 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/5.798, allocations: 90.25 kB / 0.9601 GB, free: 47.83 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2186 * Number of variables: 2186 Notification: Performance of Generate backend data structure: time 12.46/18.26, allocations: 2.282 GB / 3.242 GB, free: 87.85 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/18.26, allocations: 12.94 kB / 3.242 GB, free: 87.84 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009799/18.27, allocations: 1.191 MB / 3.243 GB, free: 87.29 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05003/18.32, allocations: 12.07 MB / 3.255 GB, free: 86.11 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006516/18.32, allocations: 273.8 kB / 3.255 GB, free: 86.11 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004202/18.33, allocations: 0.4902 MB / 3.256 GB, free: 86.11 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03743/18.36, allocations: 9.206 MB / 3.265 GB, free: 86.07 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04388/18.41, allocations: 10.72 MB / 3.275 GB, free: 84.53 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000645/18.41, allocations: 34.88 kB / 3.275 GB, free: 84.53 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003719/18.41, allocations: 20.3 kB / 3.275 GB, free: 84.53 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003437/18.41, allocations: 264.4 kB / 3.275 GB, free: 84.53 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1233/18.53, allocations: 50.28 MB / 3.324 GB, free: 60.69 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/18.55, allocations: 4.305 MB / 3.329 GB, free: 60.59 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01415/18.56, allocations: 5.109 MB / 3.334 GB, free: 60.5 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001902/18.56, allocations: 0.5112 MB / 3.334 GB, free: 60.12 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01172/18.57, allocations: 3.771 MB / 3.338 GB, free: 59.91 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=507): time 1.266e-05/18.58, allocations: 0 / 3.338 GB, free: 59.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=527): time 0.08924/18.66, allocations: 20.16 MB / 3.357 GB, free: 55.51 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/18.66, allocations: 242.9 kB / 3.358 GB, free: 55.28 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01778/18.68, allocations: 5.86 MB / 3.363 GB, free: 54.88 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.001645/18.68, allocations: 29.48 kB / 3.363 GB, free: 54.84 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.006/18.69, allocations: 3.161 MB / 3.367 GB, free: 53.09 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.006884/18.7, allocations: 1.754 MB / 3.368 GB, free: 51.95 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009139/18.7, allocations: 3.875 kB / 3.368 GB, free: 51.95 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0006004/18.7, allocations: 0.5609 MB / 3.369 GB, free: 51.62 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009863/18.71, allocations: 3.186 MB / 3.372 GB, free: 51.61 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01228/18.72, allocations: 5.02 MB / 3.377 GB, free: 49.45 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01741/18.74, allocations: 4.853 MB / 3.382 GB, free: 49.36 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.133e-05/18.74, allocations: 16.75 kB / 3.382 GB, free: 49.36 MB / 0.8073 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.04708/18.79, allocations: 9.383 MB / 3.391 GB, free: 48.83 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.009878/18.8, allocations: 27.83 MB / 3.418 GB, free: 35.76 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003432/18.8, allocations: 69.44 kB / 3.418 GB, free: 35.75 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002543/18.8, allocations: 97.47 kB / 3.418 GB, free: 35.75 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01597/18.81, allocations: 1.465 MB / 3.42 GB, free: 35.71 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001765/18.81, allocations: 127.7 kB / 3.42 GB, free: 35.71 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01472/18.83, allocations: 451.2 kB / 3.42 GB, free: 35.65 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002526/18.83, allocations: 299.7 kB / 3.42 GB, free: 35.6 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/18.83, allocations: 7.438 kB / 3.42 GB, free: 35.6 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03304/18.86, allocations: 8.659 MB / 3.429 GB, free: 33.17 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002056/18.86, allocations: 62.09 kB / 3.429 GB, free: 33.17 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/18.86, allocations: 100.9 kB / 3.429 GB, free: 33.17 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01552/18.88, allocations: 1.452 MB / 3.43 GB, free: 33.09 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001869/18.88, allocations: 127.2 kB / 3.431 GB, free: 33.06 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01471/18.89, allocations: 428 kB / 3.431 GB, free: 33.01 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002288/18.9, allocations: 297.5 kB / 3.431 GB, free: 32.96 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 261 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (799): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003117/18.9, allocations: 353.2 kB / 3.432 GB, free: 32.64 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00296/18.9, allocations: 0.6566 MB / 3.432 GB, free: 32.3 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04233/18.94, allocations: 9.513 MB / 3.441 GB, free: 29.19 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001466/18.94, allocations: 67.59 kB / 3.442 GB, free: 29.18 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.173e-05/18.94, allocations: 7.438 kB / 3.442 GB, free: 29.18 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03053/18.98, allocations: 7.882 MB / 3.449 GB, free: 24.53 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06882/19.04, allocations: 18.78 MB / 3.468 GB, free: 9.363 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.226e-05/19.04, allocations: 8 kB / 3.468 GB, free: 9.355 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01251/19.06, allocations: 0.9523 MB / 3.469 GB, free: 8.555 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004242/19.06, allocations: 0.8935 MB / 3.469 GB, free: 7.766 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001438/19.06, allocations: 82.42 kB / 3.469 GB, free: 7.703 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01634/19.08, allocations: 12.06 MB / 3.481 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.503e-05/19.08, allocations: 22.47 kB / 3.481 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.8401/19.92, allocations: 16.08 MB / 3.497 GB, free: 180.8 MB / 0.8387 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05936/19.98, allocations: 20.5 MB / 3.517 GB, free: 177.3 MB / 0.8387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008853/19.99, allocations: 1.713 MB / 3.519 GB, free: 177.2 MB / 0.8387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003557/19.99, allocations: 48.48 kB / 3.519 GB, free: 177.2 MB / 0.8387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01336/20, allocations: 0.5229 MB / 3.519 GB, free: 177.2 MB / 0.8387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001785/20.01, allocations: 311.3 kB / 3.52 GB, free: 177.2 MB / 0.8387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001023/20.01, allocations: 205.4 kB / 3.52 GB, free: 177.2 MB / 0.8387 GB Notification: Performance of sort global known variables: time 0.01434/20.02, allocations: 4.506 MB / 3.524 GB, free: 177 MB / 0.8387 GB Notification: Performance of remove unused functions: time 0.03/20.05, allocations: 3.967 MB / 3.528 GB, free: 177 MB / 0.8387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 23 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,HOut_flow.h_out,HOut_flow1.h_out,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (499): * Single equations (assignments): 477 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 20 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 20 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004166/20.06, allocations: 0.9208 MB / 3.529 GB, free: 176.8 MB / 0.8387 GB Notification: Performance of simCode: created initialization part: time 0.03799/20.09, allocations: 12.29 MB / 3.541 GB, free: 176.6 MB / 0.8387 GB Notification: Performance of simCode: created event and clocks part: time 2.042e-05/20.09, allocations: 3.75 kB / 3.541 GB, free: 176.6 MB / 0.8387 GB Notification: Performance of simCode: created simulation system equations: time 0.01259/20.11, allocations: 3.888 MB / 3.545 GB, free: 176.5 MB / 0.8387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03747/20.14, allocations: 3.466 MB / 3.548 GB, free: 176.4 MB / 0.8387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07064/20.21, allocations: 18.33 MB / 3.566 GB, free: 173.4 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02378/20.24, allocations: 7.25 MB / 3.573 GB, free: 172.5 MB / 0.8387 GB Notification: Performance of SimCode: time 1.874e-06/20.24, allocations: 1.406 kB / 3.573 GB, free: 172.5 MB / 0.8387 GB