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


Performing analysis on: 4FGL_J1747.6-5308_daily_bin1910
RA = 266.901, Dec = -53.1385
tmin = 734400001, tmax = 734659201
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='44515561', job_status='RUN', time_executed='2024-04-20 13:55:39.413555', time_epoch_executed='1713646539.41' WHERE source_name='4FGL J1747.6-5308' and cadence='daily' and bin_id='1910'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44515561

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44515561/ft1_4FGL_J1747.6-5308_daily_bin1910.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44515561/ft1_4FGL_J1747.6-5308_daily_bin1910.fits outfile=/lscratch/kocevski/44515561/ft1_filteredMKT_4FGL_J1747.6-5308_daily_bin1910.fits ra=266.901 dec=-53.1385 rad=12.0 tmin=734400001.0 tmax=734659201.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.95
user 2.59
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.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/44515561/ft1_filteredMKT_4FGL_J1747.6-5308_daily_bin1910.fits evtable="EVENTS" outfile="/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.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.45
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 2661

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44515561/ltcube_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.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/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits
.....................!
real 11.99
user 11.64
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits evtable="EVENTS" scfile=/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44515561/ltcube_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.fits outfile=/lscratch/kocevski/44515561/expmap_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.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/44515561/ltcube_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.fits
.....................!
real 62.97
user 59.16
sys 3.32

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 FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 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.
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 RX J1713.7-3946 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Added 437 point sources and 15 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 J1747.6-5308 @ 266.901 -53.1385

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits scfile=/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits outfile=/lscratch/kocevski/44515561/cmap_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.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=266.901 yref=-53.1385 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.37
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits scfile=/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits outfile=/lscratch/kocevski/44515561/cmap_HighResolution_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.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=266.901 yref=-53.1385 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.37
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits evtable="EVENTS" scfile=/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44515561/Model_4FGL_J1747.6-5308_daily_bin1910.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 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 J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
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 RX J1713.7-3946
Working on...
/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits.....................!
real 484.99
user 480.35
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits', '/lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits', expMap='/lscratch/kocevski/44515561/expmap_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.fits', expCube='/lscratch/kocevski/44515561/ltcube_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44515561/Model_4FGL_J1747.6-5308_daily_bin1910.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1747.6-5308'

4FGL J1747.6-5308
   Spectrum: PowerLaw
1099    Prefactor:  6.641e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
1100        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1101        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44515561/ft1_filtered_4FGL_J1747.6-5308_daily_bin1910.fits
Spacecraft file(s): /lscratch/kocevski/44515561/ft2_4FGL_J1747.6-5308_daily_bin1910.fits
Exposure map: /lscratch/kocevski/44515561/expmap_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.fits
Exposure cube: /lscratch/kocevski/44515561/ltcube_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44515561/Model_4FGL_J1747.6-5308_daily_bin1910.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) = 24426.3701798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43993E-06   1.0000          .0000       .10000E+07
     2 'norm      '    1.7799       1.0000          .0000       .10000E+07
     3 'norm      '    10.092       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8457       1.0000          .0000       .10000E+07
     6 'Prefactor '    .47930E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .59205E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    24.521       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18144E-01   1.0000          .0000       .10000E+07
    10 'norm      '    4.2847       1.0000          .0000       .10000E+07
    11 'Prefactor '    .79214E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16626E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    16.190       1.0000          .0000       .10000E+07
    14 'norm      '    .83306E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .78601       1.0000          .0000       .10000E+07
    16 'norm      '    .10270E-07   1.0000          .0000       .10000E+07
    17 'norm      '    5.3052       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.257       1.0000          .0000       .10000E+07
    19 'Prefactor '    .26569E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .61037E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .99213       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1617E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24426.37     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1769 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6120       -.13319E-07** at limit **
   2  norm          1.7818        2.9414        .46372E-07    .16411E-02
   3  norm          10.094        6.1401        .11517E-07   -.21418E-02
   4  Prefactor     .10000E-03    3.2340       -.16221E-07** at limit **
   5  Prefactor     2.8777        8.0087       -.77214E-07   -.48633E-01
   6  Prefactor     .46319E-06    7.7835        .17795E-06** at limit **
   7  norm          .79381E-08    8.1842        .45898E-07** at limit **
   8  Prefactor     24.525        1.2070        .38941E-08    .62666E-02
   9  Prefactor      .0000        28.769       -.55691E-08** at limit **
  10  norm          4.2838        6.8731       -.64018E-08   -.22985E-02
  11  Prefactor     .46296E-07    13.303        .84262E-07** at limit **
  12  Prefactor     .36454E-06    8.0528        .70113E-07** at limit **
  13  Prefactor     16.222        4.6111       -.58551E-08    .61167E-01
  14  norm          .16653E-09    2.2035        .18981E-06** at limit **
  15  norm          .82921        2.7280       -.36786E-08   -.18171E-02
  16  norm           .0000        .34515       -.14960E-07** at limit **
  17  norm          5.3478        11.465        .44762E-07   -.23905E-01
  18  Prefactor     15.072        54.719        .74412E-06   -.87581E-03
  19  Prefactor     .62172E-08    20.600        .13460E-06** at limit **
  20  Prefactor     .66613E-09    35.935        .27183E-06** at limit **
  21  Normalizat    .99009        .26735       -.31002E-05   -.11910E-03
  22  Prefactor     1.0128        .37548E-01   -.22877E-07   -.65038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.78177
  norm       = 10.0944
  Prefactor  = 0.0001
  Prefactor  = 2.87772
  Prefactor  = 4.63185e-07
  norm       = 7.93809e-09
  Prefactor  = 24.5247
  Prefactor  = 0
  norm       = 4.28384
  Prefactor  = 4.62963e-08
  Prefactor  = 3.64542e-07
  Prefactor  = 16.2218
  norm       = 1.66533e-10
  norm       = 0.829208
  norm       = 0
  norm       = 5.34782
  Prefactor  = 15.072
  Prefactor  = 6.21725e-09
  Prefactor  = 6.66134e-10
  Normalizat = 0.990092
  Prefactor  = 1.01278
 **********
 **   18 **HESSE 
 **********

 FCN=   24426.37     FROM HESSE     STATUS=OK           388 CALLS     2157 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7818        2.9661        .78420E-03   -1.5681    
   3  norm          10.094        6.1411        .31518E-03   -1.5644    
   4  Prefactor     .10000E-03    3.1877        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8777        9.9841        .60249E-03   -1.5674    
   6  Prefactor     .46319E-06    11.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .79381E-08    8.2341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.525        15.339        .20199E-03   -1.5609    
   9  Prefactor      .0000        28.637        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2838        6.9147        .48648E-03   -1.5667    
  11  Prefactor     .46296E-07    13.934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36454E-06    10.413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.222        23.422        .24865E-03   -1.5627    
  14  norm          .16653E-09    2.1954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .82921        2.7496        .53984E-03   -1.5690    
  16  norm           .0000        .34091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3478        12.007        .43612E-03   -1.5662    
  18  Prefactor     15.072        54.929        .27485E-03   -1.5630    
  19  Prefactor     .62172E-08    20.708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .66613E-09    35.727        .15125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99009        .28064        .20952       -.93363    
  22  Prefactor     1.0128        .37531E-01    .29849E-01   -.92305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24638e-07
