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


Performing analysis on: 4FGL_J1428.9+5406_weekly_bin802
RA = 217.229, Dec = 54.1114
tmin = 724032001, tmax = 724636801
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='36606641', job_status='RUN', time_executed='2023-12-19 00:50:56.475734', time_epoch_executed='1702975856.48' WHERE source_name='4FGL J1428.9+5406' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36606641

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36606641/ft1_4FGL_J1428.9+5406_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36606641/ft1_4FGL_J1428.9+5406_weekly_bin802.fits outfile=/lscratch/kocevski/36606641/ft1_filteredMKT_4FGL_J1428.9+5406_weekly_bin802.fits ra=217.229 dec=54.1114 rad=12.0 tmin=724032001.0 tmax=724636801.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.85
user 4.58
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.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/36606641/ft1_filteredMKT_4FGL_J1428.9+5406_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.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.48
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1432

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36606641/ltcube_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.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/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits
.....................!
real 32.22
user 31.74
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36606641/ltcube_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.fits outfile=/lscratch/kocevski/36606641/expmap_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.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/36606641/ltcube_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.fits
.....................!
real 74.99
user 70.70
sys 4.00

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

Setting source of interest to:
4FGL J1428.9+5406 @ 217.229 54.1114

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits scfile=/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits outfile=/lscratch/kocevski/36606641/cmap_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.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=217.229 yref=54.1114 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.40
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits scfile=/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits outfile=/lscratch/kocevski/36606641/cmap_HighResolution_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.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=217.229 yref=54.1114 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.43
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36606641/Model_4FGL_J1428.9+5406_weekly_bin802.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/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits.....................!
real 48.33
user 46.86
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits', '/lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits', expMap='/lscratch/kocevski/36606641/expmap_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.fits', expCube='/lscratch/kocevski/36606641/ltcube_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36606641/Model_4FGL_J1428.9+5406_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.9+5406'

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  4.001e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36606641/ft1_filtered_4FGL_J1428.9+5406_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36606641/ft2_4FGL_J1428.9+5406_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36606641/expmap_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36606641/ltcube_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36606641/Model_4FGL_J1428.9+5406_weekly_bin802.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) = 15587.3594962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54046E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    33.626       1.0000          .0000       .10000E+07
     3 'norm      '    2.4748       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.0320       1.0000          .0000       .10000E+07
     5 'norm      '    .52966       1.0000          .0000       .10000E+07
     6 'norm      '    1.5726       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34616E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .81129E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12329E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.471       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.0093       1.0000          .0000       .10000E+07
    12 'Prefactor '    13.239       1.0000          .0000       .10000E+07
    13 'Prefactor '    18.730       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11852E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.413       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.1582       1.0000          .0000       .10000E+07
    17 'norm      '    3.0731       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10986E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11631E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.0310       1.0000          .0000       .10000E+07
    21 'norm      '    .10990E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0760       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77398       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15587.33     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1463 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.8224       -.43652E-06** at limit **
   2  Prefactor     33.617        3.4130       -.11837E-06   -.30624E-01
   3  norm          2.4741        1.7840       -.11344E-07    .16107E-04
   4  Prefactor     6.0076        6.4904        .55684E-06    .20170E-01
   5  norm          .52970        .45614       -.25645E-08   -.20012E-03
   6  norm          1.5723        1.8838        .45955E-07    .27929E-03
   7  Prefactor     .49960E-08    7.1854       -.88653E-07** at limit **
   8  Prefactor     .33307E-09    38.177        .91908E-07** at limit **
   9  Prefactor      .0000        .92301        .10441E-07** at limit **
  10  Prefactor     13.384        2.5948        .11951E-06    .45185E-01
  11  Prefactor     3.0175        1.4518        .11642E-08   -.70407E-03
  12  Prefactor     13.009        3.3938        .10334E-06    .38945E-01
  13  Prefactor     18.625        7.0920        .32587E-06    .17599E-01
  14  Prefactor     .11102E-08    5.5789       -.18073E-06** at limit **
  15  Prefactor     12.411        8.2488       -.25975E-06    .94314E-02
  16  Prefactor     2.1605        8.2289        .77945E-07    .17291E-02
  17  norm          3.0734        1.0233        .69537E-07    .10108E-02
  18  Prefactor     .55511E-10    1.1898       -.38493E-07** at limit **
  19  Prefactor     .72164E-09    3.9237       -.30615E-07** at limit **
  20  Prefactor     5.0280        4.0209       -.26745E-07    .59972E-03
  21  norm          .65531E-06    17.104        .16252E-05** at limit **
  22  Normalizat    1.0765        .11272        .17865E-06    .28902E-04
  23  Prefactor     .77381        .12784       -.49739E-06    .28324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 33.6166
  norm       = 2.47414
  Prefactor  = 6.00762
  norm       = 0.529696
  norm       = 1.57225
  Prefactor  = 4.996e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 13.3836
  Prefactor  = 3.01745
  Prefactor  = 13.0092
  Prefactor  = 18.6247
  Prefactor  = 1.11022e-09
  Prefactor  = 12.4113
  Prefactor  = 2.16051
  norm       = 3.07341
  Prefactor  = 5.55112e-11
  Prefactor  = 7.21645e-10
  Prefactor  = 5.028
  norm       = 6.55309e-07
  Normalizat = 1.07646
  Prefactor  = 0.773815
 **********
 **   18 **HESSE 
 **********

 FCN=   15587.33     FROM HESSE     STATUS=OK           426 CALLS     1889 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.0451        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.617        18.145        .17247E-03   -1.5592    
   3  norm          2.4741        1.7871        .64966E-03   -1.5677    
   4  Prefactor     6.0076        18.161        .40858E-03   -1.5659    
   5  norm          .52970        .44993        .75781E-03   -1.5693    
   6  norm          1.5723        1.9126        .84724E-03   -1.5683    
   7  Prefactor     .49960E-08    7.3987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-09    38.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        .92266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.384        11.512        .27265E-03   -1.5635    
  11  Prefactor     3.0175        1.5684        .58483E-03   -1.5673    
  12  Prefactor     13.009        14.924        .27504E-03   -1.5636    
  13  Prefactor     18.625        19.929        .23115E-03   -1.5622    
  14  Prefactor     .11102E-08    5.5949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.411        8.4285        .28407E-03   -1.5638    
  16  Prefactor     2.1605        8.2507        .70094E-03   -1.5679    
  17  norm          3.0734        1.0252        .57837E-04   -1.5673    
  18  Prefactor     .55511E-10    1.1932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .72164E-09    3.8731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0280        4.0357        .44808E-03   -1.5663    
  21  norm          .65531E-06    1.2643        .53929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0765        .98241E-01    .39071E-01   -.90511    
  23  Prefactor     .77381        .10872        .62155E-01   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97198e-08
