Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.413/4.413, allocations: 460.4 MB / 472.6 MB, free: 5.379 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.631e-05/3.658e-05, allocations: 8 kB / 0.5682 GB, free: 10.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.221, allocations: 106.2 MB / 0.6719 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8717/1.093, allocations: 132 MB / 0.8008 GB, free: 12.93 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/1.093, allocations: 70.7 kB / 0.8009 GB, free: 12.93 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01564/1.109, allocations: 3.659 MB / 0.8044 GB, free: 12.4 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.573e-06/1.109, allocations: 0 / 0.8044 GB, free: 12.4 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.476e-05/1.109, allocations: 7.781 kB / 0.8044 GB, free: 12.4 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.0008659/1.11, allocations: 463.2 kB / 0.8049 GB, free: 12 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/1.11, allocations: 7.812 kB / 0.8049 GB, free: 12 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.291e-05/1.11, allocations: 54 kB / 0.8049 GB, free: 11.96 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/1.11, allocations: 15.62 kB / 0.8049 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/1.11, allocations: 222.1 kB / 0.8052 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/1.11, allocations: 14.66 kB / 0.8052 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/1.11, allocations: 17.83 kB / 0.8052 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/1.111, allocations: 188.9 kB / 0.8054 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/1.111, allocations: 11.88 kB / 0.8054 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/1.111, allocations: 6.719 kB / 0.8054 GB, free: 11.69 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/1.111, allocations: 3.844 kB / 0.8054 GB, free: 11.69 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/1.111, allocations: 84.77 kB / 0.8055 GB, free: 11.69 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007929/1.112, allocations: 430.1 kB / 0.8059 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/1.112, allocations: 143.8 kB / 0.806 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/1.112, allocations: 88.33 kB / 0.8061 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/1.113, allocations: 3.844 kB / 0.8061 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004109/1.113, allocations: 190.8 kB / 0.8063 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 3.166e-06/1.113, allocations: 3.938 kB / 0.8063 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0008643/1.114, allocations: 351.8 kB / 0.8066 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/1.114, allocations: 62.38 kB / 0.8067 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/1.114, allocations: 128.5 kB / 0.8068 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.612e-05/1.114, allocations: 40.64 kB / 0.8069 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/1.114, allocations: 101.6 kB / 0.8069 GB, free: 11 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.262e-05/1.114, allocations: 67.08 kB / 0.807 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/1.114, allocations: 7.062 kB / 0.807 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.431e-05/1.114, allocations: 331.9 kB / 0.8073 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/1.115, allocations: 93.11 kB / 0.8074 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/1.115, allocations: 161.8 kB / 0.8076 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/1.115, allocations: 119.1 kB / 0.8077 GB, free: 10.56 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/1.115, allocations: 0 / 0.8077 GB, free: 10.56 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006687/1.116, allocations: 313.3 kB / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/1.116, allocations: 14.81 kB / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/1.116, allocations: 0 / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/1.116, allocations: 3.875 kB / 0.808 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/1.116, allocations: 71.08 kB / 0.8081 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/1.117, allocations: 11.77 kB / 0.8081 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/1.117, allocations: 37.16 kB / 0.8081 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/1.117, allocations: 14.72 kB / 0.8081 GB, free: 10.48 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.0001766/1.117, allocations: 153.2 kB / 0.8083 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.425e-05/1.117, allocations: 18.98 kB / 0.8083 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.308e-05/1.117, allocations: 16.97 kB / 0.8083 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/1.117, allocations: 7.938 kB / 0.8083 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.117, allocations: 7.875 kB / 0.8083 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.117, allocations: 3.469 kB / 0.8083 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/1.119, allocations: 0.7106 MB / 0.809 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/1.119, allocations: 4 kB / 0.809 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.277e-05/1.119, allocations: 6.469 kB / 0.809 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/1.119, allocations: 11.56 kB / 0.809 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/1.119, allocations: 12.09 kB / 0.8091 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/1.119, allocations: 0 / 0.8091 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.119, allocations: 0 / 0.8091 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000756/1.12, allocations: 447.5 kB / 0.8095 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/1.12, allocations: 88.77 kB / 0.8096 GB, free: 9.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/1.12, allocations: 23.14 kB / 0.8096 GB, free: 9.766 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/1.12, allocations: 20.95 kB / 0.8096 GB, free: 9.766 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/1.12, allocations: 25.42 kB / 0.8096 GB, free: 9.762 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.317e-05/1.12, allocations: 20.61 kB / 0.8097 GB, free: 9.762 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.393e-05/1.12, allocations: 108.4 kB / 0.8098 GB, free: 9.684 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.01e-07/1.12, allocations: 0 / 0.8098 GB, free: 9.684 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004649/1.121, allocations: 51.66 kB / 0.8098 GB, free: 9.684 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.001517/1.122, allocations: 1.012 MB / 0.8108 GB, free: 25 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006343/1.123, allocations: 232.6 kB / 0.811 GB, free: 24.99 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/1.123, allocations: 320 / 0.811 GB, free: 24.99 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002741/1.123, allocations: 122.3 kB / 0.8111 GB, free: 24.98 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004501/1.124, allocations: 30.88 kB / 0.8112 GB, free: 24.97 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009918/1.125, allocations: 278.9 kB / 0.8114 GB, free: 24.83 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/1.125, allocations: 0.7296 MB / 0.8121 GB, free: 24.13 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001223/1.125, allocations: 23.27 kB / 0.8122 GB, free: 24.12 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/1.125, allocations: 45.78 kB / 0.8122 GB, free: 24.12 MB / 0.6511 GB Notification: Performance of SimCode: time 1.332e-06/1.125, allocations: 0 / 0.8122 GB, free: 24.12 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02386/1.149, allocations: 4.035 MB / 0.8162 GB, free: 23.71 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/1.15, allocations: 175.8 kB / 0.8163 GB, free: 23.48 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.279/3.429, allocations: 3.938 kB / 0.8163 GB, free: 23.48 MB / 0.6511 GB