Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.423/4.423, allocations: 403.9 MB / 410.9 MB, free: 4.926 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2788/4.701, allocations: 95.02 MB / 0.4941 GB, free: 7.32 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.55/5.251, allocations: 92.68 MB / 0.5846 GB, free: 3.418 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2548/5.506, allocations: 120.2 MB / 0.702 GB, free: 13.5 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003925/5.507, allocations: 83.94 kB / 0.7021 GB, free: 13.42 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.005179/5.512, allocations: 0.9386 MB / 0.703 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/5.512, allocations: 19.94 kB / 0.703 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/5.512, allocations: 11.91 kB / 0.703 GB, free: 12.4 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/5.512, allocations: 159.1 kB / 0.7032 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/5.512, allocations: 7.906 kB / 0.7032 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/5.512, allocations: 0 / 0.7032 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001353/5.513, allocations: 19.98 kB / 0.7032 GB, free: 12.18 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/5.513, allocations: 41.69 kB / 0.7032 GB, free: 12.13 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/5.513, allocations: 7.938 kB / 0.7032 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/5.513, allocations: 4 kB / 0.7032 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/5.513, allocations: 0 / 0.7032 GB, free: 12.12 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005041/5.513, allocations: 257.2 kB / 0.7035 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/5.513, allocations: 38.58 kB / 0.7035 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.789e-05/5.513, allocations: 16.98 kB / 0.7035 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/5.514, allocations: 3.938 kB / 0.7036 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/5.514, allocations: 67.39 kB / 0.7036 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.935e-06/5.514, allocations: 0 / 0.7036 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002752/5.514, allocations: 65.53 kB / 0.7037 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/5.514, allocations: 51.41 kB / 0.7037 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/5.514, allocations: 97.25 kB / 0.7038 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/5.514, allocations: 25.7 kB / 0.7038 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.259e-05/5.514, allocations: 80.14 kB / 0.7039 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/5.514, allocations: 19.8 kB / 0.7039 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-06/5.514, allocations: 0 / 0.7039 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001347/5.515, allocations: 318.8 kB / 0.7042 GB, free: 11 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.933e-05/5.515, allocations: 12 kB / 0.7043 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.585e-05/5.515, allocations: 35.44 kB / 0.7043 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.799e-05/5.515, allocations: 15.98 kB / 0.7043 GB, free: 10.92 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/5.515, allocations: 0 / 0.7043 GB, free: 10.92 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002142/5.515, allocations: 65.62 kB / 0.7044 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/5.515, allocations: 4 kB / 0.7044 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/5.515, allocations: 4.062 kB / 0.7044 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/5.515, allocations: 4 kB / 0.7044 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/5.515, allocations: 23.92 kB / 0.7044 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/5.515, allocations: 3.906 kB / 0.7044 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/5.516, allocations: 16.08 kB / 0.7044 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/5.516, allocations: 4 kB / 0.7044 GB, free: 10.79 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: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001077/5.516, allocations: 108.5 kB / 0.7045 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/5.516, allocations: 3.906 kB / 0.7045 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/5.516, allocations: 73.98 kB / 0.7046 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/5.516, allocations: 0 / 0.7046 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/5.516, allocations: 0 / 0.7046 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/5.516, allocations: 12.03 kB / 0.7046 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004613/5.517, allocations: 295.1 kB / 0.7049 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/5.517, allocations: 0 / 0.7049 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/5.517, allocations: 19.92 kB / 0.7049 GB, free: 10.24 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-06/5.517, allocations: 0 / 0.7049 GB, free: 10.24 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/5.517, allocations: 4 kB / 0.7049 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/5.517, allocations: 0 / 0.7049 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/5.517, allocations: 4 kB / 0.7049 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002306/5.517, allocations: 159.3 kB / 0.7051 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003522/5.517, allocations: 0.5313 MB / 0.7056 GB, free: 9.508 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.616e-05/5.518, allocations: 85.08 kB / 0.7057 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.445e-05/5.518, allocations: 4 kB / 0.7057 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/5.518, allocations: 15.98 kB / 0.7057 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/5.518, allocations: 7.922 kB / 0.7057 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/5.518, allocations: 4 kB / 0.7057 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.378e-05/5.518, allocations: 83.28 kB / 0.7058 GB, free: 9.293 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001377/5.519, allocations: 11.91 kB / 0.7058 GB, free: 9.281 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001797/5.52, allocations: 107 kB / 0.7059 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002195/5.52, allocations: 31.98 kB / 0.7059 GB, free: 9.137 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/5.52, allocations: 7.938 kB / 0.7059 GB, free: 9.129 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.142e-05/5.52, allocations: 20 kB / 0.706 GB, free: 9.109 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/5.52, allocations: 4 kB / 0.706 GB, free: 9.105 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004263/5.521, allocations: 75.77 kB / 0.706 GB, free: 9.008 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003483/5.521, allocations: 0.7026 MB / 0.7067 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of SimCode: time 1.333e-06/5.521, allocations: 0 / 0.7067 GB, free: 8.281 MB / 0.5886 GB