Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadModel(Buildings): time 4.516/4.516, allocations: 464.7 MB / 476.8 MB, free: 2.184 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.245e-05/3.256e-05, allocations: 4 kB / 0.5731 GB, free: 5.707 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1937, allocations: 107.2 MB / 0.6778 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.741/0.9347, allocations: 131.7 MB / 0.8064 GB, free: 12.51 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/0.9351, allocations: 69.44 kB / 0.8065 GB, free: 12.51 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004643/0.9397, allocations: 0.8754 MB / 0.8073 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.148e-06/0.9398, allocations: 3.844 kB / 0.8073 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.029e-06/0.9398, allocations: 0 / 0.8073 GB, free: 12.17 MB / 0.6355 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.0005916/0.9404, allocations: 359.7 kB / 0.8077 GB, free: 11.82 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.9405, allocations: 7.562 kB / 0.8077 GB, free: 11.82 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.9406, allocations: 7.781 kB / 0.8077 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.9407, allocations: 166.8 kB / 0.8079 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.9408, allocations: 6.828 kB / 0.8079 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.9408, allocations: 3.5 kB / 0.8079 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.941, allocations: 43.62 kB / 0.8079 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.941, allocations: 0 / 0.8079 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.9411, allocations: 15.34 kB / 0.8079 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.046e-06/0.9411, allocations: 4 kB / 0.8079 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.9412, allocations: 14.66 kB / 0.8079 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/0.9418, allocations: 274.1 kB / 0.8082 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.942, allocations: 39.12 kB / 0.8082 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.913e-05/0.9421, allocations: 25.27 kB / 0.8083 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.9421, allocations: 4 kB / 0.8083 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.9423, allocations: 67.58 kB / 0.8083 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 4.586e-06/0.9424, allocations: 3.938 kB / 0.8083 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0003264/0.9427, allocations: 72.28 kB / 0.8084 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.9428, allocations: 54.91 kB / 0.8085 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.288e-05/0.9429, allocations: 96.12 kB / 0.8085 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.9429, allocations: 25.7 kB / 0.8086 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.471e-05/0.943, allocations: 94.5 kB / 0.8087 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.943, allocations: 11.64 kB / 0.8087 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.114e-05/0.9431, allocations: 3.25 kB / 0.8087 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 6.79e-05/0.9432, allocations: 321.6 kB / 0.809 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.37e-05/0.9432, allocations: 10.88 kB / 0.809 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.469e-05/0.9434, allocations: 34.19 kB / 0.809 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.481e-05/0.9435, allocations: 22.22 kB / 0.809 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.9435, allocations: 0 / 0.809 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002568/0.9438, allocations: 80.03 kB / 0.8091 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.9438, allocations: 3.906 kB / 0.8091 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.264e-06/0.9438, allocations: 0 / 0.8091 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.9439, allocations: 7.844 kB / 0.8091 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.9441, allocations: 14.23 kB / 0.8092 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.9441, allocations: 8.234 kB / 0.8092 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.9443, allocations: 11.05 kB / 0.8092 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.9444, allocations: 3.906 kB / 0.8092 GB, free: 10.49 MB / 0.6355 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.514e-05/0.9445, allocations: 118.9 kB / 0.8093 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.9445, allocations: 0 / 0.8093 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002807/0.9448, allocations: 77.89 kB / 0.8094 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.9448, allocations: 3.938 kB / 0.8094 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.9449, allocations: 6.812 kB / 0.8094 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.104e-06/0.9449, allocations: 0 / 0.8094 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005022/0.9454, allocations: 337.8 kB / 0.8097 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.813e-06/0.9454, allocations: 0 / 0.8097 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001463/0.9456, allocations: 13.56 kB / 0.8097 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.9456, allocations: 3.938 kB / 0.8097 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.9457, allocations: 0 / 0.8097 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.964e-06/0.9457, allocations: 448 / 0.8097 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.9457, allocations: 0 / 0.8097 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/0.946, allocations: 177.9 kB / 0.8099 GB, free: 9.883 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.102e-05/0.9461, allocations: 81.02 kB / 0.81 GB, free: 9.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.9461, allocations: 0 / 0.81 GB, free: 9.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.9464, allocations: 10.34 kB / 0.81 GB, free: 9.785 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.9464, allocations: 14.08 kB / 0.81 GB, free: 9.781 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.9465, allocations: 0 / 0.81 GB, free: 9.781 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.86e-05/0.9466, allocations: 89.3 kB / 0.8101 GB, free: 9.703 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.217e-06/0.9466, allocations: 0 / 0.8101 GB, free: 9.703 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006039/0.9472, allocations: 14.97 kB / 0.8101 GB, free: 9.699 MB / 0.6355 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.0001364/0.9474, allocations: 101.3 kB / 0.8102 GB, free: 9.613 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002187/0.9476, allocations: 38.53 kB / 0.8102 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.417e-06/0.9476, allocations: 0 / 0.8102 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.9478, allocations: 18.31 kB / 0.8102 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005955/0.9484, allocations: 19.45 kB / 0.8102 GB, free: 9.602 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005912/0.949, allocations: 87.38 kB / 0.8103 GB, free: 9.527 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006903/0.9498, allocations: 0.6826 MB / 0.811 GB, free: 24.83 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001035/0.9499, allocations: 8.062 kB / 0.811 GB, free: 24.82 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/0.95, allocations: 11.38 kB / 0.811 GB, free: 24.82 MB / 0.6511 GB Notification: Performance of SimCode: time 3.857e-06/0.95, allocations: 0 / 0.811 GB, free: 24.82 MB / 0.6511 GB Notification: Performance of Templates: time 0.005671/0.9557, allocations: 0.5392 MB / 0.8115 GB, free: 24.76 MB / 0.6511 GB