/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1517.7+6525_daily_bin26
RA = 229.436, Dec = 65.424
tmin = 246067201, tmax = 246326401
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='458477', job_status='RUN', time_executed='2021-09-11 23:36:28.302076', time_epoch_executed='1631428588.3' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458477/ft1_4FGL_J1517.7+6525_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458477/ft2_4FGL_J1517.7+6525_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458477/ft1_4FGL_J1517.7+6525_daily_bin26.fits outfile=/scratch/kocevski/458477/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin26.fits ra=229.436 dec=65.424 rad=12.0 tmin=246067201.0 tmax=246326401.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.48
user 1.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458477/ft1_filtered_4FGL_J1517.7+6525_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/458477/ft2_4FGL_J1517.7+6525_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/458477/ltcube_246067201_246326401_4FGL_J1517.7+6525_daily_bin26.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/458477/ft2_4FGL_J1517.7+6525_daily_bin26.fits
.....................!
real 12.15
user 11.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458477/ft1_filtered_4FGL_J1517.7+6525_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/458477/ft2_4FGL_J1517.7+6525_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/458477/ltcube_246067201_246326401_4FGL_J1517.7+6525_daily_bin26.fits outfile=/scratch/kocevski/458477/expmap_246067201_246326401_4FGL_J1517.7+6525_daily_bin26.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/458477/ltcube_246067201_246326401_4FGL_J1517.7+6525_daily_bin26.fits
.....................!
real 192.80
user 186.67
sys 5.75

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/458477/ft1_filtered_4FGL_J1517.7+6525_daily_bin26.fits scfile=/scratch/kocevski/458477/ft2_4FGL_J1517.7+6525_daily_bin26.fits outfile=/scratch/kocevski/458477/cmap_246067201_246326401_4FGL_J1517.7+6525_daily_bin26.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458477/ft1_filtered_4FGL_J1517.7+6525_daily_bin26.fits scfile=/scratch/kocevski/458477/ft2_4FGL_J1517.7+6525_daily_bin26.fits outfile=/scratch/kocevski/458477/cmap_HighResolution_246067201_246326401_4FGL_J1517.7+6525_daily_bin26.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458477/ft1_filtered_4FGL_J1517.7+6525_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/458477/ft2_4FGL_J1517.7+6525_daily_bin26.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458477/Model_4FGL_J1517.7+6525_daily_bin26.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/458477/ft1_filtered_4FGL_J1517.7+6525_daily_bin26.fits.....................!
real 56.07
user 54.66
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.562       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.297       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7339       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3971       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2963       1.0000         .10000E-03   10000.    
    24 'Prefactor '    61.995       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    18.364       1.0000         .10000E-03   10000.    
    27 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10695E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.220       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89511       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96230       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=   6664.661     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4118 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.135        .78900E-06** at limit **
   2  Prefactor     .10000E-03    9.3101        .27297E-07** at limit **
   3  Prefactor     .99690        3.6936        .15239E-05    .32698E-03
   4  Prefactor     .10000E-03    5.2870        .51426E-07** at limit **
   5  Prefactor     .10000E-03    12.881       -.24312E-06** at limit **
   6  Prefactor     .10000E-03    4.1653        .10385E-06** at limit **
   7  Prefactor     .10000E-03    26.614       -.32452E-07** at limit **
   8  Prefactor     .10000E-03    183.43        .20935E-05** at limit **
   9  Prefactor     29.376        30.506        .52972E-06    .66436E-04
  10  Prefactor     .10000E-03    88.462        .99931E-06** at limit **
  11  Prefactor     .10000E-03    16.407       -.59020E-06** at limit **
  12  Prefactor     .10000E-03    36.140        .65035E-06** at limit **
  13  Prefactor     .10000E-03    14.407        .26820E-06** at limit **
  14  Prefactor     1.6107        13.539        .15812E-04   -.71323E-04
  15  Prefactor     .10000E-03    28.463       -.52955E-06** at limit **
  16  Prefactor     12.557        9.3755       -.20345E-05    .34450E-04
  17  Prefactor     .10000E-03    6.6274        .13081E-06** at limit **
  18  Prefactor     22.300        20.245        .99899E-07   -.16956E-04
  19  norm          5.1768        2.7928        .14981E-06    .34815E-03
  20  Prefactor     .10000E-03    112.47       -.15989E-05** at limit **
  21  Prefactor     5.7337        7.1407        .70631E-07   -.22451E-05
  22  norm          5.3968        5.3416        .43642E-06   -.30559E-04
  23  Prefactor     7.2957        12.158        .30694E-06   -.42680E-05
  24  Prefactor     61.914        137.10        .51656E-05   -.39530E-04
  25  Prefactor     .10000E-03    18.228       -.13126E-06** at limit **
  26  norm          18.368        9.8513       -.77863E-07   -.20481E-03
  27  norm          .10000E-03    .19373        .77295E-08** at limit **
  28  Prefactor     .10000E-03    5.1127       -.28160E-05** at limit **
  29  Prefactor     12.232        14.226       -.28523E-06   -.88639E-04
  30  Normalizat    .89499        .15505       -.27067E-05   -.25893E-03
  31  Prefactor     .96247        .15223        .14138E-05    .10162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.996902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.61071
  Prefactor  = 0.0001
  Prefactor  = 12.5569
  Prefactor  = 0.0001
  Prefactor  = 22.3004
  norm       = 5.17679
  Prefactor  = 0.000100002
  Prefactor  = 5.73373
  norm       = 5.3968
  Prefactor  = 7.29567
  Prefactor  = 61.9139
  Prefactor  = 0.0001
  norm       = 18.3681
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.232
  Normalizat = 0.894987
  Prefactor  = 0.962465
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.661     FROM HESSE     STATUS=OK           622 CALLS     4740 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .99690        3.7047        .28096E-03   -1.5508    
   4  Prefactor     .10000E-03    5.3011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1899        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    183.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.376        30.665        .73909E-04   -1.4623    
  10  Prefactor     .10000E-03    88.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6107        14.199        .16702E-02   -1.5454    
  15  Prefactor     .10000E-03    28.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.557        9.5354        .11302E-03   -1.4999    
  17  Prefactor     .10000E-03    6.6489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.300        20.244        .84826E-04   -1.4763    
  19  norm          5.1768        2.7922        .96803E-04   -1.5253    
  20  Prefactor     .10000E-03    112.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7337        7.1197        .16774E-03   -1.5229    
  22  norm          5.3968        5.3277        .86489E-03   -1.5243    
  23  Prefactor     7.2957        12.152        .74245E-03   -1.5168    
  24  Prefactor     61.914        137.36        .25481E-03   -1.4133    
  25  Prefactor     .10000E-03    18.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          18.368        9.7598        .93463E-04   -1.4851    
  27  norm          .10000E-03    .22018        .69136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.027        .33696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.232        13.985        .11459E-03   -1.5008    
  30  Normalizat    .89499        .18287        .23260E-03   -.96637    
  31  Prefactor     .96247        .18013        .23049E-03   -.93991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77872e-10
