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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.513/4.513, allocations: 404.2 MB / 411.3 MB, free: 324 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.75e-05, allocations: 4 kB / 0.4945 GB, free: 1.223 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6565/0.6566, allocations: 92.68 MB / 0.5851 GB, free: 2.301 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2334/0.8901, allocations: 120.3 MB / 0.7025 GB, free: 9.848 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/0.8904, allocations: 91.86 kB / 0.7026 GB, free: 9.758 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003721/0.8942, allocations: 0.8902 MB / 0.7035 GB, free: 8.867 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8942, allocations: 0 / 0.7035 GB, free: 8.867 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.8942, allocations: 0 / 0.7035 GB, free: 8.867 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.0006006/0.8948, allocations: 354.5 kB / 0.7038 GB, free: 8.477 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.8949, allocations: 8.031 kB / 0.7038 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.895, allocations: 15.86 kB / 0.7038 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.8951, allocations: 163 kB / 0.704 GB, free: 8.254 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.8951, allocations: 4 kB / 0.704 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.8952, allocations: 0 / 0.704 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001131/0.8953, allocations: 23.98 kB / 0.704 GB, free: 8.227 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.8954, allocations: 53.59 kB / 0.7041 GB, free: 8.168 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.8954, allocations: 0 / 0.7041 GB, free: 8.168 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.8955, allocations: 0 / 0.7041 GB, free: 8.168 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.8955, allocations: 7.953 kB / 0.7041 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004702/0.896, allocations: 249.4 kB / 0.7043 GB, free: 7.879 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.8961, allocations: 42.56 kB / 0.7044 GB, free: 7.828 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.231e-05/0.8962, allocations: 17.11 kB / 0.7044 GB, free: 7.809 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.8962, allocations: 3.938 kB / 0.7044 GB, free: 7.805 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/0.8964, allocations: 63.41 kB / 0.7044 GB, free: 7.73 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.275e-06/0.8964, allocations: 0 / 0.7044 GB, free: 7.73 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002318/0.8966, allocations: 65.64 kB / 0.7045 GB, free: 7.66 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.8967, allocations: 55.41 kB / 0.7046 GB, free: 7.594 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.018e-05/0.8968, allocations: 104.9 kB / 0.7047 GB, free: 7.484 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.8968, allocations: 25.7 kB / 0.7047 GB, free: 7.453 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.178e-05/0.8969, allocations: 84.05 kB / 0.7048 GB, free: 7.367 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.8969, allocations: 15.81 kB / 0.7048 GB, free: 7.352 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.8969, allocations: 4 kB / 0.7048 GB, free: 7.348 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.8971, allocations: 318.8 kB / 0.7051 GB, free: 7.027 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.686e-05/0.8971, allocations: 12 kB / 0.7051 GB, free: 7.016 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.924e-05/0.8972, allocations: 40.23 kB / 0.7051 GB, free: 6.961 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.653e-05/0.8973, allocations: 23.98 kB / 0.7052 GB, free: 6.938 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.8973, allocations: 0 / 0.7052 GB, free: 6.938 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001961/0.8975, allocations: 69.62 kB / 0.7052 GB, free: 6.863 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.8975, allocations: 6.031 kB / 0.7052 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.8976, allocations: 7.938 kB / 0.7052 GB, free: 6.852 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.8976, allocations: 0 / 0.7052 GB, free: 6.852 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.8978, allocations: 20.08 kB / 0.7053 GB, free: 6.832 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.8978, allocations: 11.95 kB / 0.7053 GB, free: 6.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.8979, allocations: 15.92 kB / 0.7053 GB, free: 6.805 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.898, allocations: 4 kB / 0.7053 GB, free: 6.801 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.656e-05/0.8981, allocations: 105 kB / 0.7054 GB, free: 6.691 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001652/0.8982, allocations: 69.53 kB / 0.7055 GB, free: 6.617 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.8983, allocations: 4 kB / 0.7055 GB, free: 6.613 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002069/0.8985, allocations: 78.38 kB / 0.7055 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.8985, allocations: 8 kB / 0.7055 GB, free: 6.52 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.8985, allocations: 0 / 0.7055 GB, free: 6.52 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.8986, allocations: 0 / 0.7055 GB, free: 6.52 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003926/0.899, allocations: 303.1 kB / 0.7058 GB, free: 6.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.899, allocations: 0 / 0.7058 GB, free: 6.18 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.8991, allocations: 11.98 kB / 0.7058 GB, free: 6.168 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.286e-06/0.8991, allocations: 7.938 kB / 0.7058 GB, free: 6.16 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.8992, allocations: 0 / 0.7058 GB, free: 6.16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.8992, allocations: 8 kB / 0.7059 GB, free: 6.152 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.8992, allocations: 0 / 0.7059 GB, free: 6.152 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002061/0.8994, allocations: 159.5 kB / 0.706 GB, free: 5.98 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.317e-05/0.8995, allocations: 81.02 kB / 0.7061 GB, free: 5.883 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.8995, allocations: 7.953 kB / 0.7061 GB, free: 5.875 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.8997, allocations: 15.92 kB / 0.7061 GB, free: 5.859 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.8998, allocations: 4 kB / 0.7061 GB, free: 5.855 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.8998, allocations: 4.188 kB / 0.7061 GB, free: 5.852 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.348e-05/0.8998, allocations: 87.27 kB / 0.7062 GB, free: 5.766 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.31e-07/0.8999, allocations: 3.938 kB / 0.7062 GB, free: 5.762 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003982/0.9003, allocations: 8 kB / 0.7062 GB, free: 5.754 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.0005081/0.9008, allocations: 0.6967 MB / 0.7069 GB, free: 5.031 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001523/0.9009, allocations: 35.92 kB / 0.7069 GB, free: 4.996 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.901, allocations: 0 / 0.7069 GB, free: 4.996 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.797e-05/0.901, allocations: 16 kB / 0.7069 GB, free: 4.98 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.9013, allocations: 12.33 kB / 0.707 GB, free: 4.969 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005095/0.9019, allocations: 109.6 kB / 0.7071 GB, free: 4.82 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.9022, allocations: 0.6927 MB / 0.7077 GB, free: 4.102 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.132e-05/0.9022, allocations: 4.188 kB / 0.7077 GB, free: 4.098 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.326e-05/0.9023, allocations: 11.44 kB / 0.7077 GB, free: 4.086 MB / 0.5886 GB Notification: Performance of SimCode: time 8.12e-07/0.9023, allocations: 0 / 0.7077 GB, free: 4.086 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03755/0.9398, allocations: 1.044 MB / 0.7088 GB, free: 3.059 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003876/0.9403, allocations: 150.4 kB / 0.7089 GB, free: 2.863 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.601/3.542, allocations: 3.938 kB / 0.7089 GB, free: 2.859 MB / 0.5886 GB