/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_J0505.6+6405_weekly_bin906
RA = 76.4244, Dec = 64.0877
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='17373429', job_status='RUN', time_executed='2025-12-16 01:22:58.650226', time_epoch_executed='1765876978.65' WHERE source_name='4FGL J0505.6+6405' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17373429

Creating custom pfile directory:
/lscratch/kocevski/17373429/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/17373429/ft1_4FGL_J0505.6+6405_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/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17373429/ft1_4FGL_J0505.6+6405_weekly_bin906.fits outfile=/lscratch/kocevski/17373429/ft1_filteredMKT_4FGL_J0505.6+6405_weekly_bin906.fits ra=76.4244 dec=64.0877 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.78
user 5.45
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_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/17373429/ft1_filteredMKT_4FGL_J0505.6+6405_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_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.21
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 4945

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17373429/ltcube_786931201_787536001_4FGL_J0505.6+6405_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/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits
.....................!
real 19.60
user 18.62
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17373429/ltcube_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.fits outfile=/lscratch/kocevski/17373429/expmap_786931201_787536001_4FGL_J0505.6+6405_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/17373429/ltcube_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.fits
.....................!
real 73.82
user 68.74
sys 3.76

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 179 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0505.6+6405 @ 76.4244 64.0877

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits scfile=/lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits outfile=/lscratch/kocevski/17373429/cmap_786931201_787536001_4FGL_J0505.6+6405_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=76.4244 yref=64.0877 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.08
user 0.25
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits scfile=/lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits outfile=/lscratch/kocevski/17373429/cmap_HighResolution_786931201_787536001_4FGL_J0505.6+6405_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=76.4244 yref=64.0877 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.14
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17373429/Model_4FGL_J0505.6+6405_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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits.....................!
real 283.82
user 279.91
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits', '/lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits', expMap='/lscratch/kocevski/17373429/expmap_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.fits', expCube='/lscratch/kocevski/17373429/ltcube_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17373429/Model_4FGL_J0505.6+6405_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0505.6+6405'

4FGL J0505.6+6405
   Spectrum: LogParabola
291         norm:  5.624e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
292        alpha:  2.328e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.641e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.144e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17373429/ft1_filtered_4FGL_J0505.6+6405_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17373429/ft2_4FGL_J0505.6+6405_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17373429/expmap_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17373429/ltcube_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17373429/Model_4FGL_J0505.6+6405_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) = 48277.1623546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.637       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1756       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6594       1.0000          .0000       .10000E+07
     4 'Prefactor '    14.859       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40101E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .68590E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     8 'norm      '    16.272       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9337       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.3711       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15599E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2865       1.0000          .0000       .10000E+07
    13 'Prefactor '    13.237       1.0000          .0000       .10000E+07
    14 'Prefactor '    24.107       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .97473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   48277.12     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     1041 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.638        1.1300       -.15499E-06    .16991E-01
   2  Prefactor     1.1752        1.7027        .22128E-06   -.31304E-02
   3  Prefactor     1.6589        1.4099        .24039E-06   -.54332E-02
   4  Prefactor     14.857        1.0630        .18975E-06    .67044E-03
   5  Prefactor     .59952E-08    12.785        .30034E-05** at limit **
   6  Prefactor     .22593E-07    16.780       -.31234E-06** at limit **
   7  norm          .22204E-09    1.9089        .10433E-05** at limit **
   8  norm          16.268        8.7046        .44341E-05   -.12249    
   9  Prefactor     4.9339        4.2178        .18908E-07   -.29165E-04
  10  Prefactor     2.3679        7.8390       -.10673E-04   -.51906E-01
  11  Prefactor     .18874E-08    4.0215        .71365E-06** at limit **
  12  Prefactor     3.2872        4.3602       -.95083E-06   -.77520E-03
  13  Prefactor     13.239        1.0449        .13270E-06   -.13152E-01
  14  Prefactor     24.103        1.0338       -.10178E-06    .15785E-01
  15  Normalizat    1.1368        .12229       -.21708E-05    .35379E-03
  16  Prefactor     .97474        .25607E-01   -.30571E-05   -.78707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6382
  Prefactor  = 1.1752
  Prefactor  = 1.65893
  Prefactor  = 14.8569
  Prefactor  = 5.9952e-09
  Prefactor  = 2.2593e-08
  norm       = 2.22045e-10
  norm       = 16.2678
  Prefactor  = 4.93392
  Prefactor  = 2.36791
  Prefactor  = 1.88738e-09
  Prefactor  = 3.28719
  Prefactor  = 13.2393
  Prefactor  = 24.1026
  Normalizat = 1.13675
  Prefactor  = 0.974742
 **********
 **   18 **HESSE 
 **********

 FCN=   48277.12     FROM HESSE     STATUS=OK           241 CALLS     1282 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.638        19.767        .20151E-03   -1.5609    
   2  Prefactor     1.1752        1.7386        .10560E-02   -1.5686    
   3  Prefactor     1.6589        1.4373        .81873E-03   -1.5682    
   4  Prefactor     14.857        10.724        .25957E-03   -1.5631    
   5  Prefactor     .59952E-08    12.794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22593E-07    16.829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22204E-09    1.9098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.268        12.855        .24802E-03   -1.5627    
   9  Prefactor     4.9339        4.2149        .45256E-03   -1.5664    
  10  Prefactor     2.3679        12.018        .66512E-03   -1.5677    
  11  Prefactor     .18874E-08    4.0336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2872        4.3699        .55827E-03   -1.5672    
  13  Prefactor     13.239        13.492        .27505E-03   -1.5635    
  14  Prefactor     24.103        21.953        .20372E-03   -1.5610    
  15  Normalizat    1.1368        .12139        .12733       -.88580    
  16  Prefactor     .97474        .24781E-01    .28253E-01   -.93576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8307e-07
