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.67/3.67, allocations: 403.3 MB / 415.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 5.472e-05/5.497e-05, allocations: 4 kB / 0.4991 GB, free: 13.43 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.522/0.5221, allocations: 92.69 MB / 0.5896 GB, free: 14.32 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1841/0.7062, allocations: 121 MB / 0.7077 GB, free: 5.211 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.7065, allocations: 87.94 kB / 0.7078 GB, free: 5.125 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.003214/0.7097, allocations: 0.8938 MB / 0.7086 GB, free: 4.23 MB / 0.5886 GB Notification: Performance of FrontEnd: time 4.447e-06/0.7098, allocations: 4 kB / 0.7086 GB, free: 4.227 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.7098, allocations: 0 / 0.7086 GB, free: 4.227 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000499/0.7103, allocations: 350.5 kB / 0.709 GB, free: 3.84 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.7104, allocations: 12.03 kB / 0.709 GB, free: 3.828 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/0.7104, allocations: 11.86 kB / 0.709 GB, free: 3.816 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.7106, allocations: 163.1 kB / 0.7092 GB, free: 3.617 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.7106, allocations: 4 kB / 0.7092 GB, free: 3.613 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.7106, allocations: 7.984 kB / 0.7092 GB, free: 3.605 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.7108, allocations: 53.62 kB / 0.7092 GB, free: 3.547 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.099e-06/0.7108, allocations: 0 / 0.7092 GB, free: 3.547 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.7108, allocations: 0 / 0.7092 GB, free: 3.547 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.333e-06/0.7108, allocations: 3.938 kB / 0.7092 GB, free: 3.543 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.891e-05/0.7109, allocations: 20 kB / 0.7092 GB, free: 3.523 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000457/0.7114, allocations: 276.8 kB / 0.7095 GB, free: 3.203 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.7115, allocations: 46.5 kB / 0.7096 GB, free: 3.148 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.911e-05/0.7116, allocations: 24.98 kB / 0.7096 GB, free: 3.121 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.7116, allocations: 3.938 kB / 0.7096 GB, free: 3.117 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000142/0.7118, allocations: 59.41 kB / 0.7096 GB, free: 3.047 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.61e-06/0.7118, allocations: 4 kB / 0.7096 GB, free: 3.043 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002226/0.712, allocations: 73.53 kB / 0.7097 GB, free: 2.965 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.7121, allocations: 55.41 kB / 0.7098 GB, free: 2.898 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.7122, allocations: 93 kB / 0.7099 GB, free: 2.801 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.7122, allocations: 33.7 kB / 0.7099 GB, free: 2.762 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/0.7123, allocations: 84.2 kB / 0.71 GB, free: 2.676 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.7124, allocations: 19.8 kB / 0.71 GB, free: 2.656 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-06/0.7124, allocations: 0 / 0.71 GB, free: 2.656 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.7125, allocations: 318.8 kB / 0.7103 GB, free: 2.336 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.948e-05/0.7126, allocations: 11.94 kB / 0.7103 GB, free: 2.324 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.549e-05/0.7127, allocations: 35.44 kB / 0.7103 GB, free: 2.277 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.595e-05/0.7128, allocations: 19.98 kB / 0.7104 GB, free: 2.258 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.417e-06/0.7128, allocations: 0 / 0.7104 GB, free: 2.258 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001853/0.713, allocations: 77.53 kB / 0.7104 GB, free: 2.176 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.713, allocations: 4 kB / 0.7104 GB, free: 2.172 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.713, allocations: 0 / 0.7104 GB, free: 2.172 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.7131, allocations: 4 kB / 0.7104 GB, free: 2.168 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.7132, allocations: 19.94 kB / 0.7105 GB, free: 2.148 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.7132, allocations: 3.938 kB / 0.7105 GB, free: 2.145 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.188e-05/0.7133, allocations: 15.98 kB / 0.7105 GB, free: 2.129 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.7134, allocations: 8.094 kB / 0.7105 GB, free: 2.121 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: 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 8.664e-05/0.7135, allocations: 101 kB / 0.7106 GB, free: 2.016 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.7135, allocations: 4 kB / 0.7106 GB, free: 2.012 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002097/0.7137, allocations: 82.3 kB / 0.7107 GB, free: 1.926 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.7137, allocations: 0 / 0.7107 GB, free: 1.926 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.7137, allocations: 3.953 kB / 0.7107 GB, free: 1.922 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.864e-06/0.7137, allocations: 0 / 0.7107 GB, free: 1.922 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004283/0.7142, allocations: 338.8 kB / 0.711 GB, free: 1.535 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.851e-06/0.7142, allocations: 4 kB / 0.711 GB, free: 1.531 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.666e-05/0.7143, allocations: 15.98 kB / 0.711 GB, free: 1.516 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.916e-06/0.7143, allocations: 0 / 0.711 GB, free: 1.516 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.7144, allocations: 3.953 kB / 0.711 GB, free: 1.512 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.563e-06/0.7144, allocations: 0 / 0.711 GB, free: 1.512 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.7144, allocations: 0 / 0.711 GB, free: 1.512 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.7146, allocations: 171.4 kB / 0.7112 GB, free: 1.328 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.7147, allocations: 92.94 kB / 0.7113 GB, free: 1.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.7147, allocations: 0 / 0.7113 GB, free: 1.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.7149, allocations: 19.94 kB / 0.7113 GB, free: 1.199 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.7149, allocations: 4 kB / 0.7113 GB, free: 1.195 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.7149, allocations: 0 / 0.7113 GB, free: 1.195 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 6.36e-05/0.715, allocations: 91.27 kB / 0.7114 GB, free: 1.105 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.18e-07/0.715, allocations: 0 / 0.7114 GB, free: 1.105 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003337/0.7154, allocations: 8 kB / 0.7114 GB, free: 1.098 MB / 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: 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.0001278/0.7155, allocations: 103.5 kB / 0.7115 GB, free: 0.9883 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001478/0.7157, allocations: 39.94 kB / 0.7115 GB, free: 0.9492 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.493e-06/0.7157, allocations: 4 kB / 0.7115 GB, free: 0.9453 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.549e-05/0.7158, allocations: 16 kB / 0.7115 GB, free: 0.9297 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.716, allocations: 7.984 kB / 0.7115 GB, free: 0.9219 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002733/0.7163, allocations: 73.62 kB / 0.7116 GB, free: 0.8281 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.7166, allocations: 0.694 MB / 0.7123 GB, free: 112 kB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.036e-05/0.7167, allocations: 4.328 kB / 0.7123 GB, free: 104 kB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.261e-05/0.7167, allocations: 7.438 kB / 0.7123 GB, free: 96 kB / 0.5886 GB Notification: Performance of SimCode: time 1.425e-06/0.7168, allocations: 0 / 0.7123 GB, free: 96 kB / 0.5886 GB Notification: Performance of Templates: time 0.003184/0.7199, allocations: 0.559 MB / 0.7128 GB, free: 15.54 MB / 0.6042 GB