Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.TrimAndRespond,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_TrimAndRespond",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.451/4.451, allocations: 404 MB / 410.9 MB, free: 4.898 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2611/4.712, allocations: 95.01 MB / 0.4941 GB, free: 7.324 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5482/5.26, allocations: 92.69 MB / 0.5846 GB, free: 3.398 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2943/5.555, allocations: 122.6 MB / 0.7043 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004037/5.555, allocations: 95.88 kB / 0.7044 GB, free: 11 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.04525/5.6, allocations: 7.769 MB / 0.712 GB, free: 3.121 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/5.601, allocations: 12 kB / 0.712 GB, free: 3.109 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/5.601, allocations: 51.34 kB / 0.7121 GB, free: 3.059 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/5.602, allocations: 378.9 kB / 0.7124 GB, free: 2.648 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.972e-05/5.602, allocations: 16 kB / 0.7124 GB, free: 2.633 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/5.602, allocations: 31.98 kB / 0.7125 GB, free: 2.602 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001482/5.604, allocations: 417.1 kB / 0.7129 GB, free: 2.191 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/5.605, allocations: 0.524 MB / 0.7134 GB, free: 1.629 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/5.605, allocations: 8 kB / 0.7134 GB, free: 1.621 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.944e-05/5.605, allocations: 4 kB / 0.7134 GB, free: 1.617 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/5.605, allocations: 11.94 kB / 0.7134 GB, free: 1.605 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004856/5.61, allocations: 1.548 MB / 0.7149 GB, free: 0 / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/5.612, allocations: 0.6483 MB / 0.7155 GB, free: 15.3 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008238/5.613, allocations: 284.9 kB / 0.7158 GB, free: 15 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.286e-05/5.613, allocations: 4 kB / 0.7158 GB, free: 15 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001197/5.615, allocations: 429.3 kB / 0.7162 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=51): time 3.577e-06/5.615, allocations: 0 / 0.7162 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of matching and sorting (n=51): time 0.001931/5.617, allocations: 0.5516 MB / 0.7168 GB, free: 13.99 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002164/5.617, allocations: 285 kB / 0.717 GB, free: 13.65 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006885/5.618, allocations: 311.4 kB / 0.7173 GB, free: 13.35 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000126/5.618, allocations: 41.69 kB / 0.7174 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/5.618, allocations: 160.7 kB / 0.7175 GB, free: 13.14 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/5.618, allocations: 110.6 kB / 0.7176 GB, free: 13.03 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.389e-05/5.618, allocations: 4 kB / 0.7176 GB, free: 13.03 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002357/5.618, allocations: 362.7 kB / 0.718 GB, free: 12.66 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000674/5.619, allocations: 205.2 kB / 0.7182 GB, free: 12.46 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009275/5.62, allocations: 394.8 kB / 0.7186 GB, free: 12.01 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007583/5.621, allocations: 247.7 kB / 0.7188 GB, free: 11.77 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/5.621, allocations: 4 kB / 0.7188 GB, free: 11.76 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001876/5.623, allocations: 0.5707 MB / 0.7194 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001007/5.624, allocations: 1.832 MB / 0.7211 GB, free: 9.211 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.787e-05/5.624, allocations: 4 kB / 0.7211 GB, free: 9.207 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.539e-05/5.624, allocations: 8.188 kB / 0.7212 GB, free: 9.199 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/5.625, allocations: 107.8 kB / 0.7213 GB, free: 9.094 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.868e-05/5.625, allocations: 11.94 kB / 0.7213 GB, free: 9.082 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/5.626, allocations: 88.2 kB / 0.7213 GB, free: 8.996 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.689e-05/5.626, allocations: 27.89 kB / 0.7214 GB, free: 8.969 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/5.626, allocations: 4.938 kB / 0.7214 GB, free: 8.965 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001571/5.628, allocations: 475.8 kB / 0.7218 GB, free: 8.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/5.628, allocations: 4 kB / 0.7218 GB, free: 8.496 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/5.628, allocations: 8 kB / 0.7218 GB, free: 8.488 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006603/5.629, allocations: 71.83 kB / 0.7219 GB, free: 8.418 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/5.629, allocations: 8 kB / 0.7219 GB, free: 8.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008263/5.629, allocations: 55.83 kB / 0.722 GB, free: 8.355 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.469e-05/5.63, allocations: 20 kB / 0.722 GB, free: 8.336 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.firstTrigger,$PRE.triAndRes[1].sam.firstTrigger,triAndRes[1].sam.firstTrigger,$whenCondition9,triAndRes[1].sam.sampleTrigger,$whenCondition10,triAndRes[1].uniDel1.sampleTrigger,$PRE.triAndRes[1].firstTrigger,triAndRes[1].firstTrigger,$whenCondition7,triAndRes[1].sampleTrigger,$PRE.triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.firstTrigger,$PRE.triAndRes[2].sam.firstTrigger,triAndRes[2].sam.firstTrigger,$whenCondition5,triAndRes[2].sam.sampleTrigger,$whenCondition6,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].incY.y,triAndRes[2].sam.y,$PRE.triAndRes[2].uniDel1.y,triAndRes[2].uniDel1.y,$PRE.triAndRes[2].firstTrigger,triAndRes[2].firstTrigger,$whenCondition4,triAndRes[2].sampleTrigger,$PRE.triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.firstTrigger,$PRE.triAndRes[3].sam.firstTrigger,triAndRes[3].sam.firstTrigger,$whenCondition2,triAndRes[3].sam.sampleTrigger,$whenCondition3,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].incY.y,triAndRes[3].sam.y,$PRE.triAndRes[3].uniDel1.y,triAndRes[3].uniDel1.y,$PRE.triAndRes[3].firstTrigger,triAndRes[3].firstTrigger,$whenCondition1,triAndRes[3].sampleTrigger,$whenCondition8,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.y,$PRE.triAndRes[1].uniDel1.y,triAndRes[1].uniDel1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0003721/5.63, allocations: 164.7 kB / 0.7222 GB, free: 8.168 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/5.63, allocations: 47.42 kB / 0.7222 GB, free: 8.121 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/5.63, allocations: 50.89 kB / 0.7222 GB, free: 8.062 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/5.63, allocations: 4 kB / 0.7222 GB, free: 8.059 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/5.63, allocations: 8 kB / 0.7223 GB, free: 8.051 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/5.63, allocations: 7.984 kB / 0.7223 GB, free: 8.043 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003992/5.634, allocations: 1.581 MB / 0.7238 GB, free: 6.414 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/5.635, allocations: 4 kB / 0.7238 GB, free: 6.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007886/5.635, allocations: 83.86 kB / 0.7239 GB, free: 6.328 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.6e-05/5.635, allocations: 4 kB / 0.7239 GB, free: 6.324 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.255e-05/5.635, allocations: 19.92 kB / 0.7239 GB, free: 6.305 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/5.635, allocations: 3.938 kB / 0.7239 GB, free: 6.301 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/5.635, allocations: 4 kB / 0.7239 GB, free: 6.297 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002019/5.638, allocations: 1.052 MB / 0.725 GB, free: 5.191 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002121/5.64, allocations: 1.432 MB / 0.7263 GB, free: 3.707 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/5.64, allocations: 116.6 kB / 0.7265 GB, free: 3.574 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/5.64, allocations: 15.89 kB / 0.7265 GB, free: 3.559 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/5.642, allocations: 103.9 kB / 0.7266 GB, free: 3.457 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/5.642, allocations: 55.92 kB / 0.7266 GB, free: 3.402 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.778e-05/5.642, allocations: 19.94 kB / 0.7266 GB, free: 3.383 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0005047/5.643, allocations: 251 kB / 0.7269 GB, free: 3.133 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.004229/5.647, allocations: 163.5 kB / 0.727 GB, free: 2.973 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 39 (triAndRes[3].sampleTrigger,$whenCondition1,triAndRes[3].firstTrigger,triAndRes[3].uniDel1.sampleTrigger,triAndRes[3].sam.sampleTrigger,$whenCondition3,$whenCondition2,triAndRes[3].incY.y,triAndRes[3].sam.firstTrigger,triAndRes[3].sam.y,triAndRes[3].uniDel1.firstTrigger,triAndRes[3].uniDel1.y,triAndRes[2].sampleTrigger,$whenCondition4,triAndRes[2].firstTrigger,triAndRes[2].uniDel1.sampleTrigger,triAndRes[2].sam.sampleTrigger,$whenCondition6,$whenCondition5,triAndRes[2].incY.y,triAndRes[2].sam.firstTrigger,triAndRes[2].sam.y,triAndRes[2].uniDel1.firstTrigger,triAndRes[2].uniDel1.y,triAndRes[1].sampleTrigger,$whenCondition7,triAndRes[1].firstTrigger,triAndRes[1].uniDel1.sampleTrigger,triAndRes[1].sam.sampleTrigger,$whenCondition10,$whenCondition9,$whenCondition8,act1.T_start,act1.count,triAndRes[1].incY.y,triAndRes[1].sam.firstTrigger,triAndRes[1].sam.y,triAndRes[1].uniDel1.firstTrigger,triAndRes[1].uniDel1.y) * Number of discrete states: 4 (act1.count,triAndRes[1].uniDel1.u,triAndRes[2].uniDel1.u,triAndRes[3].uniDel1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0004436/5.647, allocations: 154.5 kB / 0.7272 GB, free: 2.816 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002823/5.65, allocations: 0.8556 MB / 0.728 GB, free: 1.945 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/5.65, allocations: 4 kB / 0.728 GB, free: 1.941 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001036/5.651, allocations: 295.6 kB / 0.7283 GB, free: 1.652 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/5.653, allocations: 62.64 kB / 0.7284 GB, free: 1.594 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/5.656, allocations: 0.7606 MB / 0.7291 GB, free: 0.793 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/5.657, allocations: 0.9641 MB / 0.7301 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of SimCode: time 1.633e-06/5.657, allocations: 0 / 0.7301 GB, free: 15.8 MB / 0.6198 GB