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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin746
RA = 229.436, Dec = 65.424
tmin = 432691201, tmax = 432950401
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='461506', job_status='RUN', time_executed='2021-09-11 23:48:17.892200', time_epoch_executed='1631429297.89' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461506/ft1_4FGL_J1517.7+6525_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461506/ft2_4FGL_J1517.7+6525_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461506/ft1_4FGL_J1517.7+6525_daily_bin746.fits outfile=/scratch/kocevski/461506/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin746.fits ra=229.436 dec=65.424 rad=12.0 tmin=432691201.0 tmax=432950401.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.29
user 5.04
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461506/ft2_4FGL_J1517.7+6525_daily_bin746.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/461506/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin746.fits evtable="EVENTS" outfile="/scratch/kocevski/461506/ft1_filtered_4FGL_J1517.7+6525_daily_bin746.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461506/ft1_filtered_4FGL_J1517.7+6525_daily_bin746.fits" evtable="EVENTS" scfile=/scratch/kocevski/461506/ft2_4FGL_J1517.7+6525_daily_bin746.fits sctable="SC_DATA" outfile=/scratch/kocevski/461506/ltcube_432691201_432950401_4FGL_J1517.7+6525_daily_bin746.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/461506/ft2_4FGL_J1517.7+6525_daily_bin746.fits
.....................!
real 11.85
user 11.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461506/ft1_filtered_4FGL_J1517.7+6525_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/461506/ft2_4FGL_J1517.7+6525_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/461506/ltcube_432691201_432950401_4FGL_J1517.7+6525_daily_bin746.fits outfile=/scratch/kocevski/461506/expmap_432691201_432950401_4FGL_J1517.7+6525_daily_bin746.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/461506/ltcube_432691201_432950401_4FGL_J1517.7+6525_daily_bin746.fits
.....................!
real 190.68
user 185.67
sys 4.65

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/461506/ft1_filtered_4FGL_J1517.7+6525_daily_bin746.fits scfile=/scratch/kocevski/461506/ft2_4FGL_J1517.7+6525_daily_bin746.fits outfile=/scratch/kocevski/461506/cmap_432691201_432950401_4FGL_J1517.7+6525_daily_bin746.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461506/ft1_filtered_4FGL_J1517.7+6525_daily_bin746.fits scfile=/scratch/kocevski/461506/ft2_4FGL_J1517.7+6525_daily_bin746.fits outfile=/scratch/kocevski/461506/cmap_HighResolution_432691201_432950401_4FGL_J1517.7+6525_daily_bin746.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/461506/ft1_filtered_4FGL_J1517.7+6525_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/461506/ft2_4FGL_J1517.7+6525_daily_bin746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461506/Model_4FGL_J1517.7+6525_daily_bin746.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/461506/ft1_filtered_4FGL_J1517.7+6525_daily_bin746.fits....................!
real 47.78
user 46.44
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22370E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.035       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30614E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0439       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    98.917       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4080       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25069E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.357       1.0000         .10000E-03   10000.    
    22 'norm      '    52.133       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    31.490       1.0000         .10000E-03   10000.    
    27 'norm      '    .82686       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.6968       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2646       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .61951       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=   4936.071     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4720 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.644        .22421E-05** at limit **
   2  Prefactor     .10000E-03    15.326        .12878E-06** at limit **
   3  Prefactor     .10000E-03    1.1516       -.13693E-06** at limit **
   4  Prefactor     .10000E-03    8.5490       -.62176E-07** at limit **
   5  Prefactor     .10000E-03    2.9078       -.93811E-07** at limit **
   6  Prefactor     .10000E-03    9.6999        .87991E-06** at limit **
   7  Prefactor     26.762        39.526       -.41819E-05    .12907E-04
   8  Prefactor     .10000E-03    588.24        .56946E-04** at limit **
   9  Prefactor     3.5129        42.990       -.87619E-05   -.32932E-04
  10  Prefactor     62.892        100.36       -.99275E-04    .27857E-04
  11  Prefactor     .10000E-03    19.684       -.52573E-05** at limit **
  12  Prefactor     .10000E-03    11.271       -.19953E-06** at limit **
  13  Prefactor     16.861        28.894        .12909E-04    .53344E-04
  14  Prefactor     .10020E-03    6.6398        .13628E-06** at limit **
  15  Prefactor     5.8793        188.89       -.12540E-03    .20722E-04
  16  Prefactor     .10000E-03    4.5724       -.12371E-06** at limit **
  17  Prefactor     .10000E-03    8.0087       -.24808E-07** at limit **
  18  Prefactor     98.919        45.569       -.66559E-05   -.51604E-04
  19  norm          4.4101        3.9286       -.22569E-06    .66307E-03
  20  Prefactor     .10002E-03    518.44        .21004E-03** at limit **
  21  Prefactor     14.357        14.460       -.24367E-06   -.39021E-05
  22  norm          52.132        23.642       -.99935E-06   -.36464E-04
  23  Prefactor     .10000E-03    32.201       -.54646E-05** at limit **
  24  Prefactor     .10000E-03    89.120       -.73923E-05** at limit **
  25  Prefactor     .10000E-03    20.302        .56043E-05** at limit **
  26  norm          31.489        19.652       -.10329E-05   -.30685E-04
  27  norm          .82674        .79790       -.31279E-06   -.99993E-03
  28  Prefactor     .10000E-03    2.8500       -.68858E-07** at limit **
  29  Prefactor     7.6952        15.131       -.27374E-05   -.67272E-03
  30  Normalizat    1.2648        .18439        .51972E-05   -.19334E-03
  31  Prefactor     .61952        .17599        .63165E-05   -.35213E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 26.7617
  Prefactor  = 0.0001
  Prefactor  = 3.51287
  Prefactor  = 62.8917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.861
  Prefactor  = 0.000100196
  Prefactor  = 5.8793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 98.9186
  norm       = 4.41012
  Prefactor  = 0.000100018
  Prefactor  = 14.357
  norm       = 52.1323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.4887
  norm       = 0.826742
  Prefactor  = 0.0001
  Prefactor  = 7.69517
  Normalizat = 1.26477
  Prefactor  = 0.619515
 **********
 **   18 **HESSE 
 **********

 FCN=   4936.071     FROM HESSE     STATUS=OK           616 CALLS     5336 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1583        .73611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9221        .11698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.762        39.539        .77422E-04   -1.4673    
   8  Prefactor     .10000E-03    588.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5129        43.195        .21566E-03   -1.5333    
  10  Prefactor     62.892        100.32        .25271E-03   -1.4120    
  11  Prefactor     .10000E-03    19.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.861        28.976        .97516E-04   -1.4886    
  14  Prefactor     .10020E-03    39.682        .35066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8793        189.16        .16332E-03   -1.5223    
  16  Prefactor     .10000E-03    4.5865        .14667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     98.919        45.561        .20210E-03   -1.3716    
  19  norm          4.4101        3.9314        .63723E-03   -1.5288    
  20  Prefactor     .10002E-03    518.73        .20015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.357        14.460        .10571E-03   -1.4950    
  22  norm          52.132        23.648        .55547E-04   -1.4263    
  23  Prefactor     .10000E-03    32.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    89.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          31.489        19.645        .71402E-04   -1.4585    
  27  norm          .82674        .76535        .57455E-03   -1.5526    
  28  Prefactor     .10000E-03    2.8529        .11582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.6952        15.141        .72271E-03   -1.5153    
  30  Normalizat    1.2648        .20944        .20633E-03   -.84624    
  31  Prefactor     .61952        .19938        .27841E-03   -1.0677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69095e-09
