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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin731
RA = 229.436, Dec = 65.424
tmin = 428803201, tmax = 429062401
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='461489', job_status='RUN', time_executed='2021-09-11 23:49:50.740477', time_epoch_executed='1631429390.74' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461489/ft1_4FGL_J1517.7+6525_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461489/ft2_4FGL_J1517.7+6525_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461489/ft1_4FGL_J1517.7+6525_daily_bin731.fits outfile=/scratch/kocevski/461489/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin731.fits ra=229.436 dec=65.424 rad=12.0 tmin=428803201.0 tmax=429062401.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.58
user 6.27
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461489/ft1_filtered_4FGL_J1517.7+6525_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/461489/ft2_4FGL_J1517.7+6525_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/461489/ltcube_428803201_429062401_4FGL_J1517.7+6525_daily_bin731.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/461489/ft2_4FGL_J1517.7+6525_daily_bin731.fits
.....................!
real 12.04
user 11.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461489/ft1_filtered_4FGL_J1517.7+6525_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/461489/ft2_4FGL_J1517.7+6525_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/461489/ltcube_428803201_429062401_4FGL_J1517.7+6525_daily_bin731.fits outfile=/scratch/kocevski/461489/expmap_428803201_429062401_4FGL_J1517.7+6525_daily_bin731.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/461489/ltcube_428803201_429062401_4FGL_J1517.7+6525_daily_bin731.fits
.....................!
real 191.76
user 186.89
sys 4.32

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/461489/ft1_filtered_4FGL_J1517.7+6525_daily_bin731.fits scfile=/scratch/kocevski/461489/ft2_4FGL_J1517.7+6525_daily_bin731.fits outfile=/scratch/kocevski/461489/cmap_428803201_429062401_4FGL_J1517.7+6525_daily_bin731.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.57
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.155       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14227E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.649       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    111.69       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3414       1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    153.43       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.019       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.882       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.4430       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.6820       1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.327       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .62928       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98810       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=   2578.071     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     4083 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.361        .21331E-04** at limit **
   2  Prefactor     .10000E-03    46.705       -.94289E-05** at limit **
   3  Prefactor     7.8021        12.673       -.52718E-06    .34064E-03
   4  Prefactor     26.152        26.404        .22267E-05    .12999E-03
   5  Prefactor     .10000E-03    42.631       -.24386E-04** at limit **
   6  Prefactor     .10000E-03    3.7807        .74513E-07** at limit **
   7  Prefactor     .10000E-03    36.975       -.18856E-06** at limit **
   8  Prefactor     .10000E-03    799.91       -.78752E-05** at limit **
   9  Prefactor     55.230        96.469        .99056E-04    .97256E-04
  10  Prefactor     41.648        72.248        .16992E-05   -.53002E-05
  11  Prefactor     .10002E-03    77.675       -.57779E-04** at limit **
  12  Prefactor     .10000E-03    18.048        .10516E-06** at limit **
  13  Prefactor     111.69        59.083        .39874E-05   -.17170E-04
  14  Prefactor     .10000E-03    30.291       -.84094E-05** at limit **
  15  Prefactor     .10000E-03    56.452        .33802E-04** at limit **
  16  Prefactor     2.3263        55.139       -.21395E-04   -.10015E-03
  17  Prefactor     54.709        39.304        .17913E-05   -.39533E-04
  18  Prefactor     .10000E-03    32.392        .17688E-04** at limit **
  19  norm          .10000E-03    2.0362        .65574E-07** at limit **
  20  Prefactor     153.43        144.10        .14223E-05   -.43197E-05
  21  Prefactor     17.019        12.864        .64416E-06    .47917E-05
  22  norm          .10000E-03    9.6853        .22448E-06** at limit **
  23  Prefactor     46.893        51.379        .75023E-07   -.89609E-05
  24  Prefactor     .10000E-03    121.46        .38320E-04** at limit **
  25  Prefactor     .10000E-03    27.007       -.11647E-05** at limit **
  26  norm          5.4417        10.879        .11246E-04   -.98037E-04
  27  norm          .10000E-03    .39522       -.10608E-06** at limit **
  28  Prefactor     7.6804        10.855        .96180E-05   -.95987E-04
  29  Prefactor     21.318        26.661        .33539E-05   -.46930E-05
  30  Normalizat    .62878        .27490       -.12805E-04    .26427E-03
  31  Prefactor     .98860        .24248       -.60890E-06    .53889E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.80207
  Prefactor  = 26.1522
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.2296
  Prefactor  = 41.6479
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 111.686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.32627
  Prefactor  = 54.7087
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 153.426
  Prefactor  = 17.0189
  norm       = 0.0001
  Prefactor  = 46.8926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.44169
  norm       = 0.0001
  Prefactor  = 7.68043
  Prefactor  = 21.318
  Normalizat = 0.628781
  Prefactor  = 0.988604
 **********
 **   18 **HESSE 
 **********

 FCN=   2578.071     FROM HESSE     STATUS=OK           606 CALLS     4689 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8021        12.633        .14357E-03   -1.5149    
   4  Prefactor     26.152        26.384        .78331E-04   -1.4685    
   5  Prefactor     .10000E-03    42.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7913        .96421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    799.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.230        96.962        .27025E-03   -1.4220    
  10  Prefactor     41.648        72.250        .62115E-04   -1.4416    
  11  Prefactor     .10002E-03    78.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     111.69        59.143        .38062E-04   -1.3590    
  14  Prefactor     .10000E-03    30.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3263        55.476        .26794E-03   -1.5403    
  17  Prefactor     54.709        39.446        .54233E-04   -1.4227    
  18  Prefactor     .10000E-03    32.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0393        .70738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     153.43        144.20        .32544E-04   -1.3224    
  21  Prefactor     17.019        12.853        .97086E-04   -1.4883    
  22  norm          .10000E-03    9.7286        .15410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.893        51.412        .58560E-04   -1.4337    
  24  Prefactor     .10000E-03    121.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.4417        10.842        .17223E-03   -1.5241    
  27  norm          .10000E-03    .40150        .31073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.6804        10.824        .14468E-03   -1.5154    
  29  Prefactor     21.318        26.646        .86732E-04   -1.4784    
  30  Normalizat    .62878        .31805        .28150E-03   -1.0678    
  31  Prefactor     .98860        .28286        .22585E-03   -.93110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09929e-09
