Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.276/4.276, allocations: 404 MB / 410.9 MB, free: 4.953 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3423/4.618, allocations: 95.01 MB / 0.4941 GB, free: 7.34 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5532/5.172, allocations: 92.68 MB / 0.5846 GB, free: 3.379 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2317/5.403, allocations: 120.5 MB / 0.7022 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003514/5.404, allocations: 87.94 kB / 0.7023 GB, free: 13.12 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.005197/5.409, allocations: 1.041 MB / 0.7033 GB, free: 12.03 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/5.409, allocations: 16 kB / 0.7034 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.721e-05/5.409, allocations: 4 kB / 0.7034 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/5.409, allocations: 170.9 kB / 0.7035 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/5.409, allocations: 11.92 kB / 0.7035 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/5.409, allocations: 4 kB / 0.7035 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001535/5.41, allocations: 28 kB / 0.7036 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/5.41, allocations: 57.67 kB / 0.7036 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/5.41, allocations: 3.938 kB / 0.7036 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/5.41, allocations: 3.984 kB / 0.7036 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/5.41, allocations: 4 kB / 0.7036 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007249/5.411, allocations: 301.1 kB / 0.7039 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/5.411, allocations: 62.56 kB / 0.704 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.753e-05/5.411, allocations: 32.86 kB / 0.704 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/5.411, allocations: 4 kB / 0.704 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/5.411, allocations: 75.52 kB / 0.7041 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 3.466e-06/5.411, allocations: 0 / 0.7041 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003322/5.411, allocations: 77.59 kB / 0.7042 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/5.412, allocations: 59.41 kB / 0.7042 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/5.412, allocations: 101 kB / 0.7043 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/5.412, allocations: 29.7 kB / 0.7043 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/5.412, allocations: 84.38 kB / 0.7044 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.377e-05/5.412, allocations: 27.64 kB / 0.7045 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.378e-06/5.412, allocations: 0 / 0.7045 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001423/5.412, allocations: 326.7 kB / 0.7048 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.563e-05/5.412, allocations: 20 kB / 0.7048 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/5.412, allocations: 47.38 kB / 0.7048 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/5.412, allocations: 36.03 kB / 0.7049 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/5.412, allocations: 0 / 0.7049 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003242/5.413, allocations: 101.5 kB / 0.705 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/5.413, allocations: 8 kB / 0.705 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/5.413, allocations: 0 / 0.705 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/5.413, allocations: 0 / 0.705 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/5.413, allocations: 36.02 kB / 0.705 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/5.413, allocations: 0 / 0.705 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/5.413, allocations: 11.98 kB / 0.705 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/5.413, allocations: 7.906 kB / 0.705 GB, free: 10.14 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001259/5.414, allocations: 114.7 kB / 0.7051 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/5.414, allocations: 11.91 kB / 0.7051 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003223/5.414, allocations: 98.02 kB / 0.7052 GB, free: 9.914 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/5.414, allocations: 0 / 0.7052 GB, free: 9.914 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/5.414, allocations: 4 kB / 0.7052 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/5.414, allocations: 3.938 kB / 0.7052 GB, free: 9.906 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005567/5.415, allocations: 335.2 kB / 0.7056 GB, free: 9.535 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/5.415, allocations: 4 kB / 0.7056 GB, free: 9.531 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/5.415, allocations: 19.98 kB / 0.7056 GB, free: 9.512 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.647e-06/5.415, allocations: 0 / 0.7056 GB, free: 9.512 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/5.415, allocations: 3.938 kB / 0.7056 GB, free: 9.508 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/5.415, allocations: 0 / 0.7056 GB, free: 9.508 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/5.415, allocations: 4 kB / 0.7056 GB, free: 9.504 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000293/5.415, allocations: 183.4 kB / 0.7058 GB, free: 9.309 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004135/5.416, allocations: 0.5544 MB / 0.7063 GB, free: 8.734 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/5.416, allocations: 81.05 kB / 0.7064 GB, free: 8.637 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.726e-05/5.416, allocations: 8 kB / 0.7064 GB, free: 8.629 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/5.416, allocations: 16.27 kB / 0.7064 GB, free: 8.613 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/5.416, allocations: 11.98 kB / 0.7064 GB, free: 8.602 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/5.416, allocations: 0 / 0.7064 GB, free: 8.602 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.681e-05/5.416, allocations: 83.28 kB / 0.7065 GB, free: 8.52 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001387/5.417, allocations: 19.94 kB / 0.7065 GB, free: 8.5 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001617/5.418, allocations: 118.1 kB / 0.7066 GB, free: 8.379 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003083/5.418, allocations: 67.94 kB / 0.7067 GB, free: 8.312 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/5.418, allocations: 0 / 0.7067 GB, free: 8.312 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/5.418, allocations: 32.19 kB / 0.7067 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/5.418, allocations: 11.92 kB / 0.7067 GB, free: 8.27 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004449/5.419, allocations: 95.62 kB / 0.7068 GB, free: 8.156 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/5.419, allocations: 0.7075 MB / 0.7075 GB, free: 7.422 MB / 0.5886 GB Notification: Performance of SimCode: time 1.012e-06/5.419, allocations: 0 / 0.7075 GB, free: 7.422 MB / 0.5886 GB