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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin732
RA = 229.436, Dec = 65.424
tmin = 429062401, tmax = 429321601
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='461490', job_status='RUN', time_executed='2021-09-11 23:49:15.192275', time_epoch_executed='1631429355.19' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461490/ft1_4FGL_J1517.7+6525_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461490/ft1_4FGL_J1517.7+6525_daily_bin732.fits outfile=/scratch/kocevski/461490/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin732.fits ra=229.436 dec=65.424 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.38
user 6.12
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.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/461490/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.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.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/461490/ltcube_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.fits outfile=/scratch/kocevski/461490/expmap_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.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/461490/ltcube_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.fits
.....................!
real 190.11
user 185.45
sys 4.09

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/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.fits scfile=/scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.fits outfile=/scratch/kocevski/461490/cmap_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.fits scfile=/scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.fits outfile=/scratch/kocevski/461490/cmap_HighResolution_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461490/Model_4FGL_J1517.7+6525_daily_bin732.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/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.fits.....................!
real 37.04
user 35.70
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.fits', '/scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.fits', expMap='/scratch/kocevski/461490/expmap_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.fits', expCube='/scratch/kocevski/461490/ltcube_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461490/Model_4FGL_J1517.7+6525_daily_bin732.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/461490/ft1_filtered_4FGL_J1517.7+6525_daily_bin732.fits
Spacecraft file(s): /scratch/kocevski/461490/ft2_4FGL_J1517.7+6525_daily_bin732.fits
Exposure map: /scratch/kocevski/461490/expmap_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.fits
Exposure cube: /scratch/kocevski/461490/ltcube_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461490/Model_4FGL_J1517.7+6525_daily_bin732.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) = 3550.99021855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.572       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51231       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    94.548       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12445E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.711       1.0000         .10000E-03   10000.    
    20 'Prefactor '    105.96       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.557       1.0000         .10000E-03   10000.    
    22 'norm      '    .48734E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.9922       1.0000         .10000E-03   10000.    
    27 'norm      '    .40628       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.282       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67703       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0203       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=   3550.979     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4134 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.015        .68210E-05** at limit **
   2  Prefactor     .10000E-03    23.588        .12770E-04** at limit **
   3  Prefactor     12.572        11.041       -.31352E-06    .58693E-04
   4  Prefactor     .10000E-03    13.832        .85026E-06** at limit **
   5  Prefactor     .10000E-03    12.918       -.37383E-06** at limit **
   6  Prefactor     .51963        13.986       -.25068E-05    .58038E-04
   7  Prefactor     .10000E-03    63.148       -.28071E-04** at limit **
   8  Prefactor     .10000E-03    284.62       -.12057E-03** at limit **
   9  Prefactor     94.524        49.745       -.80473E-05   -.92658E-04
  10  Prefactor     .10000E-03    86.871        .95210E-05** at limit **
  11  Prefactor     .10000E-03    90.012        .23368E-04** at limit **
  12  Prefactor     .10000E-03    44.616        .22350E-04** at limit **
  13  Prefactor     .10000E-03    25.404       -.82763E-05** at limit **
  14  Prefactor     .10000E-03    3.5094       -.57058E-09** at limit **
  15  Prefactor     .10000E-03    57.667       -.18485E-04** at limit **
  16  Prefactor     .10000E-03    2.8454       -.22570E-08** at limit **
  17  Prefactor     .10000E-03    9.4214        .53907E-07** at limit **
  18  Prefactor     .10000E-03    33.113        .19386E-05** at limit **
  19  norm          12.712        5.1660        .43735E-06    .18299E-03
  20  Prefactor     105.93        121.86       -.19824E-04    .19556E-04
  21  Prefactor     14.580        9.4151        .19693E-05    .84907E-03
  22  norm          .10018E-03    5.3323       -.22173E-05** at limit **
  23  Prefactor     .10000E-03    18.036       -.14246E-05** at limit **
  24  Prefactor     .10000E-03    205.43        .69906E-04** at limit **
  25  Prefactor     .10000E-03    29.689       -.16787E-04** at limit **
  26  norm          8.9920        12.154       -.57429E-06   -.17567E-04
  27  norm          .40684        1.0950       -.47845E-06   -.13357E-02
  28  Prefactor     18.281        13.420       -.25277E-07    .41246E-04
  29  Prefactor     .10000E-03    34.626        .10959E-04** at limit **
  30  Normalizat    .67680        .22268        .40235E-05    .18789E-03
  31  Prefactor     1.0206        .21351       -.37996E-06    .27011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.519625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.524
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7123
  Prefactor  = 105.932
  Prefactor  = 14.5804
  norm       = 0.000100177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.99202
  norm       = 0.406843
  Prefactor  = 18.2806
  Prefactor  = 0.0001
  Normalizat = 0.676805
  Prefactor  = 1.0206
 **********
 **   18 **HESSE 
 **********

 FCN=   3550.979     FROM HESSE     STATUS=OK           608 CALLS     4742 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.572        11.060        .11297E-03   -1.4999    
   4  Prefactor     .10000E-03    13.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .51963        71.738        .42468E-02   -1.5564    
   7  Prefactor     .10000E-03    63.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    283.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     94.524        49.888        .41334E-04   -1.3760    
  10  Prefactor     .10000E-03    86.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    90.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5186        .10902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8500        .98156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4323        .17865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.712        5.1656        .80948E-04   -1.4995    
  20  Prefactor     105.93        122.21        .39068E-04   -1.3646    
  21  Prefactor     14.580        8.8894        .10498E-03   -1.4944    
  22  norm          .10018E-03    85.559        .24711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    205.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.9920        12.149        .13366E-03   -1.5108    
  27  norm          .40684        1.0713        .91975E-04   -1.5580    
  28  Prefactor     18.281        13.209        .93671E-04   -1.4853    
  29  Prefactor     .10000E-03    34.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67680        .26103        .27601E-03   -1.0482    
  31  Prefactor     1.0206        .25033        .22701E-03   -.92046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09813e-09
