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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin730
RA = 229.436, Dec = 65.424
tmin = 428544001, tmax = 428803201
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='461487', job_status='RUN', time_executed='2021-09-11 23:49:42.538377', time_epoch_executed='1631429382.54' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461487/ft1_4FGL_J1517.7+6525_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461487/ft2_4FGL_J1517.7+6525_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461487/ft1_4FGL_J1517.7+6525_daily_bin730.fits outfile=/scratch/kocevski/461487/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin730.fits ra=229.436 dec=65.424 rad=12.0 tmin=428544001.0 tmax=428803201.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.27
user 6.03
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461487/ft1_filtered_4FGL_J1517.7+6525_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/461487/ft2_4FGL_J1517.7+6525_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/461487/ltcube_428544001_428803201_4FGL_J1517.7+6525_daily_bin730.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/461487/ft2_4FGL_J1517.7+6525_daily_bin730.fits
.....................!
real 12.16
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461487/ft1_filtered_4FGL_J1517.7+6525_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/461487/ft2_4FGL_J1517.7+6525_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/461487/ltcube_428544001_428803201_4FGL_J1517.7+6525_daily_bin730.fits outfile=/scratch/kocevski/461487/expmap_428544001_428803201_4FGL_J1517.7+6525_daily_bin730.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/461487/ltcube_428544001_428803201_4FGL_J1517.7+6525_daily_bin730.fits
.....................!
real 190.45
user 184.89
sys 5.21

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/461487/ft1_filtered_4FGL_J1517.7+6525_daily_bin730.fits scfile=/scratch/kocevski/461487/ft2_4FGL_J1517.7+6525_daily_bin730.fits outfile=/scratch/kocevski/461487/cmap_428544001_428803201_4FGL_J1517.7+6525_daily_bin730.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461487/ft1_filtered_4FGL_J1517.7+6525_daily_bin730.fits scfile=/scratch/kocevski/461487/ft2_4FGL_J1517.7+6525_daily_bin730.fits outfile=/scratch/kocevski/461487/cmap_HighResolution_428544001_428803201_4FGL_J1517.7+6525_daily_bin730.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.482       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.3573       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.175       1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.312       1.0000         .10000E-03   10000.    
    19 'norm      '    8.1332       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19985E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9016       1.0000         .10000E-03   10000.    
    22 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.203       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.4983       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17104       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .27777       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2768       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .49966       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2942.889     FROM MIGRAD    STATUS=FAILED      1450 CALLS     4843 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.281        93.813        .90711E-04    .47625E-05
   2  Prefactor     .10000E-03    13.932        .18142E-02** at limit **
   3  Prefactor     5.6878        4.3534        .93794E-04    .95452E-04
   4  Prefactor     .10000E-03    10.511        .17139E-02** at limit **
   5  Prefactor     .10000E-03    2.8747        .89758E-03** at limit **
   6  Prefactor     .10000E-03    12.734        .36285E-03** at limit **
   7  Prefactor     .10000E-03    18.047        .18142E-02** at limit **
   8  Prefactor     .10000E-03    522.21        .18142E-02** at limit **
   9  Prefactor     .10000E-03    28.122        .18142E-02** at limit **
  10  Prefactor     60.424        61.233        .51614E-04    .35242E-05
  11  Prefactor     27.584        78.073        .76257E-04   -.96904E-06
  12  Prefactor     .10000E-03    15.180        .18142E-02** at limit **
  13  Prefactor     48.494        47.148        .57590E-04    .13917E-04
  14  Prefactor     .10000E-03    15.163        .18142E-02** at limit **
  15  Prefactor     .10000E-03    15.433        .18142E-02** at limit **
  16  Prefactor     8.3638        35.456        .13867E-03    .36482E-05
  17  Prefactor     22.168        27.024        .85060E-04    .76183E-05
  18  Prefactor     64.314        63.600        .50041E-04    .26354E-05
  19  norm          8.1300        6.8507        .12562E-03    .91856E-05
  20  Prefactor     .10000E-03    331.28        .18142E-02** at limit **
  21  Prefactor     4.8967        11.634        .18168E-03    .26345E-04
  22  norm          .10000E-03    8.5319        .15454E-02** at limit **
  23  Prefactor     28.113        68.294        .75439E-04   -.39182E-05
  24  Prefactor     .10000E-03    96.911        .18142E-02** at limit **
  25  Prefactor     .10000E-03    29.606        .18142E-02** at limit **
  26  norm          .10000E-03    8.5895        .15501E-02** at limit **
  27  norm          4.5003        2.0192        .37303E-04    .41982E-03
  28  Prefactor     .12161        31.288        .53932E-01    .35435E-02
  29  Prefactor     .30717        89.378        .92349E-01    .14191E-03
  30  Normalizat    1.2764        .29697        .20870E-03    .57852E-04
  31  Prefactor     .50024        .25552        .30075E-03    .41147E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2942.889     FROM SIMPLEX   STATUS=UNCHANGED   1636 CALLS     6479 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.281        93.813        .75321E-06   -1.4829    
   2  Prefactor     .10000E-03    13.932        .51988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6878        4.3534        .75318E-06   -1.5231    
   4  Prefactor     .10000E-03    10.511        .31876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8747        .19901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.734        .26488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.047        .50393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    522.21        .32723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.122        .38976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.424        61.233        .70185E-06   -1.4152    
  11  Prefactor     27.584        78.073        .72718E-06   -1.4657    
  12  Prefactor     .10000E-03    15.180        .48510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.494        47.148        .70998E-06   -1.4314    
  14  Prefactor     .10000E-03    15.163        .17901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.433        .30410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3638        35.456        .75042E-06   -1.5129    
  17  Prefactor     22.168        27.024        .73232E-06   -1.4766    
  18  Prefactor     64.314        63.600        .69938E-06   -1.4102    
  19  norm          8.1300        6.8507        .75078E-06   -1.5138    
  20  Prefactor     .10000E-03    331.28        .12812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8967        11.634        .75711E-06   -1.5265    
  22  norm          .10000E-03    8.5319        .23798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.113        68.294        .72640E-06   -1.4647    
  24  Prefactor     .10000E-03    96.911        .10420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.606        .49225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.5895        .13085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5003        2.0192        .75804E-06   -1.5284    
  28  Prefactor     .12161        31.288        .77554E-06   -1.5638    
  29  Prefactor     .30717        89.378        .77341E-06   -1.5597    
  30  Normalizat    1.2764        .29697        .41797E-06   -.84275    
  31  Prefactor     .50024        .25552        .55531E-06   -1.1197    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2942.889     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     7094 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.281        93.812        .36284E-05   -.27886E-04
   2  Prefactor     .10000E-03    13.933        .36285E-03** at limit **
   3  Prefactor     5.6878        4.3518        .37517E-05   -.55847E-03
   4  Prefactor     .10000E-03    10.512        .34278E-03** at limit **
   5  Prefactor     .10000E-03    2.8747        .17952E-03** at limit **
   6  Prefactor     .10000E-03    12.735        .72569E-04** at limit **
   7  Prefactor     .10000E-03    18.048        .36285E-03** at limit **
   8  Prefactor     .10002E-03    522.21        .36285E-03** at limit **
   9  Prefactor     .10000E-03    28.122        .36285E-03** at limit **
  10  Prefactor     60.424        61.229        .10323E-04   -.20705E-04
  11  Prefactor     27.585        78.108        .30503E-05    .52179E-05
  12  Prefactor     .10000E-03    15.180        .36285E-03** at limit **
  13  Prefactor     48.494        47.093        .23036E-05   -.86366E-04
  14  Prefactor     .10000E-03    15.163        .36285E-03** at limit **
  15  Prefactor     .10000E-03    15.433        .36285E-03** at limit **
  16  Prefactor     8.3639        35.426        .55469E-05   -.26849E-04
  17  Prefactor     22.168        27.020        .34024E-05   -.62149E-04
  18  Prefactor     64.314        63.605        .10008E-04   -.21242E-04
  19  norm          8.1300        6.8499        .50249E-05   -.93440E-04
  20  Prefactor     .10000E-03    331.32        .36285E-03** at limit **
  21  Prefactor     4.8966        11.633        .72670E-05   -.16035E-03
  22  norm          .10000E-03    8.5321        .30909E-03** at limit **
  23  Prefactor     28.113        68.273        .30176E-05    .13186E-04
  24  Prefactor     .10000E-03    96.913        .36285E-03** at limit **
  25  Prefactor     .10000E-03    29.606        .36285E-03** at limit **
  26  norm          .10000E-03    8.5902        .31002E-03** at limit **
  27  norm          4.5003        1.9781        .14921E-05   -.13041E-02
  28  Prefactor     .12211        8.1880        .12873       -.39575E-04
  29  Prefactor     .30640        75.914        .99680E-01    .93355E-04
  30  Normalizat    1.2763        .29587        .41739E-04   -.74132E-03
  31  Prefactor     .50023        .25568        .12030E-04   -.49341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2814
  Prefactor  = 0.0001
  Prefactor  = 5.6878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 60.4237
  Prefactor  = 27.5846
  Prefactor  = 0.0001
  Prefactor  = 48.494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.36392
  Prefactor  = 22.1678
  Prefactor  = 64.3139
  norm       = 8.12998
  Prefactor  = 0.000100005
  Prefactor  = 4.89664
  norm       = 0.0001
  Prefactor  = 28.1132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.5003
  Prefactor  = 0.122106
  Prefactor  = 0.3064
  Normalizat = 1.27635
  Prefactor  = 0.500235
 **********
 **   18 **HESSE 
 **********

 FCN=   2942.889     FROM HESSE     STATUS=OK           606 CALLS     7700 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.281        93.799        .72569E-05   -1.4829    
   2  Prefactor     .10000E-03    13.933        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6878        4.3537        .75035E-06   -1.5231    
   4  Prefactor     .10000E-03    10.512        .68556E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8747        .35903E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.735        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.048        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    522.23        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.122        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.424        61.250        .20646E-05   -1.4152    
  11  Prefactor     27.585        79.173        .61006E-06   -1.4657    
  12  Prefactor     .10000E-03    15.180        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.494        47.424        .46072E-06   -1.4314    
  14  Prefactor     .10000E-03    15.163        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.433        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3639        35.974        .11094E-05   -1.5129    
  17  Prefactor     22.168        27.029        .68048E-06   -1.4766    
  18  Prefactor     64.314        63.587        .20017E-05   -1.4102    
  19  norm          8.1300        6.8526        .10050E-05   -1.5138    
  20  Prefactor     .10000E-03    331.32        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8966        11.636        .14534E-05   -1.5265    
  22  norm          .10000E-03    8.5321        .61818E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.113        69.461        .60351E-06   -1.4647    
  24  Prefactor     .10000E-03    96.913        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.606        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.5903        .62004E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5003        1.9981        .36439E-06   -1.5284    
  28  Prefactor     .12211        407.65        .28306E-02   -1.5638    
  29  Prefactor     .30640        81.157        .97047E-01   -1.5597    
  30  Normalizat    1.2763        .29768        .83478E-05   -.84275    
  31  Prefactor     .50023        .25597        .24060E-05   -1.1197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3967e-09
