=== Test: test_E_roy_model ===
Timestamp: 2026-01-03 10:57:56.983594

--- 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.000172350193111015 1.41063590537375e-06 TRUE
2 2 FALSE 56.0649395696246 56.0643920898438 0.000547479780863114 9.7651960621596e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546875 0.00113131045299042 4.27640830378518e-06 TRUE
4 1.5 FALSE 56.0302242626978 56.0306396484375 0.000415385739700014 7.41354627229563e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4586690266927 0.000458359577550027 5.42702818825105e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257446289062 0.00046907771138649 3.06071726199686e-06 TRUE
7 1 FALSE -112.059828687906 -112.059387207031 0.000441480874386002 3.93970452087481e-06 TRUE
8 0.8 FALSE 55.0348916753442 55.0347290039062 0.000162671437948347 2.95579611079399e-06 TRUE
9 0.4 FALSE 262.739593366027 262.739807128906 0.000213762879241131 8.13591520740721e-07 TRUE
10 2 FALSE 8.12052641974634 8.12054443359375 1.80138474092928e-05 2.21830538045843e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1251220703125 0.000693824090252093 3.62781522492398e-05 TRUE
12 0.3 FALSE 20.8591028747895 20.8582153320312 0.000887542758242432 4.25512319301577e-05 TRUE
13 0.6 FALSE 50.6788666262774 50.6788940429688 2.74166913598606e-05 5.40988351810025e-07 TRUE
14 2.5 FALSE -31.4320527346892 -31.4321044921875 5.17574983192048e-05 1.64664438335872e-06 TRUE
15 0.6 FALSE 0.695557385180275 0.69512939453125 0.000427990649025101 0.000615699253106265 TRUE
16 1 FALSE -15.9213930445081 -15.9210815429688 0.000311501539361103 1.95653504141917e-05 TRUE
17 0.7 FALSE 59.6875798281494 59.6878051757812 0.000225347631833017 3.77543840269157e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166084099 5.20185627017015e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257690429688 0.000534325883144504 2.20560958125532e-05 TRUE
20 0.8 FALSE -1.18401289565014 -1.18463134765625 0.000618452006114545 0.000522062840341115 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.0862987 0.0000012 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.86559257259242 0.0205710583017187 0.865592779098307 0.0205711056632344 -6.53381199140105 -6.53378690975815
T1_int 2 2.02038972109081 2.01741738088632 0.0234041807235017 2.01741754596685 0.0234041865906168 0.744199555288328 0.74420642218897
T1_sigma 0.5 1.10793992274121 0.522819552501326 0.0116628846299599 0.522819538689653 0.0116628853147588 1.9565959216219 1.95659462249671
T2_int 1.5 1.52614336474081 1.52253331503556 0.0282034522187334 1.52253351679305 0.0282034583113587 0.798955917197556 0.798962898247521
T2_lambda 1.2 0.5 1.21456504000591 0.0200151628457043 1.21456498190449 0.0200151647149524 0.72770029992702 0.727697329095998
T2_sigma 0.6 1.33607075774289 0.614414562472252 0.0139551251063447 0.614414561712751 0.0139551251553884 1.0329224827729 1.03292242471829
T3_int 1 1.00174049662065 0.999282889504056 0.0190783450996042 0.999283025329031 0.0190783492203038 -0.0375876677039001 -0.0375805402600708
T3_lambda 0.8 0.5 0.826813828323089 0.013471039568608 0.826813784310907 0.0134710408767472 1.99047951618927 1.99047605572865
T3_sigma 0.4 0.904431294644681 0.407064208001444 0.00945972841182514 0.407064208315366 0.00945972883853878 0.746766470865423 0.746766470364998
w0_int 2 2.00496948319753 2.00496967935564 0 2.00496930739526 0 Inf Inf
w0_beta1 0.5 0.49350336141093 0.493503374221814 0.0195000828369419 0.493503330573505 0.019500099564719 -0.3331588810422 -0.333160833611813
w0_beta2 0.3 0.308455847951859 0.308455655389474 0.00172861233043746 0.308456073044397 0.00172850878868196 4.89158571912677 4.89212036396131
w0_sigma 0.6 0.609742586599282 0.60883904214749 0.00941347908375377 0.608839026981231 0.00941348448050192 0.938977190988262 0.938975041552284
w1_int 2.5 2.9831246092485 2.49001812088507 0.0170045141402589 2.49001853749611 0.0170045141008402 -0.58701348551335 -0.586988986847988
w1_beta1 0.6 0.561683678793291 0.601685306524422 0.0152072875722103 0.60168528618701 0.015207287486603 0.11082229598276 0.110820959260152
w1_lambda 1 0.5 1.03011191260419 0.0158995632293889 1.03011157923063 0.0158995626320468 1.89388300607702 1.89386210976264
w1_sigma 0.7 1.13196449740323 0.713164443984721 0.0109434536675858 0.713164495076161 0.0109434528675854 1.20295149818324 1.20295625479907
s_int 0 -0.00886275628876305 -0.0171442819180634 0.035972822338305 -0.0171441426344175 0.0359728234333608 -0.476589847658622 -0.476585961237567
s_beta1 0.4 0.335219551982137 0.428265833034198 0.0342678600340967 0.42826581622781 0.0342678593029927 0.824849669809357 0.824849196965774
s_loading 0.8 0.5 0.834824406255129 0.0436367212982981 0.834824277410629 0.0436367168009533 0.798052768838228 0.798049898425638

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

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