Minuit parameter uncertainties:
  1  0.000174305
  2  3.82819e-05
  3  8.96225e-06
  4  5.26888e-05
  5  1.60445e-05
  6  0.00026384
  7  39.5777
  8  0.000902547
  9  24.6582
  10  100.59
  11  2.50081e-05
  12  4.35398e-05
  13  29.0005
  14  0.00557575
  15  66.9294
  16  3.29917e-05
  17  3.69395e-07
  18  45.5768
  19  3.93165
  20  0.00618376
  21  14.4632
  22  23.6524
  23  2.63706e-05
  24  0.000198414
  25  8.13277e-05
  26  19.649
  27  0.765363
  28  6.91799e-06
  29  15.1484
  30  0.209575
  31  0.199605
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  9.892e+01  4.558e+01  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.195e-01  1.996e-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.265e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.46
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 6.69e-05 +/- 3.08e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4934.87886426
delta logL = 1.19243251489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4934.84597567
delta logL = 1.22532110562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    115.05       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3207       1.0000          .0000       10.000    
     3 'Normalizat'    1.2831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62392       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=   4934.846     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      218 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     115.05        67.977        .93774E-03   -.34545E-03
   2  Index         1.3207        .32924        .14961        .97290E-05
   3  Normalizat    1.2834        .17722        .33114E-01   -.43943E-04
   4  Prefactor     .62364        .17409        .62856E-01   -.56106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 115.045
  Index      = 1.32072
  Normalizat = 1.2834
  Prefactor  = 0.623644
 **********
 **   18 **HESSE 
 **********

 FCN=   4934.846     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     115.05        67.248        .37510E-04   -1.3559    
   2  Index         1.3207        .35792        .59791E-02   -.82693    
   3  Normalizat    1.2834        .20010        .20521E-03   -.84063    
   4  Prefactor     .62364        .19755        .27809E-03   -1.0660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63996e-10
Minuit parameter uncertainties:
  1  67.2927
  2  0.358592
  3  0.200217
  4  0.197772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461506': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4934.84597466
delta logL = 1.22532211208

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.150e+02  6.729e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.321e+00  3.586e-01  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.236e-01  1.978e-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.283e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.88
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.32 +/- 0.36
Photon Flux (Free Index): 2.87e-08 +/- 2.39e-08
Energy Flux (Free Index): 1.65e-04 +/- 1.23e-04

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/461506/cmap_HighResolution_432691201_432950401_4FGL_J1517.7+6525_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='1.65e-04', photon_flux_error='2.70e-08', dlogl='1.23e+00', energy_flux='6.69e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2021-09-12 00:01:56.697047', photon_index_error2='0.36', photon_index2='1.32', ts='30.46', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.23e-04', EG='1.26', time_epoch_completed='1631430116.7', return_code='0', job_id='461506', GAL2='0.62', EG2='1.28', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='2.39e-08', ts2='32.88', photon_index='1.82' WHERE bin_id='746' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:01:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 461506: <4FGL_J1517.7+6525_daily_bin746> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin746 229.436 65.424 432691201 432950401 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 :                                   816.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

