=== Test: test_B_measurement_plus_probit ===
Timestamp: 2025-11-30 17:56:29.058111

--- Gradient Check ---
Pass: TRUE
Max error: 3.61e-04

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -121.379049232632 -121.378952026367 9.72062643995741e-05 8.00849428807541e-07 TRUE
2 2 FALSE -29.5515537243072 -29.5515785217285 2.47974213216651e-05 8.39123409378357e-07 TRUE
3 0.5 FALSE 142.174148471172 142.174163818359 1.5347187286352e-05 1.07946386841138e-07 TRUE
4 1.5 FALSE -1.61220280758313 -1.61216227213542 4.05354477146513e-05 2.5143528300634e-05 TRUE
5 1.2 FALSE -83.5505264698015 -83.5506121317546 8.5661953107774e-05 1.02527020355865e-06 TRUE
6 0.6 FALSE 211.306449453018 211.306457519531 8.0665128621149e-06 3.81744739692553e-08 TRUE
7 1 FALSE 14.238857267372 14.2389144897461 5.7222374136856e-05 4.01873149656624e-06 TRUE
8 0.8 FALSE -89.6587670517736 -89.6587219238281 4.51279455120357e-05 5.03330234289703e-07 TRUE
9 0.4 FALSE 166.638899989865 166.638885498047 1.4491818433271e-05 8.69654066033754e-08 TRUE
10 0.5 FALSE -35.1424536976327 -35.1424179077148 3.5789917902207e-05 1.01842502687756e-06 TRUE
11 0.7 FALSE 8.08459768995569 8.08457183837891 2.58515767850298e-05 3.19764327682856e-06 TRUE
12 0.9 FALSE -0.187613426340352 -0.187545776367188 6.76499731646629e-05 0.000360711792475742 TRUE

--- Hessian Check ---
Pass: FALSE
Max error: 1.90e+00

Summary of relative errors:
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
 0.0000  0.8572  1.0057  0.9281  1.1557  1.8977 

--- Estimation Comparison ---
Default init converged: FALSE
True init converged: FALSE
Default estimates reasonable: FALSE
True init estimates reasonable: FALSE

Parameter estimates:
parameter true_value default_init est_default se_default est_true_init se_true_init z_default z_true_init
f_var 1 1 0.828620591402202 0.00167385243149847 0.828621222561442 0.00167397495206577 -102.386211217183 -102.378340385002
T1_int 2 2.00068506543006 2.04644919758718 0 2.04645106303192 0 Inf Inf
T1_sigma 0.5 1.06870392027954 0.491275363576987 0.0186270082302974 0.491275318672828 0.0186270191046069 -0.468386351428234 -0.468388488688162
T2_int 1.5 1.51739222472919 1.57077572235332 0.00585011962424929 1.5707779927701 0.00585015331751656 12.0981666870448 12.0984851043444
T2_lambda 1.2 0.5 1.16649224231442 0.00941242561546599 1.16649240542527 0.00941244224094531 -3.55994926860495 -3.55992565127973
T2_sigma 0.6 1.28130771654586 0.644889477750243 0 0.644889565192193 0 Inf Inf
T3_int 1 1.01692510815933 1.05300321857463 0 1.05300452055315 0 Inf Inf
T3_lambda 0.8 0.5 0.788349284407502 0.041136321020625 0.788349267732802 0.0411366942450163 -0.283222108915794 -0.283219944650997
T3_sigma 0.4 0.85354121047643 0.410690623667573 0 0.410690621839807 0 Inf Inf
y_int 0.5 0.282264679632654 0.403368564217696 0.0208415705531328 0.40337217776764 0.0208414567509906 -4.63647571741077 -4.63632765150965
y_beta1 0.7 0.520294087806175 0.741818544192047 0 0.741820348072036 0 Inf Inf
y_loading 0.9 0.5 0.918389737182455 0 0.918392453776653 0 Inf Inf

Likelihood comparison:
source loglik convergence
True parameters -1952.1638495819 NA
Est (default init) -1939.20970387823 1
Est (true init) -1939.20970388235 1

--- Overall Result ---
Test passed: FALSE
