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={"static"}) Notification: Performance of loadModel(Buildings): time 3.982/3.982, allocations: 403.3 MB / 415.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.912e-05, allocations: 8 kB / 0.4991 GB, free: 13.26 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6187/0.6188, allocations: 92.69 MB / 0.5896 GB, free: 14.45 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2318/0.8507, allocations: 123.3 MB / 0.7101 GB, free: 2.977 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003622/0.8511, allocations: 99.92 kB / 0.7102 GB, free: 2.879 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.03366/0.8848, allocations: 7.204 MB / 0.7172 GB, free: 11.61 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.084e-06/0.8849, allocations: 0 / 0.7172 GB, free: 11.61 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.382e-05/0.8849, allocations: 8 kB / 0.7172 GB, free: 11.6 MB / 0.6042 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.002879/0.8878, allocations: 0.8715 MB / 0.718 GB, free: 10.68 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/0.8879, allocations: 12.03 kB / 0.7181 GB, free: 10.67 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/0.8881, allocations: 78.47 kB / 0.7181 GB, free: 10.58 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.8882, allocations: 47.44 kB / 0.7182 GB, free: 10.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008365/0.8891, allocations: 383.7 kB / 0.7185 GB, free: 10.12 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.062e-05/0.8892, allocations: 21.47 kB / 0.7186 GB, free: 10.1 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.8893, allocations: 39.98 kB / 0.7186 GB, free: 10.06 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.8907, allocations: 0.5542 MB / 0.7191 GB, free: 9.469 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.8907, allocations: 0 / 0.7191 GB, free: 9.469 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.929e-05/0.8908, allocations: 16 kB / 0.7192 GB, free: 9.453 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.8908, allocations: 8 kB / 0.7192 GB, free: 9.445 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.892, allocations: 408.4 kB / 0.7196 GB, free: 9.047 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004198/0.8962, allocations: 1.664 MB / 0.7212 GB, free: 7.312 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002023/0.8983, allocations: 0.7067 MB / 0.7219 GB, free: 6.551 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006362/0.8989, allocations: 269 kB / 0.7221 GB, free: 6.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-05/0.899, allocations: 8.25 kB / 0.7221 GB, free: 6.262 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.9001, allocations: 474 kB / 0.7226 GB, free: 5.77 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=51): time 3.687e-06/0.9001, allocations: 4 kB / 0.7226 GB, free: 5.766 MB / 0.6042 GB Notification: Performance of matching and sorting (n=51): time 0.001799/0.9019, allocations: 0.6101 MB / 0.7232 GB, free: 5.148 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001805/0.9021, allocations: 277 kB / 0.7235 GB, free: 4.816 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007062/0.9028, allocations: 387.4 kB / 0.7238 GB, free: 4.434 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.769e-05/0.9029, allocations: 45.69 kB / 0.7239 GB, free: 4.383 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.9032, allocations: 193 kB / 0.7241 GB, free: 4.188 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.9034, allocations: 126.5 kB / 0.7242 GB, free: 4.062 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.963e-05/0.9034, allocations: 12 kB / 0.7242 GB, free: 4.051 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001839/0.9036, allocations: 362.8 kB / 0.7245 GB, free: 3.688 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005494/0.9042, allocations: 201 kB / 0.7247 GB, free: 3.492 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007441/0.9049, allocations: 394 kB / 0.7251 GB, free: 3.035 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006527/0.9056, allocations: 261.5 kB / 0.7253 GB, free: 2.773 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.9056, allocations: 4 kB / 0.7253 GB, free: 2.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00169/0.9073, allocations: 0.6351 MB / 0.726 GB, free: 2.121 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008516/0.9082, allocations: 1.868 MB / 0.7278 GB, free: 108 kB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.9082, allocations: 4.188 kB / 0.7278 GB, free: 104 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.685e-05/0.9083, allocations: 8 kB / 0.7278 GB, free: 96 kB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008224/0.9091, allocations: 116.2 kB / 0.7279 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-05/0.9092, allocations: 8 kB / 0.7279 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008618/0.91, allocations: 119.6 kB / 0.728 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.37e-05/0.9101, allocations: 20 kB / 0.7281 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.948e-06/0.9101, allocations: 4 kB / 0.7281 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001432/0.9116, allocations: 0.5566 MB / 0.7286 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.9116, allocations: 4 kB / 0.7286 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.9116, allocations: 8 kB / 0.7286 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005046/0.9121, allocations: 71.83 kB / 0.7287 GB, free: 15.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.271e-05/0.9122, allocations: 19.98 kB / 0.7287 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006647/0.9129, allocations: 79.75 kB / 0.7288 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.504e-05/0.9129, allocations: 24 kB / 0.7288 GB, free: 15.07 MB / 0.6198 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.0003344/0.9133, allocations: 171.1 kB / 0.729 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.9134, allocations: 55.47 kB / 0.729 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.9136, allocations: 55.14 kB / 0.7291 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.9136, allocations: 4 kB / 0.7291 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.9137, allocations: 4 kB / 0.7291 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.9137, allocations: 3.984 kB / 0.7291 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003544/0.9172, allocations: 1.728 MB / 0.7308 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.9173, allocations: 3.984 kB / 0.7308 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006218/0.9179, allocations: 83.84 kB / 0.7309 GB, free: 12.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.449e-05/0.918, allocations: 4 kB / 0.7309 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.984e-05/0.918, allocations: 19.98 kB / 0.7309 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.918, allocations: 4 kB / 0.7309 GB, free: 12.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.9181, allocations: 7.938 kB / 0.7309 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.92, allocations: 1.139 MB / 0.732 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.9202, allocations: 128.5 kB / 0.7321 GB, free: 11.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.9204, allocations: 19.98 kB / 0.7321 GB, free: 11.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.9216, allocations: 127.8 kB / 0.7323 GB, free: 11.38 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.9218, allocations: 51.94 kB / 0.7323 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.944e-05/0.9219, allocations: 27.94 kB / 0.7323 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005344/0.9224, allocations: 294.1 kB / 0.7326 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.61e-07/0.9225, allocations: 0 / 0.7326 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001257/0.9237, allocations: 179.7 kB / 0.7328 GB, free: 10.84 MB / 0.6198 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.002559/0.9263, allocations: 2.079 MB / 0.7348 GB, free: 8.715 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002411/0.9288, allocations: 0.9224 MB / 0.7357 GB, free: 7.77 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.9288, allocations: 0 / 0.7357 GB, free: 7.77 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0008389/0.9297, allocations: 296.7 kB / 0.736 GB, free: 7.48 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000954/0.9307, allocations: 69.86 kB / 0.7361 GB, free: 7.414 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.9336, allocations: 0.9156 MB / 0.737 GB, free: 6.445 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006735/0.9343, allocations: 0.9221 MB / 0.7379 GB, free: 5.496 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.00119/0.9355, allocations: 285.2 kB / 0.7381 GB, free: 5.215 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000369/0.9359, allocations: 143.4 kB / 0.7383 GB, free: 5.074 MB / 0.6198 GB Notification: Performance of SimCode: time 1.302e-06/0.9359, allocations: 0 / 0.7383 GB, free: 5.074 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04579/0.9817, allocations: 10.72 MB / 0.7487 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004354/0.9823, allocations: 189.3 kB / 0.7489 GB, free: 10.27 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.967/3.949, allocations: 0 / 0.7489 GB, free: 10.27 MB / 0.6355 GB