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


Performing analysis on: 4FGL_J1457.3-4246_daily_bin1837
RA = 224.344, Dec = -42.7755
tmin = 715478401, tmax = 715737601
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='28604730', job_status='RUN', time_executed='2023-09-19 18:30:44.510689', time_epoch_executed='1695173444.51' WHERE source_name='4FGL J1457.3-4246' and cadence='daily' and bin_id='1837'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28604730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28604730/ft1_4FGL_J1457.3-4246_daily_bin1837.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28604730/ft1_4FGL_J1457.3-4246_daily_bin1837.fits outfile=/lscratch/kocevski/28604730/ft1_filteredMKT_4FGL_J1457.3-4246_daily_bin1837.fits ra=224.344 dec=-42.7755 rad=12.0 tmin=715478401.0 tmax=715737601.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.17
user 1.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.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/28604730/ft1_filteredMKT_4FGL_J1457.3-4246_daily_bin1837.fits evtable="EVENTS" outfile="/lscratch/kocevski/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.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.52
user 0.19
sys 0.12

Number of photons that the gtmktime cut: 1876

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28604730/ltcube_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.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/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits
.....................!
real 10.74
user 10.34
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits evtable="EVENTS" scfile=/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28604730/ltcube_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.fits outfile=/lscratch/kocevski/28604730/expmap_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.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/28604730/ltcube_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.fits
.....................!
real 66.11
user 61.78
sys 3.89

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/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits scfile=/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits outfile=/lscratch/kocevski/28604730/cmap_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.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.38
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits scfile=/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits outfile=/lscratch/kocevski/28604730/cmap_HighResolution_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.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.39
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits evtable="EVENTS" scfile=/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28604730/Model_4FGL_J1457.3-4246_daily_bin1837.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/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits.....................!
real 347.85
user 344.99
sys 0.84

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits', '/lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits', expMap='/lscratch/kocevski/28604730/expmap_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.fits', expCube='/lscratch/kocevski/28604730/ltcube_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28604730/Model_4FGL_J1457.3-4246_daily_bin1837.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/28604730/ft1_filtered_4FGL_J1457.3-4246_daily_bin1837.fits
Spacecraft file(s): /lscratch/kocevski/28604730/ft2_4FGL_J1457.3-4246_daily_bin1837.fits
Exposure map: /lscratch/kocevski/28604730/expmap_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.fits
Exposure cube: /lscratch/kocevski/28604730/ltcube_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28604730/Model_4FGL_J1457.3-4246_daily_bin1837.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) = 18105.2066016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    201.08       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17737E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .37054       1.0000          .0000       .10000E+07
     4 'norm      '    1.8979       1.0000          .0000       .10000E+07
     5 'Prefactor '    135.71       1.0000          .0000       .10000E+07
     6 'Prefactor '    92.735       1.0000          .0000       .10000E+07
     7 'norm      '    31.659       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11501E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .19779E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .30602       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.3272       1.0000          .0000       .10000E+07
    12 'norm      '    8.2406       1.0000          .0000       .10000E+07
    13 'norm      '    .26495E-04   1.0000          .0000       .10000E+07
    14 'norm      '    17.638       1.0000          .0000       .10000E+07
    15 'norm      '    .27056E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.7371       1.0000          .0000       .10000E+07
    17 'norm      '    4.5186       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0348       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0218       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=   18105.16     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1572 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     216.71        369.14        .81774E-05    .11612E-04
   2  Prefactor      .0000        18.919        .92910E-06** at limit **
   3  norm          .45635        13.089        .11701E-06   -.15557E-04
   4  norm          1.8973        .25316        .10862E-07   -.41324E-02
   5  Prefactor     135.40        104.72       -.48958E-05   -.15678E-03
   6  Prefactor     90.341        52.021       -.73409E-06    .72553E-04
   7  norm          31.420        14.806       -.19406E-06    .93228E-04
   8  Prefactor      .0000        29.485        .76640E-07** at limit **
   9  Prefactor      .0000        5.3409       -.75060E-06** at limit **
  10  norm          .30784        .74771        .15061E-06   -.24938E-03
  11  Prefactor     4.2893        10.275        .15839E-06   -.37698E-04
  12  norm          8.1781        11.331        .13156E-06   -.22858E-04
  13  norm           .0000        3.8440        .52098E-06** at limit **
  14  norm          16.290        39.071        .20937E-05   -.91037E-04
  15  norm           .0000        1.5573       -.15619E-06** at limit **
  16  Prefactor     6.8460        20.303        .64091E-05    .32706E-04
  17  norm          4.5144        6.0574       -.85316E-09    .47734E-04
  18  Normalizat    1.0386        .34798        .54567E-05   -.81696E-05
  19  Prefactor     1.0216        .52036E-01   -.32667E-05    .25473E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 216.708
  Prefactor  = 0
  norm       = 0.456347
  norm       = 1.89732
  Prefactor  = 135.401
  Prefactor  = 90.3411
  norm       = 31.4204
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.307843
  Prefactor  = 4.28934
  norm       = 8.17805
  norm       = 0
  norm       = 16.2896
  norm       = 0
  Prefactor  = 6.84605
  norm       = 4.51442
  Normalizat = 1.03858
  Prefactor  = 1.02155
 **********
 **   18 **HESSE 
 **********

 FCN=   18105.16     FROM HESSE     STATUS=OK           316 CALLS     1888 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     216.71        368.18        .70529E-04   -1.5414    
   2  Prefactor      .0000        18.886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .45635        2.2736        .92982E-02   -1.5694    
   4  norm          1.8973        .25331        .51661E-03   -1.5680    
   5  Prefactor     135.40        104.59        .85848E-04   -1.5475    
   6  Prefactor     90.341        52.126        .10385E-03   -1.5518    
   7  norm          31.420        14.828        .17775E-03   -1.5596    
   8  Prefactor      .0000        29.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.3444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .30784        .77901        .10130E-02   -1.5697    
  11  Prefactor     4.2893        10.419        .48401E-03   -1.5667    
  12  norm          8.1781        11.326        .34900E-03   -1.5651    
  13  norm           .0000        3.8473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.290        39.133        .23820E-03   -1.5627    
  15  norm           .0000        1.5567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8460        20.264        .38634E-03   -1.5656    
  17  norm          4.5144        6.0573        .47338E-03   -1.5665    
  18  Normalizat    1.0386        .35370        .19147       -.91749    
  19  Prefactor     1.0216        .51368E-01    .30102E-01   -.92015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74671e-08