Minuit parameter uncertainties:
  1  85.2708
  2  0.000108919
  3  4.35396
  4  6.9332e-05
  5  5.58086e-06
  6  6.38899e-05
  7  8.91559e-06
  8  0.00672047
  9  5.96371e-05
  10  61.3142
  11  79.477
  12  8.83129e-06
  13  47.4608
  14  4.62205e-05
  15  3.04341e-05
  16  34.7274
  17  27.0439
  18  63.6541
  19  6.8533
  20  0.00250389
  21  11.6418
  22  7.7899e-05
  23  69.6616
  24  6.8786e-05
  25  3.64525e-05
  26  5.20591e-06
  27  1.99809
  28  14.2024
  29  9.98534
  30  0.298076
  31  0.256565
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  6.431e+01  6.365e+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:  5.002e-01  2.566e-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:  1.276e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.27
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 4.35e-05 +/- 4.31e-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) = 2942.8570726
delta logL = 0.032106728233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2942.85674805
delta logL = 0.0324312738212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.032       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9921       1.0000          .0000       10.000    
     3 'Normalizat'    1.2700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50247       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=   2942.857     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      292 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.992        102.71        .27284E-03    .79379E-05
   2  Index         1.9912        1.0571        .27970E-01    .80887E-04
   3  Normalizat    1.2700        .26739        .20908E-03    .15616E-04
   4  Prefactor     .50260        .24848        .30001E-03   -.58546E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.9921
  Index      = 1.99122
  Normalizat = 1.27
  Prefactor  = 0.502604
 **********
 **   18 **HESSE 
 **********

 FCN=   2942.857     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.992        66.526        .10913E-04   -1.4237    
   2  Index         1.9912        .69243        .65734E-03   -.64570    
   3  Normalizat    1.2700        .26451        .41817E-04   -.84466    
   4  Prefactor     .50260        .24772        .12001E-04   -1.1186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83026e-12