Minuit parameter uncertainties:
  1  9.3731e-07
  2  3.06401e-07
  3  11.0614
  4  6.96839e-07
  5  5.59942e-07
  6  12.2247
  7  1.32144e-05
  8  1.99711e-05
  9  49.9099
  10  2.22644e-05
  11  0.00087815
  12  0.000169155
  13  1.64255e-05
  14  1.40952e-06
  15  2.3007e-05
  16  6.83631e-07
  17  7.53255e-06
  18  7.63538e-06
  19  5.16581
  20  122.504
  21  8.8902
  22  0.00778416
  23  5.75147e-06
  24  0.00011332
  25  2.17628e-05
  26  12.1524
  27  1.07139
  28  13.2113
  29  6.70645e-05
  30  0.261511
  31  0.250611
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  7.635e-06  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:  1.021e+00  2.506e-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:  6.768e-01  2.615e-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: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461490/likelihoodResults_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.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) = 3550.97948803
delta logL = -0.000143387038861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3550.97934485
delta logL = -1.98643192562e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9767       1.0000          .0000       10.000    
     3 'Normalizat'    .67681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0206       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.

 FCN=   3550.979     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      243 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.966        .90712E-02** at limit **
   2  Index         1.9559        5.9537        .50000        .48953E-05
   3  Normalizat    .67681        .39130E-02    .62388E-01   -.75922E-05
   4  Prefactor     1.0206        .39077E-02    .42081E-01   -.21029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.9559
  Normalizat = 0.676805
  Prefactor  = 1.0206
 **********
 **   18 **HESSE 
 **********

 FCN=   3550.979     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9559        6.2197        .50000       -.65457    
   3  Normalizat    .67681        .99176E-02    .27601E-03   -1.0482    
   4  Prefactor     1.0206        .99176E-02    .22701E-03   -.92046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47885e-08
Minuit parameter uncertainties:
  1  0.000494138
  2  133.996
  3  0.00991761
  4  0.00991758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461490': 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) = 3550.97934475
delta logL = -1.02076683106e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.941e-04  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.956e+00  1.340e+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:  1.021e+00  9.918e-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:  6.768e-01  9.918e-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/461490/cmap_HighResolution_429062401_429321601_4FGL_J1517.7+6525_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-12 00:00:55.156265', job_id='461490', GAL2='1.02', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1631430055.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='732' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 461490: <4FGL_J1517.7+6525_daily_bin732> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin732> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:45:58 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:45:59 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:45:59 2021
Terminated at Sun Sep 12 00:00:55 2021
Results reported at Sun Sep 12 00:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin732 229.436 65.424 429062401 429321601 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 :                                   697.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             242.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

