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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin650
RA = 229.436, Dec = 65.424
tmin = 407808001, tmax = 408067201
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='460403', job_status='RUN', time_executed='2021-09-11 23:44:01.425169', time_epoch_executed='1631429041.43' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460403/ft1_4FGL_J1517.7+6525_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460403/ft1_4FGL_J1517.7+6525_daily_bin650.fits outfile=/scratch/kocevski/460403/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin650.fits ra=229.436 dec=65.424 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.09
user 3.88
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.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/460403/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/460403/ltcube_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.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/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/460403/ltcube_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.fits outfile=/scratch/kocevski/460403/expmap_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.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/460403/ltcube_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.fits
.....................!
real 190.82
user 185.89
sys 4.61

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
Added 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1517.7+6525 @ 229.436 65.424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits scfile=/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits outfile=/scratch/kocevski/460403/cmap_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.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.436 yref=65.424 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits scfile=/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits outfile=/scratch/kocevski/460403/cmap_HighResolution_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.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.436 yref=65.424 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460403/Model_4FGL_J1517.7+6525_daily_bin650.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 GAL_V02
Working on...
/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits.....................!
real 48.08
user 46.81
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits', '/scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits', expMap='/scratch/kocevski/460403/expmap_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.fits', expCube='/scratch/kocevski/460403/ltcube_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/460403/Model_4FGL_J1517.7+6525_daily_bin650.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1517.7+6525'

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  8.633e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/460403/ft1_filtered_4FGL_J1517.7+6525_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/460403/ft2_4FGL_J1517.7+6525_daily_bin650.fits
Exposure map: /scratch/kocevski/460403/expmap_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.fits
Exposure cube: /scratch/kocevski/460403/ltcube_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/460403/Model_4FGL_J1517.7+6525_daily_bin650.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) = 4831.83008797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28234E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    300.80       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1270       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.7035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8923       1.0000         .10000E-03   10000.    
    22 'norm      '    11.686       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.658       1.0000         .10000E-03   10000.    
    27 'norm      '    .18987       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5089       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .52208       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4831.665     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     4064 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    225.76       -.30213E-04** at limit **
   2  Prefactor     .10000E-03    33.732       -.38726E-05** at limit **
   3  Prefactor     .10001E-03    6.6128       -.67713E-06** at limit **
   4  Prefactor     .10000E-03    24.414        .10633E-04** at limit **
   5  Prefactor     28.773        16.869       -.11477E-07    .26075E-03
   6  Prefactor     .10000E-03    19.364       -.77649E-05** at limit **
   7  Prefactor     .10000E-03    17.618       -.74207E-05** at limit **
   8  Prefactor     300.36        826.70       -.25994E-03    .30096E-05
   9  Prefactor     .10000E-03    16.420        .81417E-07** at limit **
  10  Prefactor     .10000E-03    119.20       -.42563E-04** at limit **
  11  Prefactor     .10000E-03    50.370       -.10722E-04** at limit **
  12  Prefactor     .10000E-03    10.971        .38892E-06** at limit **
  13  Prefactor     .10000E-03    15.516        .71226E-05** at limit **
  14  Prefactor     .10000E-03    13.162       -.36939E-05** at limit **
  15  Prefactor     .10000E-03    92.259        .28980E-04** at limit **
  16  Prefactor     8.1247        8.9880       -.57576E-06    .80904E-05
  17  Prefactor     .10000E-03    8.8146       -.51232E-07** at limit **
  18  Prefactor     .10000E-03    24.053        .92921E-05** at limit **
  19  norm          7.7040        3.3528       -.10534E-06    .69603E-04
  20  Prefactor     .10000E-03    35.737       -.98376E-05** at limit **
  21  Prefactor     6.8909        8.4933       -.52229E-06   -.47174E-04
  22  norm          11.684        9.4384       -.50839E-06   -.53232E-04
  23  Prefactor     .10000E-03    15.619        .64808E-05** at limit **
  24  Prefactor     .10000E-03    63.965        .20595E-04** at limit **
  25  Prefactor     .10000E-03    16.729       -.21662E-05** at limit **
  26  norm          13.653        12.059       -.18017E-05   -.97121E-03
  27  norm          .18973        .60549       -.59809E-06   -.25037E-03
  28  Prefactor     .10000E-03    3.5886        .42373E-07** at limit **
  29  Prefactor     .10000E-03    16.675       -.19484E-05** at limit **
  30  Normalizat    1.5089        .20119        .13637E-05    .26540E-03
  31  Prefactor     .52226        .19355        .42728E-05    .18975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 28.7734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 300.36
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.1247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.70396
  Prefactor  = 0.0001
  Prefactor  = 6.89086
  norm       = 11.6845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6526
  norm       = 0.189729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50888
  Prefactor  = 0.522262
 **********
 **   18 **HESSE 
 **********

 FCN=   4831.665     FROM HESSE     STATUS=OK           608 CALLS     4672 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    226.41        .21415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    21.178        .30768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.773        15.099        .74678E-04   -1.4635    
   6  Prefactor     .10000E-03    20.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     300.36        827.56        .11709E-03   -1.2224    
   9  Prefactor     .10000E-03    16.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    119.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    92.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1247        9.0002        .14064E-03   -1.5138    
  17  Prefactor     .10000E-03    8.8438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.7040        3.3541        .81578E-04   -1.5153    
  20  Prefactor     .10000E-03    35.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8909        8.4811        .15282E-03   -1.5183    
  22  norm          11.684        9.4371        .11719E-03   -1.5024    
  23  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    63.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.653        12.125        .54191E-03   -1.4969    
  27  norm          .18973        .90225        .89597E-03   -1.5621    
  28  Prefactor     .10000E-03    3.5958        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.5089        .23546        .20763E-03   -.77529    
  31  Prefactor     .52226        .22515        .31900E-03   -1.1097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2905e-09
