Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.177/4.177, allocations: 464.6 MB / 476.8 MB, free: 2.141 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.399e-05/4.405e-05, allocations: 11.94 kB / 0.5732 GB, free: 5.629 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2287, allocations: 107.2 MB / 0.6779 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8335/1.062, allocations: 132.4 MB / 0.8072 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/1.063, allocations: 69.84 kB / 0.8072 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01707/1.08, allocations: 3.781 MB / 0.8109 GB, free: 11.65 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.873e-06/1.08, allocations: 0 / 0.8109 GB, free: 11.65 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.394e-05/1.08, allocations: 0 / 0.8109 GB, free: 11.65 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001064/1.081, allocations: 480.1 kB / 0.8114 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/1.081, allocations: 7.75 kB / 0.8114 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.2e-05/1.081, allocations: 55.2 kB / 0.8114 GB, free: 11.22 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.577e-05/1.081, allocations: 15.47 kB / 0.8114 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/1.081, allocations: 229.3 kB / 0.8117 GB, free: 11 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/1.082, allocations: 74.23 kB / 0.8117 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.597e-05/1.082, allocations: 17.59 kB / 0.8118 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004635/1.082, allocations: 193.3 kB / 0.8119 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.082, allocations: 0 / 0.8119 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/1.082, allocations: 6.312 kB / 0.8119 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/1.082, allocations: 3.812 kB / 0.8119 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/1.083, allocations: 89.11 kB / 0.812 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008266/1.083, allocations: 432.7 kB / 0.8124 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/1.084, allocations: 140.2 kB / 0.8126 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/1.084, allocations: 94.66 kB / 0.8127 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/1.084, allocations: 3.812 kB / 0.8127 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004267/1.084, allocations: 194 kB / 0.8129 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 4.128e-06/1.084, allocations: 0 / 0.8129 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0008736/1.085, allocations: 348.8 kB / 0.8132 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/1.085, allocations: 59 kB / 0.8132 GB, free: 10.41 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/1.086, allocations: 127.7 kB / 0.8134 GB, free: 10.31 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/1.086, allocations: 40.7 kB / 0.8134 GB, free: 10.28 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.859e-05/1.086, allocations: 107.3 kB / 0.8135 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.755e-05/1.086, allocations: 73.53 kB / 0.8136 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/1.086, allocations: 7.375 kB / 0.8136 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 6.998e-05/1.086, allocations: 331.7 kB / 0.8139 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/1.086, allocations: 89.02 kB / 0.814 GB, free: 9.836 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003305/1.087, allocations: 166 kB / 0.8141 GB, free: 9.762 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/1.087, allocations: 114 kB / 0.8143 GB, free: 9.758 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/1.087, allocations: 3.953 kB / 0.8143 GB, free: 9.754 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007239/1.088, allocations: 323.7 kB / 0.8146 GB, free: 9.695 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/1.088, allocations: 7.688 kB / 0.8146 GB, free: 9.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-06/1.088, allocations: 0 / 0.8146 GB, free: 9.695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/1.088, allocations: 3.812 kB / 0.8146 GB, free: 9.695 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005967/1.088, allocations: 80.98 kB / 0.8147 GB, free: 9.688 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/1.088, allocations: 3.875 kB / 0.8147 GB, free: 9.688 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/1.089, allocations: 47.3 kB / 0.8147 GB, free: 9.676 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/1.089, allocations: 11.25 kB / 0.8147 GB, free: 9.676 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001727/1.089, allocations: 153.6 kB / 0.8149 GB, free: 9.559 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/1.089, allocations: 22.55 kB / 0.8149 GB, free: 9.547 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/1.089, allocations: 20.94 kB / 0.8149 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.089, allocations: 3.875 kB / 0.8149 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/1.089, allocations: 0 / 0.8149 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/1.089, allocations: 6.719 kB / 0.8149 GB, free: 9.531 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/1.091, allocations: 0.715 MB / 0.8156 GB, free: 9.215 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/1.091, allocations: 0 / 0.8156 GB, free: 9.215 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.256e-05/1.091, allocations: 10.22 kB / 0.8156 GB, free: 9.215 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/1.091, allocations: 4 kB / 0.8156 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/1.091, allocations: 11.06 kB / 0.8156 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/1.091, allocations: 7.781 kB / 0.8156 GB, free: 9.207 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.091, allocations: 0 / 0.8156 GB, free: 9.207 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000778/1.092, allocations: 447.8 kB / 0.8161 GB, free: 9.062 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/1.092, allocations: 92.67 kB / 0.8162 GB, free: 8.957 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.225e-05/1.092, allocations: 16.27 kB / 0.8162 GB, free: 8.957 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/1.092, allocations: 30.36 kB / 0.8162 GB, free: 8.953 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.554e-05/1.092, allocations: 26.19 kB / 0.8162 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.472e-05/1.092, allocations: 17.12 kB / 0.8162 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.278e-05/1.092, allocations: 103 kB / 0.8163 GB, free: 8.875 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.4e-07/1.092, allocations: 3.938 kB / 0.8163 GB, free: 8.871 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000466/1.093, allocations: 58.25 kB / 0.8164 GB, free: 8.871 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.pulseStart) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.001453/1.094, allocations: 1.006 MB / 0.8174 GB, free: 24.19 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000671/1.095, allocations: 246.1 kB / 0.8176 GB, free: 24.18 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.095, allocations: 0 / 0.8176 GB, free: 24.18 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002675/1.095, allocations: 119.2 kB / 0.8177 GB, free: 24.18 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/1.096, allocations: 25.52 kB / 0.8178 GB, free: 24.17 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009468/1.097, allocations: 274.4 kB / 0.818 GB, free: 24.03 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/1.097, allocations: 0.7242 MB / 0.8187 GB, free: 23.33 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001225/1.097, allocations: 27.27 kB / 0.8188 GB, free: 23.32 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/1.097, allocations: 52.06 kB / 0.8188 GB, free: 23.32 MB / 0.6511 GB Notification: Performance of SimCode: time 1.102e-06/1.097, allocations: 0 / 0.8188 GB, free: 23.32 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/1.122, allocations: 4.119 MB / 0.8228 GB, free: 22.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/1.123, allocations: 165 kB / 0.823 GB, free: 22.68 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/3.447, allocations: 6.312 kB / 0.823 GB, free: 22.68 MB / 0.6511 GB