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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin267
RA = 229.436, Dec = 65.424
tmin = 308534401, tmax = 308793601
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='458870', job_status='RUN', time_executed='2021-09-11 23:36:57.646348', time_epoch_executed='1631428617.65' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458870

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458870/ft1_4FGL_J1517.7+6525_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458870/ft2_4FGL_J1517.7+6525_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458870/ft1_4FGL_J1517.7+6525_daily_bin267.fits outfile=/scratch/kocevski/458870/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin267.fits ra=229.436 dec=65.424 rad=12.0 tmin=308534401.0 tmax=308793601.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.40
user 5.14
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458870/ft1_filtered_4FGL_J1517.7+6525_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/458870/ft2_4FGL_J1517.7+6525_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/458870/ltcube_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.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/458870/ft2_4FGL_J1517.7+6525_daily_bin267.fits
.....................!
real 12.49
user 11.97
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458870/ft1_filtered_4FGL_J1517.7+6525_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/458870/ft2_4FGL_J1517.7+6525_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/458870/ltcube_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.fits outfile=/scratch/kocevski/458870/expmap_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.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/458870/ltcube_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.fits
.....................!
real 191.14
user 186.53
sys 4.16

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/458870/ft1_filtered_4FGL_J1517.7+6525_daily_bin267.fits scfile=/scratch/kocevski/458870/ft2_4FGL_J1517.7+6525_daily_bin267.fits outfile=/scratch/kocevski/458870/cmap_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458870/ft1_filtered_4FGL_J1517.7+6525_daily_bin267.fits scfile=/scratch/kocevski/458870/ft2_4FGL_J1517.7+6525_daily_bin267.fits outfile=/scratch/kocevski/458870/cmap_HighResolution_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66086E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.413       1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2349       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.023       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.926       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9413       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.557       1.0000         .10000E-03   10000.    
    22 'norm      '    .12016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.376       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.9875       1.0000         .10000E-03   10000.    
    27 'norm      '    2.3436       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14602E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81717       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0830       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=   5444.408     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4102 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.637        .94190E-07** at limit **
   2  Prefactor     .10000E-03    23.199       -.11955E-06** at limit **
   3  Prefactor     3.7409        4.1753        .25326E-06    .27231E-05
   4  Prefactor     5.2055        12.030        .27391E-06   -.98117E-05
   5  Prefactor     .10000E-03    8.7415       -.59572E-07** at limit **
   6  Prefactor     .10000E-03    3.1839       -.55547E-09** at limit **
   7  Prefactor     .10000E-03    11.491        .52641E-07** at limit **
   8  Prefactor     .10001E-03    272.90       -.16352E-05** at limit **
   9  Prefactor     21.413        26.560       -.54543E-07   -.80839E-06
  10  Prefactor     64.076        59.296        .48055E-07   -.14632E-04
  11  Prefactor     .10000E-03    19.954       -.30442E-06** at limit **
  12  Prefactor     15.607        14.850        .62517E-08    .16152E-05
  13  Prefactor     .10000E-03    11.295       -.20156E-07** at limit **
  14  Prefactor     .10000E-03    4.4537        .15191E-08** at limit **
  15  Prefactor     1.1601        200.38        .10142E-04    .33751E-04
  16  Prefactor     19.027        10.617        .22454E-07   -.53945E-06
  17  Prefactor     .10000E-03    19.502       -.35623E-06** at limit **
  18  Prefactor     16.925        23.156       -.10129E-06    .16097E-06
  19  norm          2.9412        3.1882        .57254E-07   -.10802E-04
  20  Prefactor     .10000E-03    55.764        .76228E-07** at limit **
  21  Prefactor     14.547        12.460       -.12769E-06    .16360E-04
  22  norm          .10000E-03    14.928       -.16005E-06** at limit **
  23  Prefactor     37.368        58.850       -.45801E-06   -.20014E-04
  24  Prefactor     .10000E-03    39.657       -.35447E-06** at limit **
  25  Prefactor     .10000E-03    24.944        .31914E-06** at limit **
  26  norm          6.9894        9.4416        .26716E-05   -.99375E-04
  27  norm          2.3443        .94306        .52539E-07   -.15934E-03
  28  Prefactor     .10000E-03    16.632        .17903E-06** at limit **
  29  Prefactor     .10000E-03    17.435        .18429E-06** at limit **
  30  Normalizat    .81682        .18671        .27662E-06   -.34723E-04
  31  Prefactor     1.0834        .18468       -.60847E-06    .24605E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.7409
  Prefactor  = 5.2055
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 21.4126
  Prefactor  = 64.0763
  Prefactor  = 0.0001
  Prefactor  = 15.6075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.16007
  Prefactor  = 19.0267
  Prefactor  = 0.0001
  Prefactor  = 16.9249
  norm       = 2.94119
  Prefactor  = 0.0001
  Prefactor  = 14.547
  norm       = 0.0001
  Prefactor  = 37.3681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.98942
  norm       = 2.34432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.816823
  Prefactor  = 1.08338
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.408     FROM HESSE     STATUS=OK           622 CALLS     4724 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7409        3.8332        .14003E-03   -1.5321    
   4  Prefactor     5.2055        12.013        .17632E-03   -1.5252    
   5  Prefactor     .10000E-03    32.252        .38377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1963        .12857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    275.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.413        26.620        .86557E-04   -1.4782    
  10  Prefactor     64.076        59.314        .50131E-04   -1.4105    
  11  Prefactor     .10000E-03    20.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.607        14.852        .10138E-03   -1.4918    
  13  Prefactor     .10000E-03    11.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4579        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1601        209.06        .40416E-03   -1.5493    
  16  Prefactor     19.027        10.671        .91830E-04   -1.4835    
  17  Prefactor     .10000E-03    19.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.925        23.148        .97353E-04   -1.4885    
  19  norm          2.9412        3.1809        .13238E-03   -1.5365    
  20  Prefactor     .10000E-03    55.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.547        12.389        .10498E-03   -1.4945    
  22  norm          .10000E-03    15.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.368        58.898        .65557E-04   -1.4485    
  24  Prefactor     .10000E-03    39.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.9894        9.4828        .75883E-03   -1.5179    
  27  norm          2.3443        .93993        .43587E-04   -1.5402    
  28  Prefactor     .10000E-03    17.276        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81682        .21803        .25257E-03   -.99448    
  31  Prefactor     1.0834        .21506        .22811E-03   -.90000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44185e-10
