/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 186 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1517.7+6525_daily_bin91
RA = 229.436, Dec = 65.424
tmin = 262915201, tmax = 263174401
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='458584', job_status='RUN', time_executed='2021-09-11 23:39:35.918395', time_epoch_executed='1631428775.92' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458584

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458584/ft1_4FGL_J1517.7+6525_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458584/ft2_4FGL_J1517.7+6525_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458584/ft1_4FGL_J1517.7+6525_daily_bin91.fits outfile=/scratch/kocevski/458584/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin91.fits ra=229.436 dec=65.424 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.29
user 1.12
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458584/ft1_filtered_4FGL_J1517.7+6525_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/458584/ft2_4FGL_J1517.7+6525_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/458584/ltcube_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.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/458584/ft2_4FGL_J1517.7+6525_daily_bin91.fits
.....................!
real 10.77
user 10.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458584/ft1_filtered_4FGL_J1517.7+6525_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/458584/ft2_4FGL_J1517.7+6525_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/458584/ltcube_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.fits outfile=/scratch/kocevski/458584/expmap_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.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/458584/ltcube_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.fits
.....................!
real 192.57
user 186.16
sys 5.39

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/458584/ft1_filtered_4FGL_J1517.7+6525_daily_bin91.fits scfile=/scratch/kocevski/458584/ft2_4FGL_J1517.7+6525_daily_bin91.fits outfile=/scratch/kocevski/458584/cmap_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458584/ft1_filtered_4FGL_J1517.7+6525_daily_bin91.fits scfile=/scratch/kocevski/458584/ft2_4FGL_J1517.7+6525_daily_bin91.fits outfile=/scratch/kocevski/458584/cmap_HighResolution_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458584/ft1_filtered_4FGL_J1517.7+6525_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/458584/ft2_4FGL_J1517.7+6525_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458584/Model_4FGL_J1517.7+6525_daily_bin91.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/458584/ft1_filtered_4FGL_J1517.7+6525_daily_bin91.fits....................!
real 45.57
user 44.37
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12657E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4059       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    101.77       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35430E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    126.12       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.928       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26579E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.648       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.743       1.0000         .10000E-03   10000.    
    20 'Prefactor '    92.034       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.630       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.217       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1253       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86875       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4841.393     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     3460 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    72.128        .47970E-06** at limit **
   2  Prefactor     .11247E-03    71.179       -.12172E-04** at limit **
   3  Prefactor     7.4037        1.1377       -.57522E-06   -.12301E-02
   4  Prefactor     23.414        1.8398        .21849E-06   -.16295E-02
   5  Prefactor     12.393        1.1298        .58904E-07   -.97918E-03
   6  Prefactor     4.3422        5.5090       -.32321E-05   -.29855E-03
   7  Prefactor     101.78        1.5217        .13625E-06   -.44856E-04
   8  Prefactor     .11938E-03    45.502        .11904E-04** at limit **
   9  Prefactor     .26503        1450.4       -.14591E-03    .13630E-03
  10  Prefactor     126.09        7.5061       -.17573E-05    .14404E-02
  11  Prefactor     48.046        48.581        .18275E-04   -.23811E-02
  12  Prefactor     .10000E-03    11.645       -.93921E-06** at limit **
  13  Prefactor     .10000E-03    12.983       -.51254E-06** at limit **
  14  Prefactor     .10000E-03    7.4782       -.24159E-06** at limit **
  15  Prefactor     .10816E-03    27.792        .10598E-04** at limit **
  16  Prefactor     14.650        10.703        .14730E-04    .54372E-02
  17  Prefactor     .10000E-03    5.0383        .57375E-06** at limit **
  18  Prefactor     .10000E-03    15.176        .55259E-06** at limit **
  19  norm          15.741        5.3041       -.36737E-06   -.47070E-03
  20  Prefactor     92.056        4.7257        .11687E-05   -.61518E-03
  21  Prefactor     20.628        1.6256        .10681E-06   -.27089E-04
  22  norm          2.9171        5.7879        .23160E-05   -.16655E-03
  23  Prefactor     .10000E-03    14.372       -.21048E-06** at limit **
  24  Prefactor     .11139E-03    74.806        .44527E-05** at limit **
  25  Prefactor     19.362        28.774       -.89660E-06    .38984E-02
  26  norm          .10000E-03    27.915       -.18477E-06** at limit **
  27  norm          1.1246        .80325        .36851E-07   -.21234E-04
  28  Prefactor     .10000E-03    2.3508       -.76518E-07** at limit **
  29  Prefactor     .10000E-03    6.6788        .19814E-06** at limit **
  30  Normalizat    1.0229        .24066       -.72662E-05    .27521E-04
  31  Prefactor     .86854        .23119        .36561E-05    .60658E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.000112471
  Prefactor  = 7.40368
  Prefactor  = 23.4136
  Prefactor  = 12.3934
  Prefactor  = 4.3422
  Prefactor  = 101.777
  Prefactor  = 0.000119385
  Prefactor  = 0.265033
  Prefactor  = 126.093
  Prefactor  = 48.046
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000108157
  Prefactor  = 14.6495
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 15.7411
  Prefactor  = 92.0558
  Prefactor  = 20.6283
  norm       = 2.91709
  Prefactor  = 0.000100004
  Prefactor  = 0.000111391
  Prefactor  = 19.3619
  norm       = 0.0001
  norm       = 1.12458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02292
  Prefactor  = 0.86854
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.393     FROM HESSE     STATUS=OK           692 CALLS     4152 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    72.225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11247E-03    121.88        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4037        12.980        .36844E-02   -1.5164    
   4  Prefactor     23.414        23.286        .20691E-02   -1.4740    
   5  Prefactor     12.393        25.435        .28446E-02   -1.5004    
   6  Prefactor     4.3422        5.5205        .48324E-02   -1.5291    
   7  Prefactor     101.78        81.991        .99636E-03   -1.3687    
   8  Prefactor     .11938E-03    317.93        .10659E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26503        56.015        .13778       -1.5605    
  10  Prefactor     126.09        93.588        .89611E-03   -1.3457    
  11  Prefactor     48.046        56.318        .14480E-02   -1.4321    
  12  Prefactor     .10000E-03    11.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10816E-03    339.71        .10720E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.650        11.108        .26162E-02   -1.4942    
  17  Prefactor     .10000E-03    5.0377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.741        5.5236        .25236E-02   -1.4914    
  20  Prefactor     92.056        105.99        .10472E-02   -1.3786    
  21  Prefactor     20.628        11.233        .22046E-02   -1.4799    
  22  norm          2.9171        6.3722        .59460E-02   -1.5366    
  23  Prefactor     .10000E-03    14.371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11139E-03    118.10        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.362        49.063        .22841E-02   -1.4828    
  26  norm          .10000E-03    26.815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.1246        .83297        .11040E-01   -1.5496    
  28  Prefactor     .10000E-03    2.3469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.6756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0229        .21402        .42995E-01   -.92266    
  31  Prefactor     .86854        .19909        .44606E-01   -.97249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55264e-07
