Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadModel(Buildings): time 3.622/3.622, allocations: 403.3 MB / 415.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.935e-05/3.952e-05, allocations: 11.92 kB / 0.499 GB, free: 13.46 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4818/0.4819, allocations: 92.68 MB / 0.5895 GB, free: 14.52 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1823/0.6643, allocations: 121 MB / 0.7077 GB, free: 5.391 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.6646, allocations: 83.94 kB / 0.7078 GB, free: 5.309 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003304/0.6679, allocations: 0.9133 MB / 0.7086 GB, free: 4.395 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.94e-06/0.668, allocations: 0 / 0.7086 GB, free: 4.395 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.411e-06/0.668, allocations: 0 / 0.7086 GB, free: 4.395 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004983/0.6685, allocations: 350.5 kB / 0.709 GB, free: 4.008 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.6685, allocations: 8.031 kB / 0.709 GB, free: 4 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.074e-05/0.6686, allocations: 15.86 kB / 0.709 GB, free: 3.984 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.6688, allocations: 167 kB / 0.7092 GB, free: 3.781 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.6688, allocations: 0 / 0.7092 GB, free: 3.781 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.6688, allocations: 8 kB / 0.7092 GB, free: 3.773 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001559/0.669, allocations: 53.61 kB / 0.7092 GB, free: 3.715 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.669, allocations: 3.984 kB / 0.7092 GB, free: 3.711 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.669, allocations: 7.984 kB / 0.7092 GB, free: 3.703 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.905e-06/0.669, allocations: 4 kB / 0.7092 GB, free: 3.699 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.057e-05/0.6691, allocations: 19.95 kB / 0.7093 GB, free: 3.68 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005629/0.6697, allocations: 288.9 kB / 0.7095 GB, free: 3.348 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.6699, allocations: 46.58 kB / 0.7096 GB, free: 3.293 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.497e-05/0.6699, allocations: 24.86 kB / 0.7096 GB, free: 3.266 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.67, allocations: 0 / 0.7096 GB, free: 3.266 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001468/0.6701, allocations: 75.28 kB / 0.7097 GB, free: 3.18 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 2.529e-06/0.6702, allocations: 4 kB / 0.7097 GB, free: 3.176 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002378/0.6704, allocations: 73.7 kB / 0.7097 GB, free: 3.098 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.6705, allocations: 55.41 kB / 0.7098 GB, free: 3.031 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.279e-05/0.6706, allocations: 101 kB / 0.7099 GB, free: 2.926 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.6706, allocations: 25.7 kB / 0.7099 GB, free: 2.895 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.702e-05/0.6707, allocations: 88.12 kB / 0.71 GB, free: 2.805 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.6707, allocations: 19.72 kB / 0.71 GB, free: 2.785 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-06/0.6707, allocations: 7.875 kB / 0.71 GB, free: 2.777 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.6709, allocations: 322.8 kB / 0.7103 GB, free: 2.453 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.876e-05/0.671, allocations: 12 kB / 0.7104 GB, free: 2.441 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.476e-05/0.671, allocations: 44.3 kB / 0.7104 GB, free: 2.383 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.232e-05/0.6711, allocations: 23.98 kB / 0.7104 GB, free: 2.359 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.6711, allocations: 0 / 0.7104 GB, free: 2.359 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002075/0.6713, allocations: 85.56 kB / 0.7105 GB, free: 2.27 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.6714, allocations: 4 kB / 0.7105 GB, free: 2.266 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.863e-06/0.6714, allocations: 0 / 0.7105 GB, free: 2.266 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.6714, allocations: 7.953 kB / 0.7105 GB, free: 2.258 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.6716, allocations: 24.11 kB / 0.7105 GB, free: 2.234 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.685e-06/0.6716, allocations: 3.938 kB / 0.7105 GB, free: 2.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.6717, allocations: 23.83 kB / 0.7106 GB, free: 2.207 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.6717, allocations: 4 kB / 0.7106 GB, free: 2.203 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.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.387e-05/0.6718, allocations: 109 kB / 0.7107 GB, free: 2.09 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/0.6719, allocations: 0 / 0.7107 GB, free: 2.09 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002125/0.6721, allocations: 78.3 kB / 0.7107 GB, free: 2.008 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.178e-06/0.6721, allocations: 8 kB / 0.7107 GB, free: 2 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.6721, allocations: 7.891 kB / 0.7108 GB, free: 1.992 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.6721, allocations: 0 / 0.7108 GB, free: 1.992 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004481/0.6726, allocations: 334.5 kB / 0.7111 GB, free: 1.609 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.041e-06/0.6726, allocations: 256 / 0.7111 GB, free: 1.609 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.6727, allocations: 19.98 kB / 0.7111 GB, free: 1.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.075e-06/0.6728, allocations: 0 / 0.7111 GB, free: 1.59 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.6728, allocations: 3.953 kB / 0.7111 GB, free: 1.586 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.6728, allocations: 0 / 0.7111 GB, free: 1.586 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.141e-06/0.6728, allocations: 11.88 kB / 0.7111 GB, free: 1.574 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.673, allocations: 171.5 kB / 0.7113 GB, free: 1.391 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.422e-05/0.6731, allocations: 85.02 kB / 0.7114 GB, free: 1.289 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.6732, allocations: 4 kB / 0.7114 GB, free: 1.285 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.6733, allocations: 15.98 kB / 0.7114 GB, free: 1.27 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.03e-05/0.6734, allocations: 11.97 kB / 0.7114 GB, free: 1.258 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.6734, allocations: 4 kB / 0.7114 GB, free: 1.254 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.032e-05/0.6735, allocations: 83.28 kB / 0.7115 GB, free: 1.172 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.39e-07/0.6735, allocations: 0 / 0.7115 GB, free: 1.172 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003225/0.6738, allocations: 12 kB / 0.7115 GB, free: 1.16 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001426/0.674, allocations: 111.2 kB / 0.7116 GB, free: 1.043 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001624/0.6741, allocations: 43.92 kB / 0.7116 GB, free: 1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.683e-06/0.6742, allocations: 4.188 kB / 0.7116 GB, free: 0.9961 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.171e-05/0.6742, allocations: 27.94 kB / 0.7117 GB, free: 0.9688 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002236/0.6745, allocations: 8 kB / 0.7117 GB, free: 0.9609 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002925/0.6748, allocations: 85.03 kB / 0.7117 GB, free: 0.8516 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.6751, allocations: 0.6809 MB / 0.7124 GB, free: 148 kB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.165e-05/0.6752, allocations: 8.172 kB / 0.7124 GB, free: 140 kB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.436e-05/0.6752, allocations: 11.44 kB / 0.7124 GB, free: 128 kB / 0.5886 GB Notification: Performance of SimCode: time 1.545e-06/0.6753, allocations: 4 kB / 0.7124 GB, free: 124 kB / 0.5886 GB Notification: Performance of Templates: time 0.003257/0.6785, allocations: 0.5779 MB / 0.713 GB, free: 15.55 MB / 0.6042 GB