Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_5_0_1_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.856/3.856, allocations: 403.3 MB / 415.4 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.087e-05/4.101e-05, allocations: 7.984 kB / 0.4991 GB, free: 13.34 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6153/0.6154, allocations: 92.68 MB / 0.5896 GB, free: 14.47 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/0.8397, allocations: 120.9 MB / 0.7077 GB, free: 5.363 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003507/0.8402, allocations: 87.94 kB / 0.7078 GB, free: 5.277 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003649/0.8438, allocations: 0.8863 MB / 0.7087 GB, free: 4.391 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8439, allocations: 0 / 0.7087 GB, free: 4.391 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.8439, allocations: 4 kB / 0.7087 GB, free: 4.387 MB / 0.5886 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.0005801/0.8445, allocations: 354.5 kB / 0.709 GB, free: 3.996 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.8445, allocations: 11.97 kB / 0.709 GB, free: 3.984 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.456e-05/0.8446, allocations: 38.56 kB / 0.7091 GB, free: 3.938 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.8447, allocations: 7.859 kB / 0.7091 GB, free: 3.93 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.8448, allocations: 175 kB / 0.7093 GB, free: 3.719 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.8448, allocations: 0 / 0.7093 GB, free: 3.719 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.8449, allocations: 4 kB / 0.7093 GB, free: 3.715 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/0.845, allocations: 53.67 kB / 0.7093 GB, free: 3.656 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.845, allocations: 3.984 kB / 0.7093 GB, free: 3.652 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.8451, allocations: 0 / 0.7093 GB, free: 3.652 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.8451, allocations: 3.938 kB / 0.7093 GB, free: 3.648 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.667e-05/0.8452, allocations: 23.89 kB / 0.7093 GB, free: 3.625 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005356/0.8457, allocations: 280.8 kB / 0.7096 GB, free: 3.301 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.8459, allocations: 46.64 kB / 0.7097 GB, free: 3.246 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.666e-05/0.846, allocations: 21.03 kB / 0.7097 GB, free: 3.223 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.846, allocations: 0 / 0.7097 GB, free: 3.223 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001576/0.8462, allocations: 75.3 kB / 0.7097 GB, free: 3.137 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.004e-06/0.8462, allocations: 0 / 0.7097 GB, free: 3.137 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002366/0.8464, allocations: 65.62 kB / 0.7098 GB, free: 3.066 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.8465, allocations: 51.41 kB / 0.7099 GB, free: 3.004 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.777e-05/0.8466, allocations: 101 kB / 0.71 GB, free: 2.898 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.8466, allocations: 33.7 kB / 0.71 GB, free: 2.859 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.625e-05/0.8467, allocations: 84.05 kB / 0.7101 GB, free: 2.773 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.8467, allocations: 11.91 kB / 0.7101 GB, free: 2.762 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-06/0.8468, allocations: 0 / 0.7101 GB, free: 2.762 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.8469, allocations: 322.8 kB / 0.7104 GB, free: 2.438 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.057e-05/0.847, allocations: 15.94 kB / 0.7104 GB, free: 2.422 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.411e-05/0.847, allocations: 40.3 kB / 0.7104 GB, free: 2.367 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.791e-05/0.8471, allocations: 23.98 kB / 0.7105 GB, free: 2.344 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.8471, allocations: 0 / 0.7105 GB, free: 2.344 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002108/0.8474, allocations: 85.47 kB / 0.7105 GB, free: 2.254 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.8474, allocations: 4 kB / 0.7106 GB, free: 2.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.8474, allocations: 4 kB / 0.7106 GB, free: 2.246 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.8474, allocations: 3.953 kB / 0.7106 GB, free: 2.242 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.8476, allocations: 15.98 kB / 0.7106 GB, free: 2.227 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.8477, allocations: 8.156 kB / 0.7106 GB, free: 2.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.8478, allocations: 19.92 kB / 0.7106 GB, free: 2.199 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.8478, allocations: 0 / 0.7106 GB, free: 2.199 MB / 0.5886 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 8.7e-05/0.8479, allocations: 112.9 kB / 0.7107 GB, free: 2.082 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.8479, allocations: 7.906 kB / 0.7107 GB, free: 2.074 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002172/0.8482, allocations: 74.3 kB / 0.7108 GB, free: 1.996 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.8482, allocations: 3.953 kB / 0.7108 GB, free: 1.992 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.8482, allocations: 0 / 0.7108 GB, free: 1.992 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.8482, allocations: 4 kB / 0.7108 GB, free: 1.988 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/0.8487, allocations: 322.6 kB / 0.7111 GB, free: 1.617 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.8487, allocations: 4 kB / 0.7111 GB, free: 1.613 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.8488, allocations: 15.92 kB / 0.7111 GB, free: 1.598 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.8488, allocations: 3.953 kB / 0.7111 GB, free: 1.594 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.8488, allocations: 0 / 0.7111 GB, free: 1.594 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.8489, allocations: 0 / 0.7111 GB, free: 1.594 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.8489, allocations: 0 / 0.7111 GB, free: 1.594 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/0.8491, allocations: 179.6 kB / 0.7113 GB, free: 1.402 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.8492, allocations: 85.11 kB / 0.7114 GB, free: 1.301 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.8492, allocations: 3.953 kB / 0.7114 GB, free: 1.297 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.8494, allocations: 12.17 kB / 0.7114 GB, free: 1.285 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.8494, allocations: 7.984 kB / 0.7114 GB, free: 1.277 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.8494, allocations: 3.938 kB / 0.7114 GB, free: 1.273 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.815e-05/0.8495, allocations: 91.28 kB / 0.7115 GB, free: 1.184 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.82e-07/0.8496, allocations: 0 / 0.7115 GB, free: 1.184 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003057/0.8499, allocations: 8 kB / 0.7115 GB, free: 1.176 MB / 0.5886 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.0005726/0.8505, allocations: 0.7082 MB / 0.7122 GB, free: 452 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001723/0.8506, allocations: 39.94 kB / 0.7122 GB, free: 412 kB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.8507, allocations: 0 / 0.7122 GB, free: 412 kB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.64e-05/0.8507, allocations: 24 kB / 0.7123 GB, free: 388 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.851, allocations: 4.812 kB / 0.7123 GB, free: 384 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000498/0.8515, allocations: 110.8 kB / 0.7124 GB, free: 232 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.8518, allocations: 0.6887 MB / 0.713 GB, free: 15.51 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.29e-05/0.8519, allocations: 4.5 kB / 0.713 GB, free: 15.51 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.582e-05/0.852, allocations: 19.42 kB / 0.7131 GB, free: 15.49 MB / 0.6042 GB Notification: Performance of SimCode: time 8.02e-07/0.852, allocations: 0 / 0.7131 GB, free: 15.49 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.8765, allocations: 1.363 MB / 0.7144 GB, free: 14.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003341/0.8769, allocations: 159.5 kB / 0.7145 GB, free: 13.97 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/3.034, allocations: 8 kB / 0.7145 GB, free: 13.96 MB / 0.6042 GB