Minuit parameter uncertainties:
  1  0.00176592
  2  0.0781311
  3  12.9853
  4  23.2954
  5  25.4568
  6  5.52118
  7  82.0828
  8  0.157854
  9  7.7119
  10  93.6981
  11  56.38
  12  6.16428e-06
  13  0.000309098
  14  1.11433e-05
  15  0.105889
  16  11.1099
  17  1.49808e-05
  18  0.0002182
  19  5.52382
  20  106.209
  21  11.2344
  22  6.37371
  23  0.000485345
  24  0.0735014
  25  49.1657
  26  6.3602e-05
  27  0.832976
  28  2.32342e-06
  29  3.6038e-06
  30  0.214196
  31  0.199258
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.182e-04  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.685e-01  1.993e-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.023e+00  2.142e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458584/likelihoodResults_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.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) = 4841.39287938
delta logL = -0.000313099939376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4841.39256815
delta logL = -1.86202032637e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11764E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9800       1.0000          .0000       10.000    
     3 'Normalizat'    1.0229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86854       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=   4841.393     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      266 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    54.727        .18142E-02** at limit **
   2  Index         1.9127        9.0242        .50000        .27640E-04
   3  Normalizat    1.0229        .10196E-01    .24848E-03   -.14778E-04
   4  Prefactor     .86854        .10002E-01    .26103E-03   -.17988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101765
  Index      = 1.91269
  Normalizat = 1.02292
  Prefactor  = 0.86854
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.393     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 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     .10176E-03    239.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9127        8.1200        .50000       -.66551    
   3  Normalizat    1.0229        .21722E-01    .99392E-05   -.92266    
   4  Prefactor     .86854        .21309E-01    .10441E-04   -.97249    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55265e-08
Minuit parameter uncertainties:
  1  0.0412788
  2  241.817
  3  0.0217224
  4  0.0213092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458584': 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) = 4841.39256694
delta logL = -6.54568793834e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.018e-04  4.128e-02  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.913e+00  2.418e+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.685e-01  2.131e-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.023e+00  2.172e-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/458584/cmap_HighResolution_262915201_263174401_4FGL_J1517.7+6525_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-11 23:52:39.729716', job_id='458584', GAL2='0.87', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631429559.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-6.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='91' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:52:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 458584: <4FGL_J1517.7+6525_daily_bin91> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin91> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 23:36:20 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:36:23 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:36:23 2021
Terminated at Sat Sep 11 23:52:40 2021
Results reported at Sat Sep 11 23:52:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin91 229.436 65.424 262915201 263174401 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 :                                   782.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            980 sec.

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

