Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.961/3.961, allocations: 404 MB / 410.9 MB, free: 4.922 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2362/4.197, allocations: 95.02 MB / 0.4941 GB, free: 7.324 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5491/4.746, allocations: 92.68 MB / 0.5846 GB, free: 3.398 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2472/4.994, allocations: 120.8 MB / 0.7025 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003475/4.994, allocations: 87.92 kB / 0.7026 GB, free: 12.87 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.007614/5.002, allocations: 1.516 MB / 0.7041 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/5.002, allocations: 8 kB / 0.7041 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.642e-05/5.002, allocations: 7.906 kB / 0.7041 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001988/5.002, allocations: 174.9 kB / 0.7043 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/5.002, allocations: 4 kB / 0.7043 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/5.002, allocations: 11.88 kB / 0.7043 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001605/5.002, allocations: 28 kB / 0.7043 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/5.003, allocations: 71.39 kB / 0.7044 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/5.003, allocations: 0 / 0.7044 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/5.003, allocations: 4 kB / 0.7044 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/5.003, allocations: 0 / 0.7044 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007832/5.003, allocations: 313.1 kB / 0.7047 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/5.004, allocations: 38.58 kB / 0.7047 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.306e-05/5.004, allocations: 16.86 kB / 0.7047 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/5.004, allocations: 0 / 0.7047 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/5.004, allocations: 42.67 kB / 0.7048 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=4): time 1.613e-06/5.004, allocations: 0 / 0.7048 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of matching and sorting (n=4): time 0.0002927/5.004, allocations: 61.59 kB / 0.7048 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/5.004, allocations: 81.11 kB / 0.7049 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/5.004, allocations: 113.3 kB / 0.705 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/5.004, allocations: 25.7 kB / 0.7051 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/5.004, allocations: 95.98 kB / 0.7052 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.072e-05/5.004, allocations: 11.8 kB / 0.7052 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.097e-06/5.004, allocations: 3.938 kB / 0.7052 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001473/5.005, allocations: 318.8 kB / 0.7055 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.759e-05/5.005, allocations: 16 kB / 0.7055 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-05/5.005, allocations: 33.7 kB / 0.7055 GB, free: 9.688 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.868e-05/5.005, allocations: 8 kB / 0.7055 GB, free: 9.68 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/5.005, allocations: 4 kB / 0.7055 GB, free: 9.676 MB / 0.5886 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002166/5.005, allocations: 69.53 kB / 0.7056 GB, free: 9.602 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/5.005, allocations: 4 kB / 0.7056 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/5.005, allocations: 4.172 kB / 0.7056 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/5.005, allocations: 0 / 0.7056 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/5.005, allocations: 19.98 kB / 0.7056 GB, free: 9.574 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/5.005, allocations: 4.031 kB / 0.7056 GB, free: 9.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/5.006, allocations: 15.98 kB / 0.7056 GB, free: 9.555 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/5.006, allocations: 0 / 0.7056 GB, free: 9.555 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001096/5.006, allocations: 108.9 kB / 0.7057 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.856e-05/5.006, allocations: 7.906 kB / 0.7058 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.121e-05/5.006, allocations: 12.12 kB / 0.7058 GB, free: 9.414 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/5.006, allocations: 0 / 0.7058 GB, free: 9.414 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/5.006, allocations: 7.922 kB / 0.7058 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/5.006, allocations: 0 / 0.7058 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002529/5.006, allocations: 158.2 kB / 0.7059 GB, free: 9.215 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/5.006, allocations: 4 kB / 0.7059 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/5.006, allocations: 15.92 kB / 0.7059 GB, free: 9.195 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/5.006, allocations: 3.906 kB / 0.7059 GB, free: 9.191 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/5.006, allocations: 4 kB / 0.7059 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/5.006, allocations: 0 / 0.7059 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/5.006, allocations: 0 / 0.7059 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002547/5.007, allocations: 159.4 kB / 0.7061 GB, free: 9.016 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003775/5.007, allocations: 0.5234 MB / 0.7066 GB, free: 8.473 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.804e-05/5.007, allocations: 89.02 kB / 0.7067 GB, free: 8.367 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/5.007, allocations: 7.984 kB / 0.7067 GB, free: 8.359 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/5.008, allocations: 8 kB / 0.7067 GB, free: 8.352 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.055e-05/5.008, allocations: 19.81 kB / 0.7067 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/5.008, allocations: 4 kB / 0.7067 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.196e-05/5.008, allocations: 97.53 kB / 0.7068 GB, free: 8.234 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001349/5.009, allocations: 19.92 kB / 0.7068 GB, free: 8.215 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001673/5.009, allocations: 110.5 kB / 0.707 GB, free: 8.102 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002016/5.009, allocations: 28 kB / 0.707 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/5.01, allocations: 0 / 0.707 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.594e-05/5.01, allocations: 19.98 kB / 0.707 GB, free: 8.055 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/5.01, allocations: 11.94 kB / 0.707 GB, free: 8.043 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004948/5.01, allocations: 104.1 kB / 0.7071 GB, free: 7.918 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004485/5.011, allocations: 0.7032 MB / 0.7078 GB, free: 7.191 MB / 0.5886 GB Notification: Performance of SimCode: time 8.51e-07/5.011, allocations: 0 / 0.7078 GB, free: 7.191 MB / 0.5886 GB