Minuit parameter uncertainties:
  1  368.217
  2  1.37027e-05
  3  2.03721
  4  0.253314
  5  104.596
  6  52.1261
  7  14.8281
  8  3.20307e-06
  9  6.70039e-06
  10  0.779011
  11  10.4192
  12  11.3258
  13  3.96819e-06
  14  39.1333
  15  7.71673e-07
  16  20.2638
  17  6.05729
  18  0.354505
  19  0.0513701
Done.

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

Extracting fit parameters...

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  0.000e+00  6.700e-06  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:  1.022e+00  5.137e-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:  1.039e+00  3.545e-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: 7.20219392862e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00557326161111 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28604730/likelihoodResults_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.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): 102
logL (Free Index) = 18105.1573249
delta logL = -0.000166071353306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18105.1571589
delta logL = -8.10578058008e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22876E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.1273       1.0000          .0000       10.000    
     3 'Normalizat'    1.0387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0215       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=   18105.16     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3476        .42118E-03** at limit **
   2  Index         3.4220        1.6994        .25196E-05     .0000    
   3  Normalizat    1.0386        1.2209       -.46510E-05   -.13517E-04
   4  Prefactor     1.0216        1.2347        .21859E-05   -.14323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.42204
  Normalizat = 1.03858
  Prefactor  = 1.02155
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18105.16     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3067        2.2200        .25196E-05   -.32108    
   3  Normalizat    1.0386        1.2209       -.46510E-05   -.91749    
   4  Prefactor     1.0216        1.2347        .21859E-05   -.92015    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.59267e-12
Minuit parameter uncertainties:
  1  9.5727e-08
  2  1.73799
  3  1.25651
  4  1.2717
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) = 18105.1571588
delta logL = 0.0

Extracting fit parameters...

4FGL J1457.3-4246
   Spectrum: PowerLaw
494    Prefactor:  0.000e+00  9.573e-08  0.000e+00  1.000e+06 ( 1.000e-13)
495        Index:  3.422e+00  1.738e+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:  1.022e+00  1.272e+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:  1.039e+00  1.257e+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/28604730/cmap_HighResolution_715478401_715737601_4FGL_J1457.3-4246_daily_bin1837.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2023-09-19 18:50:35.119182', job_id='28604730', GAL2='1.02', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1695174635.12', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1837' AND source_name='4FGL J1457.3-4246' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 19 18:50:35 PDT 2023

