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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin1171
RA = 229.436, Dec = 65.424
tmin = 542851201, tmax = 543110401
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='465284', job_status='RUN', time_executed='2021-09-11 23:56:15.940204', time_epoch_executed='1631429775.94' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465284

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465284/ft1_4FGL_J1517.7+6525_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465284/ft1_4FGL_J1517.7+6525_daily_bin1171.fits outfile=/scratch/kocevski/465284/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1171.fits ra=229.436 dec=65.424 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.58
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.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/465284/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/465284/ft1_filtered_4FGL_J1517.7+6525_daily_bin1171.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.45
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465284/ft1_filtered_4FGL_J1517.7+6525_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/465284/ltcube_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.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/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.fits
.....................!
real 1.85
user 1.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465284/ft1_filtered_4FGL_J1517.7+6525_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/465284/ltcube_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.fits outfile=/scratch/kocevski/465284/expmap_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.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/465284/ltcube_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.fits
.....................!
real 190.49
user 185.22
sys 4.77

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/465284/ft1_filtered_4FGL_J1517.7+6525_daily_bin1171.fits scfile=/scratch/kocevski/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.fits outfile=/scratch/kocevski/465284/cmap_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465284/ft1_filtered_4FGL_J1517.7+6525_daily_bin1171.fits scfile=/scratch/kocevski/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.fits outfile=/scratch/kocevski/465284/cmap_HighResolution_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.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.51
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465284/ft1_filtered_4FGL_J1517.7+6525_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/465284/ft2_4FGL_J1517.7+6525_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465284/Model_4FGL_J1517.7+6525_daily_bin1171.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/465284/ft1_filtered_4FGL_J1517.7+6525_daily_bin1171.fits...................!
real 14.66
user 13.49
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.207       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9997.1       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    539.88       1.0000         .10000E-03   10000.    
     8 'Prefactor '    161.62       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .71983E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53376E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13473E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19626E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37525E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33866E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40966E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11898E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30394E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    19.278       1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.19       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    95.182       1.0000         .10000E-03   10000.    
    24 'Prefactor '    293.61       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.496       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .22908E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .65189       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=   214.9995     FROM MIGRAD    STATUS=CONVERGED   1193 CALLS     4242 TOTAL
                     EDM=   .65E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6682.0       -.32940E-01** at limit **
   2  Prefactor     .10000E-03    913.98        .33173E-07** at limit **
   3  Prefactor     .10000E-03    1225.9        .52892E-06** at limit **
   4  Prefactor     .10000E-03    433.33        .73397E-08** at limit **
   5  Prefactor     10000.        1588.8       -.54712E-07** at limit **
   6  Prefactor     .10000E-03    58.255       -.86796E-08** at limit **
   7  Prefactor    10000.0        7114.0        .36326E-02** at limit **
   8  Prefactor     .10000E-03    8543.7        .12533E-01** at limit **
   9  Prefactor     .10000E-03    91.864        .15629E-08** at limit **
  10  Prefactor     .10000E-03    357.62       -.91039E-07** at limit **
  11  Prefactor     .10000E-03    136.49       -.13663E-07** at limit **
  12  Prefactor     .10000E-03    99.039        .46263E-07** at limit **
  13  Prefactor     .10000E-03    91.050       -.25400E-07** at limit **
  14  Prefactor     .10000E-03    29.737       -.20042E-07** at limit **
  15  Prefactor     .10000E-03    223.16        .35976E-07** at limit **
  16  Prefactor     .10000E-03    36.725       -.35887E-07** at limit **
  17  Prefactor     .10000E-03    280.86        .11146E-07** at limit **
  18  Prefactor     .10000E-03    88.277       -.44796E-07** at limit **
  19  norm          17.907        16.285       -.72629E-08   -.42811E-04
  20  Prefactor     143.45        338.64       -.42072E-06   -.77927E-05
  21  Prefactor     .10000E-03    27.350        .77074E-08** at limit **
  22  norm          .10000E-03    42.680       -.73018E-07** at limit **
  23  Prefactor     99.792        123.00       -.84512E-07   -.78689E-05
  24  Prefactor     421.81        865.76        .10766E-04   -.15665E-05
  25  Prefactor     .10000E-03    66.908        .70509E-08** at limit **
  26  norm          16.655        22.121        .17853E-07   -.61535E-05
  27  norm          .10000E-03    1.2199        .16732E-08** at limit **
  28  Prefactor     .10000E-03    9.9761       -.53204E-09** at limit **
  29  Prefactor     .10000E-03    109.28        .31345E-06** at limit **
  30  Normalizat    .10000E-01    .20754       -.40844E-06** at limit **
  31  Prefactor     .61056        .28782       -.14072E-05   -.16099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.907
  Prefactor  = 143.446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 99.7924
  Prefactor  = 421.805
  Prefactor  = 0.0001
  norm       = 16.6551
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.610558
 **********
 **   18 **HESSE 
 **********

 FCN=   214.9995     FROM HESSE     STATUS=OK           592 CALLS     4834 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6686.6        .49744E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    913.97        .13618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1225.9        .33055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    433.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10000.        1588.8        .11911E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.254        .10952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7114.0        .88498E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8543.5        .15861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    91.864        .13761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    357.62        .19111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    136.49        .16787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    99.038        .14290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    91.052        .13700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.744        .78214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    223.16        .21338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.859        .86923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    286.91        .18165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    88.293        .13489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.907        16.309        .49597E-04   -1.4861    
  20  Prefactor     143.45        339.00        .39966E-04   -1.3307    
  21  Prefactor     .10000E-03    27.415        .74992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    43.006        .93631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     99.792        122.95        .41197E-04   -1.3707    
  24  Prefactor     421.81        870.83        .11847E-03   -1.1571    
  25  Prefactor     .10000E-03    66.909        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.655        22.124        .77457E-04   -1.4892    
  27  norm          .10000E-03    1.2205        .15833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.9761        .45287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    109.52        .15010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .20944        .40914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .61056        .28641        .15870E-03   -1.0714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34016e-11
