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


Performing analysis on: 4FGL_J1747.1-5453_daily_bin1900
RA = 266.787, Dec = -54.8944
tmin = 731808001, tmax = 732067201
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='44515525', job_status='RUN', time_executed='2024-04-20 13:55:37.630064', time_epoch_executed='1713646537.63' WHERE source_name='4FGL J1747.1-5453' and cadence='daily' and bin_id='1900'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44515525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44515525/ft1_4FGL_J1747.1-5453_daily_bin1900.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44515525/ft1_4FGL_J1747.1-5453_daily_bin1900.fits outfile=/lscratch/kocevski/44515525/ft1_filteredMKT_4FGL_J1747.1-5453_daily_bin1900.fits ra=266.787 dec=-54.8944 rad=12.0 tmin=731808001.0 tmax=732067201.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.09
user 1.86
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.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/44515525/ft1_filteredMKT_4FGL_J1747.1-5453_daily_bin1900.fits evtable="EVENTS" outfile="/lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.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.35
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 3163

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44515525/ltcube_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.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/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits
.....................!
real 7.49
user 7.20
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits evtable="EVENTS" scfile=/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44515525/ltcube_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.fits outfile=/lscratch/kocevski/44515525/expmap_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.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/44515525/ltcube_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.fits
.....................!
real 69.82
user 65.48
sys 3.88

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 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 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 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 HESS J1507-622 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 415 point sources and 16 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.1-5453 @ 266.787 -54.8944

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits scfile=/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits outfile=/lscratch/kocevski/44515525/cmap_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.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.787 yref=-54.8944 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/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits scfile=/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits outfile=/lscratch/kocevski/44515525/cmap_HighResolution_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.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.787 yref=-54.8944 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits evtable="EVENTS" scfile=/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44515525/Model_4FGL_J1747.1-5453_daily_bin1900.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 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 RX J1713.7-3946
Working on...
/lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits.....................!
real 631.94
user 626.78
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits', '/lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits', expMap='/lscratch/kocevski/44515525/expmap_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.fits', expCube='/lscratch/kocevski/44515525/ltcube_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44515525/Model_4FGL_J1747.1-5453_daily_bin1900.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1747.1-5453'

4FGL J1747.1-5453
   Spectrum: PowerLaw
1069    Prefactor:  2.080e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
1070        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1071        Scale:  1.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44515525/ft1_filtered_4FGL_J1747.1-5453_daily_bin1900.fits
Spacecraft file(s): /lscratch/kocevski/44515525/ft2_4FGL_J1747.1-5453_daily_bin1900.fits
Exposure map: /lscratch/kocevski/44515525/expmap_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.fits
Exposure cube: /lscratch/kocevski/44515525/ltcube_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44515525/Model_4FGL_J1747.1-5453_daily_bin1900.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) = 28651.5784198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14916       1.0000          .0000       .10000E+07
     2 'norm      '    .15821E-07   1.0000          .0000       .10000E+07
     3 'norm      '    8.6513       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48709E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12205E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .25042E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .48691E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    30.472       1.0000          .0000       .10000E+07
    10 'norm      '    .30361E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.0914       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.7035       1.0000          .0000       .10000E+07
    13 'Prefactor '    .34233E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .31300E-03   1.0000          .0000       .10000E+07
    15 'norm      '    3.3227       1.0000          .0000       .10000E+07
    16 'norm      '    .27756E-09   1.0000          .0000       .10000E+07
    17 'norm      '    .20603E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    50.057       1.0000          .0000       .10000E+07
    19 'Prefactor '    .24948E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .13850E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2091       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1536E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28651.56     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     1848 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14475        2.7270       -.19672E-05** at limit **
   2  norm           .0000        1.2962       -.53665E-06** at limit **
   3  norm          8.6462        5.0063       -.79590E-07   -.28896E-04
   4  Prefactor     .10000E-03    3.4020       -.87375E-05** at limit **
   5  Prefactor      .0000        3.1982       -.22747E-05** at limit **
   6  Prefactor     .17764E-07    18.174       -.77153E-05** at limit **
   7  norm          .18596E-07    4.5913       -.10445E-06** at limit **
   8  Prefactor      .0000        3.0045       -.75350E-06** at limit **
   9  Prefactor     30.603        9.3341       -.18306E-06    .10455    
  10  norm           .0000        2.4503        .53667E-06** at limit **
  11  Prefactor     8.0751        9.1884       -.10753E-06   -.23765E-03
  12  Prefactor     6.6180        12.032       -.26434E-05   -.50632E-03
  13  Prefactor     .18874E-08    11.360       -.26074E-05** at limit **
  14  Prefactor     .20983E-07    5.7520        .57920E-06** at limit **
  15  norm          3.3271        3.7811        .27288E-06    .12195E-03
  16  norm           .0000        1.5118        .25996E-06** at limit **
  17  norm           .0000        .34389        .45268E-06** at limit **
  18  Prefactor     51.373        59.239        .15246E-05   -.20713E-01
  19  Prefactor     .95479E-08    14.836        .32835E-05** at limit **
  20  Prefactor     .64393E-08    29.820        .14979E-05** at limit **
  21  Normalizat    1.2077        .23488       -.39000E-04   -.11255E-05
  22  Prefactor     .97684        .35866E-01    .57907E-05   -.56238E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.144751
  norm       = 0
  norm       = 8.64624
  Prefactor  = 0.0001
  Prefactor  = 0
  Prefactor  = 1.77636e-08
  norm       = 1.85962e-08
  Prefactor  = 0
  Prefactor  = 30.6026
  norm       = 0
  Prefactor  = 8.07512
  Prefactor  = 6.61802
  Prefactor  = 1.88738e-09
  Prefactor  = 2.09832e-08
  norm       = 3.32714
  norm       = 0
  norm       = 0
  Prefactor  = 51.3729
  Prefactor  = 9.54792e-09
  Prefactor  = 6.43929e-09
  Normalizat = 1.20767
  Prefactor  = 0.976844
 **********
 **   18 **HESSE 
 **********

 FCN=   28651.56     FROM HESSE     STATUS=OK           388 CALLS     2236 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14475        .41279        .60724E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.2951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.6462        5.0054        .34056E-03   -1.5649    
   4  Prefactor     .10000E-03    3.3655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.1958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17764E-07    18.186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .18596E-07    10.189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.0028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.603        42.714        .18118E-03   -1.5597    
  10  norm           .0000        2.4466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0751        9.1894        .35223E-03   -1.5651    
  12  Prefactor     6.6180        12.035        .38732E-03   -1.5657    
  13  Prefactor     .18874E-08    11.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .20983E-07    10.152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3271        3.7904        .55507E-03   -1.5671    
  16  norm           .0000        1.5080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .33940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.373        60.161        .14135E-03   -1.5565    
  19  Prefactor     .95479E-08    14.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .64393E-08    29.760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2077        .22980        .17631       -.86366    
  22  Prefactor     .97684        .34120E-01    .29463E-01   -.93505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95495e-07
