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.608/3.608, allocations: 403.3 MB / 415.4 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.653e-05/3.664e-05, allocations: 7.938 kB / 0.499 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5034/0.5035, allocations: 92.68 MB / 0.5895 GB, free: 14.5 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1794/0.6829, allocations: 121.2 MB / 0.7079 GB, free: 5.102 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.6832, allocations: 83.94 kB / 0.708 GB, free: 5.02 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003495/0.6868, allocations: 0.9764 MB / 0.709 GB, free: 4.043 MB / 0.5886 GB Notification: Performance of FrontEnd: time 4.44e-06/0.6868, allocations: 4 kB / 0.709 GB, free: 4.039 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.529e-06/0.6868, allocations: 0 / 0.709 GB, free: 4.039 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.0005397/0.6874, allocations: 362.5 kB / 0.7093 GB, free: 3.641 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.6874, allocations: 8.031 kB / 0.7093 GB, free: 3.633 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/0.6875, allocations: 11.86 kB / 0.7093 GB, free: 3.621 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.6876, allocations: 175 kB / 0.7095 GB, free: 3.41 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.6877, allocations: 0 / 0.7095 GB, free: 3.41 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.6877, allocations: 12 kB / 0.7095 GB, free: 3.398 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.6879, allocations: 69.55 kB / 0.7096 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.6879, allocations: 8 kB / 0.7096 GB, free: 3.316 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.6879, allocations: 0 / 0.7096 GB, free: 3.316 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.6879, allocations: 0 / 0.7096 GB, free: 3.316 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.6881, allocations: 32 kB / 0.7096 GB, free: 3.285 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006728/0.6888, allocations: 328.6 kB / 0.7099 GB, free: 2.914 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.6889, allocations: 70.52 kB / 0.71 GB, free: 2.836 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.865e-05/0.689, allocations: 28.86 kB / 0.71 GB, free: 2.805 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.6891, allocations: 3.984 kB / 0.71 GB, free: 2.801 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.6893, allocations: 79.39 kB / 0.7101 GB, free: 2.711 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 2.704e-06/0.6893, allocations: 0 / 0.7101 GB, free: 2.711 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003352/0.6896, allocations: 121.6 kB / 0.7102 GB, free: 2.586 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.6897, allocations: 59.39 kB / 0.7103 GB, free: 2.516 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.467e-05/0.6898, allocations: 97 kB / 0.7104 GB, free: 2.414 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.6899, allocations: 29.7 kB / 0.7104 GB, free: 2.379 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.19e-05/0.6899, allocations: 88.36 kB / 0.7105 GB, free: 2.285 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.69, allocations: 27.7 kB / 0.7105 GB, free: 2.258 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.69, allocations: 0 / 0.7105 GB, free: 2.258 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.6902, allocations: 318.8 kB / 0.7108 GB, free: 1.938 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-05/0.6903, allocations: 31.94 kB / 0.7108 GB, free: 1.906 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.6904, allocations: 55.38 kB / 0.7109 GB, free: 1.84 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.427e-05/0.6905, allocations: 35.97 kB / 0.7109 GB, free: 1.805 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.638e-06/0.6905, allocations: 0 / 0.7109 GB, free: 1.805 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002645/0.6908, allocations: 113.5 kB / 0.711 GB, free: 1.688 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.6908, allocations: 13.66 kB / 0.7111 GB, free: 1.676 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.493e-06/0.6908, allocations: 0 / 0.7111 GB, free: 1.676 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.6908, allocations: 0 / 0.7111 GB, free: 1.676 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.691, allocations: 31.88 kB / 0.7111 GB, free: 1.645 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.702e-06/0.6911, allocations: 0 / 0.7111 GB, free: 1.645 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.6912, allocations: 19.89 kB / 0.7111 GB, free: 1.625 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.6912, allocations: 4 kB / 0.7111 GB, free: 1.621 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 0.000104/0.6913, allocations: 116.9 kB / 0.7112 GB, free: 1.5 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.03e-05/0.6913, allocations: 4 kB / 0.7112 GB, free: 1.496 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.6916, allocations: 118.3 kB / 0.7113 GB, free: 1.375 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.271e-06/0.6917, allocations: 0 / 0.7113 GB, free: 1.375 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.664e-06/0.6917, allocations: 7.891 kB / 0.7113 GB, free: 1.367 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.949e-06/0.6917, allocations: 0 / 0.7113 GB, free: 1.367 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005461/0.6922, allocations: 382.3 kB / 0.7117 GB, free: 0.9375 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.703e-06/0.6923, allocations: 4 kB / 0.7117 GB, free: 0.9336 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.6924, allocations: 15.98 kB / 0.7117 GB, free: 0.918 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.056e-06/0.6924, allocations: 4.266 kB / 0.7117 GB, free: 0.9141 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.6924, allocations: 8.203 kB / 0.7117 GB, free: 0.9062 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.6925, allocations: 0 / 0.7117 GB, free: 0.9062 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.212e-06/0.6925, allocations: 7.938 kB / 0.7117 GB, free: 0.8984 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.6928, allocations: 207.5 kB / 0.7119 GB, free: 0.6797 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.6928, allocations: 88.95 kB / 0.712 GB, free: 0.5742 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.6929, allocations: 4 kB / 0.712 GB, free: 0.5703 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.6931, allocations: 19.94 kB / 0.7121 GB, free: 0.5508 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.6932, allocations: 7.984 kB / 0.7121 GB, free: 0.543 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.6932, allocations: 4 kB / 0.7121 GB, free: 0.5391 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.712e-05/0.6933, allocations: 83.28 kB / 0.7121 GB, free: 468 kB / 0.5886 GB Notification: Performance of sort global known variables: time 7.01e-07/0.6933, allocations: 0 / 0.7121 GB, free: 468 kB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003477/0.6936, allocations: 20 kB / 0.7122 GB, free: 448 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.00016/0.6938, allocations: 115 kB / 0.7123 GB, free: 324 kB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002228/0.694, allocations: 71.94 kB / 0.7123 GB, free: 252 kB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.009e-06/0.6941, allocations: 0 / 0.7123 GB, free: 252 kB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.739e-05/0.6942, allocations: 28 kB / 0.7124 GB, free: 224 kB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.6944, allocations: 11.98 kB / 0.7124 GB, free: 212 kB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000331/0.6947, allocations: 101.5 kB / 0.7125 GB, free: 88 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.6951, allocations: 0.6928 MB / 0.7132 GB, free: 15.37 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.793e-05/0.6952, allocations: 12.36 kB / 0.7132 GB, free: 15.36 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.6952, allocations: 11.44 kB / 0.7132 GB, free: 15.34 MB / 0.6042 GB Notification: Performance of SimCode: time 1.543e-06/0.6952, allocations: 0 / 0.7132 GB, free: 15.34 MB / 0.6042 GB Notification: Performance of Templates: time 0.003567/0.6988, allocations: 0.7494 MB / 0.7139 GB, free: 14.6 MB / 0.6042 GB