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


Performing analysis on: 4FGL_J1517.7-2422_daily_bin320
RA = 229.425, Dec = -24.373
tmin = 322272001, tmax = 322531201
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='468705', job_status='RUN', time_executed='2021-09-12 00:09:22.106034', time_epoch_executed='1631430562.11' WHERE source_name='4FGL J1517.7-2422' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468705

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468705/ft1_4FGL_J1517.7-2422_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468705/ft2_4FGL_J1517.7-2422_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468705/ft1_4FGL_J1517.7-2422_daily_bin320.fits outfile=/scratch/kocevski/468705/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin320.fits ra=229.425 dec=-24.373 rad=12.0 tmin=322272001.0 tmax=322531201.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.57
user 3.38
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468705/ft1_filtered_4FGL_J1517.7-2422_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/468705/ft2_4FGL_J1517.7-2422_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/468705/ltcube_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.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/468705/ft2_4FGL_J1517.7-2422_daily_bin320.fits
.....................!
real 11.98
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468705/ft1_filtered_4FGL_J1517.7-2422_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/468705/ft2_4FGL_J1517.7-2422_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/468705/ltcube_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.fits outfile=/scratch/kocevski/468705/expmap_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.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/468705/ltcube_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.fits
.....................!
real 192.04
user 187.53
sys 4.18

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/468705/ft1_filtered_4FGL_J1517.7-2422_daily_bin320.fits scfile=/scratch/kocevski/468705/ft2_4FGL_J1517.7-2422_daily_bin320.fits outfile=/scratch/kocevski/468705/cmap_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468705/ft1_filtered_4FGL_J1517.7-2422_daily_bin320.fits scfile=/scratch/kocevski/468705/ft2_4FGL_J1517.7-2422_daily_bin320.fits outfile=/scratch/kocevski/468705/cmap_HighResolution_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.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.53
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468705/ft1_filtered_4FGL_J1517.7-2422_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/468705/ft2_4FGL_J1517.7-2422_daily_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468705/Model_4FGL_J1517.7-2422_daily_bin320.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/468705/ft1_filtered_4FGL_J1517.7-2422_daily_bin320.fits.....................!
real 102.38
user 101.11
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.258       1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9774       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.754       1.0000         .10000E-03   10000.    
     8 'norm      '    16.831       1.0000         .10000E-03   10000.    
     9 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1241       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7206       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.006       1.0000         .10000E-03   10000.    
    16 'norm      '    28.655       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.067       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3837       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92683       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=   9679.045     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2070 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4075        .28685E-07** at limit **
   2  Prefactor     45.263        60.700        .11860E-05    .63075E-04
   3  Prefactor     61.403        60.270        .11955E-05    .76533E-04
   4  Prefactor     .10000E-03    134.01       -.17308E-07** at limit **
   5  Prefactor     6.9670        17.079        .61162E-06    .38876E-04
   6  Prefactor     .10000E-03    16.834       -.31345E-08** at limit **
   7  Prefactor     30.755        14.664       -.12422E-06   -.16410E-04
   8  norm          16.830        8.9129       -.32361E-06   -.27612E-03
   9  norm          .10000E-03    47.156        .12331E-07** at limit **
  10  norm          1.1240        .83254       -.22669E-07   -.18844E-03
  11  Prefactor     .10000E-03    6.0597       -.46118E-06** at limit **
  12  norm          5.7223        3.7490        .12960E-05   -.12832E-02
  13  norm          7.8845        7.8159        .45124E-06    .21217E-03
  14  Prefactor     .10000E-03    30.454       -.55469E-07** at limit **
  15  Prefactor     12.002        24.489        .14574E-06    .80656E-05
  16  norm          28.657        17.119       -.51918E-07   -.58682E-05
  17  Prefactor     .10000E-03    1.0868       -.73209E-08** at limit **
  18  Prefactor     71.040        72.632       -.52358E-05   -.25916E-03
  19  Normalizat    1.3840        .32327       -.17003E-05    .35753E-04
  20  Prefactor     .92674        .82210E-01    .41930E-06   -.14290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.2628
  Prefactor  = 61.4026
  Prefactor  = 0.0001
  Prefactor  = 6.96697
  Prefactor  = 0.0001
  Prefactor  = 30.7553
  norm       = 16.8296
  norm       = 0.0001
  norm       = 1.12401
  Prefactor  = 0.0001
  norm       = 5.72233
  norm       = 7.88446
  Prefactor  = 0.0001
  Prefactor  = 12.0019
  norm       = 28.6566
  Prefactor  = 0.0001
  Prefactor  = 71.0397
  Normalizat = 1.38398
  Prefactor  = 0.926743
 **********
 **   18 **HESSE 
 **********

 FCN=   9679.045     FROM HESSE     STATUS=OK           289 CALLS     2359 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.263        60.839        .59597E-04   -1.4361    
   3  Prefactor     61.403        60.596        .51208E-04   -1.4139    
   4  Prefactor     .10000E-03    134.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9670        17.144        .15188E-03   -1.5180    
   6  Prefactor     .10000E-03    17.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.755        14.683        .72250E-04   -1.4598    
   8  norm          16.830        8.9660        .97627E-04   -1.4887    
   9  norm          .10000E-03    47.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1240        .81677        .73317E-04   -1.5496    
  11  Prefactor     .10000E-03    6.1523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7223        4.0034        .79172E-03   -1.5229    
  13  norm          7.8845        7.8410        .14280E-03   -1.5146    
  14  Prefactor     .10000E-03    30.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.002        24.526        .11561E-03   -1.5015    
  16  norm          28.657        17.145        .74842E-04   -1.4637    
  17  Prefactor     .10000E-03    1.1014        .10008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     71.040        78.109        .47620E-04   -1.4020    
  19  Normalizat    1.3840        .37823        .50077E-03   -.81093    
  20  Prefactor     .92674        .97509E-01    .15709E-03   -.95213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1824e-09
