=== Test: test_B_measurement_plus_probit ===
Timestamp: 2025-11-30 22:15:43.513403

--- 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: TRUE
True init converged: TRUE
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.828628404818915 0.00167311428865167 0.828620293498085 0.00167535935999432 -102.426711877041 -102.294296133873
T1_int 2 2.00068506543006 2.04644617543309 0 2.04644506914471 0 Inf Inf
T1_sigma 0.5 1.06870392027954 0.491274865253637 0.0186271570283082 0.491276404529241 0.0186270987352579 -0.468409362368232 -0.468328191885666
T2_int 1.5 1.51739222472919 1.5707720568293 0.00584980303692267 1.57077098555805 0.00585075024010784 12.0981948251258 12.0960530963886
T2_lambda 1.2 0.5 1.16648901417978 0.00941244036979507 1.16649380245708 0.00941257126749643 -3.56028665294457 -3.55972843027793
T2_sigma 0.6 1.28130771654586 0.644889606307624 0 0.644889424944606 0 Inf Inf
T3_int 1 1.01692510815933 1.05300073814812 0 1.05300001819052 0 Inf Inf
T3_lambda 0.8 0.5 0.788346916911677 0.0411358157652527 0.788350241224343 0.0411353303172208 -0.283283140775014 -0.283205669817614
T3_sigma 0.4 0.85354121047643 0.410691075427047 0 0.410690793143501 0 Inf Inf
y_int 0.5 0.282264679632654 0.403360702063529 0.0208411460366565 0.403369871038119 0.020843074891518 -4.63694740042112 -4.63607838405858
y_beta1 0.7 0.520294087806175 0.74181454118598 0 0.741833480894205 0 Inf Inf
y_loading 0.9 0.5 0.918371492677261 0 0.918431353487215 0 Inf Inf

Likelihood comparison:
source loglik convergence
True parameters -1952.1638495819 NA
Est (default init) -1939.20970390923 0
Est (true init) -1939.20970393687 0

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