/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 204 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1517.7-2422_daily_bin249
RA = 229.425, Dec = -24.373
tmin = 303868801, tmax = 304128001
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='468597', job_status='RUN', time_executed='2021-09-12 00:10:48.516851', time_epoch_executed='1631430648.52' WHERE source_name='4FGL J1517.7-2422' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468597/ft1_4FGL_J1517.7-2422_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468597/ft1_4FGL_J1517.7-2422_daily_bin249.fits outfile=/scratch/kocevski/468597/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin249.fits ra=229.425 dec=-24.373 rad=12.0 tmin=303868801.0 tmax=304128001.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 3.43
user 3.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.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/468597/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.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.65
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/468597/ltcube_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.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/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits
.....................!
real 12.12
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/468597/ltcube_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.fits outfile=/scratch/kocevski/468597/expmap_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.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/468597/ltcube_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.fits
.....................!
real 190.41
user 184.72
sys 5.06

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 J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 193 point sources and 1 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 J1517.7-2422 @ 229.425 -24.373

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits scfile=/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits outfile=/scratch/kocevski/468597/cmap_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.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=229.425 yref=-24.373 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits scfile=/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits outfile=/scratch/kocevski/468597/cmap_HighResolution_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.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=229.425 yref=-24.373 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468597/Model_4FGL_J1517.7-2422_daily_bin249.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 FHES J1626.9-2431
adding source GAL_V02
Working on...
/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits.....................!
real 98.20
user 96.66
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits', '/scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits', expMap='/scratch/kocevski/468597/expmap_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.fits', expCube='/scratch/kocevski/468597/ltcube_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468597/Model_4FGL_J1517.7-2422_daily_bin249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1517.7-2422'

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  1.141e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.079e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  2.845e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/468597/ft1_filtered_4FGL_J1517.7-2422_daily_bin249.fits
Spacecraft file(s): /scratch/kocevski/468597/ft2_4FGL_J1517.7-2422_daily_bin249.fits
Exposure map: /scratch/kocevski/468597/expmap_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.fits
Exposure cube: /scratch/kocevski/468597/ltcube_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468597/Model_4FGL_J1517.7-2422_daily_bin249.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) = 9309.53992647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    98.204       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7257       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5280       1.0000         .10000E-03   10000.    
     9 'norm      '    24.872       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7308       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0486       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38156E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9309.530     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2094 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.937       -.25748E-06** at limit **
   2  Prefactor     .10000E-03    15.582       -.58890E-07** at limit **
   3  Prefactor     98.185        65.605       -.45248E-06    .17636E-04
   4  Prefactor     .10000E-03    63.554        .80552E-07** at limit **
   5  Prefactor     .10000E-03    10.021       -.26002E-06** at limit **
   6  Prefactor     .10000E-03    12.266       -.20007E-07** at limit **
   7  Prefactor     1.6783        24.934       -.37929E-05   -.16273E-05
   8  norm          7.5321        6.5043        .44316E-06   -.14646E-04
   9  norm          24.849        38.331       -.51665E-06    .20522E-04
  10  norm          1.6648        .76093        .33123E-07   -.38493E-04
  11  Prefactor     1.7483        7.4902        .17174E-05   -.64446E-05
  12  norm          5.0448        4.1852        .63141E-07   -.28187E-05
  13  norm          .10000E-03    2.0859       -.88992E-07** at limit **
  14  Prefactor     .10000E-03    116.12       -.82771E-06** at limit **
  15  Prefactor     .10000E-03    14.100       -.11957E-06** at limit **
  16  norm          .10000E-03    4.6686       -.82596E-07** at limit **
  17  Prefactor     1.5813        2.8106       -.37805E-06   -.19888E-04
  18  Prefactor     .10000E-03    84.827       -.50988E-06** at limit **
  19  Normalizat    1.0293        .32071        .86944E-06    .35026E-04
  20  Prefactor     .99774        .85317E-01    .52949E-06   -.24922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 98.1847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67828
  norm       = 7.5321
  norm       = 24.8485
  norm       = 1.66483
  Prefactor  = 1.74825
  norm       = 5.04484
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.58134
  Prefactor  = 0.0001
  Normalizat = 1.02934
  Prefactor  = 0.997745
 **********
 **   18 **HESSE 
 **********

 FCN=   9309.530     FROM HESSE     STATUS=OK           289 CALLS     2383 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     98.185        65.780        .40564E-04   -1.3723    
   4  Prefactor     .10000E-03    63.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6783        25.509        .31968E-03   -1.5449    
   8  norm          7.5321        6.5011        .14617E-03   -1.5159    
   9  norm          24.849        38.231        .80322E-04   -1.4711    
  10  norm          1.6648        .76020        .54561E-04   -1.5450    
  11  Prefactor     1.7483        7.5600        .15955E-02   -1.5444    
  12  norm          5.0448        4.1931        .16150E-03   -1.5259    
  13  norm          .10000E-03    2.0938        .13611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    117.70        .21285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5813        2.8054        .20478E-03   -1.5456    
  18  Prefactor     .10000E-03    85.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0293        .35824        .53589E-03   -.92054    
  20  Prefactor     .99774        .94801E-01    .14630E-03   -.92805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13143e-09
