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"}) Notification: Performance of loadModel(Buildings): time 4.721/4.721, allocations: 404.1 MB / 411.3 MB, free: 376 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.495e-05/2.497e-05, allocations: 4 kB / 0.4946 GB, free: 1.309 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7418/0.7419, allocations: 92.68 MB / 0.5851 GB, free: 2.312 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2563/0.9982, allocations: 122.7 MB / 0.7048 GB, free: 7.496 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003696/0.9986, allocations: 95.88 kB / 0.7049 GB, free: 7.402 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.03968/1.038, allocations: 7.148 MB / 0.7119 GB, free: 196 kB / 0.5886 GB Notification: Performance of FrontEnd: time 1.914e-06/1.038, allocations: 0 / 0.7119 GB, free: 196 kB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.093e-05/1.038, allocations: 8 kB / 0.7119 GB, free: 188 kB / 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.003617/1.042, allocations: 0.8801 MB / 0.7128 GB, free: 15.25 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.257e-05/1.042, allocations: 16.02 kB / 0.7128 GB, free: 15.23 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/1.042, allocations: 47.44 kB / 0.7128 GB, free: 15.19 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/1.043, allocations: 380.8 kB / 0.7132 GB, free: 14.78 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.332e-05/1.044, allocations: 12 kB / 0.7132 GB, free: 14.77 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/1.044, allocations: 23.98 kB / 0.7132 GB, free: 14.74 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001873/1.046, allocations: 405.3 kB / 0.7136 GB, free: 14.34 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/1.048, allocations: 0.5098 MB / 0.7141 GB, free: 13.8 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/1.048, allocations: 0 / 0.7141 GB, free: 13.8 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/1.048, allocations: 4 kB / 0.7141 GB, free: 13.79 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/1.048, allocations: 11.94 kB / 0.7141 GB, free: 13.78 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006365/1.054, allocations: 1.571 MB / 0.7157 GB, free: 12.15 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/1.057, allocations: 0.6834 MB / 0.7163 GB, free: 11.41 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/1.059, allocations: 264.9 kB / 0.7166 GB, free: 11.14 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.314e-05/1.059, allocations: 15.98 kB / 0.7166 GB, free: 11.12 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001618/1.06, allocations: 441.5 kB / 0.717 GB, free: 10.66 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=51): time 5.52e-06/1.06, allocations: 4 kB / 0.717 GB, free: 10.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=51): time 0.00276/1.063, allocations: 0.5921 MB / 0.7176 GB, free: 10.06 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002755/1.063, allocations: 284.9 kB / 0.7179 GB, free: 9.723 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009168/1.064, allocations: 313 kB / 0.7182 GB, free: 9.406 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001713/1.065, allocations: 37.7 kB / 0.7182 GB, free: 9.363 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003386/1.065, allocations: 200.7 kB / 0.7184 GB, free: 9.164 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/1.065, allocations: 118.5 kB / 0.7185 GB, free: 9.047 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.727e-05/1.065, allocations: 4.438 kB / 0.7185 GB, free: 9.043 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002951/1.066, allocations: 358.8 kB / 0.7189 GB, free: 8.684 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008643/1.067, allocations: 197 kB / 0.7191 GB, free: 8.492 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/1.068, allocations: 385.8 kB / 0.7194 GB, free: 8.047 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000985/1.069, allocations: 228.4 kB / 0.7196 GB, free: 7.824 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/1.069, allocations: 4 kB / 0.7196 GB, free: 7.82 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002574/1.071, allocations: 0.5556 MB / 0.7202 GB, free: 7.258 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001286/1.073, allocations: 1.874 MB / 0.722 GB, free: 5.234 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/1.073, allocations: 7.984 kB / 0.722 GB, free: 5.227 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.187e-05/1.073, allocations: 8.188 kB / 0.722 GB, free: 5.219 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/1.074, allocations: 115.8 kB / 0.7221 GB, free: 5.105 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.077e-05/1.074, allocations: 16.08 kB / 0.7222 GB, free: 5.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/1.076, allocations: 83.8 kB / 0.7222 GB, free: 5.008 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/1.076, allocations: 24 kB / 0.7223 GB, free: 4.984 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/1.076, allocations: 8 kB / 0.7223 GB, free: 4.977 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002146/1.078, allocations: 459.8 kB / 0.7227 GB, free: 4.527 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/1.078, allocations: 7.984 kB / 0.7227 GB, free: 4.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/1.078, allocations: 12.03 kB / 0.7227 GB, free: 4.508 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008721/1.079, allocations: 75.83 kB / 0.7228 GB, free: 4.434 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-05/1.079, allocations: 11.98 kB / 0.7228 GB, free: 4.422 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/1.08, allocations: 59.78 kB / 0.7229 GB, free: 4.363 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.553e-05/1.08, allocations: 24 kB / 0.7229 GB, free: 4.34 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.000515/1.081, allocations: 160.8 kB / 0.723 GB, free: 4.176 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002688/1.083, allocations: 0.5872 MB / 0.7236 GB, free: 3.582 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/1.084, allocations: 47.47 kB / 0.7237 GB, free: 3.535 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002578/1.084, allocations: 47.09 kB / 0.7237 GB, free: 3.484 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-05/1.084, allocations: 15.98 kB / 0.7237 GB, free: 3.469 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/1.084, allocations: 0 / 0.7237 GB, free: 3.469 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-05/1.084, allocations: 11.92 kB / 0.7237 GB, free: 3.457 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005638/1.09, allocations: 1.636 MB / 0.7253 GB, free: 1.773 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/1.09, allocations: 0 / 0.7253 GB, free: 1.773 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/1.091, allocations: 87.84 kB / 0.7254 GB, free: 1.688 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.32e-05/1.091, allocations: 7.984 kB / 0.7254 GB, free: 1.68 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.647e-05/1.091, allocations: 8 kB / 0.7254 GB, free: 1.672 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.295e-05/1.091, allocations: 8 kB / 0.7254 GB, free: 1.664 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/1.091, allocations: 7.938 kB / 0.7254 GB, free: 1.656 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002865/1.094, allocations: 1.1 MB / 0.7265 GB, free: 0.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000217/1.094, allocations: 120.6 kB / 0.7266 GB, free: 372 kB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/1.094, allocations: 11.98 kB / 0.7266 GB, free: 360 kB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/1.097, allocations: 115.8 kB / 0.7268 GB, free: 244 kB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/1.097, allocations: 55.88 kB / 0.7268 GB, free: 188 kB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/1.097, allocations: 23.94 kB / 0.7268 GB, free: 164 kB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0006953/1.098, allocations: 244.6 kB / 0.7271 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.31e-07/1.098, allocations: 0 / 0.7271 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002601/1.101, allocations: 163.5 kB / 0.7272 GB, free: 15.76 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.003831/1.104, allocations: 2.041 MB / 0.7292 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.003522/1.108, allocations: 0.8754 MB / 0.7301 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.108, allocations: 0.875 kB / 0.7301 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001333/1.109, allocations: 289.3 kB / 0.7303 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001773/1.111, allocations: 57.11 kB / 0.7304 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005334/1.117, allocations: 0.86 MB / 0.7312 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00119/1.118, allocations: 0.9333 MB / 0.7322 GB, free: 10.56 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002072/1.12, allocations: 265.2 kB / 0.7324 GB, free: 10.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00071/1.121, allocations: 135.4 kB / 0.7325 GB, free: 10.17 MB / 0.6198 GB Notification: Performance of SimCode: time 1.543e-06/1.121, allocations: 0 / 0.7325 GB, free: 10.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07289/1.194, allocations: 9.407 MB / 0.7417 GB, free: 0.8398 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003595/1.194, allocations: 176.3 kB / 0.7419 GB, free: 0.6445 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.202/4.396, allocations: 2.812 kB / 0.7419 GB, free: 0.6445 MB / 0.6198 GB