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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin1224
RA = 229.436, Dec = 65.424
tmin = 556588801, tmax = 556848001
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='466492', job_status='RUN', time_executed='2021-09-12 00:01:10.049004', time_epoch_executed='1631430070.05' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/466492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/466492/ft1_4FGL_J1517.7+6525_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/466492/ft2_4FGL_J1517.7+6525_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/466492/ft1_4FGL_J1517.7+6525_daily_bin1224.fits outfile=/scratch/kocevski/466492/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1224.fits ra=229.436 dec=65.424 rad=12.0 tmin=556588801.0 tmax=556848001.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 3.66
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/466492/ft1_filtered_4FGL_J1517.7+6525_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/466492/ft2_4FGL_J1517.7+6525_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/466492/ltcube_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.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/466492/ft2_4FGL_J1517.7+6525_daily_bin1224.fits
.....................!
real 12.09
user 11.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/466492/ft1_filtered_4FGL_J1517.7+6525_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/466492/ft2_4FGL_J1517.7+6525_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/466492/ltcube_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.fits outfile=/scratch/kocevski/466492/expmap_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.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/466492/ltcube_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.fits
.....................!
real 192.90
user 187.87
sys 4.68

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/466492/ft1_filtered_4FGL_J1517.7+6525_daily_bin1224.fits scfile=/scratch/kocevski/466492/ft2_4FGL_J1517.7+6525_daily_bin1224.fits outfile=/scratch/kocevski/466492/cmap_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/466492/ft1_filtered_4FGL_J1517.7+6525_daily_bin1224.fits scfile=/scratch/kocevski/466492/ft2_4FGL_J1517.7+6525_daily_bin1224.fits outfile=/scratch/kocevski/466492/cmap_HighResolution_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/466492/ft1_filtered_4FGL_J1517.7+6525_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/466492/ft2_4FGL_J1517.7+6525_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/466492/Model_4FGL_J1517.7+6525_daily_bin1224.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/466492/ft1_filtered_4FGL_J1517.7+6525_daily_bin1224.fits.....................!
real 37.44
user 36.14
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.488       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13669E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3776       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    94.374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    28.209       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .49254E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.376       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1626       1.0000         .10000E-03   10000.    
    27 'norm      '    2.9442       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.777       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.658       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89818       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=   3585.395     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4752 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    111.28       -.14887E-04** at limit **
   2  Prefactor     .10000E-03    22.151       -.97964E-06** at limit **
   3  Prefactor     .10000E-03    2.8547        .90829E-07** at limit **
   4  Prefactor     25.003        21.776        .56695E-06    .51365E-04
   5  Prefactor     .10000E-03    5.1655        .13586E-06** at limit **
   6  Prefactor     .10000E-03    11.901       -.18843E-06** at limit **
   7  Prefactor     14.796        64.165        .14179E-05   -.12190E-04
   8  Prefactor     62.815        2258.0       -.59029E-04   -.14115E-04
   9  Prefactor     .10001E-03    501.48        .87674E-05** at limit **
  10  Prefactor     .10000E-03    65.121        .79979E-05** at limit **
  11  Prefactor     .10000E-03    88.784        .82719E-05** at limit **
  12  Prefactor     .10000E-03    25.494        .82300E-06** at limit **
  13  Prefactor     26.252        38.827        .84152E-06   -.15589E-04
  14  Prefactor     .10000E-03    8.7307        .98233E-07** at limit **
  15  Prefactor     .10000E-03    56.058       -.73109E-05** at limit **
  16  Prefactor     1.3777        15.282        .19519E-04   -.27106E-03
  17  Prefactor     19.257        19.200        .88334E-06   -.26940E-04
  18  Prefactor     .10000E-03    15.232        .61726E-06** at limit **
  19  norm          .10000E-03    3.5513        .18251E-05** at limit **
  20  Prefactor     94.410        112.60       -.42615E-05   -.17267E-03
  21  Prefactor     .10000E-03    7.0163        .34479E-07** at limit **
  22  norm          28.203        13.533        .92210E-07   -.12528E-03
  23  Prefactor     .10000E-03    14.422       -.52702E-06** at limit **
  24  Prefactor     .10000E-03    530.92       -.59560E-05** at limit **
  25  Prefactor     15.379        40.532        .56616E-06    .62432E-05
  26  norm          5.1628        8.0502        .15448E-05   -.39860E-04
  27  norm          2.9442        1.6148        .23314E-07    .52984E-04
  28  Prefactor     18.775        11.453        .12712E-06    .14427E-05
  29  Prefactor     13.656        42.603        .73584E-06   -.26531E-05
  30  Normalizat    1.0851        .25346       -.66745E-05   -.44181E-03
  31  Prefactor     .89808        .24003        .36403E-05   -.37087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7964
  Prefactor  = 62.8154
  Prefactor  = 0.000100011
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 26.2525
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.37772
  Prefactor  = 19.257
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 94.4099
  Prefactor  = 0.0001
  norm       = 28.2025
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 15.3794
  norm       = 5.16277
  norm       = 2.94419
  Prefactor  = 18.7752
  Prefactor  = 13.6562
  Normalizat = 1.08511
  Prefactor  = 0.898083
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.395     FROM HESSE     STATUS=OK           610 CALLS     5362 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    111.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8682        .98768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.003        21.783        .80127E-04   -1.4707    
   5  Prefactor     .10000E-03    5.1700        .13288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.796        64.245        .10421E-03   -1.4938    
   8  Prefactor     62.815        2253.6        .25381E-03   -1.4121    
   9  Prefactor     .10001E-03    516.23        .36365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    88.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.252        38.851        .78172E-04   -1.4683    
  14  Prefactor     .10000E-03    8.7600        .17284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3777        15.454        .18551E-02   -1.5473    
  17  Prefactor     19.257        19.222        .91250E-04   -1.4830    
  18  Prefactor     .10000E-03    15.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.6877        .21339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     94.410        110.97        .41371E-04   -1.3762    
  21  Prefactor     .10000E-03    7.0321        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          28.203        13.549        .75431E-04   -1.4645    
  23  Prefactor     .10000E-03    14.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    532.37        .21165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.379        40.593        .10214E-03   -1.4923    
  26  norm          5.1628        8.0490        .88466E-03   -1.5253    
  27  norm          2.9442        1.6451        .42985E-04   -1.5365    
  28  Prefactor     18.775        11.440        .92429E-04   -1.4841    
  29  Prefactor     13.656        43.323        .10838E-03   -1.4969    
  30  Normalizat    1.0851        .28994        .24327E-03   -.90231    
  31  Prefactor     .89808        .27562        .26333E-03   -.96208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51167e-09