Minuit parameter uncertainties:
  1  6.49353e-05
  2  2.59471e-05
  3  3.83343
  4  12.0182
  5  0.000502654
  6  7.91617e-07
  7  1.74124e-05
  8  0.00271477
  9  26.6344
  10  59.3691
  11  0.000127153
  12  14.8552
  13  1.30431e-05
  14  8.1177e-07
  15  31.2563
  16  10.6722
  17  0.000109782
  18  23.1602
  19  3.18106
  20  8.59458e-05
  21  12.3907
  22  2.91679e-05
  23  58.9902
  24  0.000223654
  25  0.000163098
  26  9.48479
  27  0.93994
  28  1.16218e-05
  29  7.13902e-05
  30  0.218267
  31  0.215227
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.692e+01  2.316e+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:  1.083e+00  2.152e-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.168e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.00e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/458870/likelihoodResults_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.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): 0
logL (Free Index) = 5444.29990065
delta logL = 0.107824617345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5444.29297616
delta logL = 0.114749108631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2666       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4213       1.0000          .0000       10.000    
     3 'Normalizat'    .79758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0934       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=   5444.293     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      297 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2582        36.814        .13166E-03    .79185E-04
   2  Index         2.4201        2.1013        .76771E-02    .50949E-04
   3  Normalizat    .79759        .22470        .25538E-03    .13480E-03
   4  Prefactor     1.0933        .21853        .22720E-03   -.27896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.25824
  Index      = 2.4201
  Normalizat = 0.797593
  Prefactor  = 1.0933
 **********
 **   18 **HESSE 
 **********

 FCN=   5444.293     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2582        21.661        .52662E-05   -1.5099    
   2  Index         2.4201        1.2677        .30709E-03   -.54215    
   3  Normalizat    .79759        .21272        .10215E-04   -1.0016    
   4  Prefactor     1.0933        .21366        .45440E-04   -.89681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07753e-10
Minuit parameter uncertainties:
  1  21.679
  2  1.28698
  3  0.212942
  4  0.213825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458870': 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) = 5444.2929721
delta logL = 0.11475316864

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  9.258e+00  2.168e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  2.420e+00  1.287e+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:  1.093e+00  2.138e-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.976e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 229.436 65.424
Photon Index (Free Index): 2.42 +/- 1.29
Photon Flux (Free Index): 2.48e-08 +/- 4.59e-08
Energy Flux (Free Index): 7.91e-06 +/- 9.31e-06

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/458870/cmap_HighResolution_308534401_308793601_4FGL_J1517.7+6525_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', comment='SUCCESS', photon_flux='1.00e-08', energy_flux2='7.91e-06', photon_flux_error='1.37e-08', dlogl='1.15e-01', energy_flux='1.15e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2021-09-11 23:52:34.928865', photon_index_error2='1.29', photon_index2='2.42', ts='1.05', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='5.41e-08', energy_flux_error2='9.31e-06', EG='0.82', time_epoch_completed='1631429554.93', return_code='0', job_id='458870', GAL2='1.09', EG2='0.80', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.59e-08', ts2='1.28', photon_index='1.82' WHERE bin_id='267' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:52:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 458870: <4FGL_J1517.7+6525_daily_bin267> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin267 229.436 65.424 308534401 308793601 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 :                                   931.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