Minuit parameter uncertainties:
  1  0.412791
  2  1.87795e-06
  3  5.00536
  4  2.13307e-06
  5  1.97625e-07
  6  0.00113741
  7  0.000870214
  8  8.32804e-06
  9  42.7145
  10  4.81865e-06
  11  9.18939
  12  12.0353
  13  0.000291904
  14  0.000922498
  15  3.79036
  16  1.77952e-06
  17  2.15173e-06
  18  60.1621
  19  0.0007539
  20  0.000874645
  21  0.229988
  22  0.034121
Done.

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

Extracting fit parameters...

4FGL J1747.1-5453
   Spectrum: PowerLaw
1069    Prefactor:  0.000e+00  8.328e-06  0.000e+00  1.000e+06 ( 1.000e-13)
1070        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
1071        Scale:  1.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1505    Prefactor:  9.768e-01  3.412e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1477   Normalization:  1.208e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 266.787 -54.894
Photon Flux Upper Limit: 5.98088667371e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00463872209827 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44515525/likelihoodResults_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.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) = 28651.5552375
delta logL = -0.000134259607876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28651.5551037
delta logL = -4.30161890108e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   28651.56     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      244 TOTAL
                     EDM=   .79E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.8312        .42118E-03** at limit **
   2  Index         2.0807        1.5093        .11156E-04     .0000    
   3  Normalizat    1.2077        1.1037        .77010E-06    .14754E-04
   4  Prefactor     .97684        1.3174       -.33160E-06    .13970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.0807
  Normalizat = 1.20767
  Prefactor  = 0.976844
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28651.56     FROM HESSE     STATUS=FAILED         9 CALLS      253 TOTAL
                     EDM=   .79E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.8312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47055        1.8195        .11156E-04   -.62347    
   3  Normalizat    1.2077        1.1037        .77010E-06   -.86366    
   4  Prefactor     .97684        1.3174       -.33160E-06   -.93505    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.92445e-13
Minuit parameter uncertainties:
  1  2.07811e-06
  2  1.54647
  3  1.12612
  4  1.365
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) = 28651.5551033
delta logL = 0.0

Extracting fit parameters...

4FGL J1747.1-5453
   Spectrum: PowerLaw
1069    Prefactor:  0.000e+00  2.078e-06  0.000e+00  1.000e+06 ( 1.000e-13)
1070        Index:  2.081e+00  1.546e+00  0.000e+00  1.000e+01 (-1.000e+00)
1071        Scale:  1.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1505    Prefactor:  9.768e-01  1.365e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1477   Normalization:  1.208e+00  1.126e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 266.787 -54.894

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/44515525/cmap_HighResolution_731808001_732067201_4FGL_J1747.1-5453_daily_bin1900.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2024-04-20 14:34:13.035672', job_id='44515525', GAL2='0.98', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1713648853.04', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1900' AND source_name='4FGL J1747.1-5453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 20 14:34:13 PDT 2024

