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.798/3.798, allocations: 403.9 MB / 411 MB, free: 412 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.084e-05/2.112e-05, allocations: 7.938 kB / 0.4942 GB, free: 1.379 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6078/0.6078, allocations: 92.69 MB / 0.5847 GB, free: 2.375 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.8195, allocations: 120.3 MB / 0.7021 GB, free: 9.945 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004473/0.82, allocations: 87.94 kB / 0.7022 GB, free: 9.859 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.005165/0.8252, allocations: 0.8938 MB / 0.7031 GB, free: 8.965 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.724e-06/0.8252, allocations: 0 / 0.7031 GB, free: 8.965 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.758e-06/0.8253, allocations: 0 / 0.7031 GB, free: 8.965 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.0006804/0.826, allocations: 346.5 kB / 0.7034 GB, free: 8.582 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.826, allocations: 15.97 kB / 0.7034 GB, free: 8.566 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.048e-05/0.8261, allocations: 11.84 kB / 0.7035 GB, free: 8.555 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.8263, allocations: 163.1 kB / 0.7036 GB, free: 8.355 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.8263, allocations: 0 / 0.7036 GB, free: 8.355 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.8264, allocations: 4 kB / 0.7036 GB, free: 8.352 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001467/0.8265, allocations: 19.94 kB / 0.7036 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.8267, allocations: 45.69 kB / 0.7037 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.8268, allocations: 0 / 0.7037 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.8268, allocations: 0 / 0.7037 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.8268, allocations: 7.891 kB / 0.7037 GB, free: 8.273 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006559/0.8275, allocations: 261.3 kB / 0.7039 GB, free: 7.98 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.8277, allocations: 42.56 kB / 0.704 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.614e-05/0.8278, allocations: 20.98 kB / 0.704 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.8278, allocations: 0 / 0.704 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001874/0.828, allocations: 59.41 kB / 0.7041 GB, free: 7.836 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 3.744e-06/0.8281, allocations: 0 / 0.7041 GB, free: 7.836 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.000352/0.8284, allocations: 77.48 kB / 0.7041 GB, free: 7.754 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.8285, allocations: 55.39 kB / 0.7042 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.8286, allocations: 97.25 kB / 0.7043 GB, free: 7.586 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.8287, allocations: 25.7 kB / 0.7043 GB, free: 7.555 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.212e-05/0.8288, allocations: 84.14 kB / 0.7044 GB, free: 7.469 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.639e-05/0.8288, allocations: 15.8 kB / 0.7044 GB, free: 7.453 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.996e-06/0.8289, allocations: 4 kB / 0.7044 GB, free: 7.449 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.829, allocations: 314.8 kB / 0.7047 GB, free: 7.133 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.517e-05/0.8291, allocations: 12 kB / 0.7047 GB, free: 7.121 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.375e-05/0.8292, allocations: 31.44 kB / 0.7047 GB, free: 7.078 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.426e-05/0.8293, allocations: 15.98 kB / 0.7048 GB, free: 7.062 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.8294, allocations: 4 kB / 0.7048 GB, free: 7.059 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002866/0.8297, allocations: 69.53 kB / 0.7048 GB, free: 6.984 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.8297, allocations: 8 kB / 0.7048 GB, free: 6.977 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.8297, allocations: 0 / 0.7048 GB, free: 6.977 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.8298, allocations: 64 / 0.7048 GB, free: 6.977 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.83, allocations: 23.92 kB / 0.7049 GB, free: 6.953 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.83, allocations: 7.953 kB / 0.7049 GB, free: 6.945 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.8302, allocations: 16.08 kB / 0.7049 GB, free: 6.93 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.8303, allocations: 0 / 0.7049 GB, free: 6.93 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 0.0001255/0.8304, allocations: 105 kB / 0.705 GB, free: 6.82 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.8305, allocations: 0 / 0.705 GB, free: 6.82 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003257/0.8308, allocations: 82.23 kB / 0.7051 GB, free: 6.73 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.799e-06/0.8308, allocations: 0 / 0.7051 GB, free: 6.73 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.8309, allocations: 0 / 0.7051 GB, free: 6.73 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.8309, allocations: 3.953 kB / 0.7051 GB, free: 6.727 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006063/0.8315, allocations: 303 kB / 0.7053 GB, free: 6.387 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.021e-06/0.8315, allocations: 0 / 0.7053 GB, free: 6.387 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.8317, allocations: 23.92 kB / 0.7054 GB, free: 6.363 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.966e-06/0.8318, allocations: 3.938 kB / 0.7054 GB, free: 6.359 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.8318, allocations: 0 / 0.7054 GB, free: 6.359 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.48e-06/0.8318, allocations: 3.938 kB / 0.7054 GB, free: 6.355 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/0.8318, allocations: 3.953 kB / 0.7054 GB, free: 6.352 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003275/0.8322, allocations: 167.5 kB / 0.7055 GB, free: 6.172 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.8323, allocations: 81.02 kB / 0.7056 GB, free: 6.074 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.8323, allocations: 4 kB / 0.7056 GB, free: 6.07 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.8326, allocations: 11.98 kB / 0.7056 GB, free: 6.059 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.8327, allocations: 3.984 kB / 0.7056 GB, free: 6.055 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.8327, allocations: 8.141 kB / 0.7056 GB, free: 6.047 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 8.059e-05/0.8328, allocations: 87.28 kB / 0.7057 GB, free: 5.961 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.26e-07/0.8328, allocations: 0 / 0.7057 GB, free: 5.961 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0006057/0.8335, allocations: 12 kB / 0.7057 GB, free: 5.949 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.0001811/0.8337, allocations: 103 kB / 0.7058 GB, free: 5.84 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002204/0.8339, allocations: 35.94 kB / 0.7059 GB, free: 5.805 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.8339, allocations: 0 / 0.7059 GB, free: 5.805 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.8341, allocations: 23.92 kB / 0.7059 GB, free: 5.781 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.8345, allocations: 8.453 kB / 0.7059 GB, free: 5.773 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003932/0.8349, allocations: 80.12 kB / 0.706 GB, free: 5.672 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.8353, allocations: 0.6846 MB / 0.7066 GB, free: 4.961 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 6.655e-05/0.8354, allocations: 4.188 kB / 0.7067 GB, free: 4.953 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.418e-05/0.8355, allocations: 7.438 kB / 0.7067 GB, free: 4.945 MB / 0.5886 GB Notification: Performance of SimCode: time 1.381e-06/0.8355, allocations: 0 / 0.7067 GB, free: 4.945 MB / 0.5886 GB Notification: Performance of Templates: time 0.004628/0.8402, allocations: 0.5137 MB / 0.7072 GB, free: 4.441 MB / 0.5886 GB