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.906/3.906, allocations: 402 MB / 416.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.616e-05/3.649e-05, allocations: 7.938 kB / 0.501 GB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2018, allocations: 92.68 MB / 0.5915 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001892/0.2038, allocations: 1.093 MB / 0.5925 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.0005841/0.2044, allocations: 204.6 kB / 0.5927 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.574e-05/0.2045, allocations: 0 / 0.5927 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 2.274e-05/0.2045, allocations: 7.938 kB / 0.5927 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 5.961e-05/0.2046, allocations: 11.98 kB / 0.5928 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001495/0.2047, allocations: 11.92 kB / 0.5928 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 6.894e-05/0.2048, allocations: 23.97 kB / 0.5928 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 8.633e-05/0.2049, allocations: 3.984 kB / 0.5928 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 6.768e-05/0.205, allocations: 15.94 kB / 0.5928 GB, free: 9.992 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 6.21e-05/0.2051, allocations: 11.98 kB / 0.5928 GB, free: 9.98 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 2.091e-05/0.2051, allocations: 4 kB / 0.5928 GB, free: 9.977 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.2052, allocations: 0 / 0.5928 GB, free: 9.977 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.2052, allocations: 19.91 kB / 0.5928 GB, free: 9.957 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.158e-05/0.2052, allocations: 4 kB / 0.5928 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 7.558e-05/0.2053, allocations: 23.94 kB / 0.5929 GB, free: 9.93 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2053, allocations: 0 / 0.5929 GB, free: 9.93 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2053, allocations: 0 / 0.5929 GB, free: 9.93 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.357e-06/0.2054, allocations: 0 / 0.5929 GB, free: 9.93 MB / 0.4948 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.0006771/0.206, allocations: 363.5 kB / 0.5932 GB, free: 9.527 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.2061, allocations: 8.031 kB / 0.5932 GB, free: 9.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.2062, allocations: 11.84 kB / 0.5932 GB, free: 9.508 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.2063, allocations: 163.1 kB / 0.5934 GB, free: 9.309 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.2063, allocations: 7.984 kB / 0.5934 GB, free: 9.301 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.2064, allocations: 4 kB / 0.5934 GB, free: 9.297 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.2067, allocations: 65.61 kB / 0.5935 GB, free: 9.227 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2067, allocations: 8 kB / 0.5935 GB, free: 9.219 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.2067, allocations: 0 / 0.5935 GB, free: 9.219 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.2067, allocations: 0 / 0.5935 GB, free: 9.219 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003249/0.2071, allocations: 47.95 kB / 0.5935 GB, free: 9.172 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005057/0.2076, allocations: 288.8 kB / 0.5938 GB, free: 8.84 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.2079, allocations: 58.55 kB / 0.5938 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.2079, allocations: 8.062 kB / 0.5939 GB, free: 8.766 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002705/0.2082, allocations: 75.39 kB / 0.5939 GB, free: 8.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=6): time 2.354e-06/0.2082, allocations: 3.938 kB / 0.5939 GB, free: 8.676 MB / 0.4948 GB Notification: Performance of matching and sorting (n=6): time 0.000699/0.2089, allocations: 153.4 kB / 0.5941 GB, free: 8.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.209, allocations: 51.41 kB / 0.5941 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.687e-05/0.2091, allocations: 101 kB / 0.5942 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.2091, allocations: 25.7 kB / 0.5942 GB, free: 8.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.762e-05/0.2092, allocations: 84.14 kB / 0.5943 GB, free: 8.234 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.2092, allocations: 19.73 kB / 0.5943 GB, free: 8.215 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/0.2092, allocations: 0 / 0.5943 GB, free: 8.215 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.2094, allocations: 322.8 kB / 0.5947 GB, free: 7.891 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2095, allocations: 27.97 kB / 0.5947 GB, free: 7.863 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.2097, allocations: 51.41 kB / 0.5947 GB, free: 7.801 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.2099, allocations: 39.97 kB / 0.5948 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.2099, allocations: 0 / 0.5948 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004423/0.2104, allocations: 113.5 kB / 0.5949 GB, free: 7.645 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.2104, allocations: 4 kB / 0.5949 GB, free: 7.641 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2104, allocations: 0 / 0.5949 GB, free: 7.641 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.2105, allocations: 4 kB / 0.5949 GB, free: 7.637 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.2107, allocations: 19.92 kB / 0.5949 GB, free: 7.617 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.2107, allocations: 3.953 kB / 0.5949 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.2108, allocations: 16.05 kB / 0.5949 GB, free: 7.598 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.2108, allocations: 4 kB / 0.5949 GB, free: 7.594 MB / 0.4948 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.0001152/0.211, allocations: 113.8 kB / 0.595 GB, free: 7.473 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.211, allocations: 4 kB / 0.595 GB, free: 7.469 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004856/0.2115, allocations: 118 kB / 0.5952 GB, free: 7.352 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.2115, allocations: 0 / 0.5952 GB, free: 7.352 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2115, allocations: 3.984 kB / 0.5952 GB, free: 7.348 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.2116, allocations: 88.97 kB / 0.5952 GB, free: 7.242 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.2116, allocations: 4 kB / 0.5952 GB, free: 7.238 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.2117, allocations: 11.98 kB / 0.5953 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.159e-05/0.2118, allocations: 0 / 0.5953 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000516/0.2123, allocations: 197 kB / 0.5954 GB, free: 7.027 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005276/0.2129, allocations: 279.4 kB / 0.5957 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001976/0.2131, allocations: 43.91 kB / 0.5958 GB, free: 6.695 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 6.672e-05/0.2132, allocations: 91.33 kB / 0.5958 GB, free: 6.605 MB / 0.4948 GB Notification: Performance of Backend: time 8.11e-07/0.2132, allocations: 4 kB / 0.5958 GB, free: 6.602 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005312/0.2137, allocations: 124.2 kB / 0.596 GB, free: 6.473 MB / 0.4948 GB Notification: Performance of SimCode: time 0.000666/0.2144, allocations: 0.5801 MB / 0.5965 GB, free: 5.844 MB / 0.4948 GB Notification: Performance of Templates: time 0.003925/0.2183, allocations: 0.6337 MB / 0.5971 GB, free: 5.215 MB / 0.4948 GB