/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 186 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7382
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1747.6-5308_daily_bin1268
RA = 266.901, Dec = -53.1385
tmin = 567993601, tmax = 568252801
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='147839', job_status='RUN', time_executed='2021-09-18 13:13:45.322116', time_epoch_executed='1631996025.32' WHERE source_name='4FGL J1747.6-5308' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147839

Creating custom pfile directory:
/scratch/kocevski/147839/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=567993601.0 && nMetStart<568252801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=567993601.0 && nMetStart<568252801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147839/ft1_4FGL_J1747.6-5308_daily_bin1268.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=567993601.0 && nMetStart<568252801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147839/ft1_4FGL_J1747.6-5308_daily_bin1268.fits outfile=/scratch/kocevski/147839/ft1_filteredMKT_4FGL_J1747.6-5308_daily_bin1268.fits ra=266.901 dec=-53.1385 rad=12.0 tmin=567993601.0 tmax=568252801.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.36
user 2.17
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/147839/ft1_filteredMKT_4FGL_J1747.6-5308_daily_bin1268.fits evtable="EVENTS" outfile="/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/147839/ltcube_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.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 /scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits
.....................!
real 13.05
user 12.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/147839/ltcube_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.fits outfile=/scratch/kocevski/147839/expmap_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.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 /scratch/kocevski/147839/ltcube_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.fits
.....................!
real 190.39
user 185.82
sys 4.17

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 /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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 /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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=/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits scfile=/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits outfile=/scratch/kocevski/147839/cmap_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits scfile=/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits outfile=/scratch/kocevski/147839/cmap_HighResolution_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147839/Model_4FGL_J1747.6-5308_daily_bin1268.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...
/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits....................!
real 68.44
user 67.00
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits', '/scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits', expMap='/scratch/kocevski/147839/expmap_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.fits', expCube='/scratch/kocevski/147839/ltcube_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147839/Model_4FGL_J1747.6-5308_daily_bin1268.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/147839/ft1_filtered_4FGL_J1747.6-5308_daily_bin1268.fits
Spacecraft file(s): /scratch/kocevski/147839/ft2_4FGL_J1747.6-5308_daily_bin1268.fits
Exposure map: /scratch/kocevski/147839/expmap_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.fits
Exposure cube: /scratch/kocevski/147839/ltcube_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147839/Model_4FGL_J1747.6-5308_daily_bin1268.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) = 985.579939547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.093       1.0000         .10000E-03   10000.    
     3 'norm      '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1679       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38520E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    117.09       1.0000         .10000E-03   10000.    
    20 'Prefactor '    325.10       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .28849       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   985.5609     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2995 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.518        .83352E-06** at limit **
   2  norm          21.085        17.014       -.47228E-06    .30123E-04
   3  norm         10000.0        310.50        .11403E-07** at limit **
   4  Prefactor    10000.0        1226.1       -.27208E-05** at limit **
   5  Prefactor     .10000E-03    9.6787        .16970E-06** at limit **
   6  Prefactor     .10000E-03    58.366        .94779E-07** at limit **
   7  norm          .10000E-03    233.31       -.15265E-06** at limit **
   8  Prefactor     .10000E-03    65.206        .67252E-07** at limit **
   9  Prefactor     .10000E-03    360.05       -.32146E-07** at limit **
  10  norm          .10000E-03    184.16        .14320E-06** at limit **
  11  Prefactor    10000.0        1882.2       -.40738E-06** at limit **
  12  Prefactor     5.2238        21.498       -.22422E-05    .48793E-04
  13  Prefactor     .10000E-03    236.71       -.25930E-06** at limit **
  14  norm          .10000E-03    28.009       -.31790E-07** at limit **
  15  norm          .10000E-03    6.6317       -.73504E-07** at limit **
  16  norm          3.1638        2.8171       -.27258E-06   -.32661E-03
  17  norm          .10000E-03    287.99       -.23956E-06** at limit **
  18  Prefactor     .10022E-03    598.50       -.14091E-04** at limit **
  19  Prefactor     116.69        254.87       -.93680E-05   -.72292E-04
  20  Prefactor     324.91        183.65       -.13287E-05    .24090E-04
  21  Prefactor     .10000E-03    183.26       -.10742E-05** at limit **
  22  Normalizat    .10000E-01    1.8766       -.10826E-03** at limit **
  23  Prefactor     .28837        .70625E-01   -.17796E-06    .53078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 21.0852
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 5.22376
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.16378
  norm       = 0.0001
  Prefactor  = 0.000100221
  Prefactor  = 116.692
  Prefactor  = 324.914
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 0.288368
 **********
 **   18 **HESSE 
 **********

 FCN=   985.5609     FROM HESSE     STATUS=OK           352 CALLS     3347 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.582        .99732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.085        17.026        .87212E-04   -1.4789    
   3  norm         10000.0        310.55        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        1230.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6825        .95432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    233.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    65.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    360.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    184.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        1882.3        .21145E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2238        21.529        .17543E-03   -1.5251    
  13  Prefactor     .10000E-03    236.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    28.015        .16237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6323        .78981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1638        2.8189        .46499E-04   -1.5352    
  17  norm          .10000E-03    288.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10022E-03    614.20        .19541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     116.69        258.90        .18593E-03   -1.3543    
  20  Prefactor     324.91        183.47        .11277E-03   -1.2083    
  21  Prefactor     .10000E-03    183.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    1.8898        .15487E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .28837        .72433E-01    .12593E-03   -1.2295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52991e-09
