Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",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 4.248/4.248, allocations: 404 MB / 410.9 MB, free: 4.91 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2636/4.511, allocations: 95.02 MB / 0.4941 GB, free: 7.309 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5284/5.04, allocations: 92.67 MB / 0.5846 GB, free: 3.41 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2511/5.291, allocations: 120.4 MB / 0.7021 GB, free: 13.36 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003847/5.292, allocations: 83.95 kB / 0.7022 GB, free: 13.27 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.1093/5.401, allocations: 22.13 MB / 0.7238 GB, free: 7.035 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/5.401, allocations: 12 kB / 0.7238 GB, free: 7.023 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/5.401, allocations: 27.62 kB / 0.7239 GB, free: 6.996 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005237/5.402, allocations: 245.8 kB / 0.7241 GB, free: 6.719 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/5.402, allocations: 7.984 kB / 0.7241 GB, free: 6.711 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-05/5.402, allocations: 16 kB / 0.7241 GB, free: 6.695 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007362/5.402, allocations: 312.4 kB / 0.7244 GB, free: 6.391 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009423/5.403, allocations: 462.3 kB / 0.7249 GB, free: 5.922 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/5.403, allocations: 0 / 0.7249 GB, free: 5.922 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/5.403, allocations: 0 / 0.7249 GB, free: 5.922 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/5.404, allocations: 8 kB / 0.7249 GB, free: 5.914 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/5.405, allocations: 0.5125 MB / 0.7254 GB, free: 5.355 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/5.407, allocations: 1.025 MB / 0.7264 GB, free: 4.297 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/5.408, allocations: 0.6517 MB / 0.727 GB, free: 3.633 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.544e-05/5.408, allocations: 11.94 kB / 0.727 GB, free: 3.621 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/5.409, allocations: 470 kB / 0.7275 GB, free: 3.137 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 5.831e-06/5.409, allocations: 4 kB / 0.7275 GB, free: 3.133 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001798/5.411, allocations: 0.752 MB / 0.7282 GB, free: 2.375 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.948e-05/5.411, allocations: 144.4 kB / 0.7283 GB, free: 2.203 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/5.411, allocations: 216 kB / 0.7285 GB, free: 1.98 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.266e-05/5.412, allocations: 25.7 kB / 0.7286 GB, free: 1.949 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 9.232e-05/5.412, allocations: 108.9 kB / 0.7287 GB, free: 1.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/5.412, allocations: 75.06 kB / 0.7287 GB, free: 1.766 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.797e-05/5.412, allocations: 0 / 0.7287 GB, free: 1.766 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002136/5.412, allocations: 342.7 kB / 0.7291 GB, free: 1.422 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007346/5.413, allocations: 324.7 kB / 0.7294 GB, free: 1.105 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008061/5.414, allocations: 413.6 kB / 0.7298 GB, free: 0.668 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008221/5.414, allocations: 363.9 kB / 0.7301 GB, free: 320 kB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/5.414, allocations: 0 / 0.7301 GB, free: 320 kB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002829/5.417, allocations: 0.8015 MB / 0.7309 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/5.417, allocations: 4 kB / 0.7309 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/5.417, allocations: 4 kB / 0.7309 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.751e-05/5.417, allocations: 7.938 kB / 0.7309 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004194/5.418, allocations: 47.83 kB / 0.731 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/5.418, allocations: 4 kB / 0.731 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007521/5.419, allocations: 7.906 kB / 0.731 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006571/5.419, allocations: 207.6 kB / 0.7312 GB, free: 15.23 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0003256/5.42, allocations: 148.6 kB / 0.7313 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/5.42, allocations: 27.62 kB / 0.7313 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002096/5.42, allocations: 37.89 kB / 0.7314 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/5.42, allocations: 7.938 kB / 0.7314 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/5.42, allocations: 8.062 kB / 0.7314 GB, free: 15 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/5.42, allocations: 0 / 0.7314 GB, free: 15 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005117/5.425, allocations: 1.628 MB / 0.733 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/5.425, allocations: 4 kB / 0.733 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/5.426, allocations: 23.91 kB / 0.733 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.02e-05/5.426, allocations: 4 kB / 0.733 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.157e-05/5.426, allocations: 15.97 kB / 0.733 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.218e-05/5.426, allocations: 3.906 kB / 0.733 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/5.426, allocations: 11.94 kB / 0.733 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002872/5.429, allocations: 1.107 MB / 0.7341 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003016/5.432, allocations: 1.494 MB / 0.7356 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/5.432, allocations: 100.8 kB / 0.7357 GB, free: 10.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/5.432, allocations: 11.91 kB / 0.7357 GB, free: 10.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008883/5.433, allocations: 7.984 kB / 0.7357 GB, free: 10.45 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/5.433, allocations: 47.94 kB / 0.7357 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006879/5.434, allocations: 219.7 kB / 0.736 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0003989/5.435, allocations: 164.5 kB / 0.7361 GB, free: 10.03 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002985/5.438, allocations: 56 kB / 0.7362 GB, free: 9.973 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0004728/5.438, allocations: 134.1 kB / 0.7363 GB, free: 9.828 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002616/5.441, allocations: 0.7297 MB / 0.737 GB, free: 9.098 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/5.441, allocations: 4.25 kB / 0.737 GB, free: 9.094 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001479/5.442, allocations: 407.6 kB / 0.7374 GB, free: 8.695 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004729/5.447, allocations: 344.6 kB / 0.7377 GB, free: 8.371 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/5.451, allocations: 0.8664 MB / 0.7386 GB, free: 7.469 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/5.452, allocations: 0.8228 MB / 0.7394 GB, free: 6.621 MB / 0.6198 GB Notification: Performance of SimCode: time 2.013e-06/5.452, allocations: 3.938 kB / 0.7394 GB, free: 6.617 MB / 0.6198 GB