Minuit parameter uncertainties:
  1  66.618
  2  0.695944
  3  0.264796
  4  0.248258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461487': 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) = 2942.85674473
delta logL = 0.0324345980907

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  5.399e+01  6.662e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.991e+00  6.959e-01  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:  5.026e-01  2.483e-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:  1.270e+00  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.34
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.99 +/- 0.70
Photon Flux (Free Index): 4.80e-08 +/- 5.89e-08
Energy Flux (Free Index): 3.39e-05 +/- 4.32e-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/461487/cmap_HighResolution_428544001_428803201_4FGL_J1517.7+6525_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='3.39e-05', photon_flux_error='3.77e-08', dlogl='3.24e-02', energy_flux='4.35e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-12 00:01:58.556030', photon_index_error2='0.70', photon_index2='1.99', ts='5.27', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='4.32e-05', EG='1.28', time_epoch_completed='1631430118.56', return_code='0', job_id='461487', GAL2='0.50', EG2='1.27', return_code2='0', energy_flux_error='4.31e-05', photon_flux_error2='5.89e-08', ts2='5.34', photon_index='1.82' WHERE bin_id='730' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:01:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 461487: <4FGL_J1517.7+6525_daily_bin730> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin730 229.436 65.424 428544001 428803201 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 :                                   734.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