Minuit parameter uncertainties:
  1  4.27125e-06
  2  60.9231
  3  60.6572
  4  4.00019e-06
  5  17.1557
  6  2.47647e-05
  7  14.6849
  8  8.96668
  9  8.14849e-06
  10  0.816778
  11  4.5176e-05
  12  4.00354
  13  7.84204
  14  1.29199e-05
  15  24.5467
  16  17.1477
  17  8.83171e-07
  18  78.2223
  19  0.378997
  20  0.0975278
Done.

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

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  1.124e+00  8.168e-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.267e-01  9.753e-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.384e+00  3.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 229.425 -24.373
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 7.60e-08 +/- 5.52e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 2.97e-05

TS (Fixed Index): 3.63
Ra Dec: 229.425 -24.373
Photon Flux Upper Limit: 1.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468705/likelihoodResults_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9678.8127418
delta logL = 0.232369807205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9678.81040401
delta logL = 0.234707597194

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1574       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4911       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93351       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=   9678.810     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1574        11.169        .10722E-01    .84930E-03
   2  alpha         2.4911        3.7377        .30818        .50959E-04
   3  Normalizat    1.3257        .11197        .11494        .18988E-03
   4  Prefactor     .93352        .25721E-01    .45431E-01    .56543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15742
  alpha      = 2.49108
  Normalizat = 1.32573
  Prefactor  = 0.933518
 **********
 **   18 **HESSE 
 **********

 FCN=   9678.810     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1574        .79684        .62327E-04   -1.5493    
   2  alpha         2.4911        .59869        .15607E-01   -.35695E-02
   3  Normalizat    1.3257        .36605        .50969E-03   -.82801    
   4  Prefactor     .93352        .94288E-01    .15652E-03   -.94980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38729e-09
Minuit parameter uncertainties:
  1  0.796848
  2  0.604567
  3  0.366766
  4  0.0943047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468705': 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) = 9678.810404
delta logL = 0.234707602187

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  1.157e+00  7.968e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.491e+00  6.046e-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.335e-01  9.430e-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.326e+00  3.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 229.425 -24.373
Photon Index (Free Index): 2.49 +/- 0.60
Photon Flux (Free Index): 1.33e-07 +/- 1.09e-07
Energy Flux (Free Index): 3.92e-05 +/- 2.44e-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/468705/cmap_HighResolution_322272001_322531201_4FGL_J1517.7-2422_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', comment='SUCCESS', photon_flux='7.60e-08', energy_flux2='3.92e-05', photon_flux_error='5.52e-08', dlogl='2.35e-01', energy_flux='4.08e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-12 00:23:14.940949', photon_index_error2='0.60', photon_index2='2.49', ts='3.63', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='2.44e-05', EG='1.38', time_epoch_completed='1631431394.94', return_code='0', job_id='468705', GAL2='0.93', EG2='1.33', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='1.09e-07', ts2='4.13', photon_index='2.08' WHERE bin_id='320' AND source_name='4FGL J1517.7-2422' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:23:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 468705: <4FGL_J1517.7-2422_daily_bin320> in cluster <slac> Done

Job <4FGL_J1517.7-2422_daily_bin320> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 12 00:07:22 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:07:23 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:23 2021
Terminated at Sun Sep 12 00:23:15 2021
Results reported at Sun Sep 12 00:23:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7-2422_daily_bin320 229.425 -24.373 322272001 322531201 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 :                                   828.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

