=== Test: test_H_se_quadratic ===
Timestamp: 2026-04-12 19:42:22.390862

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

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1.5 TRUE -31.233989429827 -31.2340087890625 1.93592355515193e-05 6.19812707432499e-07 TRUE
2 0.5 FALSE 15.46097518806 15.4609680175781 7.17048188292324e-06 4.63779620704917e-07 TRUE
3 0.8 FALSE -26.7943863301409 -26.794677734375 0.00029140423413665 1.08754520963246e-05 TRUE
4 0.2 FALSE -62.3988066245352 -62.3987426757812 6.39487539899619e-05 1.02484042542707e-06 TRUE
5 0.5 FALSE -9.21225167181331 -9.21261596679688 0.000364294983565827 3.95430554012867e-05 TRUE
6 2 FALSE -18.2354150056945 -18.2354583740234 4.3368328960014e-05 2.37824177876398e-06 TRUE
7 1 FALSE -21.2548239787739 -21.2548828125 5.88337261397953e-05 2.7680099043028e-06 TRUE
8 1.5 FALSE 6.86054359666575 6.8604736328125 6.99638532495328e-05 1.01981083222749e-05 TRUE
9 0.8 FALSE -38.633695047517 -38.6337890625 9.40149830412906e-05 2.43349113101998e-06 TRUE
10 0.9 FALSE 44.1038390366913 44.1036987304688 0.000140306222569109 3.18128017848487e-06 TRUE
11 1 FALSE 2.64029625189206 2.64016723632812 0.000129015563935297 4.88664362469435e-05 TRUE
12 1.2 FALSE -18.8675825091681 -18.8675435384115 3.89707566803565e-05 2.06549181142834e-06 TRUE
13 1.1 FALSE -0.649614688699074 -0.649441805752841 0.000172882946233521 0.000266202367482508 TRUE
14 1.8 FALSE 30.3687307326916 30.3687879774306 5.72447389188824e-05 1.88498595865681e-06 TRUE
15 1 FALSE -18.4311417646912 -18.4309692382812 0.000172526409990326 9.36068026373714e-06 TRUE
16 1.2 FALSE -0.201124367330233 -0.201187133789062 6.27664588297439e-05 0.000311980481294357 TRUE
17 0.7 FALSE -52.7582065187068 -52.7581787109375 2.78077693423029e-05 5.2707978216348e-07 TRUE
18 0.8 FALSE 77.6165425629792 77.6163940429688 0.000148520010412767 1.9135134045334e-06 TRUE
19 0.5 FALSE -13.4245168068186 -13.4243774414062 0.000139365412374914 1.03815177264798e-05 TRUE
20 1.1 FALSE 21.5509532157188 21.5507368607955 0.000216354923360029 1.00393283421142e-05 TRUE
21 0.95 FALSE 21.6723163099978 21.6721496582031 0.00016665179468589 7.68967533512814e-06 TRUE

--- Hessian Check ---
Pass: TRUE
Max error: 1.41e-05

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
1.730e-11 1.133e-08 3.529e-08 2.851e-07 1.238e-07 1.408e-05 

--- 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.67265335637489 0.163679396242859 1.67265284334423 0.163680275200672 1.0548264493762 1.05481765064582
se_intercept 0.5 0 -13.8567516885004 0 -4.40821605917562 0 -Inf -Inf
se_linear_1 0.8 0.5 0.731565647830488 0.0490292064011725 0.731576879888372 0.0490328694093414 -1.39578747429767 -1.39545412976775
se_quadratic_1 0.2 0 0.161124696951842 0.0249563613353887 0.161126959679048 0.0249573648026706 -1.55773121432698 -1.55757791851455
se_residual_var 0.5 1 0.415206288848088 0.0601280133370174 0.415216280889256 0.0601335448636445 -1.4102197369576 -1.40992385037329
Y1_1_int 2 1.92605997946718 1.94107399507918 0.0721036892801219 1.94107367199678 0.0721039585149224 -0.817239804358537 -0.817241233586716
Y1_1_sigma 1 1.60017510019391 0.939875306636814 0.0428614809590926 0.939874925871915 0.0428615091801663 -1.40276752034231 -1.40277548033486
Y1_2_int 1.5 1.48113872820946 1.49196962704167 0.0601149856346221 1.49196939337236 0.0601151546885217 -0.133583546158265 -0.133587057527282
Y1_2_lambda 0.8 0.5 0.721385877694809 0.0451651122966474 0.721385837693731 0.0451652505212956 -1.74059397414643 -1.74058953285783
Y1_2_sigma 0.9 1.33700907953323 0.955968100616051 0.036078650137386 0.955967956325348 0.0360786407108735 1.55128033900732 1.55127674498227
Y1_3_int 1 0.961426488303865 0.978954287787077 0.082841562970646 0.978953903461146 0.0828418988658065 -0.254047744371747 -0.254051353566225
Y1_3_lambda 1.2 0.5 1.16742914909937 0.0622961665323884 1.16742867349093 0.0622964301457281 -0.522838767032219 -0.522844189191585
Y1_3_sigma 1.1 1.8376408636098 1.04466084740968 0.0508312378805676 1.04466126934927 0.0508312209239314 -1.08868394510363 -1.08867600747863
Y2_1_int 1.8 2.66202437202684 16.2603111536733 0 6.81177155947811 0 Inf Inf
Y2_1_sigma 1 1.55449194834992 0.967629582479136 0.0396970430692062 0.967623274492088 0.0396977133465835 -0.815436491439186 -0.815581623688111
Y2_2_int 1.2 1.76064339820284 10.8425912348601 0 4.53210169884324 0 Inf Inf
Y2_2_lambda 0.7 0.5 0.667875228467373 0.0325023819884722 0.667861256852402 0.0325934228752743 -0.988382068244123 -0.986049954636056
Y2_2_sigma 0.8 1.19616040073885 0.877429448510226 0.0321622904527934 0.877430804334761 0.0321639724465534 2.40746064475334 2.40737690170042
Y2_3_int 0.5 1.3571843487813 17.6744751312402 0 6.33657659668898 0 Inf Inf
Y2_3_lambda 1.1 0.5 1.19995360296461 0.0174386294520653 1.19992520901597 0.0172517782150273 5.73173501044649 5.79216865476086
Y2_3_sigma 0.95 1.7480532860858 0.961954130341973 0.0481597548184242 0.961961695664402 0.0481488330805864 0.24821825582467 0.24843168357542

Likelihood comparison:
source loglik convergence
True parameters -4847.26777097663 NA
Est (default init) -4835.13873593987 1
Est (true init) -4835.1387357969 1

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