/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 = 17306
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1309.4+4305_weekly_bin906
RA = 197.363, Dec = 43.085
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='17379149', job_status='RUN', time_executed='2025-12-16 02:30:48.192139', time_epoch_executed='1765881048.19' WHERE source_name='4FGL J1309.4+4305' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379149

Creating custom pfile directory:
/lscratch/kocevski/17379149/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/17379149/ft1_4FGL_J1309.4+4305_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/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379149/ft1_4FGL_J1309.4+4305_weekly_bin906.fits outfile=/lscratch/kocevski/17379149/ft1_filteredMKT_4FGL_J1309.4+4305_weekly_bin906.fits ra=197.363 dec=43.085 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 5.41
user 4.56
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_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/17379149/ft1_filteredMKT_4FGL_J1309.4+4305_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_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 0.83
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1394

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379149/ltcube_786931201_787536001_4FGL_J1309.4+4305_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/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits
.....................!
real 18.02
user 17.18
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379149/ltcube_786931201_787536001_4FGL_J1309.4+4305_weekly_bin906.fits outfile=/lscratch/kocevski/17379149/expmap_786931201_787536001_4FGL_J1309.4+4305_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/17379149/ltcube_786931201_787536001_4FGL_J1309.4+4305_weekly_bin906.fits
.....................!
real 65.57
user 61.31
sys 3.30

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits scfile=/lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits outfile=/lscratch/kocevski/17379149/cmap_786931201_787536001_4FGL_J1309.4+4305_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=197.363 yref=43.085 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.02
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits scfile=/lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits outfile=/lscratch/kocevski/17379149/cmap_HighResolution_786931201_787536001_4FGL_J1309.4+4305_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=197.363 yref=43.085 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 0.95
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379149/Model_4FGL_J1309.4+4305_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/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits.....................!
real 42.27
user 40.20
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits', '/lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits', expMap='/lscratch/kocevski/17379149/expmap_786931201_787536001_4FGL_J1309.4+4305_weekly_bin906.fits', expCube='/lscratch/kocevski/17379149/ltcube_786931201_787536001_4FGL_J1309.4+4305_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379149/Model_4FGL_J1309.4+4305_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17379149/ft1_filtered_4FGL_J1309.4+4305_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379149/ft2_4FGL_J1309.4+4305_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379149/expmap_786931201_787536001_4FGL_J1309.4+4305_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379149/ltcube_786931201_787536001_4FGL_J1309.4+4305_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379149/Model_4FGL_J1309.4+4305_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) = 15301.0628141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80991E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5634       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20919E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8304       1.0000          .0000       .10000E+07
     5 'norm      '    .55596       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10464E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.7828       1.0000          .0000       .10000E+07
     8 'Prefactor '    .67628       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.4023       1.0000          .0000       .10000E+07
    10 'norm      '    .84621E-06   1.0000          .0000       .10000E+07
    11 'norm      '    7.4612       1.0000          .0000       .10000E+07
    12 'norm      '    9.8602       1.0000          .0000       .10000E+07
    13 'norm      '    5.8244       1.0000          .0000       .10000E+07
    14 'norm      '    .61817E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .36584E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .63822E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.6084       1.0000          .0000       .10000E+07
    18 'Prefactor '    10.441       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.6322       1.0000          .0000       .10000E+07
    20 'norm      '    .31120E-03   1.0000          .0000       .10000E+07
    21 'norm      '    2.3755       1.0000          .0000       .10000E+07
    22 'norm      '    6.7348       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15301.05     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1991 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    1.1249        .61306E-07** at limit **
   2  Prefactor     6.5552        2.8686        .66127E-07    .10940    
   3  Prefactor     .88818E-09    4.0181       -.61846E-06** at limit **
   4  Prefactor     7.7194        7.9204        .26539E-06    .24494E-02
   5  norm          .55501        .82198        .48822E-07   -.23687E-02
   6  Prefactor     .53846E-08    6.8217       -.45378E-06** at limit **
   7  norm          2.8408        2.8269        .77307E-07   -.21043E-02
   8  Prefactor     .56621E-08    254.09        .24459E-05** at limit **
   9  Prefactor     9.3506        11.074        .17815E-06   -.40091E-02
  10  norm           .0000        .96263        .19100E-07** at limit **
  11  norm          7.4563        5.7716       -.13346E-06    .21226E-02
  12  norm          9.9167        4.1822        .21397E-07    .28362E-02
  13  norm          5.7750        5.8400        .43039E-07   -.31400E-02
  14  norm           .0000        .57537       -.41151E-07** at limit **
  15  Prefactor     .21649E-08    4.7729        .17581E-06** at limit **
  16  Prefactor     .16653E-09    23.087       -.13734E-06** at limit **
  17  Prefactor     .76609        118.44       -.34085E-05   -.32978E-02
  18  Prefactor     10.553        3.1992        .21697E-06   -.34244E-01
  19  Prefactor     10.118        16.178       -.10205E-05    .15057E-01
  20  norm          .46629E-08    1.2336       -.27774E-06** at limit **
  21  norm          2.3737        .90862        .25313E-07   -.39401E-03
  22  norm          6.7051        6.9193       -.27624E-07    .38981E-02
  23  Normalizat    1.1112        .12044       -.33325E-05    .15043E-03
  24  Prefactor     .90077        .14766        .45606E-05    .25773E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 6.55522
  Prefactor  = 8.88178e-10
  Prefactor  = 7.71939
  norm       = 0.555006
  Prefactor  = 5.38458e-09
  norm       = 2.84083
  Prefactor  = 5.66214e-09
  Prefactor  = 9.3506
  norm       = 0
  norm       = 7.45628
  norm       = 9.91675
  norm       = 5.77504
  norm       = 0
  Prefactor  = 2.16493e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 0.766091
  Prefactor  = 10.5527
  Prefactor  = 10.1177
  norm       = 4.66294e-09
  norm       = 2.37372
  norm       = 6.70513
  Normalizat = 1.11123
  Prefactor  = 0.900773
 **********
 **   18 **HESSE 
 **********

 FCN=   15301.05     FROM HESSE     STATUS=OK           465 CALLS     2456 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    1.1278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5552        10.123        .39148E-03   -1.5657    
   3  Prefactor     .88818E-09    4.0487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7194        7.9323        .35810E-03   -1.5652    
   5  norm          .55501        .84596        .73269E-03   -1.5693    
   6  Prefactor     .53846E-08    7.3730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8408        3.1827        .60973E-03   -1.5674    
   8  Prefactor     .56621E-08    17.475        .94466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3506        11.217        .32659E-03   -1.5647    
  10  norm           .0000        .96067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4563        5.7751        .36693E-03   -1.5653    
  12  norm          9.9167        4.2575        .31888E-03   -1.5645    
  13  norm          5.7750        5.7690        .41591E-03   -1.5660    
  14  norm           .0000        .57536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .21649E-08    .90399        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16653E-09    23.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .76609        132.48        .83506E-03   -1.5690    
  18  Prefactor     10.553        19.425        .30984E-03   -1.5643    
  19  Prefactor     10.118        17.655        .32265E-03   -1.5644    
  20  norm          .46629E-08    .87497        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3737        .91297        .66444E-03   -1.5677    
  22  norm          6.7051        6.9318        .38641E-03   -1.5656    
  23  Normalizat    1.1112        .10307        .37589E-01   -.89392    
  24  Prefactor     .90077        .12528        .65473E-01   -.96114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07778e-07
