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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin818
RA = 229.436, Dec = 65.424
tmin = 451353601, tmax = 451612801
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='461603', job_status='RUN', time_executed='2021-09-11 23:46:20.371184', time_epoch_executed='1631429180.37' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461603/ft1_4FGL_J1517.7+6525_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461603/ft2_4FGL_J1517.7+6525_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461603/ft1_4FGL_J1517.7+6525_daily_bin818.fits outfile=/scratch/kocevski/461603/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin818.fits ra=229.436 dec=65.424 rad=12.0 tmin=451353601.0 tmax=451612801.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.81
user 3.60
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461603/ft2_4FGL_J1517.7+6525_daily_bin818.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/461603/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin818.fits evtable="EVENTS" outfile="/scratch/kocevski/461603/ft1_filtered_4FGL_J1517.7+6525_daily_bin818.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461603/ft1_filtered_4FGL_J1517.7+6525_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/461603/ft2_4FGL_J1517.7+6525_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/461603/ltcube_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.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/461603/ft2_4FGL_J1517.7+6525_daily_bin818.fits
.....................!
real 12.06
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461603/ft1_filtered_4FGL_J1517.7+6525_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/461603/ft2_4FGL_J1517.7+6525_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/461603/ltcube_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.fits outfile=/scratch/kocevski/461603/expmap_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.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/461603/ltcube_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.fits
.....................!
real 190.68
user 185.35
sys 4.96

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/461603/ft1_filtered_4FGL_J1517.7+6525_daily_bin818.fits scfile=/scratch/kocevski/461603/ft2_4FGL_J1517.7+6525_daily_bin818.fits outfile=/scratch/kocevski/461603/cmap_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461603/ft1_filtered_4FGL_J1517.7+6525_daily_bin818.fits scfile=/scratch/kocevski/461603/ft2_4FGL_J1517.7+6525_daily_bin818.fits outfile=/scratch/kocevski/461603/cmap_HighResolution_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461603/ft1_filtered_4FGL_J1517.7+6525_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/461603/ft2_4FGL_J1517.7+6525_daily_bin818.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461603/Model_4FGL_J1517.7+6525_daily_bin818.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/461603/ft1_filtered_4FGL_J1517.7+6525_daily_bin818.fits.....................!
real 50.76
user 49.42
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.607       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .86637E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.112       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9912       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7205       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    148.72       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.439       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.209       1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.520       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.812       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3580       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3146       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .78841       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78978       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=   5423.797     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4251 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.210       -.60537E-07** at limit **
   2  Prefactor     28.593        21.123        .38187E-07   -.85865E-04
   3  Prefactor     8.3172        4.4574        .78745E-06    .21333E-04
   4  Prefactor     .10000E-03    5.5563       -.19142E-06** at limit **
   5  Prefactor     .10005E-03    43.239        .51484E-05** at limit **
   6  Prefactor     8.1942        6.8187       -.38066E-07    .53053E-04
   7  Prefactor     .10000E-03    11.396       -.32407E-08** at limit **
   8  Prefactor     .10000E-03    333.84       -.12495E-07** at limit **
   9  Prefactor     .10000E-03    11.444       -.21698E-06** at limit **
  10  Prefactor     .10000E-03    19.123       -.27159E-08** at limit **
  11  Prefactor     72.170        46.028        .24217E-08   -.41870E-04
  12  Prefactor     .10000E-03    10.369        .13089E-06** at limit **
  13  Prefactor     13.217        17.104        .18275E-08    .77045E-06
  14  Prefactor     .10000E-03    3.0661       -.51983E-07** at limit **
  15  Prefactor     .10000E-03    22.729       -.45392E-07** at limit **
  16  Prefactor     .10000E-03    2.5006       -.19338E-07** at limit **
  17  Prefactor     10.005        22.478       -.25039E-07    .24534E-04
  18  Prefactor     9.7208        36.536        .16511E-06   -.32268E-05
  19  norm          2.8280        2.6481        .42306E-07   -.15043E-03
  20  Prefactor     148.70        98.180        .19675E-08    .14597E-04
  21  Prefactor     .10002E-03    13.313       -.89826E-06** at limit **
  22  norm          12.414        8.2020       -.17063E-05   -.64164E-03
  23  Prefactor     53.222        39.792        .23721E-06   -.46895E-04
  24  Prefactor     37.602        88.569       -.11034E-06   -.45578E-04
  25  Prefactor     .10000E-03    37.495       -.57036E-07** at limit **
  26  norm          10.814        8.5741       -.51109E-07    .36670E-04
  27  norm          1.3583        .63480       -.26017E-08    .65950E-04
  28  Prefactor     3.3150        3.9316       -.73690E-08    .15133E-04
  29  Prefactor     .10000E-03    7.7464       -.32019E-07** at limit **
  30  Normalizat    .78804        .16237       -.63651E-06    .11895E-03
  31  Prefactor     .79015        .15445        .74242E-06   -.31391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.5929
  Prefactor  = 8.31719
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 8.19417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.1696
  Prefactor  = 0.0001
  Prefactor  = 13.217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0052
  Prefactor  = 9.72077
  norm       = 2.82802
  Prefactor  = 148.696
  Prefactor  = 0.000100017
  norm       = 12.4139
  Prefactor  = 53.2217
  Prefactor  = 37.6022
  Prefactor  = 0.0001
  norm       = 10.8141
  norm       = 1.35834
  Prefactor  = 3.31504
  Prefactor  = 0.0001
  Normalizat = 0.788037
  Prefactor  = 0.790152
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.797     FROM HESSE     STATUS=OK           618 CALLS     4869 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.593        21.129        .74905E-04   -1.4638    
   3  Prefactor     8.3172        4.5345        .10868E-03   -1.5131    
   4  Prefactor     .10000E-03    5.5832        .16949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10005E-03    59.095        .38697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1942        6.8304        .14007E-03   -1.5135    
   7  Prefactor     .10000E-03    11.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    333.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     72.170        46.070        .23638E-03   -1.4007    
  12  Prefactor     .10000E-03    10.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.217        17.111        .11019E-03   -1.4981    
  14  Prefactor     .10000E-03    3.0687        .12593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5104        .11372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.005        22.451        .12677E-03   -1.5075    
  18  Prefactor     9.7208        36.283        .12853E-03   -1.5084    
  19  norm          2.8280        2.6471        .11016E-03   -1.5372    
  20  Prefactor     148.70        98.144        .16523E-03   -1.3263    
  21  Prefactor     .10002E-03    27.025        .33407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.414        8.5507        .11358E-03   -1.5003    
  23  Prefactor     53.222        39.798        .54985E-04   -1.4248    
  24  Prefactor     37.602        88.489        .65431E-04   -1.4481    
  25  Prefactor     .10000E-03    37.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.814        8.5723        .12184E-03   -1.5050    
  27  norm          1.3583        .63637        .38661E-04   -1.5475    
  28  Prefactor     3.3150        3.9263        .15402E-03   -1.5344    
  29  Prefactor     .10000E-03    7.7610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .78804        .18881        .22784E-03   -1.0051    
  31  Prefactor     .79015        .17849        .22734E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51466e-09