Minuit parameter uncertainties:
  1  8.25679e-06
  2  2.96607
  3  6.14112
  4  1.11489e-06
  5  9.98414
  6  0.00455653
  7  0.000511931
  8  15.3388
  9  2.76528e-05
  10  6.9147
  11  0.00160634
  12  0.0038967
  13  23.4224
  14  3.5654e-05
  15  2.74957
  16  1.65405e-06
  17  12.0075
  18  54.9313
  19  0.000719169
  20  0.000314486
  21  0.281057
  22  0.0375324
Done.

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

Extracting fit parameters...

4FGL J1747.6-5308
   Spectrum: PowerLaw
1099    Prefactor:  0.000e+00  2.765e-05  0.000e+00  1.000e+06 ( 1.000e-14)
1100        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1101        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1589    Prefactor:  1.013e+00  3.753e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1561   Normalization:  9.901e-01  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 266.901 -53.139
Photon Flux Upper Limit: 9.68892718243e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00750497051909 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44515561/likelihoodResults_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.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) = 24426.3821691
delta logL = -0.0166879947865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 24426.3654849
delta logL = -3.77553442377e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24820E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .97191       1.0000          .0000       10.000    
     3 'Normalizat'    .98960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1617E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   24426.37     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      218 TOTAL
                     EDM=   .64E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        25.435        .42118E-03** at limit **
   2  Index         2.5886        1.9412        .17352E-04     .0000    
   3  Normalizat    .99009        1.3202       -.68289E-05    .45862E-05
   4  Prefactor     1.0128        1.2563        .88079E-06    .10027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.58859
  Normalizat = 0.990093
  Prefactor  = 1.01278
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   24426.37     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .64E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        25.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .75720        2.0811        .17352E-04   -.50326    
   3  Normalizat    .99009        1.3202       -.68289E-05   -.93363    
   4  Prefactor     1.0128        1.2563        .88079E-06   -.92305    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.42195e-13
Minuit parameter uncertainties:
  1  1.37214e-05
  2  2.01112
  3  1.36803
  4  1.29572
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) = 24426.3654811
delta logL = 2.54658516496e-11

Extracting fit parameters...

4FGL J1747.6-5308
   Spectrum: PowerLaw
1099    Prefactor:  0.000e+00  1.372e-05  0.000e+00  1.000e+06 ( 1.000e-14)
1100        Index:  2.589e+00  2.011e+00  0.000e+00  1.000e+01 (-1.000e+00)
1101        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1589    Prefactor:  1.013e+00  1.296e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1561   Normalization:  9.901e-01  1.368e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 266.901 -53.139

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/44515561/cmap_HighResolution_734400001_734659201_4FGL_J1747.6-5308_daily_bin1910.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.69e-08', time_completed='2024-04-20 14:27:20.212182', job_id='44515561', GAL2='1.01', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1713648440.21', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1910' AND source_name='4FGL J1747.6-5308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 20 14:27:20 PDT 2024

