Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.311/4.311, allocations: 404 MB / 410.9 MB, free: 4.906 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2613/4.572, allocations: 95.02 MB / 0.4941 GB, free: 7.312 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5452/5.117, allocations: 92.69 MB / 0.5846 GB, free: 3.371 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2536/5.371, allocations: 120.2 MB / 0.702 GB, free: 13.45 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003391/5.372, allocations: 83.94 kB / 0.7021 GB, free: 13.37 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.005149/5.377, allocations: 0.9619 MB / 0.703 GB, free: 12.36 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/5.377, allocations: 12 kB / 0.703 GB, free: 12.35 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.384e-05/5.377, allocations: 11.89 kB / 0.703 GB, free: 12.34 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/5.377, allocations: 170.9 kB / 0.7032 GB, free: 12.13 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/5.377, allocations: 3.938 kB / 0.7032 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/5.377, allocations: 7.938 kB / 0.7032 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001432/5.377, allocations: 16 kB / 0.7032 GB, free: 12.1 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/5.377, allocations: 45.69 kB / 0.7033 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/5.377, allocations: 0 / 0.7033 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/5.378, allocations: 3.984 kB / 0.7033 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/5.378, allocations: 0 / 0.7033 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007918/5.378, allocations: 269.4 kB / 0.7035 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/5.379, allocations: 46.52 kB / 0.7036 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.033e-05/5.379, allocations: 20.98 kB / 0.7036 GB, free: 11.67 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/5.379, allocations: 4 kB / 0.7036 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001525/5.379, allocations: 59.39 kB / 0.7037 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 3.116e-06/5.379, allocations: 0 / 0.7037 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.000276/5.379, allocations: 69.66 kB / 0.7037 GB, free: 11.52 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/5.379, allocations: 51.41 kB / 0.7038 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/5.379, allocations: 101 kB / 0.7039 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/5.379, allocations: 25.7 kB / 0.7039 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/5.38, allocations: 88.03 kB / 0.704 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.61e-05/5.38, allocations: 23.69 kB / 0.704 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-06/5.38, allocations: 0 / 0.704 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001747/5.38, allocations: 318.8 kB / 0.7043 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.268e-05/5.38, allocations: 12 kB / 0.7043 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.407e-05/5.38, allocations: 44.3 kB / 0.7044 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.282e-05/5.38, allocations: 16 kB / 0.7044 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/5.38, allocations: 3.984 kB / 0.7044 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003064/5.38, allocations: 81.47 kB / 0.7045 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/5.38, allocations: 4 kB / 0.7045 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/5.381, allocations: 8.125 kB / 0.7045 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/5.381, allocations: 0 / 0.7045 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/5.381, allocations: 19.98 kB / 0.7045 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/5.381, allocations: 0 / 0.7045 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/5.381, allocations: 19.83 kB / 0.7045 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/5.381, allocations: 8 kB / 0.7045 GB, free: 10.65 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001091/5.381, allocations: 116.5 kB / 0.7046 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.264e-05/5.381, allocations: 7.891 kB / 0.7046 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/5.381, allocations: 70.05 kB / 0.7047 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/5.381, allocations: 0 / 0.7047 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/5.381, allocations: 3.938 kB / 0.7047 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/5.381, allocations: 0 / 0.7047 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004241/5.382, allocations: 303 kB / 0.705 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/5.382, allocations: 4 kB / 0.705 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/5.382, allocations: 15.98 kB / 0.705 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/5.382, allocations: 0 / 0.705 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/5.382, allocations: 0 / 0.705 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/5.382, allocations: 3.984 kB / 0.705 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/5.382, allocations: 0 / 0.705 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002195/5.382, allocations: 163.7 kB / 0.7052 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003516/5.383, allocations: 0.5389 MB / 0.7057 GB, free: 9.352 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.612e-05/5.383, allocations: 85 kB / 0.7058 GB, free: 9.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/5.383, allocations: 0 / 0.7058 GB, free: 9.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/5.383, allocations: 20.23 kB / 0.7058 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/5.383, allocations: 0 / 0.7058 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/5.383, allocations: 8 kB / 0.7058 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.149e-05/5.383, allocations: 87.27 kB / 0.7059 GB, free: 9.137 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001289/5.384, allocations: 11.91 kB / 0.7059 GB, free: 9.125 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002009/5.385, allocations: 103.2 kB / 0.706 GB, free: 9.016 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001995/5.385, allocations: 47.94 kB / 0.7061 GB, free: 8.969 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/5.385, allocations: 3.938 kB / 0.7061 GB, free: 8.965 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.87e-05/5.385, allocations: 16 kB / 0.7061 GB, free: 8.949 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/5.385, allocations: 11.67 kB / 0.7061 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/5.386, allocations: 79.72 kB / 0.7062 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003667/5.386, allocations: 0.6997 MB / 0.7068 GB, free: 8.113 MB / 0.5886 GB Notification: Performance of SimCode: time 8.62e-07/5.386, allocations: 256 / 0.7068 GB, free: 8.113 MB / 0.5886 GB