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.583/3.583, allocations: 402 MB / 415.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.184e-05, allocations: 4 kB / 0.5003 GB, free: 8.246 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1687, allocations: 92.69 MB / 0.5909 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5834/0.7522, allocations: 121 MB / 0.709 GB, free: 5.488 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.7526, allocations: 87.95 kB / 0.7091 GB, free: 5.402 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 0.003313/0.7559, allocations: 0.9171 MB / 0.71 GB, free: 4.488 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.396e-06/0.7559, allocations: 0 / 0.71 GB, free: 4.488 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.331e-05/0.756, allocations: 0 / 0.71 GB, free: 4.488 MB / 0.573 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.0005298/0.7565, allocations: 359.3 kB / 0.7103 GB, free: 4.09 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.7566, allocations: 8.031 kB / 0.7103 GB, free: 4.082 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.835e-05/0.7566, allocations: 11.86 kB / 0.7104 GB, free: 4.07 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.7568, allocations: 167 kB / 0.7105 GB, free: 3.867 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.7568, allocations: 8.797 kB / 0.7105 GB, free: 3.859 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.7568, allocations: 0 / 0.7105 GB, free: 3.859 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.7571, allocations: 69.67 kB / 0.7106 GB, free: 3.785 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.965e-06/0.7571, allocations: 0 / 0.7106 GB, free: 3.785 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.7572, allocations: 3.984 kB / 0.7106 GB, free: 3.781 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.896e-06/0.7572, allocations: 4 kB / 0.7106 GB, free: 3.777 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002458/0.7574, allocations: 55.86 kB / 0.7106 GB, free: 3.723 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00057/0.758, allocations: 292.9 kB / 0.7109 GB, free: 3.387 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.7582, allocations: 66.55 kB / 0.711 GB, free: 3.312 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.7583, allocations: 0 / 0.711 GB, free: 3.312 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/0.7585, allocations: 85.41 kB / 0.7111 GB, free: 3.219 MB / 0.573 GB Notification: Performance of pre-optimization done (n=7): time 2.471e-06/0.7585, allocations: 0.9844 kB / 0.7111 GB, free: 3.219 MB / 0.573 GB Notification: Performance of matching and sorting (n=7): time 0.0005486/0.7591, allocations: 145.6 kB / 0.7112 GB, free: 3.07 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.7592, allocations: 55.41 kB / 0.7113 GB, free: 3.004 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.58e-05/0.7593, allocations: 101 kB / 0.7114 GB, free: 2.898 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.7593, allocations: 25.7 kB / 0.7114 GB, free: 2.867 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 6.331e-05/0.7594, allocations: 96.08 kB / 0.7115 GB, free: 2.77 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 3.051e-05/0.7594, allocations: 15.7 kB / 0.7115 GB, free: 2.754 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.828e-06/0.7595, allocations: 8 kB / 0.7115 GB, free: 2.746 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.7596, allocations: 310.8 kB / 0.7118 GB, free: 2.434 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.7598, allocations: 38.2 kB / 0.7118 GB, free: 2.398 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.76, allocations: 64.27 kB / 0.7119 GB, free: 2.32 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.7601, allocations: 39.98 kB / 0.7119 GB, free: 2.281 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.7602, allocations: 0 / 0.7119 GB, free: 2.281 MB / 0.573 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003794/0.7605, allocations: 121.6 kB / 0.712 GB, free: 2.156 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.7606, allocations: 4 kB / 0.7121 GB, free: 2.152 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1e-05/0.7606, allocations: 12.11 kB / 0.7121 GB, free: 2.141 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.7606, allocations: 0 / 0.7121 GB, free: 2.141 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.7608, allocations: 23.94 kB / 0.7121 GB, free: 2.117 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.906e-06/0.7608, allocations: 0 / 0.7121 GB, free: 2.117 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.7609, allocations: 19.83 kB / 0.7121 GB, free: 2.098 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.7609, allocations: 8 kB / 0.7121 GB, free: 2.09 MB / 0.573 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 0.0001218/0.7611, allocations: 120 kB / 0.7122 GB, free: 1.965 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.7611, allocations: 8 kB / 0.7122 GB, free: 1.957 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003922/0.7615, allocations: 114 kB / 0.7123 GB, free: 1.844 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.607e-06/0.7615, allocations: 0 / 0.7123 GB, free: 1.844 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.7615, allocations: 7.953 kB / 0.7124 GB, free: 1.836 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.542e-06/0.7616, allocations: 0 / 0.7124 GB, free: 1.836 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006515/0.7622, allocations: 375.2 kB / 0.7127 GB, free: 1.414 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.273e-06/0.7622, allocations: 0 / 0.7127 GB, free: 1.414 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.7624, allocations: 12 kB / 0.7127 GB, free: 1.402 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.284e-06/0.7624, allocations: 7.938 kB / 0.7127 GB, free: 1.395 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.7624, allocations: 7.938 kB / 0.7127 GB, free: 1.387 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.717e-06/0.7624, allocations: 256 / 0.7127 GB, free: 1.387 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.232e-06/0.7624, allocations: 0 / 0.7127 GB, free: 1.387 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.7628, allocations: 207.5 kB / 0.7129 GB, free: 1.168 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-05/0.7629, allocations: 89 kB / 0.713 GB, free: 1.062 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.7629, allocations: 0 / 0.713 GB, free: 1.062 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.7631, allocations: 19.94 kB / 0.713 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.7632, allocations: 4 kB / 0.713 GB, free: 1.039 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.7632, allocations: 4 kB / 0.713 GB, free: 1.035 MB / 0.573 GB Notification: Performance of sorting global known variables: time 6.14e-05/0.7632, allocations: 83.27 kB / 0.7131 GB, free: 0.9531 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.92e-07/0.7633, allocations: 192 / 0.7131 GB, free: 0.9531 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0003355/0.7636, allocations: 16 kB / 0.7131 GB, free: 0.9375 MB / 0.573 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.0001528/0.7638, allocations: 107 kB / 0.7132 GB, free: 0.8203 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0003439/0.7641, allocations: 88.61 kB / 0.7133 GB, free: 0.7344 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.16e-06/0.7642, allocations: 0 / 0.7133 GB, free: 0.7344 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.7643, allocations: 35.92 kB / 0.7134 GB, free: 0.6992 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.7646, allocations: 10.06 kB / 0.7134 GB, free: 0.6914 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004053/0.765, allocations: 145.4 kB / 0.7135 GB, free: 0.5156 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.7654, allocations: 0.6887 MB / 0.7142 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.582e-05/0.7654, allocations: 4.188 kB / 0.7142 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.7655, allocations: 11.44 kB / 0.7142 GB, free: 15.79 MB / 0.5886 GB Notification: Performance of SimCode: time 1.536e-06/0.7655, allocations: 0 / 0.7142 GB, free: 15.79 MB / 0.5886 GB Notification: Performance of Templates: time 0.003317/0.7688, allocations: 0.5761 MB / 0.7148 GB, free: 15.21 MB / 0.5886 GB