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


Performing analysis on: 4FGL_J1307.6-4259_daily_bin2114
RA = 196.91, Dec = -42.995
tmin = 787276801, 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='17372928', job_status='RUN', time_executed='2025-12-16 01:04:55.338849', time_epoch_executed='1765875895.34' WHERE source_name='4FGL J1307.6-4259' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17372928/ft1_4FGL_J1307.6-4259_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372928/ft1_4FGL_J1307.6-4259_daily_bin2114.fits outfile=/lscratch/kocevski/17372928/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin2114.fits ra=196.91 dec=-42.995 rad=12.0 tmin=787276801.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 3.35
user 2.17
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.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/17372928/ft1_filteredMKT_4FGL_J1307.6-4259_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.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.20
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1574

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372928/ltcube_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.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/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits
.....................!
real 9.70
user 8.60
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372928/ltcube_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.fits outfile=/lscratch/kocevski/17372928/expmap_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.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/17372928/ltcube_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.fits
.....................!
real 76.92
user 71.50
sys 4.16

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/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits scfile=/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits outfile=/lscratch/kocevski/17372928/cmap_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.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 1.21
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits scfile=/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits outfile=/lscratch/kocevski/17372928/cmap_HighResolution_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.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 1.08
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372928/Model_4FGL_J1307.6-4259_daily_bin2114.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/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits.....................!
real 128.71
user 125.73
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits', '/lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits', expMap='/lscratch/kocevski/17372928/expmap_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.fits', expCube='/lscratch/kocevski/17372928/ltcube_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372928/Model_4FGL_J1307.6-4259_daily_bin2114.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/17372928/ft1_filtered_4FGL_J1307.6-4259_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17372928/ft2_4FGL_J1307.6-4259_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17372928/expmap_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17372928/ltcube_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372928/Model_4FGL_J1307.6-4259_daily_bin2114.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) = 15799.2867785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2821       1.0000          .0000       .10000E+07
     2 'Prefactor '    .28057E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.2230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19755E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .63450E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.6724       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.7028       1.0000          .0000       .10000E+07
     8 'norm      '    14.394       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9389       1.0000          .0000       .10000E+07
    10 'norm      '    1.3817       1.0000          .0000       .10000E+07
    11 'norm      '    5.1055       1.0000          .0000       .10000E+07
    12 'norm      '    12.850       1.0000          .0000       .10000E+07
    13 'Prefactor '    .41841       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.200       1.0000          .0000       .10000E+07
    15 'norm      '    12.231       1.0000          .0000       .10000E+07
    16 'Prefactor '    .97762E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    57.402       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21487E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3587       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0028       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=   15799.28     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1623 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3171        10.102       -.19005E-07    .34095E-04
   2  Prefactor      .0000        13.612       -.24106E-06** at limit **
   3  Prefactor     2.2257        1.6780       -.33050E-06    .85100E-05
   4  Prefactor      .0000        19.863        .79112E-06** at limit **
   5  Prefactor      .0000        6.3931       -.35466E-06** at limit **
   6  norm          1.6715        3.2146        .65959E-07   -.95419E-04
   7  Prefactor     5.6981        6.6144        .23741E-06    .96174E-04
   8  norm          14.398        10.339        .11242E-07    .19999E-04
   9  Prefactor     6.8898        5.4080        .43911E-07   -.54530E-05
  10  norm          1.3161        12.134        .27269E-06    .62792E-05
  11  norm          5.1126        4.3103        .10998E-07   -.65507E-04
  12  norm          12.950        5.5422       -.11278E-06   -.84691E-04
  13  Prefactor     8.5574        360.19        .73891E-06   -.48951E-05
  14  Prefactor     20.337        64.842       -.68017E-06   -.74902E-04
  15  norm          12.263        24.987        .29630E-06    .91617E-06
  16  Prefactor      .0000        11.761       -.61305E-07** at limit **
  17  Prefactor     62.635        212.90        .22443E-05    .89729E-04
  18  Prefactor      .0000        20.019        .26494E-06** at limit **
  19  Normalizat    1.3583        .25679        .22137E-05   -.66331E-05
  20  Prefactor     1.0026        .76384E-01   -.82448E-06   -.11624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31711
  Prefactor  = 0
  Prefactor  = 2.22569
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.67148
  Prefactor  = 5.69815
  norm       = 14.3982
  Prefactor  = 6.88982
  norm       = 1.3161
  norm       = 5.11261
  norm       = 12.95
  Prefactor  = 8.55744
  Prefactor  = 20.3373
  norm       = 12.2631
  Prefactor  = 0
  Prefactor  = 62.6353
  Prefactor  = 0
  Normalizat = 1.35829
  Prefactor  = 1.00263
 **********
 **   18 **HESSE 
 **********

 FCN=   15799.28     FROM HESSE     STATUS=OK           339 CALLS     1962 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3171        10.090        .32871E-03   -1.5647    
   2  Prefactor      .0000        13.602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2257        1.6783        .68948E-02   -1.5410    
   4  Prefactor      .0000        19.797        .17053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        6.3767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6715        3.2433        .81475E-03   -1.5682    
   7  Prefactor     5.6981        6.6167        .42038E-03   -1.5660    
   8  norm          14.398        10.345        .26374E-03   -1.5632    
   9  Prefactor     6.8898        5.4128        .38062E-03   -1.5655    
  10  norm          1.3161        12.122        .92543E-03   -1.5685    
  11  norm          5.1126        4.3117        .44473E-03   -1.5663    
  12  norm          12.950        5.5951        .27918E-03   -1.5636    
  13  Prefactor     8.5574        365.09        .87384E-03   -1.5649    
  14  Prefactor     20.337        64.480        .22257E-03   -1.5618    
  15  norm          12.263        24.962        .28617E-03   -1.5638    
  16  Prefactor      .0000        11.758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.635        211.11        .13200E-03   -1.5550    
  18  Prefactor      .0000        19.980        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3583        .22300        .10753       -.81843    
  20  Prefactor     1.0026        .65959E-01    .44724E-01   -.92642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3991e-06
