Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadModel(Buildings): time 3.725/3.725, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.415e-05/3.431e-05, allocations: 8 kB / 0.499 GB, free: 13.45 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.479/0.479, allocations: 92.68 MB / 0.5895 GB, free: 14.51 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1786/0.6577, allocations: 120.9 MB / 0.7077 GB, free: 5.406 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.658, allocations: 87.94 kB / 0.7077 GB, free: 5.32 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003155/0.6612, allocations: 0.8783 MB / 0.7086 GB, free: 4.441 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.839e-06/0.6612, allocations: 0 / 0.7086 GB, free: 4.441 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.6612, allocations: 0 / 0.7086 GB, free: 4.441 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.0005052/0.6617, allocations: 366.4 kB / 0.7089 GB, free: 4.039 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.6618, allocations: 8.031 kB / 0.709 GB, free: 4.031 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.83e-05/0.6619, allocations: 11.86 kB / 0.709 GB, free: 4.02 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.662, allocations: 167 kB / 0.7091 GB, free: 3.816 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.662, allocations: 11.92 kB / 0.7091 GB, free: 3.805 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.6621, allocations: 7.984 kB / 0.7091 GB, free: 3.797 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.6622, allocations: 49.69 kB / 0.7092 GB, free: 3.742 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.6622, allocations: 0 / 0.7092 GB, free: 3.742 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.6623, allocations: 0 / 0.7092 GB, free: 3.742 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-06/0.6623, allocations: 0 / 0.7092 GB, free: 3.742 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.959e-05/0.6624, allocations: 23.95 kB / 0.7092 GB, free: 3.719 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004913/0.6629, allocations: 276.8 kB / 0.7095 GB, free: 3.398 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.663, allocations: 38.58 kB / 0.7095 GB, free: 3.352 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.348e-05/0.6631, allocations: 21.05 kB / 0.7095 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.6631, allocations: 8 kB / 0.7095 GB, free: 3.32 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.6633, allocations: 67.23 kB / 0.7096 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.804e-06/0.6633, allocations: 0 / 0.7096 GB, free: 3.242 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002108/0.6635, allocations: 73.64 kB / 0.7097 GB, free: 3.164 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.6636, allocations: 55.47 kB / 0.7097 GB, free: 3.098 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.319e-05/0.6637, allocations: 101 kB / 0.7098 GB, free: 2.992 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.6637, allocations: 29.7 kB / 0.7099 GB, free: 2.957 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.01e-05/0.6638, allocations: 92.12 kB / 0.7099 GB, free: 2.863 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.6638, allocations: 15.81 kB / 0.71 GB, free: 2.848 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.847e-06/0.6638, allocations: 0 / 0.71 GB, free: 2.848 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.664, allocations: 314.8 kB / 0.7103 GB, free: 2.531 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.504e-05/0.664, allocations: 15.94 kB / 0.7103 GB, free: 2.516 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.092e-05/0.6641, allocations: 44.3 kB / 0.7103 GB, free: 2.457 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.652e-05/0.6642, allocations: 16 kB / 0.7103 GB, free: 2.441 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.6642, allocations: 4 kB / 0.7103 GB, free: 2.438 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001968/0.6644, allocations: 89.45 kB / 0.7104 GB, free: 2.344 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.6644, allocations: 4 kB / 0.7104 GB, free: 2.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.6645, allocations: 4 kB / 0.7104 GB, free: 2.336 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.6645, allocations: 8.109 kB / 0.7104 GB, free: 2.328 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.6646, allocations: 15.98 kB / 0.7105 GB, free: 2.312 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.594e-06/0.6647, allocations: 4 kB / 0.7105 GB, free: 2.309 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.136e-05/0.6648, allocations: 7.938 kB / 0.7105 GB, free: 2.301 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.6648, allocations: 8 kB / 0.7105 GB, free: 2.293 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 9.177e-05/0.6649, allocations: 112.9 kB / 0.7106 GB, free: 2.176 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.16e-05/0.6649, allocations: 7.906 kB / 0.7106 GB, free: 2.168 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000188/0.6651, allocations: 78.31 kB / 0.7107 GB, free: 2.086 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.681e-06/0.6651, allocations: 192 / 0.7107 GB, free: 2.086 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.836e-06/0.6652, allocations: 3.953 kB / 0.7107 GB, free: 2.082 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.293e-06/0.6652, allocations: 7.922 kB / 0.7107 GB, free: 2.074 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/0.6656, allocations: 322.7 kB / 0.711 GB, free: 1.703 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.882e-06/0.6656, allocations: 0 / 0.711 GB, free: 1.703 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.6657, allocations: 15.98 kB / 0.711 GB, free: 1.688 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.876e-06/0.6658, allocations: 4 kB / 0.711 GB, free: 1.684 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.6658, allocations: 3.953 kB / 0.711 GB, free: 1.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.6658, allocations: 0 / 0.711 GB, free: 1.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.6658, allocations: 3.938 kB / 0.711 GB, free: 1.676 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002112/0.666, allocations: 171.4 kB / 0.7112 GB, free: 1.492 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.6661, allocations: 77.11 kB / 0.7112 GB, free: 1.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.6661, allocations: 4 kB / 0.7112 GB, free: 1.395 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.6663, allocations: 23.94 kB / 0.7113 GB, free: 1.371 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.658e-05/0.6663, allocations: 0 / 0.7113 GB, free: 1.371 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.6664, allocations: 4 kB / 0.7113 GB, free: 1.367 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.25e-05/0.6664, allocations: 87.27 kB / 0.7114 GB, free: 1.281 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.72e-07/0.6664, allocations: 0 / 0.7114 GB, free: 1.281 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000316/0.6668, allocations: 12 kB / 0.7114 GB, free: 1.27 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.0001308/0.6669, allocations: 104.7 kB / 0.7115 GB, free: 1.16 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001573/0.6671, allocations: 47.94 kB / 0.7115 GB, free: 1.113 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.548e-06/0.6671, allocations: 0 / 0.7115 GB, free: 1.113 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.454e-05/0.6672, allocations: 19.94 kB / 0.7115 GB, free: 1.094 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002206/0.6674, allocations: 11.92 kB / 0.7115 GB, free: 1.082 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002811/0.6677, allocations: 77.11 kB / 0.7116 GB, free: 0.9805 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.668, allocations: 0.6887 MB / 0.7123 GB, free: 272 kB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.558e-05/0.6681, allocations: 4.5 kB / 0.7123 GB, free: 268 kB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.531e-05/0.6681, allocations: 11.44 kB / 0.7123 GB, free: 256 kB / 0.5886 GB Notification: Performance of SimCode: time 1.481e-06/0.6682, allocations: 0 / 0.7123 GB, free: 256 kB / 0.5886 GB Notification: Performance of Templates: time 0.003122/0.6713, allocations: 0.5533 MB / 0.7128 GB, free: 15.7 MB / 0.6042 GB