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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin693
RA = 229.436, Dec = 65.424
tmin = 418953601, tmax = 419212801
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='461434', job_status='RUN', time_executed='2021-09-11 23:48:46.547039', time_epoch_executed='1631429326.55' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461434/ft1_4FGL_J1517.7+6525_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461434/ft2_4FGL_J1517.7+6525_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461434/ft1_4FGL_J1517.7+6525_daily_bin693.fits outfile=/scratch/kocevski/461434/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin693.fits ra=229.436 dec=65.424 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.51
user 5.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461434/ft2_4FGL_J1517.7+6525_daily_bin693.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/461434/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin693.fits evtable="EVENTS" outfile="/scratch/kocevski/461434/ft1_filtered_4FGL_J1517.7+6525_daily_bin693.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461434/ft1_filtered_4FGL_J1517.7+6525_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/461434/ft2_4FGL_J1517.7+6525_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/461434/ltcube_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.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/461434/ft2_4FGL_J1517.7+6525_daily_bin693.fits
.....................!
real 12.25
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461434/ft1_filtered_4FGL_J1517.7+6525_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/461434/ft2_4FGL_J1517.7+6525_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/461434/ltcube_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.fits outfile=/scratch/kocevski/461434/expmap_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.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/461434/ltcube_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.fits
.....................!
real 192.96
user 187.60
sys 4.64

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/461434/ft1_filtered_4FGL_J1517.7+6525_daily_bin693.fits scfile=/scratch/kocevski/461434/ft2_4FGL_J1517.7+6525_daily_bin693.fits outfile=/scratch/kocevski/461434/cmap_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.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/461434/ft1_filtered_4FGL_J1517.7+6525_daily_bin693.fits scfile=/scratch/kocevski/461434/ft2_4FGL_J1517.7+6525_daily_bin693.fits outfile=/scratch/kocevski/461434/cmap_HighResolution_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.4716       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1142       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9657       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11049E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.920       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6324       1.0000         .10000E-03   10000.    
    20 'Prefactor '    183.96       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3060       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11457E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    206.43       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.363       1.0000         .10000E-03   10000.    
    27 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.144       1.0000         .10000E-03   10000.    
    29 'Prefactor '    60.673       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0117       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .54610       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=   4192.506     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4189 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.119        .21931E-06** at limit **
   2  Prefactor     7.4546        19.162       -.23460E-06   -.40785E-04
   3  Prefactor     9.1123        4.8443       -.68474E-07   -.12782E-03
   4  Prefactor     .10000E-03    7.1820        .74484E-06** at limit **
   5  Prefactor     .10000E-03    3.1324        .33535E-07** at limit **
   6  Prefactor     .10017E-03    9.5019        .23337E-05** at limit **
   7  Prefactor     .10000E-03    9.7010        .90662E-07** at limit **
   8  Prefactor     .10000E-03    299.22        .41731E-06** at limit **
   9  Prefactor     68.045        42.017        .16951E-05    .11197E-03
  10  Prefactor     5.9614        49.316        .11202E-06   -.23277E-04
  11  Prefactor     .10000E-03    274.40        .14674E-05** at limit **
  12  Prefactor     .10000E-03    4.4870        .12558E-07** at limit **
  13  Prefactor     .10000E-03    34.120        .15524E-05** at limit **
  14  Prefactor     2.3026        19.270       -.28923E-06   -.14483E-04
  15  Prefactor     .10000E-03    21.829        .23475E-06** at limit **
  16  Prefactor     1.1630        9.3814        .29352E-05    .14977E-03
  17  Prefactor     12.919        11.079       -.22689E-07   -.33384E-04
  18  Prefactor     .10000E-03    10.770       -.19663E-06** at limit **
  19  norm          4.6341        4.1977       -.24845E-06   -.14224E-03
  20  Prefactor     183.65        187.13       -.93574E-06   -.35336E-04
  21  Prefactor     .10000E-03    10.617        .21180E-06** at limit **
  22  norm          4.2995        18.262       -.77323E-06   -.26823E-04
  23  Prefactor     .10000E-03    354.47       -.47818E-05** at limit **
  24  Prefactor     206.25        181.51        .77183E-06   -.23183E-04
  25  Prefactor     .10000E-03    11.196       -.51282E-07** at limit **
  26  norm          11.361        25.407        .13171E-06   -.12078E-04
  27  norm          .10000E-03    .39146        .35725E-07** at limit **
  28  Prefactor     27.142        17.490        .28958E-07   -.24365E-04
  29  Prefactor     60.673        35.632        .42589E-07   -.18721E-04
  30  Normalizat    1.0120        .18889        .17128E-05   -.50348E-03
  31  Prefactor     .54584        .17695       -.40124E-05   -.29664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.45463
  Prefactor  = 9.11232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.0447
  Prefactor  = 5.96138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.30261
  Prefactor  = 0.0001
  Prefactor  = 1.16296
  Prefactor  = 12.9193
  Prefactor  = 0.0001
  norm       = 4.63408
  Prefactor  = 183.647
  Prefactor  = 0.0001
  norm       = 4.29948
  Prefactor  = 0.000100002
  Prefactor  = 206.253
  Prefactor  = 0.0001
  norm       = 11.3614
  norm       = 0.0001
  Prefactor  = 27.1418
  Prefactor  = 60.6728
  Normalizat = 1.012
  Prefactor  = 0.545836
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.506     FROM HESSE     STATUS=OK           616 CALLS     4805 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4546        19.141        .14672E-03   -1.5162    
   3  Prefactor     9.1123        4.8659        .98110E-04   -1.5104    
   4  Prefactor     .10000E-03    7.2351        .16959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1351        .11183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10017E-03    40.447        .33311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    299.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.045        42.872        .48655E-04   -1.4056    
  10  Prefactor     5.9614        49.363        .16440E-03   -1.5220    
  11  Prefactor     .10000E-03    277.42        .20695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4877        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3026        18.336        .27066E-03   -1.5404    
  15  Prefactor     .10000E-03    21.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1630        9.3265        .36631E-03   -1.5492    
  17  Prefactor     12.919        11.087        .11144E-03   -1.4989    
  18  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6341        4.1946        .12027E-03   -1.5277    
  20  Prefactor     183.65        187.27        .14883E-03   -1.2989    
  21  Prefactor     .10000E-03    10.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2995        18.145        .19414E-03   -1.5293    
  23  Prefactor     .10000E-03    355.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     206.25        181.71        .14066E-03   -1.2826    
  25  Prefactor     .10000E-03    11.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.361        25.364        .11885E-03   -1.5034    
  27  norm          .10000E-03    .40035        .78416E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     27.142        17.463        .76893E-04   -1.4666    
  29  Prefactor     60.673        35.450        .51511E-04   -1.4149    
  30  Normalizat    1.0120        .21102        .20236E-03   -.92629    
  31  Prefactor     .54584        .19425        .26041E-03   -1.0992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38326e-09
