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


Performing analysis on: 4FGL_J1517.7-2422_daily_bin247
RA = 229.425, Dec = -24.373
tmin = 303350401, tmax = 303609601
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='468594', job_status='RUN', time_executed='2021-09-12 00:09:38.892339', time_epoch_executed='1631430578.89' WHERE source_name='4FGL J1517.7-2422' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468594

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468594/ft1_4FGL_J1517.7-2422_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468594/ft1_4FGL_J1517.7-2422_daily_bin247.fits outfile=/scratch/kocevski/468594/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin247.fits ra=229.425 dec=-24.373 rad=12.0 tmin=303350401.0 tmax=303609601.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.41
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/468594/ltcube_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.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/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits
.....................!
real 11.61
user 11.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/468594/ltcube_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.fits outfile=/scratch/kocevski/468594/expmap_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.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/468594/ltcube_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.fits
.....................!
real 189.71
user 185.09
sys 4.24

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/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits scfile=/scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits outfile=/scratch/kocevski/468594/cmap_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits scfile=/scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits outfile=/scratch/kocevski/468594/cmap_HighResolution_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468594/Model_4FGL_J1517.7-2422_daily_bin247.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/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits.....................!
real 104.76
user 103.29
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits', '/scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits', expMap='/scratch/kocevski/468594/expmap_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.fits', expCube='/scratch/kocevski/468594/ltcube_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468594/Model_4FGL_J1517.7-2422_daily_bin247.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/468594/ft1_filtered_4FGL_J1517.7-2422_daily_bin247.fits
Spacecraft file(s): /scratch/kocevski/468594/ft2_4FGL_J1517.7-2422_daily_bin247.fits
Exposure map: /scratch/kocevski/468594/expmap_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.fits
Exposure cube: /scratch/kocevski/468594/ltcube_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468594/Model_4FGL_J1517.7-2422_daily_bin247.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) = 10156.2421644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0329       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8721       1.0000         .10000E-03   10000.    
     8 'norm      '    8.6161       1.0000         .10000E-03   10000.    
     9 'norm      '    31.998       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1746       1.0000         .10000E-03   10000.    
    13 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.630       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .38693       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.434       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84250       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0486       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=   10156.24     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2011 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.711       -.24205E-06** at limit **
   2  Prefactor     .10000E-03    31.298       -.87203E-06** at limit **
   3  Prefactor     .10000E-03    27.101       -.56016E-06** at limit **
   4  Prefactor     .10000E-03    103.78       -.60820E-06** at limit **
   5  Prefactor     4.0172        19.094       -.59036E-05   -.66058E-04
   6  Prefactor     .10000E-03    3.3398       -.75965E-07** at limit **
   7  Prefactor     7.8638        10.986       -.70536E-06   -.49899E-04
   8  norm          8.6146        6.7793       -.47272E-06   -.10206E-03
   9  norm          32.003        31.078        .23201E-06   -.20907E-04
  10  norm          2.4059        .95405       -.10433E-06   -.26751E-03
  11  Prefactor     .10000E-03    2.6533        .11032E-06** at limit **
  12  norm          2.1722        2.8209       -.12872E-05   -.25886E-03
  13  norm          .10000E-03    2.5263       -.56236E-07** at limit **
  14  Prefactor     40.621        48.557        .52264E-06    .11388E-04
  15  Prefactor     .10000E-03    28.982        .45563E-06** at limit **
  16  norm          .34226        114.36        .15738E-04    .28293E-05
  17  Prefactor     .10000E-03    1.7347        .27885E-06** at limit **
  18  Prefactor     12.409        99.753       -.59775E-07    .14548E-04
  19  Normalizat    .84381        .31297        .93426E-05   -.32559E-05
  20  Prefactor     1.0485        .84067E-01   -.16748E-05    .50885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0172
  Prefactor  = 0.0001
  Prefactor  = 7.86384
  norm       = 8.61461
  norm       = 32.0027
  norm       = 2.40592
  Prefactor  = 0.0001
  norm       = 2.17218
  norm       = 0.0001
  Prefactor  = 40.6206
  Prefactor  = 0.0001
  norm       = 0.34226
  Prefactor  = 0.0001
  Prefactor  = 12.4091
  Normalizat = 0.843815
  Prefactor  = 1.04851
 **********
 **   18 **HESSE 
 **********

 FCN=   10156.24     FROM HESSE     STATUS=OK           295 CALLS     2306 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    103.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0172        19.182        .20080E-03   -1.5307    
   6  Prefactor     .10000E-03    3.3463        .17986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8638        10.957        .14291E-03   -1.5147    
   8  norm          8.6146        6.7989        .13656E-03   -1.5121    
   9  norm          32.003        31.075        .70836E-04   -1.4576    
  10  norm          2.4059        .95053        .58762E-04   -1.5398    
  11  Prefactor     .10000E-03    2.6621        .16030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1722        2.8479        .18883E-03   -1.5413    
  13  norm          .10000E-03    2.5307        .15644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.621        48.521        .62886E-04   -1.4432    
  15  Prefactor     .10000E-03    29.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .34226        10.254        .10002       -1.5591    
  17  Prefactor     .10000E-03    1.7946        .25858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.409        99.596        .11360E-03   -1.5003    
  19  Normalizat    .84381        .32538        .57062E-03   -.98463    
  20  Prefactor     1.0485        .89408E-01    .14341E-03   -.91129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6821e-10
