=== Test: test_G_se_linear ===
Timestamp: 2026-01-05 11:34:56.820497

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

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1.5 TRUE 2.20351714929363 2.2034912109375 2.59383561274085e-05 1.17714815464922e-05 TRUE
2 0.5 FALSE 40.2901965140466 40.2898864746094 0.000310039437231069 7.6952174443692e-06 TRUE
3 0.8 FALSE 23.1037941047816 23.1036682128906 0.000125891891002539 5.44900012597556e-06 TRUE
4 0.5 FALSE 19.1274556739262 19.1275024414062 4.67674800361806e-05 2.4450385082655e-06 TRUE
5 2 FALSE -8.74059182392253 -8.74063110351562 3.9279593096353e-05 4.4939081207253e-06 TRUE
6 1 FALSE -8.63236533108709 -8.6322021484375 0.000163182649592031 1.89039420979695e-05 TRUE
7 1.5 FALSE -16.0305360825251 -16.030517578125 1.85044001383972e-05 1.1543233116595e-06 TRUE
8 0.8 FALSE 25.5432148624417 25.5431518554688 6.30069729226079e-05 2.46668748160452e-06 TRUE
9 0.9 FALSE 20.7725029743684 20.7725524902344 4.95158660100969e-05 2.38371601339679e-06 TRUE
10 1 FALSE -4.80969083723465 -4.8095703125 0.000120524734648519 2.50593559959561e-05 TRUE
11 1.2 FALSE -11.625229557789 -11.6254170735677 0.000187515778707237 1.61298108722125e-05 TRUE
12 1.1 FALSE -30.1888027451377 -30.1888760653409 7.33202031675262e-05 2.4287158955117e-06 TRUE
13 1.8 FALSE 21.4272272580365 21.4272901746962 6.29166597079234e-05 2.93628635235559e-06 TRUE
14 1 FALSE -21.5400024954928 -21.5400085449219 6.049429096322e-06 2.80846179039617e-07 TRUE
15 1.2 FALSE 19.1410588679379 19.1410319010417 2.69668962324943e-05 1.40885279184069e-06 TRUE
16 0.7 FALSE 35.8985375036901 35.8987426757812 0.00020517209117088 5.7153001993381e-06 TRUE
17 0.8 FALSE 7.23342469720362 7.23342895507812 4.2578745027555e-06 5.88638463057872e-07 TRUE
18 0.5 FALSE 4.96748004404872 4.96749877929688 1.87352481599845e-05 3.77156573003454e-06 TRUE
19 1.1 FALSE 24.3050145809964 24.305253462358 0.000238881361557475 9.82838388941038e-06 TRUE
20 0.95 FALSE -13.8610764811284 -13.8608703613281 0.000206119800301607 1.48706246381672e-05 TRUE

--- Hessian Check ---
Pass: TRUE
Max error: 7.12e-06

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
1.500e-11 1.148e-08 4.030e-08 1.695e-07 1.229e-07 7.115e-06 

--- 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
f1_var 1.5 1 1.44232204034332 0.145632393123536 1.44232300916631 0.145640494630533 -0.396051719123722 -0.396023035900853
se_intercept 0.5 0 -9.74663314568398 0 14.6760010232982 0.340835287971969 -Inf 41.5919405166288
se_linear_1 0.8 0.5 0.836949036652013 0.0511827991753738 0.836931602479441 0.0581229191527194 0.72190339815941 0.635405155449999
se_residual_var 0.5 1 0.535767579676143 0.0673215795899748 0.535745337021482 0.0759390524546981 0.53129442140228 0.470710864384386
Y1_1_int 2 2.0216257793339 2.02808308902501 0.07110108756736 2.02808316922863 0.0711011693010997 0.394974113418476 0.394974787400496
Y1_1_sigma 1 1.58251557986437 1.01555191878246 0.041847045430524 1.01555157512257 0.0418505610008286 0.3716371997704 0.371597769555809
Y1_2_int 1.5 1.5053161019317 1.5109047381521 0.0623783424059417 1.51090480668291 0.0623784095272525 0.174816093719418 0.17481700424158
Y1_2_lambda 0.8 0.5 0.86547439874096 0.0526473959309888 0.865474261334218 0.0526478186141058 1.24363983409141 1.24362723960372
Y1_2_sigma 0.9 1.38861320563147 0.90817941402021 0.0366521690400632 0.908179318392735 0.0366524759003923 0.223163164266467 0.223158686877352
Y1_3_int 1 1.03528890375198 1.04350981246025 0.0824369993073484 1.04350991107703 0.0824371031376996 0.527794713852138 0.527795245356405
Y1_3_lambda 1.2 0.5 1.27311668653056 0.0707672886075043 1.27311614288777 0.0707724463424989 1.03319892522789 1.03311594647911
Y1_3_sigma 1.1 1.83246221877927 0.985813051825913 0.0518355589716692 0.985813508656503 0.0518405499482586 -2.20286904278386 -2.20264814816713
Y2_1_int 1.8 2.41427863158447 12.1663113980765 0 -12.2563228146857 0.339850820365347 Inf -41.3602733092563
Y2_1_sigma 1 1.58225651187752 0.96668100510851 0.0397303658831375 0.96668917940771 0.0417763304780482 -0.838627939885941 -0.797361094454997
Y2_2_int 1.2 1.62449747929884 8.6414553051146 0 -8.93181179955729 0.480924622632221 Inf -21.0673592549771
Y2_2_lambda 0.7 0.5 0.719536889027247 0.0302322238450455 0.719556053988067 0.0427897520104135 0.646227321132018 0.457026579245132
Y2_2_sigma 0.8 1.20962924225868 0.806533008230804 0.0318512108114054 0.806532368637873 0.0318672939239136 0.205110200346443 0.204986612715526
Y2_3_int 0.5 1.13753289625474 12.2794645371524 0 -15.624468681619 0.530506616472339 Inf -30.3944723420048
Y2_3_lambda 1.1 0.5 1.14252195475923 0.0164381144654616 1.14255862808796 0.0602265737834542 2.58679028233903 0.706642025511535
Y2_3_sigma 0.95 1.69350152069518 0.905821681340973 0.0457179256584885 0.905813492758616 0.0475133157200643 -0.96632377831483 -0.929981555101718

Likelihood comparison:
source loglik convergence
True parameters -4806.09417281394 NA
Est (default init) -4798.76997166915 1
Est (true init) -4798.76997167546 1

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