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


Performing analysis on: 4FGL_J1307.6-4259_daily_bin2121
RA = 196.91, Dec = -42.995
tmin = 789091201, tmax = 789350401
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='18469106', job_status='RUN', time_executed='2026-01-06 00:58:08.871816', time_epoch_executed='1767689888.87' WHERE source_name='4FGL J1307.6-4259' and cadence='daily' and bin_id='2121'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18469106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18469106/ft1_4FGL_J1307.6-4259_daily_bin2121.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18469106/ft1_4FGL_J1307.6-4259_daily_bin2121.fits outfile=/lscratch/kocevski/18469106/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin2121.fits ra=196.91 dec=-42.995 rad=12.0 tmin=789091201.0 tmax=789350401.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 2.13
user 1.46
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.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/18469106/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin2121.fits evtable="EVENTS" outfile="/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.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.93
user 0.19
sys 0.12

Number of photons that the gtmktime cut: 1439

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18469106/ltcube_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.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/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits
.....................!
real 9.88
user 9.23
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits evtable="EVENTS" scfile=/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18469106/ltcube_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.fits outfile=/lscratch/kocevski/18469106/expmap_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.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/18469106/ltcube_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.fits
.....................!
real 67.02
user 62.71
sys 3.51

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 CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 272 point sources and 6 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 J1307.6-4259 @ 196.91 -42.995

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits scfile=/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits outfile=/lscratch/kocevski/18469106/cmap_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.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=196.91 yref=-42.995 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.73
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits scfile=/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits outfile=/lscratch/kocevski/18469106/cmap_HighResolution_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.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=196.91 yref=-42.995 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.76
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits evtable="EVENTS" scfile=/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18469106/Model_4FGL_J1307.6-4259_daily_bin2121.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 CenA Lobes
adding source EG_v02
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits.....................!
real 102.99
user 100.73
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits', '/lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits', expMap='/lscratch/kocevski/18469106/expmap_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.fits', expCube='/lscratch/kocevski/18469106/ltcube_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18469106/Model_4FGL_J1307.6-4259_daily_bin2121.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1307.6-4259'

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  2.721e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18469106/ft1_filtered_4FGL_J1307.6-4259_daily_bin2121.fits
Spacecraft file(s): /lscratch/kocevski/18469106/ft2_4FGL_J1307.6-4259_daily_bin2121.fits
Exposure map: /lscratch/kocevski/18469106/expmap_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.fits
Exposure cube: /lscratch/kocevski/18469106/ltcube_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18469106/Model_4FGL_J1307.6-4259_daily_bin2121.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) = 14666.099466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83876       1.0000          .0000       .10000E+07
     2 'Prefactor '    53.451       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12049E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33512E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
     6 'norm      '    .61215E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .21194E-06   1.0000          .0000       .10000E+07
     8 'norm      '    7.9714       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26562E-06   1.0000          .0000       .10000E+07
    10 'norm      '    14.512       1.0000          .0000       .10000E+07
    11 'norm      '    4.4738       1.0000          .0000       .10000E+07
    12 'norm      '    1.7328       1.0000          .0000       .10000E+07
    13 'Prefactor '    200.79       1.0000          .0000       .10000E+07
    14 'Prefactor '    .57989E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    16 'Prefactor '    .33307E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    247.18       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.8580       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.6750       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14666.10     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1806 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83898        16.521       -.22560E-05   -.17046E-02
   2  Prefactor     53.508        4.9691       -.11715E-06    .60439E-01
   3  Prefactor     .10000E-03    10.045        .15451E-04** at limit **
   4  Prefactor     .50515E-08    92.243       -.53959E-05** at limit **
   5  Prefactor      .0000        4.5267        .16660E-06** at limit **
   6  norm          .12046E-07    20.131       -.17347E-06** at limit **
   7  Prefactor     .21594E-07    14.517       -.24397E-05** at limit **
   8  norm          7.9713        7.3749        .28553E-06    .19420E-03
   9  Prefactor      .0000        4.8080       -.51398E-07** at limit **
  10  norm          14.512        7.5445        .66573E-06    .73522E-04
  11  norm          4.4741        4.6897       -.12688E-06    .25155E-03
  12  norm          1.7328        3.0218        .25293E-06   -.81349E-04
  13  Prefactor     200.80        1.0014       -.78908E-09    .28244E-02
  14  Prefactor     .38858E-09    57.250       -.14175E-05** at limit **
  15  norm          .29199E-07    5.0689       -.15491E-05** at limit **
  16  Prefactor     .11158E-07    13.663       -.82643E-06** at limit **
  17  Prefactor     247.18        1.0000       -.20349E-09    .55969E-03
  18  Prefactor     8.8558        1.0956       -.11203E-07   -.15595E-02
  19  Normalizat    1.6749        .28972        .14211E-05    .25412E-04
  20  Prefactor     .99487        .82256E-01   -.15596E-05    .36206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.838977
  Prefactor  = 53.508
  Prefactor  = 0.0001
  Prefactor  = 5.05151e-09
  Prefactor  = 0
  norm       = 1.20459e-08
  Prefactor  = 2.15938e-08
  norm       = 7.9713
  Prefactor  = 0
  norm       = 14.5121
  norm       = 4.4741
  norm       = 1.73279
  Prefactor  = 200.801
  Prefactor  = 3.88578e-10
  norm       = 2.91989e-08
  Prefactor  = 1.11577e-08
  Prefactor  = 247.181
  Prefactor  = 8.85579
  Normalizat = 1.67491
  Prefactor  = 0.994871
 **********
 **   18 **HESSE 
 **********

 FCN=   14666.10     FROM HESSE     STATUS=OK           337 CALLS     2143 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83898        16.536        .50090E-03   -1.5690    
   2  Prefactor     53.508        32.964        .13679E-03   -1.5562    
   3  Prefactor     .10000E-03    1.6519        .74561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .50515E-08    92.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        4.5419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .12046E-07    20.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .21594E-07    16.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.9713        7.3757        .35489E-03   -1.5651    
   9  Prefactor      .0000        4.7537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.512        7.5250        .26266E-03   -1.5632    
  11  norm          4.4741        4.6964        .47580E-03   -1.5666    
  12  norm          1.7328        3.0476        .79708E-03   -1.5682    
  13  Prefactor     200.80        181.54        .70578E-04   -1.5425    
  14  Prefactor     .38858E-09    57.261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .29199E-07    15.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11158E-07    16.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     247.18        290.55        .63613E-04   -1.5394    
  18  Prefactor     8.8558        46.692        .33654E-03   -1.5648    
  19  Normalizat    1.6749        .24968        .10758       -.72975    
  20  Prefactor     .99487        .70184E-01    .46203E-01   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59838e-07
