Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.187/4.187, allocations: 464.6 MB / 476.8 MB, free: 2.23 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.588e-05/3.579e-05, allocations: 4 kB / 0.5732 GB, free: 5.652 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2282, allocations: 107.1 MB / 0.6778 GB, free: 10.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8599/1.088, allocations: 131.7 MB / 0.8065 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/1.089, allocations: 77.5 kB / 0.8066 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00325/1.092, allocations: 0.859 MB / 0.8074 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.643e-06/1.092, allocations: 0 / 0.8074 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.116e-06/1.092, allocations: 3.844 kB / 0.8074 GB, free: 12.27 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004813/1.092, allocations: 362.3 kB / 0.8078 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/1.092, allocations: 7.656 kB / 0.8078 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/1.092, allocations: 34.41 kB / 0.8078 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.032e-05/1.093, allocations: 3.906 kB / 0.8078 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.356e-05/1.093, allocations: 174.4 kB / 0.808 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/1.093, allocations: 6.422 kB / 0.808 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/1.093, allocations: 7.875 kB / 0.808 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/1.093, allocations: 51.19 kB / 0.808 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/1.093, allocations: 3.938 kB / 0.808 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/1.093, allocations: 0 / 0.808 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/1.093, allocations: 3.844 kB / 0.808 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.6e-05/1.093, allocations: 14.31 kB / 0.8081 GB, free: 11.63 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004127/1.093, allocations: 286.2 kB / 0.8083 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/1.094, allocations: 38.92 kB / 0.8084 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.025e-05/1.094, allocations: 23.73 kB / 0.8084 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/1.094, allocations: 0 / 0.8084 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001189/1.094, allocations: 60.16 kB / 0.8084 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.944e-06/1.094, allocations: 0 / 0.8084 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002027/1.094, allocations: 69.88 kB / 0.8085 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/1.094, allocations: 61.69 kB / 0.8086 GB, free: 11.17 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.321e-05/1.094, allocations: 103.3 kB / 0.8087 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/1.094, allocations: 25.7 kB / 0.8087 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.788e-05/1.094, allocations: 85.91 kB / 0.8088 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/1.094, allocations: 15.22 kB / 0.8088 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/1.094, allocations: 0 / 0.8088 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.906e-05/1.094, allocations: 320.4 kB / 0.8091 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.581e-05/1.094, allocations: 22.97 kB / 0.8091 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.961e-05/1.094, allocations: 38.7 kB / 0.8092 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.637e-05/1.095, allocations: 17.97 kB / 0.8092 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/1.095, allocations: 0 / 0.8092 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001639/1.095, allocations: 85.17 kB / 0.8093 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/1.095, allocations: 7.25 kB / 0.8093 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/1.095, allocations: 0 / 0.8093 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/1.095, allocations: 8.562 kB / 0.8093 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/1.095, allocations: 14.36 kB / 0.8093 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/1.095, allocations: 3.625 kB / 0.8093 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/1.095, allocations: 22.52 kB / 0.8093 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/1.095, allocations: 0 / 0.8093 GB, free: 10.54 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 6.614e-05/1.095, allocations: 116.3 kB / 0.8094 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.658e-05/1.095, allocations: 11.7 kB / 0.8094 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001855/1.095, allocations: 75.52 kB / 0.8095 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/1.095, allocations: 0 / 0.8095 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/1.095, allocations: 3.719 kB / 0.8095 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/1.095, allocations: 0 / 0.8095 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003218/1.096, allocations: 331.6 kB / 0.8098 GB, free: 10.08 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.096, allocations: 3.938 kB / 0.8098 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/1.096, allocations: 10.27 kB / 0.8098 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/1.096, allocations: 3.844 kB / 0.8098 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/1.096, allocations: 0 / 0.8098 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.096, allocations: 0 / 0.8098 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.096, allocations: 320 / 0.8098 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/1.096, allocations: 168.8 kB / 0.81 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.472e-05/1.096, allocations: 84.89 kB / 0.8101 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/1.096, allocations: 2.953 kB / 0.8101 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/1.096, allocations: 10.31 kB / 0.8101 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.566e-05/1.096, allocations: 10.25 kB / 0.8101 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/1.096, allocations: 192 / 0.8101 GB, free: 9.84 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.712e-05/1.097, allocations: 89.83 kB / 0.8102 GB, free: 9.762 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.71e-07/1.097, allocations: 3.938 kB / 0.8102 GB, free: 9.758 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003118/1.097, allocations: 15.61 kB / 0.8102 GB, free: 9.75 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007054/1.098, allocations: 0.7072 MB / 0.8109 GB, free: 25.09 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001634/1.098, allocations: 34.22 kB / 0.8109 GB, free: 25.09 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.098, allocations: 320 / 0.8109 GB, free: 25.09 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.366e-05/1.098, allocations: 26.47 kB / 0.811 GB, free: 25.08 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/1.098, allocations: 8.359 kB / 0.811 GB, free: 25.08 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004619/1.099, allocations: 116.8 kB / 0.8111 GB, free: 24.96 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/1.099, allocations: 0.6887 MB / 0.8117 GB, free: 24.27 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.778e-05/1.099, allocations: 8.141 kB / 0.8118 GB, free: 24.27 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.339e-05/1.099, allocations: 13.25 kB / 0.8118 GB, free: 24.26 MB / 0.6511 GB Notification: Performance of SimCode: time 1.052e-06/1.099, allocations: 4 kB / 0.8118 GB, free: 24.26 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01949/1.119, allocations: 1.355 MB / 0.8131 GB, free: 24.03 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000223/1.119, allocations: 158.3 kB / 0.8132 GB, free: 23.81 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.192/3.31, allocations: 0 / 0.8132 GB, free: 23.81 MB / 0.6511 GB