/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 6 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 = 6842
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1517.7+6525_daily_bin391
RA = 229.436, Dec = 65.424
tmin = 340675201, tmax = 340934401
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='460016', job_status='RUN', time_executed='2021-09-11 23:41:24.932061', time_epoch_executed='1631428884.93' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460016

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460016/ft1_4FGL_J1517.7+6525_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460016/ft2_4FGL_J1517.7+6525_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460016/ft1_4FGL_J1517.7+6525_daily_bin391.fits outfile=/scratch/kocevski/460016/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin391.fits ra=229.436 dec=65.424 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.09
user 5.82
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460016/ft1_filtered_4FGL_J1517.7+6525_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/460016/ft2_4FGL_J1517.7+6525_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/460016/ltcube_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.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/460016/ft2_4FGL_J1517.7+6525_daily_bin391.fits
.....................!
real 10.48
user 10.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460016/ft1_filtered_4FGL_J1517.7+6525_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/460016/ft2_4FGL_J1517.7+6525_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/460016/ltcube_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.fits outfile=/scratch/kocevski/460016/expmap_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.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/460016/ltcube_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.fits
.....................!
real 191.57
user 185.44
sys 5.78

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/460016/ft1_filtered_4FGL_J1517.7+6525_daily_bin391.fits scfile=/scratch/kocevski/460016/ft2_4FGL_J1517.7+6525_daily_bin391.fits outfile=/scratch/kocevski/460016/cmap_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460016/ft1_filtered_4FGL_J1517.7+6525_daily_bin391.fits scfile=/scratch/kocevski/460016/ft2_4FGL_J1517.7+6525_daily_bin391.fits outfile=/scratch/kocevski/460016/cmap_HighResolution_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460016/ft1_filtered_4FGL_J1517.7+6525_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/460016/ft2_4FGL_J1517.7+6525_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460016/Model_4FGL_J1517.7+6525_daily_bin391.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/460016/ft1_filtered_4FGL_J1517.7+6525_daily_bin391.fits.....................!
real 44.20
user 42.90
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11137E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9830       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    185.12       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99252E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8612       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3718       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.7732       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    228.40       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.2307       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .29705E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    20.112       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95831       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83440       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=   4791.744     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4258 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.896        .22006E-06** at limit **
   2  Prefactor     .10000E-03    25.303        .23499E-06** at limit **
   3  Prefactor     .10000E-03    2.3102        .20910E-06** at limit **
   4  Prefactor     9.3084        22.346       -.12379E-05   -.27040E-04
   5  Prefactor     1.9777        6.7841       -.15786E-06   -.16401E-03
   6  Prefactor     .10000E-03    4.5407        .17190E-06** at limit **
   7  Prefactor     11.599        31.032       -.26991E-07   -.47844E-05
   8  Prefactor     .10000E-03    386.33        .96849E-06** at limit **
   9  Prefactor     32.866        28.830       -.18998E-05   -.12221E-03
  10  Prefactor     185.12        88.978       -.76391E-07   -.15024E-05
  11  Prefactor     1.6717        251.50        .44053E-05   -.12397E-05
  12  Prefactor     .10000E-03    7.9325        .56116E-07** at limit **
  13  Prefactor     .10000E-03    33.610        .46113E-06** at limit **
  14  Prefactor     .10000E-03    6.4095       -.19087E-06** at limit **
  15  Prefactor     .10000E-03    28.559        .10382E-06** at limit **
  16  Prefactor     .10000E-03    13.869       -.29420E-06** at limit **
  17  Prefactor     .10000E-03    312.06       -.57216E-05** at limit **
  18  Prefactor     .10000E-03    17.638        .49364E-07** at limit **
  19  norm          3.8626        3.1710       -.40018E-07    .23345E-04
  20  Prefactor     1.7232        2045.6        .57170E-05    .17015E-05
  21  Prefactor     .10000E-03    2.8465        .22339E-07** at limit **
  22  norm          5.7704        8.8086       -.92007E-07   -.18400E-04
  23  Prefactor     5.7389        51.344        .13877E-07   -.76831E-06
  24  Prefactor     228.08        218.26        .20445E-06    .11109E-04
  25  Prefactor     .10000E-03    10.485        .65053E-07** at limit **
  26  norm          9.2296        12.433        .76032E-06    .45504E-04
  27  norm          .10000E-03    .22766       -.46338E-07** at limit **
  28  Prefactor     .10000E-03    19.798        .31908E-05** at limit **
  29  Prefactor     20.114        16.574        .17309E-05    .14621E-03
  30  Normalizat    .95883        .19349        .19743E-05   -.20311E-03
  31  Prefactor     .83408        .19319       -.28724E-05    .29128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.30845
  Prefactor  = 1.97767
  Prefactor  = 0.0001
  Prefactor  = 11.599
  Prefactor  = 0.0001
  Prefactor  = 32.8659
  Prefactor  = 185.118
  Prefactor  = 1.67169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.86258
  Prefactor  = 1.72325
  Prefactor  = 0.0001
  norm       = 5.77039
  Prefactor  = 5.73889
  Prefactor  = 228.079
  Prefactor  = 0.0001
  norm       = 9.22963
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.114
  Normalizat = 0.958833
  Prefactor  = 0.834077
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.744     FROM HESSE     STATUS=OK           624 CALLS     4882 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3398        .10283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3084        22.381        .13108E-03   -1.5098    
   5  Prefactor     1.9777        6.8686        .14715E-02   -1.5427    
   6  Prefactor     .10000E-03    4.5677        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.599        31.028        .11760E-03   -1.5027    
   8  Prefactor     .10000E-03    386.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.866        28.557        .69878E-04   -1.4561    
  10  Prefactor     185.12        88.981        .14838E-03   -1.2978    
  11  Prefactor     1.6717        246.37        .32444E-03   -1.5449    
  12  Prefactor     .10000E-03    7.9402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4420        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.479        .67771E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8626        3.1395        .10376E-03   -1.5315    
  20  Prefactor     1.7232        2057.8        .26604E-03   -1.5445    
  21  Prefactor     .10000E-03    2.8487        .11403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.7704        8.7751        .16716E-03   -1.5227    
  23  Prefactor     5.7389        51.000        .16763E-03   -1.5229    
  24  Prefactor     228.08        218.91        .13388E-03   -1.2676    
  25  Prefactor     .10000E-03    10.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.2296        12.320        .13191E-03   -1.5100    
  27  norm          .10000E-03    .23379        .64335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.746        .28601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     20.114        16.664        .89310E-04   -1.4811    
  30  Normalizat    .95883        .20828        .21746E-03   -.94423    
  31  Prefactor     .83408        .20418        .23533E-03   -.98484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59971e-10
