Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadModel(Buildings): time 4.255/4.255, allocations: 464.6 MB / 476.8 MB, free: 2.098 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.175e-05/4.133e-05, allocations: 4 kB / 0.5731 GB, free: 5.703 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2087, allocations: 107.2 MB / 0.6778 GB, free: 10.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7716/0.9803, allocations: 131.7 MB / 0.8064 GB, free: 12.53 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003212/0.9807, allocations: 79.12 kB / 0.8065 GB, free: 12.52 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004604/0.9853, allocations: 0.8849 MB / 0.8074 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.593e-06/0.9854, allocations: 0 / 0.8074 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.123e-06/0.9854, allocations: 0 / 0.8074 GB, free: 12.19 MB / 0.6355 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.0005645/0.986, allocations: 362.2 kB / 0.8077 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.986, allocations: 11.53 kB / 0.8077 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.989e-05/0.9861, allocations: 3.906 kB / 0.8077 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.9863, allocations: 174.3 kB / 0.8079 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.9863, allocations: 0.875 kB / 0.8079 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.9863, allocations: 6.797 kB / 0.8079 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.9866, allocations: 54.7 kB / 0.8079 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.9866, allocations: 4 kB / 0.808 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.9866, allocations: 8.016 kB / 0.808 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.9867, allocations: 0 / 0.808 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.9868, allocations: 15.16 kB / 0.808 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006928/0.9875, allocations: 295.5 kB / 0.8083 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.9877, allocations: 51.33 kB / 0.8083 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.038e-05/0.9878, allocations: 15.48 kB / 0.8083 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.9879, allocations: 0 / 0.8083 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001755/0.9881, allocations: 70.62 kB / 0.8084 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 4.238e-06/0.9881, allocations: 0 / 0.8084 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003126/0.9884, allocations: 76.39 kB / 0.8085 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.9885, allocations: 55.41 kB / 0.8085 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.292e-05/0.9886, allocations: 95.69 kB / 0.8086 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.9886, allocations: 25.7 kB / 0.8086 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.9887, allocations: 93.72 kB / 0.8087 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.9888, allocations: 17.95 kB / 0.8087 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.021e-05/0.9888, allocations: 3.875 kB / 0.8087 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 6.512e-05/0.9889, allocations: 318.3 kB / 0.809 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.431e-05/0.989, allocations: 11.25 kB / 0.8091 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.9891, allocations: 53.73 kB / 0.8091 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.2e-05/0.9892, allocations: 21.33 kB / 0.8091 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.325e-06/0.9892, allocations: 0 / 0.8091 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003041/0.9895, allocations: 80.3 kB / 0.8092 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.9896, allocations: 11.88 kB / 0.8092 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.039e-06/0.9896, allocations: 3.938 kB / 0.8092 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.9897, allocations: 0 / 0.8092 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.9899, allocations: 24.55 kB / 0.8092 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.9899, allocations: 3.906 kB / 0.8092 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.9901, allocations: 21.83 kB / 0.8093 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.9902, allocations: 3.906 kB / 0.8093 GB, free: 10.5 MB / 0.6355 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 8.547e-05/0.9903, allocations: 112.3 kB / 0.8094 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.9903, allocations: 7.719 kB / 0.8094 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002958/0.9906, allocations: 86 kB / 0.8095 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.372e-06/0.9907, allocations: 3.781 kB / 0.8095 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.605e-06/0.9907, allocations: 0 / 0.8095 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.184e-06/0.9907, allocations: 0 / 0.8095 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005101/0.9912, allocations: 336 kB / 0.8098 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.9913, allocations: 0 / 0.8098 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.9914, allocations: 24.95 kB / 0.8098 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.539e-06/0.9915, allocations: 0 / 0.8098 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.9915, allocations: 0 / 0.8098 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.876e-06/0.9915, allocations: 3.812 kB / 0.8098 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.843e-06/0.9916, allocations: 0 / 0.8098 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.9918, allocations: 178.2 kB / 0.81 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.07e-05/0.9919, allocations: 77.11 kB / 0.8101 GB, free: 9.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.992, allocations: 10.81 kB / 0.8101 GB, free: 9.789 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.9922, allocations: 13.73 kB / 0.8101 GB, free: 9.789 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/0.9923, allocations: 3.234 kB / 0.8101 GB, free: 9.789 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.9924, allocations: 4.219 kB / 0.8101 GB, free: 9.789 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.926e-05/0.9924, allocations: 86.75 kB / 0.8102 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.307e-06/0.9924, allocations: 0 / 0.8102 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006185/0.9931, allocations: 15.47 kB / 0.8102 GB, free: 9.707 MB / 0.6355 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.0001476/0.9932, allocations: 114.2 kB / 0.8103 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000234/0.9935, allocations: 38.14 kB / 0.8103 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.081e-06/0.9935, allocations: 0 / 0.8103 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.9937, allocations: 25.34 kB / 0.8104 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.994, allocations: 13.42 kB / 0.8104 GB, free: 9.602 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003607/0.9944, allocations: 88.17 kB / 0.8105 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.995, allocations: 0.6919 MB / 0.8111 GB, free: 24.82 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.404e-05/0.9951, allocations: 6.453 kB / 0.8111 GB, free: 24.82 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.9951, allocations: 11.25 kB / 0.8111 GB, free: 24.82 MB / 0.6511 GB Notification: Performance of SimCode: time 1.882e-06/0.9952, allocations: 3.938 kB / 0.8111 GB, free: 24.81 MB / 0.6511 GB Notification: Performance of Templates: time 0.004782/1, allocations: 0.5784 MB / 0.8117 GB, free: 24.75 MB / 0.6511 GB