Minuit parameter uncertainties:
  1  0.00267687
  2  7.99104e-05
  3  9.98656e-06
  4  21.7903
  5  1.83817e-05
  6  2.90635e-05
  7  61.7756
  8  787.018
  9  0.00486432
  10  0.00106343
  11  0.00104686
  12  8.27479e-06
  13  38.8881
  14  1.31378e-05
  15  0.000961465
  16  9.23132
  17  19.2279
  18  3.43833e-05
  19  0.000132994
  20  111.214
  21  6.11791e-06
  22  13.5508
  23  3.00992e-05
  24  0.00322703
  25  40.6656
  26  8.05073
  27  1.64512
  28  11.4415
  29  43.423
  30  0.290368
  31  0.276049
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.981e-01  2.760e-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.085e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/466492/likelihoodResults_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.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) = 3585.39524369
delta logL = -0.000197367153305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3585.39504736
delta logL = -1.04051332528e-06

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 'Index     '    2.0633       1.0000          .0000       10.000    
     3 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89798       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3585.395     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      269 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    61.317        .18142E-02** at limit **
   2  Index         2.0134        5.9588        .50000        .18762E-04
   3  Normalizat    1.0851        .12815E-01    .24327E-03    .17385E-04
   4  Prefactor     .89808        .12807E-01    .26333E-03    .11786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101178
  Index      = 2.01343
  Normalizat = 1.08512
  Prefactor  = 0.898083
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.395     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10118E-03    290.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0134        8.1404        .50000       -.64015    
   3  Normalizat    1.0851        .28590E-01    .97307E-05   -.90231    
   4  Prefactor     .89808        .28572E-01    .10533E-04   -.96208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60279e-08
Minuit parameter uncertainties:
  1  0.0372057
  2  340.461
  3  0.0285907
  4  0.0285723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/466492': 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) = 3585.39504709
delta logL = -7.64922788221e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.012e-04  3.721e-02  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  2.013e+00  3.405e+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:  8.981e-01  2.857e-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.085e+00  2.859e-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/466492/cmap_HighResolution_556588801_556848001_4FGL_J1517.7+6525_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-12 00:13:46.185589', job_id='466492', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631430826.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-7.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1224' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:13:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 466492: <4FGL_J1517.7+6525_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin1224> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 00:00:54 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:00:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 00:00:55 2021
Terminated at Sun Sep 12 00:13:46 2021
Results reported at Sun Sep 12 00:13:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin1224 229.436 65.424 556588801 556848001 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 :                                   752.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

