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


Performing analysis on: 4FGL_J1309.4+4305_weekly_bin854
RA = 197.363, Dec = 43.085
tmin = 755481601, tmax = 756086401
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='60351984', job_status='RUN', time_executed='2024-12-17 00:36:56.410180', time_epoch_executed='1734424616.41' WHERE source_name='4FGL J1309.4+4305' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351984

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60351984/ft1_4FGL_J1309.4+4305_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351984/ft1_4FGL_J1309.4+4305_weekly_bin854.fits outfile=/lscratch/kocevski/60351984/ft1_filteredMKT_4FGL_J1309.4+4305_weekly_bin854.fits ra=197.363 dec=43.085 rad=12.0 tmin=755481601.0 tmax=756086401.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 4.20
user 3.82
sys 0.31

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

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

Number of photons that the gtmktime cut: 1736

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351984/ltcube_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.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/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits
.....................!
real 25.11
user 24.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351984/ltcube_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.fits outfile=/lscratch/kocevski/60351984/expmap_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.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/60351984/ltcube_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.fits
.....................!
real 59.25
user 55.35
sys 3.48

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/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits scfile=/lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits outfile=/lscratch/kocevski/60351984/cmap_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.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 0.58
user 0.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits scfile=/lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits outfile=/lscratch/kocevski/60351984/cmap_HighResolution_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.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.41
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351984/Model_4FGL_J1309.4+4305_weekly_bin854.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/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits.....................!
real 43.08
user 42.00
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits', '/lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits', expMap='/lscratch/kocevski/60351984/expmap_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.fits', expCube='/lscratch/kocevski/60351984/ltcube_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351984/Model_4FGL_J1309.4+4305_weekly_bin854.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/60351984/ft1_filtered_4FGL_J1309.4+4305_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351984/ft2_4FGL_J1309.4+4305_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351984/expmap_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351984/ltcube_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351984/Model_4FGL_J1309.4+4305_weekly_bin854.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) = 17977.1817343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3082       1.0000          .0000       .10000E+07
     2 'Prefactor '    .28821E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.851       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.602       1.0000          .0000       .10000E+07
     5 'norm      '    2.1688       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.0751       1.0000          .0000       .10000E+07
     7 'norm      '    2.2320       1.0000          .0000       .10000E+07
     8 'Prefactor '    .25402E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    8.1640       1.0000          .0000       .10000E+07
    10 'norm      '    .48188E-04   1.0000          .0000       .10000E+07
    11 'norm      '    9.2313       1.0000          .0000       .10000E+07
    12 'norm      '    143.20       1.0000          .0000       .10000E+07
    13 'norm      '    179.61       1.0000          .0000       .10000E+07
    14 'norm      '    .52819E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10483E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .26950E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    11.300       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.4386       1.0000          .0000       .10000E+07
    19 'Prefactor '    26.678       1.0000          .0000       .10000E+07
    20 'norm      '    .93127E-01   1.0000          .0000       .10000E+07
    21 'norm      '    4.8751       1.0000          .0000       .10000E+07
    22 'norm      '    16.545       1.0000          .0000       .10000E+07
    23 'Normalizat'    .90754       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97694       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=   17977.17     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1939 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3061        3.9361       -.72992E-08    .40607E-04
   2  Prefactor      .0000        6.7596       -.11585E-06** at limit **
   3  Prefactor     10.847        5.0913       -.26355E-07    .18850E-02
   4  Prefactor     10.596        1.4763        .85646E-08   -.77220E-03
   5  norm          2.1684        1.2672        .26029E-07    .78609E-03
   6  Prefactor     4.0478        3.7934        .69415E-07    .34041E-03
   7  norm          2.2311        2.6649       -.22143E-07    .32821E-03
   8  Prefactor     .11102E-09    4.0382       -.11644E-06** at limit **
   9  Prefactor     8.1572        7.7570       -.32433E-07    .66593E-02
  10  norm           .0000        1.2495        .76313E-07** at limit **
  11  norm          9.2309        7.5907        .10255E-06    .12297E-01
  12  norm          143.36        5.0986        .11009E-07   -.15334    
  13  norm          179.18        11.968       -.18828E-07    .11083    
  14  norm           .0000        .60183        .39213E-07** at limit **
  15  Prefactor      .0000        .91521       -.49301E-07** at limit **
  16  Prefactor      .0000        2.0159       -.55023E-08** at limit **
  17  Prefactor     11.658        18.493        .11462E-06    .19348E-01
  18  Prefactor     4.4351        1.9829        .25504E-07   -.88180E-02
  19  Prefactor     25.726        23.513       -.31791E-08   -.18510E-01
  20  norm          .96449E-01    8.4081        .81669E-07** at limit **
  21  norm          4.8806        1.1978        .40573E-07    .33479E-02
  22  norm          16.548        4.1419        .75441E-08    .32351E-01
  23  Normalizat    .90780        .13427        .39889E-07    .23554E-04
  24  Prefactor     .97708        .16454       -.36759E-06    .15056E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.30613
  Prefactor  = 0
  Prefactor  = 10.8466
  Prefactor  = 10.5961
  norm       = 2.16841
  Prefactor  = 4.04783
  norm       = 2.23111
  Prefactor  = 1.11022e-10
  Prefactor  = 8.15716
  norm       = 0
  norm       = 9.23092
  norm       = 143.359
  norm       = 179.183
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 11.6579
  Prefactor  = 4.43511
  Prefactor  = 25.7265
  norm       = 0.0964492
  norm       = 4.88063
  norm       = 16.5477
  Normalizat = 0.907804
  Prefactor  = 0.977078
 **********
 **   18 **HESSE 
 **********

 FCN=   17977.17     FROM HESSE     STATUS=OK           461 CALLS     2400 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3061        3.9449        .43599E-03   -1.5662    
   2  Prefactor      .0000        6.7585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.847        10.357        .30389E-03   -1.5642    
   4  Prefactor     10.596        10.672        .30746E-03   -1.5643    
   5  norm          2.1684        1.2710        .69900E-03   -1.5679    
   6  Prefactor     4.0478        4.0087        .49920E-03   -1.5668    
   7  norm          2.2311        2.6951        .68782E-03   -1.5678    
   8  Prefactor     .11102E-09    4.0547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1572        10.588        .35065E-03   -1.5651    
  10  norm           .0000        1.2467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.2309        7.7134        .32962E-03   -1.5647    
  12  norm          143.36        14.036        .83572E-04   -1.5468    
  13  norm          179.18        27.074        .74624E-04   -1.5440    
  14  norm           .0000        .60042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        .91083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.0177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.658        20.332        .29777E-03   -1.5640    
  18  Prefactor     4.4351        68.244        .47773E-03   -1.5666    
  19  Prefactor     25.726        25.162        .19365E-03   -1.5607    
  20  norm          .96449E-01    .72959        .66400E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.8806        1.1991        .45533E-03   -1.5664    
  22  norm          16.548        9.5641        .24596E-03   -1.5627    
  23  Normalizat    .90780        .11265        .44998E-01   -.96186    
  24  Prefactor     .97708        .13696        .75611E-01   -.93498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00067e-07