Minuit parameter uncertainties:
  1  3.23342e-05
  2  19.1571
  3  4.8661
  4  3.33726e-05
  5  2.08895e-06
  6  0.00517849
  7  3.03869e-06
  8  0.0002986
  9  42.891
  10  34.3471
  11  0.000469397
  12  8.29583e-07
  13  0.000170684
  14  13.0008
  15  2.70841e-05
  16  6.58789
  17  11.0885
  18  3.88795e-06
  19  4.19483
  20  187.88
  21  2.47634e-05
  22  17.6742
  23  0.00151809
  24  182.21
  25  7.80288e-06
  26  25.3877
  27  1.11718e-06
  28  17.4658
  29  35.4623
  30  0.21119
  31  0.194485
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.888e-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:  5.458e-01  1.945e-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.012e+00  2.112e-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: 3.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461434/likelihoodResults_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.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) = 4192.50607484
delta logL = -0.000435912485045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4192.5056389
delta logL = 3.20296749123e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7982       1.0000          .0000       10.000    
     3 'Normalizat'    1.0120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54585       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4192.506     FROM MIGRAD    STATUS=FAILED        87 CALLS      242 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10157E-03    150.11        .18142E-02** at limit **
   2  Index         1.7231        8.6406        .50000        .95564E-05
   3  Normalizat    1.0120        .15785E-01    .20236E-03   -.24663E-04
   4  Prefactor     .54584        .15358E-01    .26041E-03   -.17026E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4192.506     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      368 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10157E-03    150.11        .65580E-03** at limit **
   2  Index         1.7231        8.6406        .13387E-03    .95564E-05
   3  Normalizat    1.0120        .15785E-01    .95515E-06   -.24663E-04
   4  Prefactor     .54584        .15358E-01    .89561E-06   -.17026E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4192.506     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      413 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    128.87        .36285E-02** at limit **
   2  Index         1.4243        5.2305        .50000        .57821E-07
   3  Normalizat    1.0120        .13946E-01    .80943E-05    .14186E-03
   4  Prefactor     .54584        .13569E-01    .10416E-04    .11373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.4243
  Normalizat = 1.01201
  Prefactor  = 0.545835
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.506     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      442 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    618.91        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4243        9.2037        .50000       -.79683    
   3  Normalizat    1.0120        .32325E-01    .16189E-05   -.92629    
   4  Prefactor     .54584        .31442E-01    .20833E-05   -1.0992    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63015e-11
Minuit parameter uncertainties:
  1  0.000744951
  2  1418.16
  3  0.0323259
  4  0.0314432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461434': 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) = 4192.50563829
delta logL = 6.39122845314e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  7.450e-04  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.424e+00  1.418e+03  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.458e-01  3.144e-02  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.012e+00  3.233e-02  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/461434/cmap_HighResolution_418953601_419212801_4FGL_J1517.7+6525_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-03', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2021-09-12 00:02:21.814632', job_id='461434', GAL2='0.55', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631430141.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='6.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='693' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 461434: <4FGL_J1517.7+6525_daily_bin693> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin693 229.436 65.424 418953601 419212801 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 :                                   812.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             275.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