Minuit parameter uncertainties:
  1  0.283155
  2  8.65196e-06
  3  3.46297e-05
  4  2.10335e-05
  5  7.43765e-05
  6  3.38443e-06
  7  0.000156058
  8  0.00380585
  9  7.8847e-06
  10  7.46869e-06
  11  5.96346e-06
  12  3.88714e-06
  13  2.9095e-05
  14  1.29109e-05
  15  8.60684e-06
  16  6.25933e-05
  17  0.000206898
  18  5.96676e-06
  19  16.3132
  20  343.765
  21  6.35869e-06
  22  1.98109e-05
  23  123.264
  24  900.668
  25  1.09603e-06
  26  22.1345
  27  1.33867e-07
  28  5.23804e-07
  29  4.87165e-05
  30  2.83151e-07
  31  0.287096
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  5.967e-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:  6.106e-01  2.871e-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.000e-02  2.832e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.436 65.424
Photon Flux Upper Limit: 2.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/465284/likelihoodResults_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.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) = 214.9995959
delta logL = -5.36957438158e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 214.999542352
delta logL = -1.47587002175e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9421       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61055       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=   214.9995     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      228 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.537        .90712E-02** at limit **
   2  Index         1.8931        6.3250        .50000        .47649E-05
   3  Normalizat    .10000E-01    .26651E-03    .94063E-01** at limit **
   4  Prefactor     .61056        .95939E-02    .41198E-01    .16242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89314
  Normalizat = 0.01
  Prefactor  = 0.610559
 **********
 **   18 **HESSE 
 **********

 FCN=   214.9995     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      257 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    358.70        .12601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8931        5.5081        .50000       -.67049    
   3  Normalizat    .10000E-01    .19974E-02    .40914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61056        .25795E-01    .15870E-03   -1.0714    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.3854e-08
Minuit parameter uncertainties:
  1  0.000136641
  2  222.705
  3  5.14916e-07
  4  0.0257954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465284': 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) = 214.999542287
delta logL = -8.2392944023e-08

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.366e-04  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.893e+00  2.227e+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:  6.106e-01  2.580e-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.000e-02  5.149e-07  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/465284/cmap_HighResolution_542851201_543110401_4FGL_J1517.7+6525_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', job_status='DONE', photon_flux_upper_limit='2.49e-07', time_completed='2021-09-12 00:01:41.973319', job_id='465284', GAL2='0.61', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631430101.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='-8.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1171' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:01:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 465284: <4FGL_J1517.7+6525_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin1171> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:56:05 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:56:06 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:56:06 2021
Terminated at Sun Sep 12 00:01:42 2021
Results reported at Sun Sep 12 00:01:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin1171 229.436 65.424 542851201 543110401 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 :                                   329.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   336 sec.
    Turnaround time :                            337 sec.

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

