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


Performing analysis on: 4FGL_J1517.7-2422_daily_bin498
RA = 229.425, Dec = -24.373
tmin = 368409601, tmax = 368668801
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='469793', job_status='RUN', time_executed='2021-09-12 00:13:59.187235', time_epoch_executed='1631430839.19' WHERE source_name='4FGL J1517.7-2422' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469793/ft1_4FGL_J1517.7-2422_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469793/ft2_4FGL_J1517.7-2422_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469793/ft1_4FGL_J1517.7-2422_daily_bin498.fits outfile=/scratch/kocevski/469793/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin498.fits ra=229.425 dec=-24.373 rad=12.0 tmin=368409601.0 tmax=368668801.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.26
user 3.04
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469793/ft2_4FGL_J1517.7-2422_daily_bin498.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/469793/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/469793/ft1_filtered_4FGL_J1517.7-2422_daily_bin498.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469793/ft1_filtered_4FGL_J1517.7-2422_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/469793/ft2_4FGL_J1517.7-2422_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/469793/ltcube_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.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/469793/ft2_4FGL_J1517.7-2422_daily_bin498.fits
.....................!
real 11.75
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469793/ft1_filtered_4FGL_J1517.7-2422_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/469793/ft2_4FGL_J1517.7-2422_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/469793/ltcube_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.fits outfile=/scratch/kocevski/469793/expmap_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.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/469793/ltcube_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.fits
.....................!
real 191.47
user 186.14
sys 5.01

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/469793/ft1_filtered_4FGL_J1517.7-2422_daily_bin498.fits scfile=/scratch/kocevski/469793/ft2_4FGL_J1517.7-2422_daily_bin498.fits outfile=/scratch/kocevski/469793/cmap_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469793/ft1_filtered_4FGL_J1517.7-2422_daily_bin498.fits scfile=/scratch/kocevski/469793/ft2_4FGL_J1517.7-2422_daily_bin498.fits outfile=/scratch/kocevski/469793/cmap_HighResolution_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469793/ft1_filtered_4FGL_J1517.7-2422_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/469793/ft2_4FGL_J1517.7-2422_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469793/Model_4FGL_J1517.7-2422_daily_bin498.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/469793/ft1_filtered_4FGL_J1517.7-2422_daily_bin498.fits.....................!
real 89.00
user 87.66
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11265E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.073       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    87.742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7217       1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.743       1.0000         .10000E-03   10000.    
    12 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10909E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16294E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12480E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66051       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8700.682     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1757 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.124       -.15953E-04** at limit **
   2  Prefactor     31.094        52.217       -.51175E-04    .13000E-03
   3  Prefactor     .10000E-03    18.070       -.58835E-06** at limit **
   4  Prefactor     .10061E-03    9843.0       -.18411E-02** at limit **
   5  Prefactor     87.750        24.277        .72050E-05    .24973E-04
   6  Prefactor     .10000E-03    5.0222        .27833E-05** at limit **
   7  Prefactor     8.7226        13.420       -.29833E-04    .40519E-03
   8  norm          .10000E-03    2.9029        .11996E-05** at limit **
   9  norm          .10000E-03    21.927       -.29526E-06** at limit **
  10  norm          1.0129        .86378        .46583E-06   -.20305E-03
  11  Prefactor     14.738        10.619        .11340E-05    .59668E-04
  12  norm          .10000E-03    1.9006        .59253E-06** at limit **
  13  norm          .10001E-03    17.472        .13633E-04** at limit **
  14  Prefactor     .10000E-03    83.359       -.35855E-05** at limit **
  15  Prefactor     .10000E-03    9.2491        .17438E-05** at limit **
  16  norm          .10000E-03    4.9914        .20781E-05** at limit **
  17  Prefactor     .68096        2.8241        .93645E-06    .43683E-04
  18  Prefactor     .10000E-03    31.139        .51737E-05** at limit **
  19  Normalizat    .66033        .36827       -.11010E-04    .21045E-03
  20  Prefactor     1.1026        .98207E-01    .22751E-06    .84998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.0942
  Prefactor  = 0.000100001
  Prefactor  = 0.000100614
  Prefactor  = 87.7504
  Prefactor  = 0.0001
  Prefactor  = 8.72262
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.01285
  Prefactor  = 14.7381
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.680956
  Prefactor  = 0.0001
  Normalizat = 0.660326
  Prefactor  = 1.10258
 **********
 **   18 **HESSE 
 **********

 FCN=   8700.682     FROM HESSE     STATUS=OK           335 CALLS     2092 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.094        52.349        .17970E-02   -1.4592    
   3  Prefactor     .10000E-03    18.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10061E-03    131.80        .37301       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     87.750        24.432        .10723E-02   -1.3832    
   6  Prefactor     .10000E-03    4.9447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7226        13.535        .33932E-02   -1.5117    
   8  norm          .10000E-03    2.8893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0129        .90584        .13085E-01   -1.5507    
  11  Prefactor     14.738        10.687        .26078E-02   -1.4940    
  12  norm          .10000E-03    1.8916        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    17.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    83.389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.9909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .68096        2.7826        .11983E-01   -1.5543    
  18  Prefactor     .10000E-03    31.209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .66033        .37359        .15234       -1.0548    
  20  Prefactor     1.1026        .95384E-01    .37489E-01   -.89384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89148e-09