Minuit parameter uncertainties:
  1  0.000189317
  2  17.0296
  3  0.000390694
  4  0.00325352
  5  4.23306e-05
  6  3.65969e-05
  7  0.000132227
  8  8.93897e-05
  9  9.87971e-05
  10  0.000104617
  11  0.00141044
  12  21.2225
  13  4.56555e-05
  14  8.11514e-06
  15  1.15516e-05
  16  2.81903
  17  0.000162813
  18  0.0235211
  19  261.481
  20  183.796
  21  0.00118198
  22  4.34946e-05
  23  0.0724555
Done.

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

Extracting fit parameters...

4FGL J1747.6-5308
   Spectrum: PowerLaw
1099    Prefactor:  1.000e-04  9.880e-05  1.000e-04  1.000e+04 ( 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:  2.884e-01  7.246e-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:  1.000e-02  4.349e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 266.901 -53.139
Photon Flux Upper Limit: 2.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147839/likelihoodResults_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.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) = 985.560951814
delta logL = -1.54021358867e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 985.560951783
delta logL = -1.53709464712e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4364       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28837       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.

 FCN=   985.5609     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      207 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    420.79        .90713E-02** at limit **
   2  Index         2.3897        5.5944        .50000        .10363E-05
   3  Normalizat    .10000E-01    .13693E-02    .32097    ** at limit **
   4  Prefactor     .28837        .31802E-02    .36615E-01   -.13227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Index      = 2.38968
  Normalizat = 0.01
  Prefactor  = 0.288366
 **********
 **   18 **HESSE 
 **********

 FCN=   985.5609     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    1968.5        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3897        8.6816        .50000       -.54927    
   3  Normalizat    .10000E-01    .21543E-01    .15516E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .28837        .71008E-02    .12593E-03   -1.2295    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.62103e-08
Minuit parameter uncertainties:
  1  0.0140271
  2  956.919
  3  5.18666e-06
  4  0.00710082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147839': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 985.5609364
delta logL = 1.20094227896e-08

Extracting fit parameters...

4FGL J1747.6-5308
   Spectrum: PowerLaw
1099    Prefactor:  1.000e-04  1.403e-02  1.000e-04  1.000e+04 ( 1.000e-14)
1100        Index:  2.390e+00  9.569e+02  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:  2.884e-01  7.101e-03  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:  1.000e-02  5.187e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/147839/cmap_HighResolution_567993601_568252801_4FGL_J1747.6-5308_daily_bin1268.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/147839

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-01', job_status='DONE', photon_flux_upper_limit='2.03e-06', time_completed='2021-09-18 13:23:48.247488', job_id='147839', GAL2='0.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631996628.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.29', dlogl='1.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1268' AND source_name='4FGL J1747.6-5308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 13:23:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 147839: <4FGL_J1747.6-5308_daily_bin1268> in cluster <slac> Done

Job <4FGL_J1747.6-5308_daily_bin1268> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 18 13:10:26 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 13:10:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 13:10:28 2021
Terminated at Sat Sep 18 13:23:49 2021
Results reported at Sat Sep 18 13:23:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1747.6-5308_daily_bin1268 266.901 -53.1385 567993601 568252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1747.6-5308 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.19 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             237.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            803 sec.

The output (if any) is above this job summary.

