Running ‘testthat.R’ [582s/590s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("BMhyb")
  Loading required package: BMhyb
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
  0.117682960 2.118832288 0.007956494 1.000000000 0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   1.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.088800
    Scaled convergence tolerance is 2.41888
  Stepsize computed as 0.211883
  BUILD              6 29.371482 24.088800
  HI-REDUCTION       8 26.889548 24.088800
  Exiting from Nelder Mead minimizer
      10 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   2.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.020529
    Scaled convergence tolerance is 2.41205
  Stepsize computed as 0.215353
  BUILD              6 29.465917 24.020529
  HI-REDUCTION       8 26.944443 24.020529
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   3.000000000 24.020528811  0.119218559  2.153533135  0.007458823  0.976212081 
            vh 
   0.007788954 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 23.811424
    Scaled convergence tolerance is 2.39114
  Stepsize computed as 0.202043
  BUILD              6 28.987003 23.811424
  HI-REDUCTION       8 26.549977 23.811424
  Exiting from Nelder Mead minimizer
      10 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
   4.000000000 23.811423937  0.117532832  2.020432385  0.006783313  0.931388142 
            vh 
   0.008330563 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.118269
    Scaled convergence tolerance is 2.42183
  Stepsize computed as 0.190480
  BUILD              6 28.469385 24.057618
  Exiting from Nelder Mead minimizer
      8 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   5.000000000 23.811423937  0.117532832  2.020432385  0.006783313  0.931388142 
            vh 
   0.008330563 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 24.233722
    Scaled convergence tolerance is 2.43337
  Stepsize computed as 0.173670
  BUILD              6 28.081057 23.934126
  Exiting from Nelder Mead minimizer
      8 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   6.000000000 23.811423937  0.117532832  2.020432385  0.006783313  0.931388142 
            vh 
   0.008330563 
  [1] "100 of 100 done"
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
  0.366228418 3.636737048 0.003662284 1.000000000 0.003662284 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 2.361681
    Scaled convergence tolerance is 0.246168
  Stepsize computed as 0.363674
  BUILD              6 4.459604 1.458606
  HI-REDUCTION       8 3.730162 1.458606
  HI-REDUCTION      10 3.165314 1.458606
  HI-REDUCTION      12 2.733686 1.458606
  HI-REDUCTION      14 2.566348 1.458606
  HI-REDUCTION      16 2.434207 1.458606
  HI-REDUCTION      18 2.380476 1.458606
  HI-REDUCTION      20 2.380454 1.458606
  LO-REDUCTION      22 2.361681 1.458606
  LO-REDUCTION      24 2.272889 1.458606
  LO-REDUCTION      26 2.239663 1.458606
  HI-REDUCTION      28 2.224100 1.458606
  HI-REDUCTION      30 2.049509 1.458606
  LO-REDUCTION      32 2.035038 1.458606
  LO-REDUCTION      34 2.015436 1.458606
  REFLECTION        36 1.985343 1.317843
  LO-REDUCTION      38 1.809109 1.317843
  HI-REDUCTION      40 1.653206 1.317843
  LO-REDUCTION      42 1.637556 1.317843
  Exiting from Nelder Mead minimizer
      44 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  1.000000000 1.317843294 0.281730180 3.483206960 0.006162935 1.414886327 
           vh 
  0.022343077 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.317843
    Scaled convergence tolerance is 0.141784
  Stepsize computed as 0.348321
  BUILD              6 3.934814 1.317843
  HI-REDUCTION       8 3.249964 1.317843
  HI-REDUCTION      10 2.695802 1.317843
  HI-REDUCTION      12 2.266758 1.317843
  HI-REDUCTION      14 1.978444 1.317843
  LO-REDUCTION      16 1.969124 1.317843
  HI-REDUCTION      18 1.923715 1.317843
  HI-REDUCTION      20 1.853551 1.317843
  HI-REDUCTION      22 1.793217 1.317843
  HI-REDUCTION      24 1.755090 1.317843
  LO-REDUCTION      26 1.747863 1.317843
  HI-REDUCTION      28 1.722412 1.317843
  HI-REDUCTION      30 1.682203 1.317843
  HI-REDUCTION      32 1.677684 1.317843
  LO-REDUCTION      34 1.618724 1.317843
  HI-REDUCTION      36 1.617312 1.317843
  LO-REDUCTION      38 1.535505 1.317843
  HI-REDUCTION      40 1.525139 1.317843
  EXTENSION         42 1.523034 1.256413
  LO-REDUCTION      44 1.470880 1.256413
  HI-REDUCTION      46 1.428993 1.256413
  LO-REDUCTION      48 1.416288 1.256413
  Exiting from Nelder Mead minimizer
      50 function evaluations used
  [1] "New improvement found, resetting step counter"
         step   negloglik    sigma.sq          mu          SE          bt 
  2.000000000 1.256413373 0.239681404 3.409595965 0.002691655 1.519336006 
           vh 
  0.015282820 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.369351
    Scaled convergence tolerance is 0.146935
  Stepsize computed as 0.351501
  BUILD              6 3.989570 1.369351
  HI-REDUCTION       8 3.334788 1.369351
  HI-REDUCTION      10 2.792799 1.369351
  HI-REDUCTION      12 2.411721 1.369351
  LO-REDUCTION      14 2.366031 1.369351
  HI-REDUCTION      16 2.090148 1.369351
  HI-REDUCTION      18 2.048328 1.369351
  HI-REDUCTION      20 1.903785 1.369351
  HI-REDUCTION      22 1.899705 1.369351
  HI-REDUCTION      24 1.876756 1.369351
  LO-REDUCTION      26 1.857961 1.369351
  HI-REDUCTION      28 1.789858 1.369351
  HI-REDUCTION      30 1.779944 1.369351
  LO-REDUCTION      32 1.729486 1.369351
  LO-REDUCTION      34 1.720227 1.369351
  HI-REDUCTION      36 1.692543 1.369351
  REFLECTION        38 1.597574 1.311979
  HI-REDUCTION      40 1.542616 1.311979
  LO-REDUCTION      42 1.526275 1.311979
  LO-REDUCTION      44 1.501639 1.311979
  REFLECTION        46 1.483964 1.292422
  Exiting from Nelder Mead minimizer
      48 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  3.000000000 1.256413373 0.239681404 3.409595965 0.002691655 1.519336006 
           vh 
  0.015282820 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 1.249316
    Scaled convergence tolerance is 0.134932
  Stepsize computed as 0.338977
  BUILD              6 3.823430 1.249316
  HI-REDUCTION       8 3.144502 1.249316
  HI-REDUCTION      10 2.591318 1.249316
  HI-REDUCTION      12 2.160761 1.249316
  HI-REDUCTION      14 1.993294 1.249316
  LO-REDUCTION      16 1.861488 1.249316
  HI-REDUCTION      18 1.832062 1.249316
  HI-REDUCTION      20 1.792551 1.249316
  HI-REDUCTION      22 1.683756 1.249316
  HI-REDUCTION      24 1.675475 1.249316
  HI-REDUCTION      26 1.653116 1.249316
  LO-REDUCTION      28 1.648832 1.249316
  HI-REDUCTION      30 1.597810 1.249316
  LO-REDUCTION      32 1.586376 1.249316
  HI-REDUCTION      34 1.544947 1.249316
  LO-REDUCTION      36 1.524457 1.249316
  LO-REDUCTION      38 1.509608 1.249316
  HI-REDUCTION      40 1.470350 1.249316
  LO-REDUCTION      42 1.442051 1.249316
  LO-REDUCTION      44 1.417183 1.249316
  LO-REDUCTION      46 1.410507 1.249316
  LO-REDUCTION      48 1.385278 1.249316
  Exiting from Nelder Mead minimizer
      50 function evaluations used
  [1] "New improvement found, but slight; taking the best value, but not resetting the step counter"
         step   negloglik    sigma.sq          mu          SE          bt 
  4.000000000 1.249315507 0.239960545 3.389774933 0.005881331 1.553547227 
           vh 
  0.021826573 
  [1] "100 of 100 done"
  ── 1. Failure: Simulation works (@test_condition.R#33)  ────────────────────────
  result$best$NegLogLik is not more than 2. Difference: -0.751
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 8 | FAILED: 1 ]
  1. Failure: Simulation works (@test_condition.R#33) 
  
  Error: testthat unit tests failed
  Execution halted