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.545/3.545, allocations: 403.3 MB / 415.4 MB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.653e-05/3.663e-05, allocations: 11.94 kB / 0.4991 GB, free: 13.43 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4804/0.4805, allocations: 92.68 MB / 0.5896 GB, free: 14.48 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1889/0.6694, allocations: 121 MB / 0.7077 GB, free: 5.355 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.6698, allocations: 87.94 kB / 0.7078 GB, free: 5.27 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003303/0.6731, allocations: 0.9055 MB / 0.7087 GB, free: 4.363 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.079e-06/0.6731, allocations: 0 / 0.7087 GB, free: 4.363 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.601e-06/0.6731, allocations: 0 / 0.7087 GB, free: 4.363 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.0005152/0.6737, allocations: 355.3 kB / 0.709 GB, free: 3.973 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.6737, allocations: 8.031 kB / 0.709 GB, free: 3.965 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.154e-05/0.6738, allocations: 11.86 kB / 0.709 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.6739, allocations: 167 kB / 0.7092 GB, free: 3.75 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.6739, allocations: 8 kB / 0.7092 GB, free: 3.742 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.674, allocations: 4 kB / 0.7092 GB, free: 3.738 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.6741, allocations: 57.62 kB / 0.7093 GB, free: 3.676 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.194e-06/0.6741, allocations: 0 / 0.7093 GB, free: 3.676 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.6742, allocations: 3.984 kB / 0.7093 GB, free: 3.672 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.6742, allocations: 0 / 0.7093 GB, free: 3.672 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.064e-05/0.6743, allocations: 27.88 kB / 0.7093 GB, free: 3.645 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005673/0.6749, allocations: 300.9 kB / 0.7096 GB, free: 3.301 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.675, allocations: 38.58 kB / 0.7096 GB, free: 3.254 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.558e-05/0.6751, allocations: 20.92 kB / 0.7096 GB, free: 3.23 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.6751, allocations: 4 kB / 0.7096 GB, free: 3.227 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/0.6753, allocations: 67.3 kB / 0.7097 GB, free: 3.148 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 2.66e-06/0.6753, allocations: 0 / 0.7097 GB, free: 3.148 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002541/0.6755, allocations: 73.64 kB / 0.7098 GB, free: 3.07 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.6756, allocations: 59.41 kB / 0.7098 GB, free: 3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.877e-05/0.6757, allocations: 97 kB / 0.7099 GB, free: 2.898 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.6758, allocations: 29.7 kB / 0.7099 GB, free: 2.863 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.822e-05/0.6758, allocations: 88.19 kB / 0.71 GB, free: 2.773 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.6759, allocations: 19.72 kB / 0.71 GB, free: 2.754 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.6759, allocations: 4 kB / 0.71 GB, free: 2.75 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.676, allocations: 314.8 kB / 0.7103 GB, free: 2.434 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.939e-05/0.6761, allocations: 15.94 kB / 0.7104 GB, free: 2.418 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.372e-05/0.6762, allocations: 52.23 kB / 0.7104 GB, free: 2.352 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.227e-05/0.6763, allocations: 19.98 kB / 0.7104 GB, free: 2.332 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.774e-06/0.6763, allocations: 0 / 0.7104 GB, free: 2.332 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002023/0.6765, allocations: 85.62 kB / 0.7105 GB, free: 2.242 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.6765, allocations: 4 kB / 0.7105 GB, free: 2.238 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.6765, allocations: 4 kB / 0.7105 GB, free: 2.234 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.6766, allocations: 7.891 kB / 0.7105 GB, free: 2.227 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.6767, allocations: 19.98 kB / 0.7105 GB, free: 2.207 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.499e-06/0.6767, allocations: 0 / 0.7105 GB, free: 2.207 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.6769, allocations: 23.83 kB / 0.7106 GB, free: 2.184 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.6769, allocations: 8.125 kB / 0.7106 GB, free: 2.176 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.292e-05/0.677, allocations: 108.5 kB / 0.7107 GB, free: 2.066 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.994e-05/0.677, allocations: 0 / 0.7107 GB, free: 2.066 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000217/0.6772, allocations: 90.3 kB / 0.7108 GB, free: 1.973 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.6773, allocations: 4 kB / 0.7108 GB, free: 1.969 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.478e-06/0.6773, allocations: 3.953 kB / 0.7108 GB, free: 1.965 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.6773, allocations: 0 / 0.7108 GB, free: 1.965 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004521/0.6778, allocations: 338.4 kB / 0.7111 GB, free: 1.578 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.998e-06/0.6778, allocations: 4 kB / 0.7111 GB, free: 1.574 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.6779, allocations: 15.98 kB / 0.7111 GB, free: 1.559 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.342e-06/0.6779, allocations: 3.938 kB / 0.7111 GB, free: 1.555 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.6779, allocations: 4.203 kB / 0.7111 GB, free: 1.551 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.6779, allocations: 0 / 0.7111 GB, free: 1.551 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.906e-06/0.678, allocations: 4 kB / 0.7111 GB, free: 1.547 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000224/0.6782, allocations: 167.5 kB / 0.7113 GB, free: 1.367 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.6783, allocations: 89.02 kB / 0.7114 GB, free: 1.262 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.6783, allocations: 0 / 0.7114 GB, free: 1.262 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.6784, allocations: 19.94 kB / 0.7114 GB, free: 1.242 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.6785, allocations: 7.984 kB / 0.7114 GB, free: 1.234 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.6785, allocations: 0 / 0.7114 GB, free: 1.234 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.685e-05/0.6786, allocations: 79.28 kB / 0.7115 GB, free: 1.156 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.4e-07/0.6786, allocations: 0 / 0.7115 GB, free: 1.156 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003239/0.6789, allocations: 16 kB / 0.7115 GB, free: 1.141 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.0001332/0.6791, allocations: 115 kB / 0.7116 GB, free: 1.02 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001729/0.6793, allocations: 51.91 kB / 0.7116 GB, free: 0.9688 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.409e-06/0.6793, allocations: 0 / 0.7116 GB, free: 0.9688 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.848e-05/0.6794, allocations: 16 kB / 0.7117 GB, free: 0.9531 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.6796, allocations: 8.125 kB / 0.7117 GB, free: 0.9453 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002906/0.6799, allocations: 88 kB / 0.7118 GB, free: 0.8359 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.6803, allocations: 0.6888 MB / 0.7124 GB, free: 124 kB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.403e-05/0.6803, allocations: 8.172 kB / 0.7124 GB, free: 116 kB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.6804, allocations: 15.44 kB / 0.7125 GB, free: 100 kB / 0.5886 GB Notification: Performance of SimCode: time 1.486e-06/0.6804, allocations: 0 / 0.7125 GB, free: 100 kB / 0.5886 GB Notification: Performance of Templates: time 0.003266/0.6837, allocations: 0.5775 MB / 0.713 GB, free: 15.53 MB / 0.6042 GB