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


Performing analysis on: 4FGL_J1457.3-4246_daily_bin1874
RA = 224.344, Dec = -42.7755
tmin = 725068801, tmax = 725328001
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='36928722', job_status='RUN', time_executed='2023-12-27 00:30:49.889461', time_epoch_executed='1703665849.89' WHERE source_name='4FGL J1457.3-4246' and cadence='daily' and bin_id='1874'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36928722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36928722/ft1_4FGL_J1457.3-4246_daily_bin1874.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36928722/ft1_4FGL_J1457.3-4246_daily_bin1874.fits outfile=/lscratch/kocevski/36928722/ft1_filteredMKT_4FGL_J1457.3-4246_daily_bin1874.fits ra=224.344 dec=-42.7755 rad=12.0 tmin=725068801.0 tmax=725328001.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.33
user 2.06
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.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/36928722/ft1_filteredMKT_4FGL_J1457.3-4246_daily_bin1874.fits evtable="EVENTS" outfile="/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.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.19
sys 0.13

Number of photons that the gtmktime cut: 1774

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36928722/ltcube_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.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/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits
.....................!
real 11.51
user 11.15
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits evtable="EVENTS" scfile=/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36928722/ltcube_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.fits outfile=/lscratch/kocevski/36928722/expmap_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.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/36928722/ltcube_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.fits
.....................!
real 68.21
user 64.14
sys 3.75

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 MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk 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.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Added 360 point sources and 19 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 J1457.3-4246 @ 224.344 -42.7755

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits scfile=/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits outfile=/lscratch/kocevski/36928722/cmap_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.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=224.344 yref=-42.7755 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.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits scfile=/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits outfile=/lscratch/kocevski/36928722/cmap_HighResolution_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.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=224.344 yref=-42.7755 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits evtable="EVENTS" scfile=/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36928722/Model_4FGL_J1457.3-4246_daily_bin1874.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 J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits.....................!
real 338.67
user 335.85
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits', '/lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits', expMap='/lscratch/kocevski/36928722/expmap_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.fits', expCube='/lscratch/kocevski/36928722/ltcube_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36928722/Model_4FGL_J1457.3-4246_daily_bin1874.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1457.3-4246'

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  5.845e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.154e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36928722/ft1_filtered_4FGL_J1457.3-4246_daily_bin1874.fits
Spacecraft file(s): /lscratch/kocevski/36928722/ft2_4FGL_J1457.3-4246_daily_bin1874.fits
Exposure map: /lscratch/kocevski/36928722/expmap_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.fits
Exposure cube: /lscratch/kocevski/36928722/ltcube_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36928722/Model_4FGL_J1457.3-4246_daily_bin1874.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) = 17335.5276789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73776       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38641E-01   1.0000          .0000       .10000E+07
     3 'norm      '    7.3090       1.0000          .0000       .10000E+07
     4 'norm      '    2.1165       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.5484       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11011E-01   1.0000          .0000       .10000E+07
     7 'norm      '    22.747       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.712       1.0000          .0000       .10000E+07
     9 'Prefactor '    .55735E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .16750E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .73399E-04   1.0000          .0000       .10000E+07
    12 'norm      '    8.8313       1.0000          .0000       .10000E+07
    13 'norm      '    .15194E-03   1.0000          .0000       .10000E+07
    14 'norm      '    39.407       1.0000          .0000       .10000E+07
    15 'norm      '    1.1710       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23378E-04   1.0000          .0000       .10000E+07
    17 'norm      '    3.2027       1.0000          .0000       .10000E+07
    18 'Normalizat'    2.0516       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87611       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1349E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17335.50     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     1212 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        205.15        .65971E-07** at limit **
   2  Prefactor      .0000        23.612        .12115E-07** at limit **
   3  norm          7.3709        6.1183       -.51061E-08    .83093E-04
   4  norm          2.1184        .26680       -.25356E-08    .82571E-03
   5  Prefactor     1.1688        1125.2        .54369E-05   -.49143E-04
   6  Prefactor      .0000        13.259       -.51886E-08** at limit **
   7  norm          22.664        13.020        .12596E-07   -.34427E-04
   8  Prefactor     11.238        29.007       -.65718E-07    .47800E-04
   9  Prefactor      .0000        12.135        .73001E-08** at limit **
  10  norm           .0000        7.3521       -.10712E-07** at limit **
  11  Prefactor      .0000        3.6231        .43292E-07** at limit **
  12  norm          8.8705        16.684        .11642E-06   -.15745E-03
  13  norm           .0000        3.4593       -.25203E-07** at limit **
  14  norm          40.609        37.841        .92986E-07   -.17781E-03
  15  norm          1.1871        5.0876       -.31478E-08    .56442E-04
  16  Prefactor      .0000        35.469        .16109E-06** at limit **
  17  norm          3.2760        4.4875        .27253E-07   -.18985E-03
  18  Normalizat    2.0503        .34533       -.58407E-06    .88023E-05
  19  Prefactor     .87607        .50246E-01   -.18637E-06    .45785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 7.37088
  norm       = 2.11839
  Prefactor  = 1.16879
  Prefactor  = 0
  norm       = 22.6637
  Prefactor  = 11.238
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 8.87045
  norm       = 0
  norm       = 40.6085
  norm       = 1.18706
  Prefactor  = 0
  norm       = 3.27605
  Normalizat = 2.05026
  Prefactor  = 0.876072
 **********
 **   18 **HESSE 
 **********

 FCN=   17335.50     FROM HESSE     STATUS=OK           314 CALLS     1526 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        206.22        .57695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        23.614        .16026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3709        6.1095        .37076E-03   -1.5654    
   4  norm          2.1184        .26603        .50977E-03   -1.5679    
   5  Prefactor     1.1688        1114.8        .53633E-03   -1.5686    
   6  Prefactor      .0000        13.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.664        13.025        .20972E-03   -1.5613    
   8  Prefactor     11.238        29.457        .30588E-03   -1.5641    
   9  Prefactor      .0000        12.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .42167        .31924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.6244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.8705        16.912        .33705E-03   -1.5648    
  13  norm           .0000        3.4633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          40.609        37.957        .15931E-03   -1.5581    
  15  norm          1.1871        5.1950        .10599E-02   -1.5686    
  16  Prefactor      .0000        35.398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2760        4.4912        .56590E-03   -1.5672    
  18  Normalizat    2.0503        .32047        .14833       -.63297    
  19  Prefactor     .87607        .46253E-01    .31722E-01   -.96982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97854e-06