Minuit parameter uncertainties:
  1  0.000239898
  2  4.48198e-05
  3  0.000754991
  4  8.87578e-05
  5  15.1012
  6  1.8657e-05
  7  6.00508e-06
  8  863.984
  9  9.11626e-06
  10  0.000166035
  11  2.78301e-05
  12  1.1817e-05
  13  3.21693e-05
  14  2.1979e-05
  15  0.000207541
  16  9.0017
  17  3.05375e-05
  18  5.99796e-05
  19  3.35415
  20  2.73043e-05
  21  8.48261
  22  9.43834
  23  1.13574e-05
  24  3.26864e-05
  25  6.59313e-06
  26  12.1277
  27  0.827288
  28  4.51197e-06
  29  1.56269e-05
  30  0.235629
  31  0.225536
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  5.998e-05  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  5.223e-01  2.255e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.509e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.436 65.424
Photon Flux Upper Limit: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460403/likelihoodResults_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4831.66527039
delta logL = -0.00019768393031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4831.66507542
delta logL = -2.72172746918e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17099E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1586       1.0000          .0000       10.000    
     3 'Normalizat'    1.5089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4831.665     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10241E-03    1.1016        .18142E-01** at limit **
   2  Index         2.0831        6.0285        .50000        .12229E-04
   3  Normalizat    1.5089        .11669E-02    .20762E-03   -.11380E-03
   4  Prefactor     .52226        .11156E-02    .31900E-03   -.66858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102408
  Index      = 2.08313
  Normalizat = 1.50888
  Prefactor  = 0.522261
 **********
 **   18 **HESSE 
 **********

 FCN=   4831.665     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10241E-03    47.296        .29764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0831        6.0780        .50000       -.62288    
   3  Normalizat    1.5089        .76045E-02    .41525E-04   -.77529    
   4  Prefactor     .52226        .72705E-02    .12760E-04   -1.1097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05917e-09
Minuit parameter uncertainties:
  1  0.0213593
  2  188.221
  3  0.00760453
  4  0.00727056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460403': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4831.66507325
delta logL = -5.43098394701e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.024e-04  2.136e-02  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  2.083e+00  1.882e+02  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  5.223e-01  7.271e-03  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.509e+00  7.605e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.436 65.424

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/460403/cmap_HighResolution_407808001_408067201_4FGL_J1517.7+6525_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-11 23:58:15.311479', job_id='460403', GAL2='0.52', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1631429895.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='-5.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='650' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:58:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 460403: <4FGL_J1517.7+6525_daily_bin650> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin650> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:41:41 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:41:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:41:42 2021
Terminated at Sat Sep 11 23:58:16 2021
Results reported at Sat Sep 11 23:58:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin650 229.436 65.424 407808001 408067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1517.7+6525 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   851.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