Minuit parameter uncertainties:
  1  1.3913e-05
  2  10.1227
  3  0.000120705
  4  7.93228
  5  0.845959
  6  0.000398397
  7  3.18265
  8  0.000629438
  9  11.2175
  10  8.91799e-06
  11  5.77506
  12  4.25745
  13  5.76903
  14  2.15092e-06
  15  8.83769e-05
  16  0.000118436
  17  20.1489
  18  19.4253
  19  17.6554
  20  0.000128037
  21  0.912973
  22  6.93181
  23  0.103088
  24  0.125318
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.456e+00  5.775e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.008e-01  1.253e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.111e+00  1.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.56
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 7.81e-09 +/- 6.05e-09
Energy Flux (Fixed Index): 8.58e-06 +/- 6.65e-06

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) = 15300.9789498
delta logL = 0.0681534541927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15300.9766233
delta logL = 0.0704799684063

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15300.98     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7697        110.48        .35955E-03    .46866E-03
   2  alpha         2.1631        3.3999        .41633        .34639E-04
   3  Normalizat    1.1041        .51406E-01    .37839E-01    .82932E-05
   4  Prefactor     .90378        .44451E-01    .65372E-01    .36697E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.76969
  alpha      = 2.16314
  Normalizat = 1.10407
  Prefactor  = 0.903781
 **********
 **   18 **HESSE 
 **********

 FCN=   15300.98     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7697        5.8267        .14382E-04   -1.5652    
   2  alpha         2.1631        1.0520        .22319E-01   -.13516    
   3  Normalizat    1.1041        .12057        .21210E-03   -.89621    
   4  Prefactor     .90378        .14713        .28915E-03   -.96009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74247e-09
Minuit parameter uncertainties:
  1  5.82673
  2  1.08654
  3  0.120599
  4  0.14719
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) = 15300.9766231
delta logL = 0.0704801503234

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.770e+00  5.827e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  2.163e+00  1.087e+00  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.038e-01  1.472e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.104e+00  1.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.69
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.16 +/- 1.09
Photon Flux (Free Index): 1.45e-08 +/- 2.49e-08
Energy Flux (Free Index): 7.29e-06 +/- 5.36e-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/17379149/cmap_HighResolution_786931201_787536001_4FGL_J1309.4+4305_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.81e-09', energy_flux2='7.29e-06', photon_flux_error='6.05e-09', dlogl='7.05e-02', energy_flux='8.58e-06', photon_flux2='1.45e-08', job_status='DONE', time_completed='2025-12-16 02:43:20.720052', photon_index_error2='1.09', photon_index2='2.16', ts='6.56', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='5.36e-06', EG='1.11', time_epoch_completed='1765881800.72', return_code='0', job_id='17379149', GAL2='0.90', EG2='1.10', return_code2='0', energy_flux_error='6.65e-06', photon_flux_error2='2.49e-08', ts2='6.69', photon_index='1.77' WHERE bin_id='906' AND source_name='4FGL J1309.4+4305' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:43:21 PST 2025

