=== Test: test_E_roy_model ===
Timestamp: 2026-01-02 13:40:48.592005

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

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -122.178904798244 -122.179077148438 0.000172350193068382 1.41063590502481e-06 TRUE
2 2 FALSE 56.0649395696246 56.0643920898438 0.000547479780877325 9.76519606241307e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546936035156 0.00107027529668358 4.04569152349338e-06 TRUE
4 1.5 FALSE 56.0302242626977 56.0306396484375 0.000415385739785279 7.41354627381739e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4586690266927 0.000458359577564238 5.42702818841931e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257385253906 0.000408042555221755 2.66246585471714e-06 TRUE
7 1 FALSE -112.059828687906 -112.059387207031 0.000441480874528111 3.93970452214297e-06 TRUE
8 0.8 FALSE 55.0348916753442 55.0347290039062 0.000162671437919926 2.95579611027756e-06 TRUE
9 0.4 FALSE 262.739593366027 262.739807128906 0.000213762879241131 8.13591520740721e-07 TRUE
10 2 FALSE 8.12052641974636 8.12051391601562 1.25037307334708e-05 1.53977086460136e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1251220703125 0.000693824090280515 3.62781522507259e-05 TRUE
12 0.3 FALSE 20.8591028747895 20.8582153320312 0.00088754275821401 4.2551231928795e-05 TRUE
13 0.6 FALSE 50.6788666262774 50.6788940429688 2.74166913811769e-05 5.4098835223064e-07 TRUE
14 2.5 FALSE -31.4320527346892 -31.4321044921875 5.17574983263103e-05 1.64664438358477e-06 TRUE
15 0.6 FALSE 0.695557385180316 0.69512939453125 0.000427990649065513 0.000615699253164401 TRUE
16 1 FALSE -15.9213930445081 -15.9210815429688 0.000311501539350445 1.95653504135222e-05 TRUE
17 0.7 FALSE 59.6875798281494 59.6878051757812 0.000225347631804595 3.7754384022154e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166086231 5.20185627025525e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257690429688 0.000534325883183584 2.20560958141664e-05 TRUE
20 0.8 FALSE -1.1840128956501 -1.18463134765625 0.000618452006151404 0.00052206284037223 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.0000000 0.0000000 0.0000002 0.0862986 0.0000013 1.4061625 

--- 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.865592812217952 0.0205707464327768 0.865593036860226 0.020570980316349 -6.53389940035856 -6.53381419226542
T1_int 2 2.02038972109081 2.01741520706945 0.0234041793098895 2.01741672526557 0.0234041878066013 0.74410671867019 0.744171317094792
T1_sigma 0.5 1.10793992274121 0.52281967329316 0.011662881458389 0.522819579110937 0.0116628845396369 1.95660681063911 1.95659821833816
T2_int 1.5 1.52614336474081 1.52253064770307 0.028203456677466 1.52253250949363 0.0282034607814254 0.798861216223518 0.798927112819752
T2_lambda 1.2 0.5 1.21456531168145 0.0200151476416879 1.21456499169711 0.0200151562760976 0.727714426203768 0.727698125170483
T2_sigma 0.6 1.33607075774289 0.614414556486762 0.0139551220630219 0.614414578939506 0.0139551240593332 1.03292227912198 1.03292374028489
T3_int 1 1.00174049662065 0.999281109866638 0.019078347760837 0.999282353882527 0.0190783508056038 -0.0376809429398133 -0.0376157312959049
T3_lambda 0.8 0.5 0.826813980901028 0.0134710288979503 0.826813781910665 0.0134710349802332 1.99049241926189 1.99047674881778
T3_sigma 0.4 0.904431294644681 0.407064238423427 0.00945972386478602 0.407064232036662 0.00945972718784084 0.746770045764606 0.746769108282717
w0_int 2 2.00496948319753 2.00496897204561 0 2.00496920243021 0 Inf Inf
w0_beta1 0.5 0.49350336141093 0.493503272612064 0.0194999704721997 0.493503213820555 0.0195000517259153 -0.333166011569021 -0.333167638258665
w0_beta2 0.3 0.308455847951859 0.308456279914103 0.00172991048197017 0.308456080825779 0.00172900714504827 4.88827601326047 4.89071479548032
w0_sigma 0.6 0.609742586599282 0.608839035450918 0.00941349078422816 0.608839011223383 0.00941348538694368 0.938975312508612 0.938973277171389
w1_int 2.5 2.9831246092485 2.49001451756514 0.0170045151592933 2.49001712322476 0.0170045146685827 -0.587225354049808 -0.58707213759454
w1_beta1 0.6 0.561683678793291 0.601685436861848 0.0152072868658169 0.601685336720376 0.0152072869982085 0.110830871852388 0.110824285789763
w1_lambda 1 0.5 1.03011343456832 0.0158995567268684 1.03011219986515 0.0158995600148635 1.89397950431086 1.89390145620385
w1_sigma 0.7 1.13196449740323 0.713164219456937 0.0109434524204633 0.713164392462578 0.0109434522327339 1.20293111818361 1.20294694787458
s_int 0 -0.00886275628876305 -0.0171464669719268 0.0359728284831898 -0.0171449599699098 0.0359728267544268 -0.476650508033846 -0.476608638152128
s_beta1 0.4 0.335219551982137 0.428265901060331 0.0342678641553007 0.428265850697914 0.0342678612876344 0.824851555738376 0.824850155096014
s_loading 0.8 0.5 0.834825053450253 0.0436367383449849 0.834824521862103 0.0436367220778837 0.79806728850657 0.798055403885459

Likelihood comparison:
source loglik convergence
True parameters -10040.7274749044 NA
Est (default init) -10024.5996222482 1
Est (true init) -10024.5996222585 1

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