Minuit parameter uncertainties:
  1  2.23546e-05
  2  18.1448
  3  1.78714
  4  18.1617
  5  0.449927
  6  1.9126
  7  0.000384977
  8  0.000222538
  9  1.80984e-06
  10  11.5117
  11  1.56839
  12  14.9236
  13  19.9294
  14  0.000155654
  15  8.42854
  16  8.25073
  17  1.0252
  18  1.26166e-05
  19  0.000105398
  20  4.0357
  21  0.00182041
  22  0.0982575
  23  0.10875
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.301e+01  1.492e+01  0.000e+00  1.000e+06 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.738e-01  1.088e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.076e+00  9.826e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 217.229 54.111
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 4.93e-06 +/- 5.65e-06

TS (Fixed Index): 1.11
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 5.82699942284e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00455296518714 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36606641/likelihoodResults_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.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) = 15587.3146595
delta logL = 0.0160123343794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15587.30953
delta logL = 0.0211418036833

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15587.31     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.546        257.30        .29427E-03    .19080E-02
   2  Index         2.7435        3.4505        .22769        .17715E-03
   3  Normalizat    1.0729        .27656E-01    .39235E-01   -.12212E-03
   4  Prefactor     .77660        .28945E-01    .62054E-01    .31420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5459
  Index      = 2.74347
  Normalizat = 1.07287
  Prefactor  = 0.776596
 **********
 **   18 **HESSE 
 **********

 FCN=   15587.31     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.546        16.264        .11771E-04   -1.5640    
   2  Index         2.7435        .93196        .11358E-01   -.46823    
   3  Normalizat    1.0729        .11173        .20495E-03   -.90628    
   4  Prefactor     .77660        .12766        .27447E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33601e-10
Minuit parameter uncertainties:
  1  16.264
  2  0.938876
  3  0.111756
  4  0.127707
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) = 15587.3095266
delta logL = 0.0211452769181

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.155e+01  1.626e+01  0.000e+00  1.000e+06 ( 1.000e-13)
347        Index:  2.743e+00  9.389e-01  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.766e-01  1.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.073e+00  1.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 217.229 54.111
Photon Index (Free Index): 2.74 +/- 0.94
Photon Flux (Free Index): 2.10e-08 +/- 2.37e-08
Energy Flux (Free Index): 4.89e-06 +/- 5.13e-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/36606641/cmap_HighResolution_724032001_724636801_4FGL_J1428.9+5406_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='4.89e-06', photon_flux_error='2.10e-08', dlogl='2.11e-02', energy_flux='4.93e-06', photon_flux2='2.10e-08', job_status='DONE', time_completed='2023-12-19 01:00:09.756696', photon_index_error2='0.94', photon_index2='2.74', ts='1.11', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='5.83e-08', energy_flux_error2='5.13e-06', EG='1.08', time_epoch_completed='1702976409.76', return_code='0', job_id='36606641', GAL2='0.78', EG2='1.07', return_code2='0', energy_flux_error='5.65e-06', photon_flux_error2='2.37e-08', ts2='1.17', photon_index='2.57' WHERE bin_id='802' AND source_name='4FGL J1428.9+5406' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:00:09 PST 2023

