/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17186
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin906
RA = 66.8294, Dec = 5.08
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17373384', job_status='RUN', time_executed='2025-12-16 01:21:32.124973', time_epoch_executed='1765876892.12' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17373384

Creating custom pfile directory:
/lscratch/kocevski/17373384/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17373384/ft1_4FGL_J0427.3+0504_weekly_bin906.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17373384/ft1_4FGL_J0427.3+0504_weekly_bin906.fits outfile=/lscratch/kocevski/17373384/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin906.fits ra=66.8294 dec=5.08 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.34
user 5.14
sys 0.27

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17373384/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.05
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 2278

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17373384/ltcube_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits
.....................!
real 19.09
user 17.95
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17373384/ltcube_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits outfile=/lscratch/kocevski/17373384/expmap_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17373384/ltcube_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits
.....................!
real 71.72
user 66.59
sys 4.12

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 139 point sources and 0 extended sources

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits scfile=/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits outfile=/lscratch/kocevski/17373384/cmap_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=66.8294 yref=5.08 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.27
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits scfile=/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits outfile=/lscratch/kocevski/17373384/cmap_HighResolution_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=66.8294 yref=5.08 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.12
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17373384/Model_4FGL_J0427.3+0504_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits.....................!
real 131.96
user 129.69
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits', '/lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits', expMap='/lscratch/kocevski/17373384/expmap_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits', expCube='/lscratch/kocevski/17373384/ltcube_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17373384/Model_4FGL_J0427.3+0504_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17373384/ft1_filtered_4FGL_J0427.3+0504_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17373384/ft2_4FGL_J0427.3+0504_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17373384/expmap_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17373384/ltcube_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17373384/Model_4FGL_J0427.3+0504_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 24579.8761215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 24579.8390158

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.755       1.0000          .0000       .10000E+07
     2 'Prefactor '    .51184E-05   1.0000          .0000       .10000E+07
     3 'norm      '    11.138       1.0000          .0000       .10000E+07
     4 'Prefactor '    .24722E-04   1.0000          .0000       .10000E+07
     5 'norm      '    4.4717       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38565E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .21089       1.0000          .0000       .10000E+07
     8 'norm      '    1.8274       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0819       1.0000          .0000       .10000E+07
    10 'Prefactor '    32.553       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.4710       1.0000          .0000       .10000E+07
    12 'Prefactor '    .15264E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13539E-01   1.0000          .0000       .10000E+07
    14 'norm      '    3.5744       1.0000          .0000       .10000E+07
    15 'Prefactor '    16.755       1.0000          .0000       .10000E+07
    16 'norm      '    8.1223       1.0000          .0000       .10000E+07
    17 'norm      '    3.0367       1.0000          .0000       .10000E+07
    18 'Prefactor '    33.848       1.0000          .0000       .10000E+07
    19 'norm      '    29.632       1.0000          .0000       .10000E+07
    20 'Prefactor '    .69786E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .98285       1.0000          .0000       .10000E+07
    22 'norm      '    7.2392       1.0000          .0000       .10000E+07
    23 'Prefactor '    .55056       1.0000          .0000       .10000E+07
    24 'Normalizat'    .89452       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0188       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24579.84     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1772 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.368        20.873       -.27459E-06    .25508E-01
   2  Prefactor     .55511E-09    10.346        .87808E-07** at limit **
   3  norm          11.373        10.135        .17947E-07    .10992E-01
   4  Prefactor     .11102E-09    5.7218        .38280E-07** at limit **
   5  norm          4.4630        3.5007       -.54439E-07   -.97234E-03
   6  Prefactor     .11657E-08    46.478        .10650E-05** at limit **
   7  norm          .25860        37.267        .43948E-06    .90727E-02
   8  norm          1.8304        .96345        .96367E-08   -.20038E-03
   9  Prefactor     2.0843        1.2092        .44287E-08    .23109E-03
  10  Prefactor     32.472        12.374       -.26689E-07   -.99515E-01
  11  Prefactor     9.2642        8.9386       -.55080E-07    .26970E-01
  12  Prefactor     .11102E-09    4.3985       -.10224E-06** at limit **
  13  Prefactor     .91038E-08    18.071        .45822E-06** at limit **
  14  norm          3.5795        2.0676       -.43104E-07    .70539E-03
  15  Prefactor     16.815        2.1375       -.10813E-07   -.87351E-02
  16  norm          8.1263        2.0408        .17320E-07    .18914E-03
  17  norm          3.0384        1.6077       -.25356E-07   -.43039E-03
  18  Prefactor     33.923        3.6780        .92466E-08    .21359E-01
  19  norm          29.629        2.9771       -.85539E-08   -.51462E-03
  20  Prefactor      .0000        31.133       -.38788E-06** at limit **
  21  norm          .98338        .43541       -.22338E-07   -.39515E-02
  22  norm          7.2367        2.9084       -.58629E-07   -.15053E-02
  23  Prefactor     .55423        3.2338        .12316E-07   -.11386E-03
  24  Normalizat    .89437        .19058       -.13798E-05   -.32855E-04
  25  Prefactor     1.0187        .54473E-01    .78068E-07   -.82841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3683
  Prefactor  = 5.55112e-10
  norm       = 11.3729
  Prefactor  = 1.11022e-10
  norm       = 4.46298
  Prefactor  = 1.16573e-09
  norm       = 0.258596
  norm       = 1.83038
  Prefactor  = 2.08433
  Prefactor  = 32.4716
  Prefactor  = 9.26421
  Prefactor  = 1.11022e-10
  Prefactor  = 9.10383e-09
  norm       = 3.57952
  Prefactor  = 16.8146
  norm       = 8.12631
  norm       = 3.03836
  Prefactor  = 33.9234
  norm       = 29.6294
  Prefactor  = 0
  norm       = 0.983382
  norm       = 7.23673
  Prefactor  = 0.554228
  Normalizat = 0.894369
  Prefactor  = 1.01866
 **********
 **   18 **HESSE 
 **********

 FCN=   24579.84     FROM HESSE     STATUS=OK           491 CALLS     2263 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.368        28.449        .29193E-03   -1.5638    
   2  Prefactor     .55511E-09    10.367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.373        10.181        .29994E-03   -1.5641    
   4  Prefactor     .11102E-09    5.7477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4630        3.5281        .47592E-03   -1.5666    
   6  Prefactor     .11657E-08    47.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .25860        3.4133        .11585E-01   -1.5698    
   8  norm          1.8304        1.0406        .77187E-03   -1.5681    
   9  Prefactor     2.0843        1.2751        .71539E-03   -1.5679    
  10  Prefactor     32.472        19.018        .17529E-03   -1.5594    
  11  Prefactor     9.2642        37.348        .32540E-03   -1.5647    
  12  Prefactor     .11102E-09    4.4113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .91038E-08    18.002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5795        2.2056        .53429E-03   -1.5670    
  15  Prefactor     16.815        19.171        .24441E-03   -1.5626    
  16  norm          8.1263        2.0662        .35155E-03   -1.5651    
  17  norm          3.0384        1.6213        .58203E-03   -1.5673    
  18  Prefactor     33.923        22.928        .17190E-03   -1.5591    
  19  norm          29.629        2.9849        .18373E-03   -1.5599    
  20  Prefactor      .0000        30.730        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .98338        .44176        .43157E-03   -1.5688    
  22  norm          7.2367        2.9180        .37256E-03   -1.5654    
  23  Prefactor     .55423        3.2392        .73778E-03   -1.5693    
  24  Normalizat    .89437        .18448        .12200       -.96658    
  25  Prefactor     1.0187        .50562E-01    .42267E-01   -.92110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11712e-06