Minuit parameter uncertainties:
  1  7.44936
  2  32.9636
  3  3.13475e-06
  4  0.00136147
  5  8.55122e-07
  6  0.000987822
  7  0.00117966
  8  7.37572
  9  1.75904e-05
  10  7.52498
  11  4.69641
  12  3.04765
  13  181.54
  14  0.00028821
  15  0.00135909
  16  0.000866128
  17  290.57
  18  40.6698
  19  0.249865
  20  0.07019
Done.

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

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  0.000e+00  1.759e-05  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  9.949e-01  7.019e-02  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  1.675e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 196.910 -42.995
Photon Flux Upper Limit: 5.67624633177e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00423521625161 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18469106/likelihoodResults_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.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) = 14666.2197377
delta logL = -0.124499457281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14666.095241
delta logL = -2.75450656773e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14666.10     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      191 TOTAL
                     EDM=   .44E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.3981       -.22073E-06** at limit **
   2  Index         1.6316        1.4128       -.51709E-05     .0000    
   3  Normalizat    1.6749        .28404        .41224E-06    .47230E-06
   4  Prefactor     .99487        .79891E-01    .94785E-06    .21422E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.63161
  Normalizat = 1.67491
  Prefactor  = 0.994871
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14666.10     FROM HESSE     STATUS=FAILED        11 CALLS      202 TOTAL
                     EDM=   .44E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.3655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .25638        1.5831       -.51709E-05   -.73917    
   3  Normalizat    1.6749        1.0355        .41224E-06   -.72975    
   4  Prefactor     .99487        1.3343        .94785E-06   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.39321e-15
Minuit parameter uncertainties:
  1  7.33133e-07
  2  1.30487
  3  1.04933
  4  1.38298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 14666.0952382
delta logL = 0.0

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  0.000e+00  7.331e-07  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.632e+00  1.305e+00  0.000e+00  1.000e+01 (-1.000e+00)
403        Scale:  2.533e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  9.949e-01  1.383e+00  0.000e+00  1.000e+01 ( 1.000e+00)
957        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
958        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
944   Normalization:  1.675e+00  1.049e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 196.910 -42.995

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/18469106/cmap_HighResolution_789091201_789350401_4FGL_J1307.6-4259_daily_bin2121.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2026-01-06 01:10:11.924227', job_id='18469106', GAL2='0.99', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1767690611.92', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='2121' AND source_name='4FGL J1307.6-4259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan  6 01:10:12 PST 2026

