Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadModel(Buildings): time 3.562/3.562, allocations: 403.3 MB / 415.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 5.92e-05/5.943e-05, allocations: 11.92 kB / 0.4991 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4925/0.4926, allocations: 92.69 MB / 0.5896 GB, free: 14.5 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1949/0.6875, allocations: 121.2 MB / 0.708 GB, free: 5.102 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.6878, allocations: 87.94 kB / 0.708 GB, free: 5.016 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003509/0.6914, allocations: 0.9686 MB / 0.709 GB, free: 4.047 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.012e-06/0.6914, allocations: 0 / 0.709 GB, free: 4.047 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.6914, allocations: 4 kB / 0.709 GB, free: 4.043 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005395/0.692, allocations: 362.5 kB / 0.7093 GB, free: 3.645 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.692, allocations: 8.031 kB / 0.7094 GB, free: 3.637 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.6921, allocations: 11.86 kB / 0.7094 GB, free: 3.625 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.6922, allocations: 175 kB / 0.7095 GB, free: 3.414 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.6923, allocations: 7.938 kB / 0.7095 GB, free: 3.406 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.6923, allocations: 4 kB / 0.7095 GB, free: 3.402 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.6925, allocations: 69.61 kB / 0.7096 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.392e-06/0.6925, allocations: 0 / 0.7096 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.6925, allocations: 4 kB / 0.7096 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.921e-06/0.6926, allocations: 4 kB / 0.7096 GB, free: 3.32 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.907e-05/0.6927, allocations: 28 kB / 0.7096 GB, free: 3.293 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.6933, allocations: 332.6 kB / 0.71 GB, free: 2.918 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.6935, allocations: 70.52 kB / 0.71 GB, free: 2.84 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.875e-05/0.6936, allocations: 28.86 kB / 0.7101 GB, free: 2.809 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.6937, allocations: 4 kB / 0.7101 GB, free: 2.805 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001737/0.6938, allocations: 71.39 kB / 0.7101 GB, free: 2.723 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 2.95e-06/0.6939, allocations: 4 kB / 0.7101 GB, free: 2.719 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003096/0.6942, allocations: 113.7 kB / 0.7102 GB, free: 2.602 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.6943, allocations: 59.48 kB / 0.7103 GB, free: 2.531 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.266e-05/0.6944, allocations: 104.9 kB / 0.7104 GB, free: 2.422 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.6944, allocations: 33.7 kB / 0.7104 GB, free: 2.383 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.406e-05/0.6945, allocations: 88.36 kB / 0.7105 GB, free: 2.289 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.807e-05/0.6945, allocations: 23.7 kB / 0.7105 GB, free: 2.266 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.709e-06/0.6945, allocations: 4 kB / 0.7105 GB, free: 2.262 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.6947, allocations: 318.8 kB / 0.7108 GB, free: 1.941 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.944e-05/0.6948, allocations: 20 kB / 0.7109 GB, free: 1.922 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.6949, allocations: 64.3 kB / 0.7109 GB, free: 1.848 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.695, allocations: 28.09 kB / 0.7109 GB, free: 1.82 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.927e-06/0.6951, allocations: 3.938 kB / 0.711 GB, free: 1.816 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002651/0.6953, allocations: 117.5 kB / 0.7111 GB, free: 1.695 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.6954, allocations: 9.406 kB / 0.7111 GB, free: 1.688 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.85e-06/0.6954, allocations: 0 / 0.7111 GB, free: 1.688 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.6954, allocations: 96 / 0.7111 GB, free: 1.688 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.6956, allocations: 31.94 kB / 0.7111 GB, free: 1.656 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.6956, allocations: 3.938 kB / 0.7111 GB, free: 1.652 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.6957, allocations: 19.89 kB / 0.7111 GB, free: 1.633 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.6957, allocations: 4 kB / 0.7111 GB, free: 1.629 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.848e-05/0.6959, allocations: 112.5 kB / 0.7112 GB, free: 1.516 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.6959, allocations: 7.984 kB / 0.7112 GB, free: 1.508 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002897/0.6962, allocations: 126.2 kB / 0.7114 GB, free: 1.379 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.414e-06/0.6962, allocations: 0 / 0.7114 GB, free: 1.379 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.82e-06/0.6962, allocations: 3.953 kB / 0.7114 GB, free: 1.375 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.159e-06/0.6962, allocations: 0 / 0.7114 GB, free: 1.375 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000541/0.6968, allocations: 378.4 kB / 0.7117 GB, free: 0.9492 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.055e-06/0.6968, allocations: 4 kB / 0.7117 GB, free: 0.9453 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.6969, allocations: 15.92 kB / 0.7118 GB, free: 0.9297 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.69e-06/0.6969, allocations: 256 / 0.7118 GB, free: 0.9297 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.697, allocations: 15.95 kB / 0.7118 GB, free: 0.9141 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.513e-06/0.697, allocations: 4 kB / 0.7118 GB, free: 0.9102 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.697, allocations: 192 / 0.7118 GB, free: 0.9102 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.6973, allocations: 203.4 kB / 0.712 GB, free: 0.6953 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.855e-05/0.6974, allocations: 92.94 kB / 0.7121 GB, free: 0.5859 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.6974, allocations: 4 kB / 0.7121 GB, free: 0.582 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.6976, allocations: 19.94 kB / 0.7121 GB, free: 0.5625 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.85e-05/0.6977, allocations: 7.938 kB / 0.7121 GB, free: 0.5547 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.6977, allocations: 7.984 kB / 0.7121 GB, free: 0.5469 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.822e-05/0.6978, allocations: 83.28 kB / 0.7122 GB, free: 476 kB / 0.5886 GB Notification: Performance of sort global known variables: time 7.49e-07/0.6978, allocations: 0 / 0.7122 GB, free: 476 kB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003299/0.6981, allocations: 16 kB / 0.7122 GB, free: 460 kB / 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001392/0.6983, allocations: 107 kB / 0.7123 GB, free: 344 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002184/0.6985, allocations: 75.92 kB / 0.7124 GB, free: 268 kB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.6985, allocations: 0 / 0.7124 GB, free: 268 kB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.787e-05/0.6986, allocations: 35.94 kB / 0.7124 GB, free: 232 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.6989, allocations: 8.516 kB / 0.7124 GB, free: 224 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000326/0.6992, allocations: 97.52 kB / 0.7125 GB, free: 104 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.6996, allocations: 0.6887 MB / 0.7132 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.371e-05/0.6996, allocations: 12.61 kB / 0.7132 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.061e-05/0.6997, allocations: 11.44 kB / 0.7132 GB, free: 15.36 MB / 0.6042 GB Notification: Performance of SimCode: time 3.302e-06/0.6997, allocations: 4 kB / 0.7132 GB, free: 15.36 MB / 0.6042 GB Notification: Performance of Templates: time 0.003707/0.7034, allocations: 0.7465 MB / 0.7139 GB, free: 14.62 MB / 0.6042 GB