Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadModel(Buildings): time 3.647/3.647, allocations: 402 MB / 415.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.472e-05/2.482e-05, allocations: 0 / 0.5003 GB, free: 8.246 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2061, allocations: 92.69 MB / 0.5909 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5782/0.7844, allocations: 121 MB / 0.709 GB, free: 5.527 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.7847, allocations: 87.95 kB / 0.7091 GB, free: 5.441 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 0.003244/0.788, allocations: 0.8957 MB / 0.71 GB, free: 4.551 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.669e-06/0.788, allocations: 0 / 0.71 GB, free: 4.551 MB / 0.573 GB Notification: Performance of Transformations before backend: time 6.708e-06/0.788, allocations: 0 / 0.71 GB, free: 4.551 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005113/0.7885, allocations: 359.3 kB / 0.7103 GB, free: 4.152 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.7886, allocations: 8.031 kB / 0.7103 GB, free: 4.145 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.7886, allocations: 11.86 kB / 0.7103 GB, free: 4.133 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.7888, allocations: 163 kB / 0.7105 GB, free: 3.934 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.7888, allocations: 0.875 kB / 0.7105 GB, free: 3.934 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.7888, allocations: 4 kB / 0.7105 GB, free: 3.93 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.7891, allocations: 73.66 kB / 0.7105 GB, free: 3.852 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.7891, allocations: 3.984 kB / 0.7106 GB, free: 3.848 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.7891, allocations: 3.938 kB / 0.7106 GB, free: 3.844 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.106e-06/0.7892, allocations: 0 / 0.7106 GB, free: 3.844 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.7894, allocations: 55.95 kB / 0.7106 GB, free: 3.789 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004668/0.7899, allocations: 276.8 kB / 0.7109 GB, free: 3.469 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.7901, allocations: 62.55 kB / 0.7109 GB, free: 3.398 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.7902, allocations: 7.984 kB / 0.7109 GB, free: 3.391 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.7904, allocations: 79.45 kB / 0.711 GB, free: 3.301 MB / 0.573 GB Notification: Performance of pre-optimization done (n=6): time 2.683e-06/0.7904, allocations: 1.094 kB / 0.711 GB, free: 3.301 MB / 0.573 GB Notification: Performance of matching and sorting (n=6): time 0.0005428/0.791, allocations: 141.5 kB / 0.7112 GB, free: 3.156 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.791, allocations: 51.41 kB / 0.7112 GB, free: 3.094 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.691e-05/0.7911, allocations: 101 kB / 0.7113 GB, free: 2.988 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.7912, allocations: 25.7 kB / 0.7113 GB, free: 2.957 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 6.47e-05/0.7913, allocations: 92.14 kB / 0.7114 GB, free: 2.863 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.7913, allocations: 15.8 kB / 0.7114 GB, free: 2.848 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.566e-06/0.7913, allocations: 0 / 0.7114 GB, free: 2.848 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.7915, allocations: 314.8 kB / 0.7117 GB, free: 2.531 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.7916, allocations: 27.92 kB / 0.7118 GB, free: 2.504 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.7918, allocations: 61.59 kB / 0.7118 GB, free: 2.434 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.7919, allocations: 31.97 kB / 0.7118 GB, free: 2.402 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.75e-06/0.7919, allocations: 0 / 0.7118 GB, free: 2.402 MB / 0.573 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003467/0.7923, allocations: 113.5 kB / 0.7119 GB, free: 2.285 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.7923, allocations: 6.969 kB / 0.712 GB, free: 2.281 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.7923, allocations: 0 / 0.712 GB, free: 2.281 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.7924, allocations: 4 kB / 0.712 GB, free: 2.277 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.7925, allocations: 24.02 kB / 0.712 GB, free: 2.254 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.7925, allocations: 3.953 kB / 0.712 GB, free: 2.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.263e-05/0.7926, allocations: 15.98 kB / 0.712 GB, free: 2.234 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.7927, allocations: 4 kB / 0.712 GB, free: 2.23 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001137/0.7928, allocations: 114.8 kB / 0.7121 GB, free: 2.109 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.7928, allocations: 0 / 0.7121 GB, free: 2.109 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003796/0.7932, allocations: 118 kB / 0.7122 GB, free: 1.992 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.184e-06/0.7932, allocations: 0 / 0.7122 GB, free: 1.992 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.52e-06/0.7932, allocations: 0 / 0.7122 GB, free: 1.992 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.7932, allocations: 7.953 kB / 0.7122 GB, free: 1.984 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006162/0.7939, allocations: 366.5 kB / 0.7126 GB, free: 1.57 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.02e-06/0.7939, allocations: 0 / 0.7126 GB, free: 1.57 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.506e-05/0.794, allocations: 20.55 kB / 0.7126 GB, free: 1.551 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.286e-06/0.794, allocations: 7.875 kB / 0.7126 GB, free: 1.543 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.7941, allocations: 0 / 0.7126 GB, free: 1.543 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.525e-06/0.7941, allocations: 7.953 kB / 0.7126 GB, free: 1.535 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2e-06/0.7941, allocations: 0 / 0.7126 GB, free: 1.535 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003978/0.7945, allocations: 203.5 kB / 0.7128 GB, free: 1.32 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 5.802e-05/0.7946, allocations: 81.02 kB / 0.7129 GB, free: 1.223 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.7946, allocations: 12 kB / 0.7129 GB, free: 1.211 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.7948, allocations: 11.98 kB / 0.7129 GB, free: 1.199 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.7948, allocations: 7.938 kB / 0.7129 GB, free: 1.191 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.7948, allocations: 4 kB / 0.7129 GB, free: 1.188 MB / 0.573 GB Notification: Performance of sorting global known variables: time 6.119e-05/0.7949, allocations: 83.28 kB / 0.713 GB, free: 1.105 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.88e-07/0.7949, allocations: 0 / 0.713 GB, free: 1.105 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0003154/0.7953, allocations: 8 kB / 0.713 GB, free: 1.098 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001472/0.7954, allocations: 121.2 kB / 0.7131 GB, free: 0.9688 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0003135/0.7957, allocations: 67.95 kB / 0.7132 GB, free: 0.9023 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.129e-06/0.7958, allocations: 0 / 0.7132 GB, free: 0.9023 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.7959, allocations: 40.11 kB / 0.7132 GB, free: 0.8633 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.7962, allocations: 11.98 kB / 0.7132 GB, free: 0.8516 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003754/0.7965, allocations: 133.2 kB / 0.7134 GB, free: 0.6914 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.7969, allocations: 0.6926 MB / 0.714 GB, free: 15.97 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.294e-05/0.797, allocations: 192 / 0.714 GB, free: 15.97 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.272e-05/0.797, allocations: 11.44 kB / 0.7141 GB, free: 15.96 MB / 0.5886 GB Notification: Performance of SimCode: time 1.486e-06/0.7971, allocations: 0 / 0.7141 GB, free: 15.96 MB / 0.5886 GB Notification: Performance of Templates: time 0.003173/0.8002, allocations: 0.5392 MB / 0.7146 GB, free: 15.42 MB / 0.5886 GB