Minuit parameter uncertainties:
  1  0.000121616
  2  1.36279e-05
  3  6.10946
  4  0.266027
  5  72.2058
  6  2.88929e-06
  7  13.0253
  8  29.4574
  9  3.07715e-07
  10  4.90277e-07
  11  4.77839e-06
  12  16.9125
  13  1.9313e-06
  14  37.9574
  15  4.96659
  16  6.14363e-05
  17  4.49121
  18  0.320814
  19  0.0462555
Done.

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

Extracting fit parameters...

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  0.000e+00  3.077e-07  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.421e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.154e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1316    Prefactor:  8.761e-01  4.626e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1317        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1318        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  2.050e+00  3.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 224.344 -42.776
Photon Flux Upper Limit: 1.0538394814e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00815490832956 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36928722/likelihoodResults_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.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) = 17335.5446172
delta logL = -0.0400063181623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17335.504612
delta logL = -1.15433795145e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16641E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0460       1.0000          .0000       10.000    
     3 'Normalizat'    2.0501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1349E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17335.50     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      220 TOTAL
                     EDM=   .57E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.4081        .42118E-03** at limit **
   2  Index         2.7379        1.7427        .48538E-04     .0000    
   3  Normalizat    2.0503        1.0190        .66711E-06    .18524E-04
   4  Prefactor     .87607        1.2221       -.82518E-07    .52079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.73787
  Normalizat = 2.05026
  Prefactor  = 0.876072
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   17335.50     FROM HESSE     STATUS=FAILED         9 CALLS      229 TOTAL
                     EDM=   .57E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.4081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .84895        2.0688        .48538E-04   -.46948    
   3  Normalizat    2.0503        1.0190        .66711E-06   -.63297    
   4  Prefactor     .87607        1.2221       -.82518E-07   -.96982    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.65499e-13
Minuit parameter uncertainties:
  1  1.68418e-06
  2  1.7904
  3  1.03016
  4  1.26377
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) = 17335.5046109
delta logL = 0.0

Extracting fit parameters...

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  0.000e+00  1.684e-06  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  2.738e+00  1.790e+00  0.000e+00  1.000e+01 (-1.000e+00)
496        Scale:  1.154e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1316    Prefactor:  8.761e-01  1.264e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1317        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1318        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  2.050e+00  1.030e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 224.344 -42.776

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/36928722/cmap_HighResolution_725068801_725328001_4FGL_J1457.3-4246_daily_bin1874.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2023-12-27 00:48:33.233614', job_id='36928722', GAL2='0.88', fit_tolerance='1e-08', EG2='2.05', EG='2.05', time_epoch_completed='1703666913.23', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1874' AND source_name='4FGL J1457.3-4246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 27 00:48:33 PST 2023