Minuit parameter uncertainties:
  1  3.7787e-05
  2  0.000113239
  3  12.6378
  4  26.3962
  5  0.000529194
  6  1.18304e-05
  7  4.03735e-05
  8  0.000211646
  9  97.2413
  10  72.4026
  11  0.00233669
  12  1.38009e-05
  13  59.1742
  14  7.5456e-05
  15  0.000111684
  16  22.7434
  17  39.4647
  18  2.7205e-05
  19  1.06801e-05
  20  144.535
  21  12.8552
  22  8.88942e-05
  23  51.461
  24  0.000101989
  25  7.46124e-07
  26  10.8456
  27  6.72767e-06
  28  10.8264
  29  26.6604
  30  0.318979
  31  0.283286
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.720e-05  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.886e-01  2.833e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  6.288e-01  3.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/461489/likelihoodResults_428803201_429062401_4FGL_J1517.7+6525_daily_bin731.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2578.07070253
delta logL = -0.000146885172853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2577.94633083
delta logL = 0.124224816167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5203       1.0000         .10000E-03   10000.    
     2 'Index     '    .12225E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .60687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0045       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=   2577.946     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      340 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4249        8.4097         .0000        .34166E-02
   2  Index         .81097E-06    6.5960         .0000    ** at limit **
   3  Normalizat    .60338        .24269         .0000        .11818E-03
   4  Prefactor     1.0079        .23997         .0000        .65468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42486
  Index      = 8.10965e-07
  Normalizat = 0.603378
  Prefactor  = 1.00792
 **********
 **   18 **HESSE 
 **********

 FCN=   2577.946     FROM HESSE     STATUS=OK            35 CALLS      375 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4249        8.1931        .10773E-02   -1.5338    
   2  Index         .81097E-06    6.5335        .50000       -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .60338        .27773        .28755E-03   -1.0784    
   4  Prefactor     1.0079        .27470        .22408E-03   -.92466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21537e-10
Minuit parameter uncertainties:
  1  8.19576
  2  0.00334441
  3  0.27837
  4  0.275086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461489': 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) = 2577.9462152
delta logL = 0.124340443567

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  3.425e+00  8.196e+00  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  8.110e-07  3.344e-03  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.008e+00  2.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  6.034e-01  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.436 65.424

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/461489/cmap_HighResolution_428803201_429062401_4FGL_J1517.7+6525_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-11 23:59:54.969373', job_id='461489', GAL2='1.01', fit_tolerance='1e-08', EG2='0.60', EG='0.63', time_epoch_completed='1631429994.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.24e-01', ts2='0.26', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='731' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:59:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 461489: <4FGL_J1517.7+6525_daily_bin731> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin731> 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) <bullet0237>, 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 Sat Sep 11 23:59:55 2021
Results reported at Sat Sep 11 23:59:55 2021

Your job looked like:

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

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

