Running ‘testthat.R’ [291s/421s]
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.535688
    Scaled convergence tolerance is 2.46357
  Stepsize computed as 0.196236
  BUILD              6 28.886505 24.535688
  Exiting from Nelder Mead minimizer
      8 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
   3.000000000 24.088800143  0.117682960  2.118832288  0.007956494  1.000000000 
            vh 
   0.007956494 
  [1] "100 of 100 done"
  [1] "Now starting analysis"
  [1] "Starting with initial values"
     sigma.sq          mu          SE          bt          vh 
  0.324076392 3.863790315 0.003240764 1.000000000 0.003240764 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 6.127883
    Scaled convergence tolerance is 0.622788
  Stepsize computed as 0.386379
  BUILD              6 6.645109 3.627136
  LO-REDUCTION       8 6.232911 3.627136
  LO-REDUCTION      10 6.127883 3.627136
  LO-REDUCTION      12 5.255389 3.627136
  LO-REDUCTION      14 4.844018 3.627136
  LO-REDUCTION      16 4.815442 3.627136
  HI-REDUCTION      18 4.706526 3.627136
  LO-REDUCTION      20 4.587062 3.627136
  REFLECTION        22 4.572042 3.272618
  HI-REDUCTION      24 4.388997 3.272618
  HI-REDUCTION      26 4.231376 3.272618
  REFLECTION        28 4.119394 3.183218
  REFLECTION        30 3.971675 2.843224
  HI-REDUCTION      32 3.745757 2.843224
  HI-REDUCTION      34 3.728224 2.843224
  REFLECTION        36 3.627136 2.736648
  HI-REDUCTION      38 3.591355 2.736648
  HI-REDUCTION      40 3.437851 2.736648
  REFLECTION        42 3.390468 2.617252
  EXTENSION         44 3.272618 1.286686
  LO-REDUCTION      46 3.183218 1.286686
  HI-REDUCTION      48 2.855183 1.286686
  HI-REDUCTION      50 2.843224 1.286686
  HI-REDUCTION      52 2.736648 1.286686
  HI-REDUCTION      54 2.646998 1.286686
  LO-REDUCTION      56 2.617252 1.286686
  HI-REDUCTION      58 2.608211 1.286686
  HI-REDUCTION      60 2.558007 1.286686
  HI-REDUCTION      62 2.382475 1.286686
  HI-REDUCTION      64 2.344712 1.286686
  HI-REDUCTION      66 2.295988 1.286686
  HI-REDUCTION      68 2.174734 1.286686
  LO-REDUCTION      70 2.134403 1.286686
  REFLECTION        72 2.089639 0.909896
  HI-REDUCTION      74 1.797137 0.909896
  REFLECTION        76 1.771158 0.893275
  HI-REDUCTION      78 1.736932 0.893275
  Exiting from Nelder Mead minimizer
      80 function evaluations used
         step   negloglik    sigma.sq          mu          SE          bt 
  1.000000000 0.893274811 0.004111863 3.824133230 0.021868149 1.101679589 
           vh 
  0.527315034 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 0.893275
    Scaled convergence tolerance is 0.0993275
  Stepsize computed as 0.382413
  BUILD              6 6.590130 0.814938
  LO-REDUCTION       8 4.308779 0.814938
  HI-REDUCTION      10 3.897046 0.814938
  HI-REDUCTION      12 3.744005 0.814938
  HI-REDUCTION      14 3.637667 0.814938
  HI-REDUCTION      16 3.433824 0.814938
  HI-REDUCTION      18 3.265128 0.814938
  HI-REDUCTION      20 3.110717 0.814938
  HI-REDUCTION      22 2.977767 0.814938
  HI-REDUCTION      24 2.814491 0.814938
  HI-REDUCTION      26 2.664225 0.814938
  HI-REDUCTION      28 2.554116 0.814938
  HI-REDUCTION      30 2.405588 0.814938
  HI-REDUCTION      32 2.274652 0.814938
  HI-REDUCTION      34 2.177164 0.814938
  HI-REDUCTION      36 2.048921 0.814938
  HI-REDUCTION      38 1.940577 0.814938
  HI-REDUCTION      40 1.855497 0.814938
  HI-REDUCTION      42 1.750238 0.814938
  HI-REDUCTION      44 1.663695 0.814938
  HI-REDUCTION      46 1.592364 0.814938
  HI-REDUCTION      48 1.509974 0.814938
  REFLECTION        50 1.442922 0.535208
  HI-REDUCTION      52 1.385753 0.535208
  HI-REDUCTION      54 1.210148 0.535208
  HI-REDUCTION      56 1.157521 0.535208
  HI-REDUCTION      58 1.052421 0.535208
  LO-REDUCTION      60 1.049978 0.535208
  REFLECTION        62 1.009143 0.522391
  HI-REDUCTION      64 0.893275 0.522391
  LO-REDUCTION      66 0.860759 0.522391
  HI-REDUCTION      68 0.827154 0.522391
  HI-REDUCTION      70 0.814938 0.522391
  HI-REDUCTION      72 0.759008 0.522391
  REFLECTION        74 0.737448 0.468650
  HI-REDUCTION      76 0.721764 0.468650
  HI-REDUCTION      78 0.654413 0.468650
  HI-REDUCTION      80 0.638810 0.468650
  HI-REDUCTION      82 0.618787 0.468650
  HI-REDUCTION      84 0.602175 0.468650
  HI-REDUCTION      86 0.590210 0.468650
  HI-REDUCTION      88 0.573534 0.468650
  Exiting from Nelder Mead minimizer
      90 function evaluations used
  [1] "New improvement found, resetting step counter"
          step    negloglik     sigma.sq           mu           SE           bt 
  2.0000000000 0.4686500729 0.0001166717 3.8265725941 0.0176186470 1.1019715656 
            vh 
  0.8554595581 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 3.763811
    Scaled convergence tolerance is 0.386381
  Stepsize computed as 0.409850
  BUILD              6 17.193476 3.668174
  LO-REDUCTION       8 4.704494 3.668174
  HI-REDUCTION      10 4.172700 3.668174
  HI-REDUCTION      12 4.163172 3.668174
  HI-REDUCTION      14 4.093342 3.668174
  Exiting from Nelder Mead minimizer
      16 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
  3.0000000000 0.4686500729 0.0001166717 3.8265725941 0.0176186470 1.1019715656 
            vh 
  0.8554595581 
    Nelder-Mead direct search function minimizer
  function value for initial parameters = 8.367340
    Scaled convergence tolerance is 0.846734
  Stepsize computed as 0.428541
  BUILD              6 27.642972 4.464495
  REFLECTION         8 8.799793 4.154649
  LO-REDUCTION      10 8.367340 4.154649
  LO-REDUCTION      12 8.262957 4.154649
  LO-REDUCTION      14 5.152706 4.154649
  Exiting from Nelder Mead minimizer
      16 function evaluations used
          step    negloglik     sigma.sq           mu           SE           bt 
  4.0000000000 0.4686500729 0.0001166717 3.8265725941 0.0176186470 1.1019715656 
            vh 
  0.8554595581 
  [1] "100 of 100 done"
  ── 1. Failure: Simulation works (@test_condition.R#33)  ────────────────────────
  result$best$NegLogLik is not more than 2. Difference: -1.53
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 14 | SKIPPED: 0 | WARNINGS: 54 | FAILED: 1 ]
  1. Failure: Simulation works (@test_condition.R#33) 
  
  Error: testthat unit tests failed
  Execution halted