Minuit parameter uncertainties:
  1  3.94493
  2  2.0773e-05
  3  10.3572
  4  10.6723
  5  1.27104
  6  4.00869
  7  2.69511
  8  4.4421e-05
  9  10.5882
  10  3.77341e-06
  11  7.7134
  12  14.0356
  13  27.0743
  14  1.09644e-06
  15  2.32538e-07
  16  6.18576e-06
  17  20.3318
  18  34.7953
  19  25.1623
  20  0.530543
  21  1.19915
  22  9.56408
  23  0.112678
  24  0.137004
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.231e+00  7.713e+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.771e-01  1.370e-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:  9.078e-01  1.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.99
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 9.67e-09 +/- 8.08e-09
Energy Flux (Fixed Index): 1.06e-05 +/- 8.88e-06

TS (Fixed Index): 3.99
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 3.03073937483e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32895050085e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60351984/likelihoodResults_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.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) = 17977.0884595
delta logL = 0.0792509578059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17977.0864635
delta logL = 0.0812469116863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6952       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3403       1.0000          .0000       5.0000    
     3 'Normalizat'    .89104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98437       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=   17977.09     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6984        96.107        .32159E-03    .13477E-02
   2  alpha         2.3395        3.6578        .41258        .76170E-04
   3  Normalizat    .89108        .42951E-01    .44787E-01   -.78303E-05
   4  Prefactor     .98434        .39875E-01    .75352E-01   -.22695E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.69836
  alpha      = 2.33954
  Normalizat = 0.891084
  Prefactor  = 0.984339
 **********
 **   18 **HESSE 
 **********

 FCN=   17977.09     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6984        10.533        .12864E-04   -1.5646    
   2  alpha         2.3395        1.5245        .18669E-01   -.64230E-01
   3  Normalizat    .89108        .15099        .27899E-03   -.96774    
   4  Prefactor     .98434        .17134        .33342E-03   -.93253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09349e-08
Minuit parameter uncertainties:
  1  10.5329
  2  1.64017
  3  0.151059
  4  0.17143
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) = 17977.0864634
delta logL = 0.0812470823694

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.698e+00  1.053e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        alpha:  2.340e+00  1.640e+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.843e-01  1.714e-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:  8.911e-01  1.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.34 +/- 1.64
Photon Flux (Free Index): 2.45e-08 +/- 5.29e-08
Energy Flux (Free Index): 9.56e-06 +/- 6.43e-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/60351984/cmap_HighResolution_755481601_756086401_4FGL_J1309.4+4305_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', comment='SUCCESS', photon_flux='9.67e-09', energy_flux2='9.56e-06', photon_flux_error='8.08e-09', dlogl='8.12e-02', energy_flux='1.06e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2024-12-17 00:46:03.659945', photon_index_error2='1.64', photon_index2='2.34', ts='3.99', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='3.03e-08', energy_flux_error2='6.43e-06', EG='0.91', time_epoch_completed='1734425163.66', return_code='0', job_id='60351984', GAL2='0.98', EG2='0.89', return_code2='0', energy_flux_error='8.88e-06', photon_flux_error2='5.29e-08', ts2='4.13', photon_index='1.77' WHERE bin_id='854' AND source_name='4FGL J1309.4+4305' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:46:03 PST 2024