Minuit parameter uncertainties:
  1  28.4492
  2  0.000151595
  3  10.1814
  4  5.37728e-05
  5  3.5281
  6  0.000464547
  7  1.879
  8  1.04063
  9  1.27506
  10  19.0184
  11  37.2026
  12  4.04343e-05
  13  0.000808873
  14  2.20562
  15  19.171
  16  2.06623
  17  1.62132
  18  22.9283
  19  2.98487
  20  4.07963e-05
  21  0.441763
  22  2.91795
  23  2.67974
  24  0.18461
  25  0.0505641
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 24579.8369172

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.247e+01  1.902e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.019e+00  5.056e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  8.944e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.94e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.28e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24579.0294838
delta logL = 0.807433470261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24579.0076485
delta logL = 0.829268742949

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.077       1.0000          .0000       .10000E+07
     2 'Index     '    2.2457       1.0000          .0000       10.000    
     3 'Normalizat'    .93301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24579.01     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      224 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.090        21.133        .16887E-03   -.10222E-01
   2  Index         2.2457        .32737        .24544       -.22310E-03
   3  Normalizat    .93316        .15834        .11971       -.41272E-03
   4  Prefactor     1.0109        .49110E-01    .43199E-01   -.18041E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.0899
  Index      = 2.24575
  Normalizat = 0.933163
  Prefactor  = 1.01086
 **********
 **   18 **HESSE 
 **********

 FCN=   24579.01     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.090        20.166        .67546E-05   -1.5589    
   2  Index         2.2457        .41237        .10406E-01   -.58338    
   3  Normalizat    .93316        .17262        .53098E-03   -.95304    
   4  Prefactor     1.0109        .53210E-01    .15910E-03   -.92368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39155e-09
Minuit parameter uncertainties:
  1  20.1659
  2  0.413041
  3  0.172722
  4  0.0532124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24579.0076478
delta logL = 0.829269472099

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.509e+01  2.017e+01  0.000e+00  1.000e+06 ( 1.000e-12)
201        Index:  2.246e+00  4.130e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.011e+00  5.321e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  9.332e-01  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.25 +/- 0.41
Photon Flux (Free Index): 6.83e-08 +/- 4.88e-08
Energy Flux (Free Index): 2.83e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17373384/cmap_HighResolution_786931201_787536001_4FGL_J0427.3+0504_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.83e-05', photon_flux_error='5.94e-08', dlogl='8.29e-01', energy_flux='2.19e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2025-12-16 01:38:34.764000', photon_index_error2='0.41', photon_index2='2.25', ts='4.82', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.89', time_epoch_completed='1765877914.76', return_code='0', job_id='17373384', GAL2='1.01', EG2='0.93', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.88e-08', ts2='6.40', photon_index='2.86' WHERE bin_id='906' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:38:35 PST 2025