Minuit parameter uncertainties:
  1  6.1014e-05
  2  5.43707e-06
  3  3.70555
  4  8.99332e-06
  5  4.02922e-05
  6  1.64175e-05
  7  8.92054e-05
  8  0.000414821
  9  30.6817
  10  2.15975e-05
  11  2.53681e-05
  12  7.45048e-06
  13  2.13545e-05
  14  9.56739
  15  9.30047e-05
  16  9.53656
  17  2.50606e-05
  18  20.2507
  19  2.7923
  20  0.00101438
  21  7.12075
  22  5.32817
  23  12.1563
  24  138.076
  25  5.44427e-06
  26  9.76062
  27  1.53637e-06
  28  2.48729e-05
  29  13.9886
  30  0.182996
  31  0.180239
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.230e+01  2.025e+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:  9.625e-01  1.802e-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.950e-01  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.53
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.32e-08 +/- 1.20e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.37e-05

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): 0
logL (Free Index) = 6662.93046866
delta logL = 1.73066007992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6662.4694769
delta logL = 2.19165184697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0066       1.0000         .10000E-03   10000.    
     2 'Index     '    .75243E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .90140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96440       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=   6662.469     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9934        4.0873        .58520E-02   -.85539E-03
   2  Index         .73513E-01    .63455        .50000        .13481E-03
   3  Normalizat    .90152        .14581        .44919E-01   -.19032E-04
   4  Prefactor     .96430        .15013        .45821E-01    .22008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99339
  Index      = 0.0735126
  Normalizat = 0.901518
  Prefactor  = 0.9643
 **********
 **   18 **HESSE 
 **********

 FCN=   6662.469     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9934        18.523        .13747E-03   -1.5362    
   2  Index         .73513E-01    8.5472        .29853E-01   -1.3991    
   3  Normalizat    .90152        .17055        .23180E-03   -.96407    
   4  Prefactor     .96430        .17563        .23028E-03   -.93929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74057e-09
Minuit parameter uncertainties:
  1  14.8991
  2  1.8716
  3  0.170655
  4  0.175733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458477': 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): 0
logL (Free Index) = 6662.46947533
delta logL = 2.19165340776

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.993e+00  1.490e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  7.351e-02  1.872e+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:  9.643e-01  1.757e-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.015e-01  1.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.90
Ra Dec: 229.436 65.424
Photon Index (Free Index): 0.07 +/- 1.87
Photon Flux (Free Index): 2.49e-09 +/- 2.62e-09
Energy Flux (Free Index): 1.20e-04 +/- 1.47e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/458477/cmap_HighResolution_246067201_246326401_4FGL_J1517.7+6525_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-08', energy_flux2='1.20e-04', photon_flux_error='1.20e-08', dlogl='2.19e+00', energy_flux='1.51e-05', photon_flux2='2.49e-09', job_status='DONE', time_completed='2021-09-11 23:51:23.318721', photon_index_error2='1.87', photon_index2='0.07', ts='10.53', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.47e-04', EG='0.89', time_epoch_completed='1631429483.32', return_code='0', job_id='458477', GAL2='0.96', EG2='0.90', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='2.62e-09', ts2='14.90', photon_index='1.82' WHERE bin_id='26' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:51:23 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin26 229.436 65.424 246067201 246326401 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 :                                   893.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