Minuit parameter uncertainties:
  1  10.0903
  2  1.81552e-07
  3  1.67838
  4  8.02784e-06
  5  6.23261e-06
  6  3.2433
  7  6.61674
  8  10.3452
  9  5.41277
  10  7.98843
  11  4.31173
  12  5.59511
  13  111.796
  14  64.4825
  15  24.9618
  16  1.99246e-06
  17  211.14
  18  7.04017e-08
  19  0.223155
  20  0.0659638
Done.

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

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  6.890e+00  5.413e+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

GAL_V02
   Spectrum: PowerLaw
956    Prefactor:  1.003e+00  6.596e-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.358e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.45
Ra Dec: 196.910 -42.995
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 2.45e-05

TS (Fixed Index): 3.45
Ra Dec: 196.910 -42.995
Photon Flux Upper Limit: 1.06304463488e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00793169226751 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372928/likelihoodResults_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.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) = 15799.2759768
delta logL = 0.00676639673475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15799.2755239
delta logL = 0.00721931927001

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15799.28     FROM MIGRAD    STATUS=FAILED       102 CALLS      269 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0253        5.7859        .15133E-04    .99162E-04
   2  Index         1.8512        .76368        .16482E-01    .81644E-03
   3  Normalizat    1.3626        .25081        .47601E-03   -.17721E-04
   4  Prefactor     1.0025        .72876E-01    .15871E-03   -.32522E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15799.28     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      339 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0253        5.7859        .82211E-05   -1.5655    
   2  Index         1.8512        .76368        .67784E-03   -.68123    
   3  Normalizat    1.3626        .25081        .28345E-03   -.81716    
   4  Prefactor     1.0025        .72876E-01    .96865E-04   -.92647    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15799.28     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      366 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0253        5.6984        .60534E-06    .97469E-04
   2  Index         1.8512        .75372        .32964E-02    .31763E-04
   3  Normalizat    1.3626        .25059        .19041E-04   -.17674E-04
   4  Prefactor     1.0025        .72911E-01    .63482E-05   -.32235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.0253
  Index      = 1.85124
  Normalizat = 1.36262
  Prefactor  = 1.00246
 **********
 **   18 **HESSE 
 **********

 FCN=   15799.28     FROM HESSE     STATUS=OK            25 CALLS      391 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0253        5.6908        .37324E-06   -1.5655    
   2  Index         1.8512        .75229        .65929E-03   -.68123    
   3  Normalizat    1.3626        .25054        .38081E-05   -.81716    
   4  Prefactor     1.0025        .72914E-01    .12696E-05   -.92647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55127e-13
Minuit parameter uncertainties:
  1  5.69083
  2  0.75708
  3  0.250763
  4  0.0729208
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) = 15799.2755167
delta logL = 0.00722654097626

Extracting fit parameters...

4FGL J1307.6-4259
   Spectrum: PowerLaw
401    Prefactor:  7.025e+00  5.691e+00  0.000e+00  1.000e+06 ( 1.000e-13)
402        Index:  1.851e+00  7.571e-01  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:  1.002e+00  7.292e-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.363e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 196.910 -42.995
Photon Index (Free Index): 1.85 +/- 0.76
Photon Flux (Free Index): 3.27e-08 +/- 5.64e-08
Energy Flux (Free Index): 3.36e-05 +/- 3.49e-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/17372928/cmap_HighResolution_787276801_787536001_4FGL_J1307.6-4259_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='3.36e-05', photon_flux_error='3.03e-08', dlogl='7.23e-03', energy_flux='3.12e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2025-12-16 01:20:32.313846', photon_index_error2='0.76', photon_index2='1.85', ts='3.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='3.49e-05', EG='1.36', time_epoch_completed='1765876832.31', return_code='0', job_id='17372928', GAL2='1.00', EG2='1.36', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='5.64e-08', ts2='3.47', photon_index='1.94' WHERE bin_id='2114' AND source_name='4FGL J1307.6-4259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:20:33 PST 2025