Minuit parameter uncertainties:
  1  5.95466e-05
  2  21.1348
  3  4.53467
  4  2.90794e-05
  5  0.00348345
  6  6.83101
  7  8.9693e-06
  8  0.000283576
  9  5.09074e-05
  10  4.20422e-05
  11  46.0925
  12  2.12864e-05
  13  17.1175
  14  8.08074e-06
  15  0.000100877
  16  4.541e-06
  17  22.4702
  18  36.3652
  19  2.64718
  20  98.2516
  21  0.00135645
  22  8.55152
  23  39.8183
  24  88.8004
  25  2.84993e-05
  26  8.57331
  27  0.63637
  28  3.92665
  29  5.52726e-06
  30  0.188964
  31  0.178622
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  7.902e-01  1.786e-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:  7.880e-01  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/461603/likelihoodResults_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.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) = 5422.50950509
delta logL = 1.28775768086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5422.49921402
delta logL = 1.29804875185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53759       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8103       1.0000          .0000       10.000    
     3 'Normalizat'    .69333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5422.499     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53661        5.1277        .77504E-02    .98116E-03
   2  Index         3.8109        1.6603        .70447E-01    .21550E-03
   3  Normalizat    .69331        .40194E-01    .42201E-01    .17930E-04
   4  Prefactor     .84516        .40119E-01    .44302E-01    .57204E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.53661
  Index      = 3.81089
  Normalizat = 0.693311
  Prefactor  = 0.84516
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.499     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53661        11.347        .34924E-04   -1.5561    
   2  Index         3.8109        2.8333        .26888E-02   -.24012    
   3  Normalizat    .69331        .16008        .24117E-03   -1.0416    
   4  Prefactor     .84516        .15773        .22028E-03   -.98085    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.97387e-07
Minuit parameter uncertainties:
  1  4.9358
  2  3.02517
  3  0.160184
  4  0.157818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461603': 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) = 5422.4992139
delta logL = 1.29804887248

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  5.366e-01  4.936e+00  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  3.811e+00  3.025e+00  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.452e-01  1.578e-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:  6.933e-01  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 229.436 65.424
Photon Index (Free Index): 3.81 +/- 3.03
Photon Flux (Free Index): 8.30e-08 +/- 5.60e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.11e-05

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/461603/cmap_HighResolution_451353601_451612801_4FGL_J1517.7+6525_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='1.30e+00', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-09-12 00:01:41.545833', photon_index_error2='3.03', photon_index2='3.81', ts='0.10', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.16e-08', energy_flux_error2='1.11e-05', EG='0.79', time_epoch_completed='1631430101.55', return_code='0', job_id='461603', GAL2='0.85', EG2='0.69', return_code2='102', photon_flux_error2='5.60e-08', ts2='2.90', photon_index='1.82' WHERE bin_id='818' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:01:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 461603: <4FGL_J1517.7+6525_daily_bin818> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin818 229.436 65.424 451353601 451612801 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 :                                   917.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

