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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin809
RA = 229.436, Dec = 65.424
tmin = 449020801, tmax = 449280001
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='461591', job_status='RUN', time_executed='2021-09-11 23:49:24.936551', time_epoch_executed='1631429364.94' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461591/ft1_4FGL_J1517.7+6525_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461591/ft2_4FGL_J1517.7+6525_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461591/ft1_4FGL_J1517.7+6525_daily_bin809.fits outfile=/scratch/kocevski/461591/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin809.fits ra=229.436 dec=65.424 rad=12.0 tmin=449020801.0 tmax=449280001.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.50
user 5.25
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461591/ft1_filtered_4FGL_J1517.7+6525_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/461591/ft2_4FGL_J1517.7+6525_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/461591/ltcube_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.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/461591/ft2_4FGL_J1517.7+6525_daily_bin809.fits
.....................!
real 11.89
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461591/ft1_filtered_4FGL_J1517.7+6525_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/461591/ft2_4FGL_J1517.7+6525_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/461591/ltcube_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.fits outfile=/scratch/kocevski/461591/expmap_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.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/461591/ltcube_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.fits
.....................!
real 191.22
user 185.70
sys 5.20

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/461591/ft1_filtered_4FGL_J1517.7+6525_daily_bin809.fits scfile=/scratch/kocevski/461591/ft2_4FGL_J1517.7+6525_daily_bin809.fits outfile=/scratch/kocevski/461591/cmap_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461591/ft1_filtered_4FGL_J1517.7+6525_daily_bin809.fits scfile=/scratch/kocevski/461591/ft2_4FGL_J1517.7+6525_daily_bin809.fits outfile=/scratch/kocevski/461591/cmap_HighResolution_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461591/ft1_filtered_4FGL_J1517.7+6525_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/461591/ft2_4FGL_J1517.7+6525_daily_bin809.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461591/Model_4FGL_J1517.7+6525_daily_bin809.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/461591/ft1_filtered_4FGL_J1517.7+6525_daily_bin809.fits.....................!
real 36.32
user 35.09
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    129.23       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50141       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.7783       1.0000         .10000E-03   10000.    
    20 'Prefactor '    133.63       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8010       1.0000         .10000E-03   10000.    
    22 'norm      '    6.9684       1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.133       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.0246       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .82681       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0049       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=   3319.470     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4140 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.183       -.26271E-05** at limit **
   2  Prefactor     .10000E-03    19.877       -.30138E-05** at limit **
   3  Prefactor     2.2817        7.6649        .92607E-05    .96335E-04
   4  Prefactor     .10000E-03    5.7678       -.85836E-07** at limit **
   5  Prefactor     14.395        16.273       -.43812E-05    .31362E-04
   6  Prefactor     .10001E-03    7.8308       -.53940E-05** at limit **
   7  Prefactor     .10000E-03    26.576        .11871E-05** at limit **
   8  Prefactor     .10000E-03    307.15        .10275E-04** at limit **
   9  Prefactor     4.0469        43.886        .13849E-05   -.11860E-04
  10  Prefactor     .10000E-03    47.659       -.32831E-05** at limit **
  11  Prefactor     .10000E-03    28.046        .15817E-05** at limit **
  12  Prefactor     3.1875        44.314        .36072E-06    .14212E-05
  13  Prefactor     129.25        56.930       -.10779E-06    .56795E-04
  14  Prefactor     .54728        19.084       -.19942E-05   -.14794E-03
  15  Prefactor     .10000E-03    72.407        .36229E-05** at limit **
  16  Prefactor     1.9945        14.169        .13705E-04    .54089E-04
  17  Prefactor     .10000E-03    9.7698        .21939E-06** at limit **
  18  Prefactor     .10000E-03    15.660       -.10384E-06** at limit **
  19  norm          9.7775        6.5652        .10407E-05    .11997E-04
  20  Prefactor     133.82        189.59       -.18273E-04    .14997E-04
  21  Prefactor     6.8017        6.9663       -.54406E-06    .17532E-04
  22  norm          6.9703        9.0301        .16742E-06    .24655E-04
  23  Prefactor     57.135        61.086        .10221E-05    .88604E-05
  24  Prefactor     .10000E-03    58.214        .27084E-05** at limit **
  25  Prefactor     .10000E-03    99.251       -.97813E-05** at limit **
  26  norm          .10000E-03    5.0760        .31837E-07** at limit **
  27  norm          .10000E-03    .63125       -.23852E-06** at limit **
  28  Prefactor     5.0236        9.5824        .94243E-06    .16335E-03
  29  Prefactor     .10000E-03    57.695        .20374E-05** at limit **
  30  Normalizat    .82620        .24494       -.77040E-05    .18850E-03
  31  Prefactor     1.0054        .22766        .56552E-05    .24808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28175
  Prefactor  = 0.0001
  Prefactor  = 14.3954
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.04686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.18746
  Prefactor  = 129.253
  Prefactor  = 0.547283
  Prefactor  = 0.0001
  Prefactor  = 1.99454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7775
  Prefactor  = 133.819
  Prefactor  = 6.80172
  norm       = 6.97029
  Prefactor  = 57.1352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.02361
  Prefactor  = 0.0001
  Normalizat = 0.826201
  Prefactor  = 1.00543
 **********
 **   18 **HESSE 
 **********

 FCN=   3319.470     FROM HESSE     STATUS=OK           618 CALLS     4758 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2817        7.5723        .10601E-02   -1.5406    
   4  Prefactor     .10000E-03    5.7712        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.395        16.145        .10557E-03   -1.4949    
   6  Prefactor     .10001E-03    18.331        .29840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    307.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0469        44.114        .20071E-03   -1.5306    
  10  Prefactor     .10000E-03    47.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1875        44.295        .22697E-03   -1.5351    
  13  Prefactor     129.25        57.006        .35416E-04   -1.3429    
  14  Prefactor     .54728        105.98        .43407E-02   -1.5560    
  15  Prefactor     .10000E-03    72.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9945        15.246        .14645E-02   -1.5426    
  17  Prefactor     .10000E-03    9.7846        .17589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.7775        6.5606        .10726E-03   -1.5082    
  20  Prefactor     133.82        190.22        .17418E-03   -1.3389    
  21  Prefactor     6.8017        6.9690        .14917E-03   -1.5186    
  22  norm          6.9703        9.0221        .15198E-03   -1.5180    
  23  Prefactor     57.135        61.094        .53073E-04   -1.4195    
  24  Prefactor     .10000E-03    58.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    99.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.0842        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .84563        .87393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.0236        9.4396        .17939E-03   -1.5260    
  29  Prefactor     .10000E-03    58.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .82620        .27975        .24625E-03   -.99104    
  31  Prefactor     1.0054        .26467        .23083E-03   -.92549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53163e-09