Minuit parameter uncertainties:
  1  19.7666
  2  1.73864
  3  1.43733
  4  10.7241
  5  0.000554817
  6  0.00123339
  7  4.35764e-05
  8  12.8551
  9  4.21492
  10  10.669
  11  0.000173529
  12  4.36993
  13  13.4924
  14  21.9533
  15  0.121416
  16  0.0247814
Done.

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

Extracting fit parameters...

4FGL J0505.6+6405
   Spectrum: LogParabola
291         norm:  1.627e+01  1.286e+01  0.000e+00  1.000e+06 ( 1.000e-13)
292        alpha:  2.328e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.641e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.144e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.747e-01  2.478e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.137e+00  1.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 76.424 64.088
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 8.71e-06 +/- 6.88e-06

TS (Fixed Index): 2.68
Ra Dec: 76.424 64.088
Photon Flux Upper Limit: 5.7829598489e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36434189021e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17373429/likelihoodResults_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.txt

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) = 48276.8874582
delta logL = 0.235114729228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 48276.887126
delta logL = 0.235446931663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.882       1.0000          .0000       .10000E+07
     2 'alpha     '    2.8175       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   48276.89     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      290 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.864        15.071        .11153E-04    .23485E-02
   2  alpha         2.8183        .84981        .25843E-01    .86231E-04
   3  Normalizat    1.1229        .12469        .56804E-03   -.71890E-04
   4  Prefactor     .97540        .25360E-01    .12481E-03   -.80883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8643
  alpha      = 2.81834
  Normalizat = 1.12291
  Prefactor  = 0.975401
 **********
 **   18 **HESSE 
 **********

 FCN=   48276.89     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.864        12.133        .44612E-06   -1.5636    
   2  alpha         2.8183        .68834        .10337E-02    .12768    
   3  Normalizat    1.1229        .12397        .22721E-04   -.89020    
   4  Prefactor     .97540        .25330E-01    .49926E-05   -.93554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23231e-11
Minuit parameter uncertainties:
  1  12.1326
  2  0.6975
  3  0.124003
  4  0.0253303
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) = 48276.8871249
delta logL = 0.235448082683

Extracting fit parameters...

4FGL J0505.6+6405
   Spectrum: LogParabola
291         norm:  1.286e+01  1.213e+01  0.000e+00  1.000e+06 ( 1.000e-13)
292        alpha:  2.818e+00  6.975e-01  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  1.641e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  1.144e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.754e-01  2.533e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.123e+00  1.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 76.424 64.088
Photon Index (Free Index): 2.82 +/- 0.70
Photon Flux (Free Index): 3.74e-08 +/- 3.25e-08
Energy Flux (Free Index): 9.95e-06 +/- 6.73e-06

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/17373429/cmap_HighResolution_786931201_787536001_4FGL_J0505.6+6405_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='9.95e-06', photon_flux_error='1.68e-08', dlogl='2.35e-01', energy_flux='8.71e-06', photon_flux2='3.74e-08', job_status='DONE', time_completed='2025-12-16 01:48:32.243796', photon_index_error2='0.70', photon_index2='2.82', ts='2.68', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='5.78e-08', energy_flux_error2='6.73e-06', EG='1.14', time_epoch_completed='1765878512.24', return_code='0', job_id='17373429', GAL2='0.98', EG2='1.12', return_code2='0', energy_flux_error='6.88e-06', photon_flux_error2='3.25e-08', ts2='3.18', photon_index='2.33' WHERE bin_id='906' AND source_name='4FGL J0505.6+6405' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:48:32 PST 2025