Minuit parameter uncertainties:
  1  2.01875e-06
  2  1.5742e-05
  3  65.8284
  4  9.84387e-05
  5  1.44992e-05
  6  3.19494e-05
  7  13.0923
  8  6.50175
  9  38.2686
  10  0.760203
  11  7.27232
  12  4.1933
  13  5.08964e-07
  14  0.000137584
  15  4.62575e-06
  16  1.85889e-06
  17  2.80565
  18  2.74804e-05
  19  0.359084
  20  0.0948173
Done.

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

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  1.665e+00  7.602e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.079e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  2.845e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.977e-01  9.482e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.029e+00  3.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.94
Ra Dec: 229.425 -24.373
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.14e-08
Energy Flux (Fixed Index): 6.05e-05 +/- 2.76e-05

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) = 9308.18073221
delta logL = 1.34946390648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9308.16921279
delta logL = 1.36098333147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0906       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4150       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99178       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9308.169     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      218 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0905        .60284        .11451E-01    .20422E-02
   2  alpha         1.4151        .26798        .25529       -.49096E-04
   3  Normalizat    1.0945        .30367        .11763        .63270E-04
   4  Prefactor     .99176        .82165E-01    .33218E-01   -.12721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09055
  alpha      = 1.41508
  Normalizat = 1.09448
  Prefactor  = 0.991761
 **********
 **   18 **HESSE 
 **********

 FCN=   9308.169     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0905        .79761        .50433E-04   -1.5499    
   2  alpha         1.4151        .37809        .10432E-01   -.44889    
   3  Normalizat    1.0945        .34179        .52173E-03   -.89929    
   4  Prefactor     .99176        .92937E-01    .14678E-03   -.93005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4618e-10
Minuit parameter uncertainties:
  1  0.797613
  2  0.379887
  3  0.342482
  4  0.0929515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468597': 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): 0
logL (Free Index) = 9308.16921271
delta logL = 1.36098341564

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  1.091e+00  7.976e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  1.415e+00  3.799e-01  0.000e+00  5.000e+00 ( 1.000e+00)
317         beta:  2.845e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.918e-01  9.295e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.094e+00  3.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.65
Ra Dec: 229.425 -24.373
Photon Index (Free Index): 1.42 +/- 0.38
Photon Flux (Free Index): 4.45e-08 +/- 3.49e-08
Energy Flux (Free Index): 1.44e-04 +/- 1.15e-04

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 /scratch/kocevski/468597/cmap_HighResolution_303868801_304128001_4FGL_J1517.7-2422_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='1.44e-04', photon_flux_error='5.14e-08', dlogl='1.36e+00', energy_flux='6.05e-05', photon_flux2='4.45e-08', job_status='DONE', time_completed='2021-09-12 00:23:04.896782', photon_index_error2='0.38', photon_index2='1.42', ts='19.94', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='1.03', time_epoch_completed='1631431384.9', return_code='0', job_id='468597', GAL2='0.99', EG2='1.09', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='3.49e-08', ts2='22.65', photon_index='2.08' WHERE bin_id='249' AND source_name='4FGL J1517.7-2422' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:23:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 468597: <4FGL_J1517.7-2422_daily_bin249> in cluster <slac> Done

Job <4FGL_J1517.7-2422_daily_bin249> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 00:07:13 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:07:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 00:07:14 2021
Terminated at Sun Sep 12 00:23:05 2021
Results reported at Sun Sep 12 00:23:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7-2422_daily_bin249 229.425 -24.373 303868801 304128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1517.7-2422 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.37 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             291.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            952 sec.

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