Minuit parameter uncertainties:
  1  8.17173e-05
  2  3.24525e-05
  3  0.000111995
  4  0.000192863
  5  17.5654
  6  3.15465e-06
  7  10.96
  8  6.79954
  9  31.0911
  10  0.950537
  11  1.12238e-05
  12  2.84809
  13  3.76633e-06
  14  48.5685
  15  5.88757e-05
  16  3.74696
  17  6.94676e-06
  18  70.4715
  19  0.326141
  20  0.0894204
Done.

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

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  2.406e+00  9.505e-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:  1.049e+00  8.942e-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:  8.438e-01  3.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.17
Ra Dec: 229.425 -24.373
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 6.43e-08
Energy Flux (Fixed Index): 8.74e-05 +/- 3.45e-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) = 10156.2087118
delta logL = 0.0325448009444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10156.205154
delta logL = 0.0361026541632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3662       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1827       1.0000          .0000       5.0000    
     3 'Normalizat'    .82362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0513       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=   10156.21     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3663        12.460        .66597E-02    .63087E-03
   2  alpha         2.1827        3.5882        .31595        .38269E-04
   3  Normalizat    .82381        .17327        .12996        .16243E-05
   4  Prefactor     1.0513        .33643E-01    .39833E-01   -.25346E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.36627
  alpha      = 2.1827
  Normalizat = 0.823814
  Prefactor  = 1.05127
 **********
 **   18 **HESSE 
 **********

 FCN=   10156.21     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3663        .95718        .56729E-04   -1.5400    
   2  alpha         2.1827        .39143        .10932E-01   -.12726    
   3  Normalizat    .82381        .32050        .57674E-03   -.99191    
   4  Prefactor     1.0513        .87467E-01    .14322E-03   -.91039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24686e-10
Minuit parameter uncertainties:
  1  0.957187
  2  0.393071
  3  0.321234
  4  0.0874788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468594': 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) = 10156.2051538
delta logL = 0.0361028916741

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  2.366e+00  9.572e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.183e+00  3.931e-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:  1.051e+00  8.748e-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:  8.238e-01  3.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.26
Ra Dec: 229.425 -24.373
Photon Index (Free Index): 2.18 +/- 0.39
Photon Flux (Free Index): 1.81e-07 +/- 9.52e-08
Energy Flux (Free Index): 8.05e-05 +/- 3.95e-05

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/468594/cmap_HighResolution_303350401_303609601_4FGL_J1517.7-2422_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='8.05e-05', photon_flux_error='6.43e-08', dlogl='3.61e-02', energy_flux='8.74e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-12 00:22:13.774609', photon_index_error2='0.39', photon_index2='2.18', ts='15.17', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.95e-05', EG='0.84', time_epoch_completed='1631431333.77', return_code='0', job_id='468594', GAL2='1.05', EG2='0.82', return_code2='0', energy_flux_error='3.45e-05', photon_flux_error2='9.52e-08', ts2='15.26', photon_index='2.08' WHERE bin_id='247' AND source_name='4FGL J1517.7-2422' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:22:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 468594: <4FGL_J1517.7-2422_daily_bin247> in cluster <slac> Done

Job <4FGL_J1517.7-2422_daily_bin247> 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) <bullet0230>, 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:22:14 2021
Results reported at Sun Sep 12 00:22:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7-2422_daily_bin247 229.425 -24.373 303350401 303609601 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

