=== Test: test_D_measurement_plus_mlogit ===
Timestamp: 2026-01-24 09:15:36.432668

--- Gradient Check ---
Pass: TRUE
Max error: 1.11e-05

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -142.674499492856 -142.674560546875 6.10540190848496e-05 4.27925054409336e-07 TRUE
2 2 FALSE -16.7119549860307 -16.7119598388672 4.85283650419888e-06 2.90381053508313e-07 TRUE
3 0.5 FALSE 128.101731395634 128.101745605469 1.42098346316288e-05 1.1092615923746e-07 TRUE
4 1.5 FALSE 24.1434250994613 24.1433919270833 3.31723779183335e-05 1.37397338445729e-06 TRUE
5 1.2 FALSE -69.0580329864809 -69.0580622355143 2.92490334743434e-05 4.23542632496594e-07 TRUE
6 0.6 FALSE 60.6354596133227 60.6354827880859 2.31747632497559e-05 3.82198049461386e-07 TRUE
7 1 FALSE -61.6711937310878 -61.6712036132812 9.88219344577601e-06 1.60239996412975e-07 TRUE
8 0.8 FALSE -159.448690387837 -159.448654174805 3.62130322457688e-05 2.27114066488565e-07 TRUE
9 0.4 FALSE 212.427313383062 212.427291870117 2.15129450111817e-05 1.01272039114142e-07 TRUE
10 0.5 FALSE -27.0888852766863 -27.0888671875 1.80891862591182e-05 6.67771971928944e-07 TRUE
11 0.6 FALSE -3.36989669905156 -3.36993408203125 3.73829796895819e-05 1.10930892948058e-05 TRUE
12 0.7 FALSE 2.90561121503501 2.90559387207031 1.73429646981305e-05 5.96881927128141e-06 TRUE
13 1 FALSE 16.0498231783185 16.0498809814453 5.78031268325674e-05 3.60146763078128e-06 TRUE
14 -0.5 FALSE 6.18416241207914 6.18414306640625 1.93456728894148e-05 3.12827059168555e-06 TRUE
15 0.9 FALSE 9.1555221768743 9.155517578125 4.59874929958914e-06 5.02292662358794e-07 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.0000000 0.0000000 0.0000003 0.2316889 0.0000319 1.0789311 

--- 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.950197004683686 0.0390633574048598 0.943752292670388 0.0386175997828724 -1.27492869596811 -1.45653038111806
T1_int 2 2.01960891905375 2.01259409596842 0.0405012035186314 2.01752885052778 0.0397134168887205 0.310956092023896 0.441383590258717
T1_sigma 0.5 1.06384096857368 0.471729094518555 0.0223124049567637 0.473137169534185 0.0222413573502841 -1.26704878009463 -1.20778736849313
T2_int 1.5 1.55094114192773 1.54266355968233 0.0482489836720472 1.54848827461688 0.0473681571926664 0.884237478913871 1.02364705512299
T2_lambda 1.2 0.5 1.17587299293165 0.0378613565928323 1.17839842609444 0.0379356297742958 -0.637246238369563 -0.569427054040759
T2_sigma 0.6 1.26928237763899 0.580239165322575 0.0258326662190486 0.580904410753963 0.0258391345341203 -0.764955289936493 -0.739018144002527
T3_int 1 1.00263713524346 0.997237986948523 0.0320024740064772 1.00102823179789 0.0314129492548871 -0.0863062352903864 0.0327327367306952
T3_lambda 0.8 0.5 0.77070791120327 0.0254202742890502 0.77341253395189 0.0254259526973613 -1.15231206648888 -1.04568219584822
T3_sigma 0.4 0.839109411254507 0.395755096726562 0.0175615503573743 0.394291235430139 0.0175618926764161 -0.241715747588063 -0.325065451375134
y1_int 0.5 -0.0378191154681297 0.116392011066338 0 0.193502330170229 0 -Inf -Inf
y1_beta1 0.6 0.721571401567438 0.709496946627888 0.00219091580359469 0.695496015914309 0.00240358478299458 49.9777063309479 39.7306625461875
y1_loading 0.7 0.5 0.556489039420914 0.000729543484877225 0.665643753663512 0.000850298003848469 -196.713374259298 -40.4049476548116
y2_int 1 0.831972783489226 0.913436256333085 0.00198007433501099 1.00422944076932 0.00221861601328744 -43.7174211777433 1.9063419465077
y2_beta1 -0.5 -0.442889196251955 -0.433908712177904 0.0022016321828158 -0.452848392594039 0.00249928973968474 30.0192231645016 18.8660028716434
y2_loading 0.9 0.5 0.572462563287541 0.000443614626736672 0.849453797464751 0.000612713840361785 -738.337775564114 -82.4956108473135

Likelihood comparison:
source loglik convergence
True parameters -2080.25288990059 NA
Est (default init) -2077.85513728485 1
Est (true init) -2072.80929404712 1

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