Minuit parameter uncertainties:
  1  2.08577e-05
  2  2.47244e-06
  3  1.74063e-06
  4  22.401
  5  6.87135
  6  2.18124e-06
  7  31.071
  8  0.000160355
  9  28.569
  10  89.0454
  11  40.7593
  12  1.70613e-06
  13  4.8732e-05
  14  8.8688e-06
  15  1.75153e-05
  16  4.07161e-05
  17  0.000188203
  18  9.71825e-06
  19  3.13968
  20  123.623
  21  2.97808e-06
  22  8.77704
  23  34.2547
  24  219.701
  25  5.2765e-06
  26  12.3236
  27  9.406e-07
  28  0.000113343
  29  16.6678
  30  0.208452
  31  0.204367
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.341e-01  2.044e-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:  9.588e-01  2.085e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460016/likelihoodResults_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.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) = 4791.74393959
delta logL = -0.000269707410553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4791.74367073
delta logL = -8.56161932461e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0644       1.0000          .0000       10.000    
     3 'Normalizat'    .95884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83407       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=   4791.744     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      262 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    71.346        .18142E-02** at limit **
   2  Index         2.0177        8.9112        .50000        .13334E-04
   3  Normalizat    .95884        .91628E-02    .21747E-03   -.32379E-03
   4  Prefactor     .83407        .93598E-02    .23532E-03   -.35612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100932
  Index      = 2.01768
  Normalizat = 0.958836
  Prefactor  = 0.834072
 **********
 **   18 **HESSE 
 **********

 FCN=   4791.744     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10093E-03    354.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0177        7.8698        .50000       -.63909    
   3  Normalizat    .95884        .20954E-01    .43494E-04   -.94423    
   4  Prefactor     .83407        .21402E-01    .47064E-04   -.98484    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.66534e-09
Minuit parameter uncertainties:
  1  0.0365774
  2  373.326
  3  0.0209538
  4  0.0214022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460016': 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) = 4791.74367036
delta logL = -4.8549281928e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.009e-04  3.658e-02  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  2.018e+00  3.733e+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.341e-01  2.140e-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:  9.588e-01  2.095e-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/460016/cmap_HighResolution_340675201_340934401_4FGL_J1517.7+6525_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-11 23:55:58.187213', job_id='460016', GAL2='0.83', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631429758.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-4.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='391' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 460016: <4FGL_J1517.7+6525_daily_bin391> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin391> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:41:10 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:41:11 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:41:11 2021
Terminated at Sat Sep 11 23:55:58 2021
Results reported at Sat Sep 11 23:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin391 229.436 65.424 340675201 340934401 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 :                                   868.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