Minuit parameter uncertainties:
  1  8.32705e-07
  2  2.67086e-06
  3  7.5755
  4  4.93812e-06
  5  16.1496
  6  0.000900532
  7  4.03459e-05
  8  0.00023089
  9  26.7472
  10  3.0392e-06
  11  3.06268e-05
  12  23.7856
  13  57.0303
  14  15.2579
  15  0.000119639
  16  11.0324
  17  4.00548e-05
  18  2.13246e-05
  19  6.5611
  20  191.1
  21  6.96986
  22  9.02381
  23  61.1611
  24  2.56209e-05
  25  8.18841e-05
  26  6.64365e-06
  27  2.82497e-06
  28  9.44236
  29  0.000169377
  30  0.280242
  31  0.265016
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.132e-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:  1.005e+00  2.650e-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:  8.262e-01  2.802e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461591/likelihoodResults_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.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) = 3319.47007274
delta logL = -0.000303450484353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3319.46977047
delta logL = -1.18497564472e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0526       1.0000          .0000       10.000    
     3 'Normalizat'    .82620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0054       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=   3319.470     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      260 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10177E-03    67.874        .18142E-02** at limit **
   2  Index         1.9893        8.5991        .50000        .21855E-04
   3  Normalizat    .82620        .12430E-01    .24625E-03   -.29042E-03
   4  Prefactor     1.0054        .12807E-01    .23082E-03   -.32109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010177
  Index      = 1.98925
  Normalizat = 0.8262
  Prefactor  = 1.00543
 **********
 **   18 **HESSE 
 **********

 FCN=   3319.470     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10177E-03    301.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9893        5.2831        .50000       -.64619    
   3  Normalizat    .82620        .26855E-01    .49251E-04   -.99104    
   4  Prefactor     1.0054        .27669E-01    .46165E-04   -.92549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54207e-08
Minuit parameter uncertainties:
  1  0.0464728
  2  357.926
  3  0.0268556
  4  0.0276698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461591': 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) = 3319.4697701
delta logL = -8.07756805443e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.018e-04  4.647e-02  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.989e+00  3.579e+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:  1.005e+00  2.767e-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:  8.262e-01  2.686e-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/461591/cmap_HighResolution_449020801_449280001_4FGL_J1517.7+6525_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-12 00:00:58.614061', job_id='461591', GAL2='1.01', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631430058.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-8.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='809' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 461591: <4FGL_J1517.7+6525_daily_bin809> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin809 229.436 65.424 449020801 449280001 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 :                                   691.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