Minuit parameter uncertainties:
  1  3.71079e-05
  2  52.4267
  3  0.000325479
  4  0.018032
  5  24.4349
  6  5.95359e-05
  7  13.5395
  8  1.68973e-05
  9  8.25623e-05
  10  0.905857
  11  10.6887
  12  8.53083e-06
  13  0.000590684
  14  5.32602e-05
  15  1.19255e-06
  16  2.84622e-05
  17  2.75307
  18  0.000233782
  19  0.375038
  20  0.0953989
Done.

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

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  1.013e+00  9.059e-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.103e+00  9.540e-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:  6.603e-01  3.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 229.425 -24.373
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 6.85e-08 +/- 6.13e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 3.29e-05

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

Saving results to:
/scratch/kocevski/469793/likelihoodResults_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.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) = 8700.51641116
delta logL = 0.165516424493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8700.51005658
delta logL = 0.171871006867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96341       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4416       1.0000          .0000       5.0000    
     3 'Normalizat'    .62552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1070       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=   8700.510     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96345        11.506        .13036E-01    .14805E-02
   2  alpha         2.4416        3.7194        .41166        .39097E-04
   3  Normalizat    .62550        .86099E-01    .15620        .12203E-03
   4  Prefactor     1.1070        .22234E-01    .37327E-01    .33830E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.963454
  alpha      = 2.44159
  Normalizat = 0.625501
  Prefactor  = 1.10699
 **********
 **   18 **HESSE 
 **********

 FCN=   8700.510     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96345        .87250        .68874E-03   -1.5512    
   2  alpha         2.4416        .67448        .15205E-01   -.23366E-01
   3  Normalizat    .62550        .36274        .69334E-03   -1.0691    
   4  Prefactor     1.1070        .97560E-01    .14389E-03   -.89244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68622e-11
Minuit parameter uncertainties:
  1  0.872507
  2  0.682952
  3  0.364133
  4  0.097576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469793': 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) = 8700.51005658
delta logL = 0.171871011111

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  9.635e-01  8.725e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.442e+00  6.830e-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.107e+00  9.758e-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:  6.255e-01  3.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 229.425 -24.373
Photon Index (Free Index): 2.44 +/- 0.68
Photon Flux (Free Index): 1.04e-07 +/- 9.30e-08
Energy Flux (Free Index): 3.21e-05 +/- 2.66e-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/469793/cmap_HighResolution_368409601_368668801_4FGL_J1517.7-2422_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-04', comment='SUCCESS', photon_flux='6.85e-08', energy_flux2='3.21e-05', photon_flux_error='6.13e-08', dlogl='1.72e-01', energy_flux='3.68e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-12 00:26:12.407478', photon_index_error2='0.68', photon_index2='2.44', ts='1.98', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='2.66e-05', EG='0.66', time_epoch_completed='1631431572.41', return_code='0', job_id='469793', GAL2='1.11', EG2='0.63', return_code2='0', energy_flux_error='3.29e-05', photon_flux_error2='9.30e-08', ts2='2.34', photon_index='2.08' WHERE bin_id='498' AND source_name='4FGL J1517.7-2422' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 469793: <4FGL_J1517.7-2422_daily_bin498> in cluster <slac> Done

Job <4FGL_J1517.7-2422_daily_bin498> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 00:11:02 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:11:04 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:11:04 2021
Terminated at Sun Sep 12 00:26:13 2021
Results reported at Sun Sep 12 00:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7-2422_daily_bin498 229.425 -24.373 368409601 368668801 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 :                                   732.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

