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 4.02/4.02, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.728e-05, allocations: 7.938 kB / 0.4991 GB, free: 13.33 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7254/0.7255, allocations: 92.68 MB / 0.5896 GB, free: 14.37 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2535/0.9791, allocations: 121 MB / 0.7078 GB, free: 5.242 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.9795, allocations: 87.94 kB / 0.7079 GB, free: 5.156 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003652/0.9832, allocations: 0.8941 MB / 0.7087 GB, free: 4.262 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.392e-06/0.9832, allocations: 0 / 0.7087 GB, free: 4.262 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.9832, allocations: 0 / 0.7087 GB, free: 4.262 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.0006094/0.9838, allocations: 355.5 kB / 0.7091 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.9839, allocations: 8.031 kB / 0.7091 GB, free: 3.863 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.639e-05/0.984, allocations: 38.56 kB / 0.7091 GB, free: 3.816 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.984, allocations: 7.859 kB / 0.7091 GB, free: 3.809 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.9842, allocations: 171 kB / 0.7093 GB, free: 3.602 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.9842, allocations: 0 / 0.7093 GB, free: 3.602 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/0.9843, allocations: 8 kB / 0.7093 GB, free: 3.594 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.9844, allocations: 53.61 kB / 0.7094 GB, free: 3.535 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.9844, allocations: 0 / 0.7094 GB, free: 3.535 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.9845, allocations: 4 kB / 0.7094 GB, free: 3.531 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.9845, allocations: 0 / 0.7094 GB, free: 3.531 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.854e-05/0.9846, allocations: 23.89 kB / 0.7094 GB, free: 3.508 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005393/0.9851, allocations: 280.8 kB / 0.7096 GB, free: 3.184 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.9853, allocations: 50.44 kB / 0.7097 GB, free: 3.125 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.665e-05/0.9854, allocations: 17.11 kB / 0.7097 GB, free: 3.105 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.9854, allocations: 4 kB / 0.7097 GB, free: 3.102 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/0.9856, allocations: 63.36 kB / 0.7098 GB, free: 3.027 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.224e-06/0.9856, allocations: 0 / 0.7098 GB, free: 3.027 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.000241/0.9858, allocations: 65.69 kB / 0.7098 GB, free: 2.957 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.9859, allocations: 51.41 kB / 0.7099 GB, free: 2.895 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.986, allocations: 105 kB / 0.71 GB, free: 2.785 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.9861, allocations: 33.64 kB / 0.71 GB, free: 2.746 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/0.9861, allocations: 88.05 kB / 0.7101 GB, free: 2.656 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.9862, allocations: 7.906 kB / 0.7101 GB, free: 2.648 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-06/0.9862, allocations: 8 kB / 0.7101 GB, free: 2.641 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.9864, allocations: 318.8 kB / 0.7104 GB, free: 2.32 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.119e-05/0.9864, allocations: 12 kB / 0.7104 GB, free: 2.309 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.331e-05/0.9865, allocations: 44.3 kB / 0.7105 GB, free: 2.25 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.892e-05/0.9866, allocations: 19.98 kB / 0.7105 GB, free: 2.23 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.9866, allocations: 0 / 0.7105 GB, free: 2.23 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002121/0.9868, allocations: 81.47 kB / 0.7106 GB, free: 2.145 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.9869, allocations: 8 kB / 0.7106 GB, free: 2.137 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.9869, allocations: 0 / 0.7106 GB, free: 2.137 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.9869, allocations: 7.953 kB / 0.7106 GB, free: 2.129 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.9871, allocations: 20.14 kB / 0.7106 GB, free: 2.109 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.168e-06/0.9872, allocations: 0 / 0.7106 GB, free: 2.109 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.9873, allocations: 19.92 kB / 0.7106 GB, free: 2.09 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.9873, allocations: 4 kB / 0.7106 GB, free: 2.086 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 0.0001089/0.9875, allocations: 112.9 kB / 0.7107 GB, free: 1.969 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.9875, allocations: 3.906 kB / 0.7107 GB, free: 1.965 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002466/0.9877, allocations: 78.36 kB / 0.7108 GB, free: 1.883 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.9878, allocations: 15.94 kB / 0.7108 GB, free: 1.867 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.9878, allocations: 0 / 0.7108 GB, free: 1.867 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.9878, allocations: 0 / 0.7108 GB, free: 1.867 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.9883, allocations: 326.6 kB / 0.7111 GB, free: 1.492 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.9883, allocations: 0 / 0.7111 GB, free: 1.492 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.9885, allocations: 8 kB / 0.7111 GB, free: 1.484 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.9885, allocations: 7.891 kB / 0.7112 GB, free: 1.477 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.9885, allocations: 3.984 kB / 0.7112 GB, free: 1.473 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.9885, allocations: 8 kB / 0.7112 GB, free: 1.465 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.9885, allocations: 192 / 0.7112 GB, free: 1.465 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002814/0.9888, allocations: 163.5 kB / 0.7113 GB, free: 1.289 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.864e-05/0.9889, allocations: 81.05 kB / 0.7114 GB, free: 1.191 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.9889, allocations: 7.953 kB / 0.7114 GB, free: 1.184 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.9891, allocations: 11.98 kB / 0.7114 GB, free: 1.172 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.9892, allocations: 11.98 kB / 0.7114 GB, free: 1.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.9892, allocations: 0 / 0.7114 GB, free: 1.16 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.897e-05/0.9893, allocations: 91.22 kB / 0.7115 GB, free: 1.07 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.51e-07/0.9893, allocations: 0 / 0.7115 GB, free: 1.07 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003455/0.9896, allocations: 8 kB / 0.7115 GB, free: 1.062 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.0006447/0.9903, allocations: 0.7085 MB / 0.7122 GB, free: 336 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001844/0.9905, allocations: 35.94 kB / 0.7123 GB, free: 300 kB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.9905, allocations: 0 / 0.7123 GB, free: 300 kB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.389e-05/0.9906, allocations: 24 kB / 0.7123 GB, free: 276 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.9909, allocations: 11.94 kB / 0.7123 GB, free: 264 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000556/0.9915, allocations: 108.2 kB / 0.7124 GB, free: 116 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.9919, allocations: 0.6968 MB / 0.7131 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.831e-05/0.9919, allocations: 192 / 0.7131 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.495e-05/0.992, allocations: 19.42 kB / 0.7131 GB, free: 15.37 MB / 0.6042 GB Notification: Performance of SimCode: time 1.092e-06/0.992, allocations: 0 / 0.7131 GB, free: 15.37 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/1.011, allocations: 1.346 MB / 0.7144 GB, free: 14.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003215/1.012, allocations: 161.2 kB / 0.7146 GB, free: 13.87 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/3.408, allocations: 0 / 0.7146 GB, free: 13.87 MB / 0.6042 GB