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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin652
RA = 229.436, Dec = 65.424
tmin = 408326401, tmax = 408585601
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='460405', job_status='RUN', time_executed='2021-09-11 23:45:21.079688', time_epoch_executed='1631429121.08' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460405/ft1_4FGL_J1517.7+6525_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460405/ft2_4FGL_J1517.7+6525_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460405/ft1_4FGL_J1517.7+6525_daily_bin652.fits outfile=/scratch/kocevski/460405/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin652.fits ra=229.436 dec=65.424 rad=12.0 tmin=408326401.0 tmax=408585601.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 4.87
user 4.62
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460405/ft1_filtered_4FGL_J1517.7+6525_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/460405/ft2_4FGL_J1517.7+6525_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/460405/ltcube_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.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/460405/ft2_4FGL_J1517.7+6525_daily_bin652.fits
.....................!
real 11.99
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460405/ft1_filtered_4FGL_J1517.7+6525_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/460405/ft2_4FGL_J1517.7+6525_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/460405/ltcube_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.fits outfile=/scratch/kocevski/460405/expmap_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.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/460405/ltcube_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.fits
.....................!
real 191.18
user 185.97
sys 4.90

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/460405/ft1_filtered_4FGL_J1517.7+6525_daily_bin652.fits scfile=/scratch/kocevski/460405/ft2_4FGL_J1517.7+6525_daily_bin652.fits outfile=/scratch/kocevski/460405/cmap_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460405/ft1_filtered_4FGL_J1517.7+6525_daily_bin652.fits scfile=/scratch/kocevski/460405/ft2_4FGL_J1517.7+6525_daily_bin652.fits outfile=/scratch/kocevski/460405/cmap_HighResolution_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460405/ft1_filtered_4FGL_J1517.7+6525_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/460405/ft2_4FGL_J1517.7+6525_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460405/Model_4FGL_J1517.7+6525_daily_bin652.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/460405/ft1_filtered_4FGL_J1517.7+6525_daily_bin652.fits.....................!
real 34.84
user 33.58
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    120.37       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.045       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.556       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.795       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.2896       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12409E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4478       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .36828       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=   2889.761     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4708 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.13       -.14000E-04** at limit **
   2  Prefactor     .10000E-03    22.791        .37473E-05** at limit **
   3  Prefactor     .10000E-03    10.663       -.36136E-06** at limit **
   4  Prefactor     10.122        25.448       -.13415E-05   -.25782E-04
   5  Prefactor     .10000E-03    15.826        .25871E-06** at limit **
   6  Prefactor     .10000E-03    6.1466       -.70451E-07** at limit **
   7  Prefactor     .10000E-03    26.431        .95800E-05** at limit **
   8  Prefactor     119.63        1022.8       -.67611E-03    .54694E-05
   9  Prefactor     .10000E-03    71.980        .17630E-04** at limit **
  10  Prefactor     .10000E-03    38.576        .17119E-04** at limit **
  11  Prefactor     9.1358        115.39        .72889E-05   -.21773E-04
  12  Prefactor     .10000E-03    9.9287       -.95432E-06** at limit **
  13  Prefactor     .10000E-03    33.347       -.21898E-04** at limit **
  14  Prefactor     .10000E-03    6.5131       -.46066E-07** at limit **
  15  Prefactor     49.057        83.025        .92903E-05    .97560E-07
  16  Prefactor     11.639        10.954       -.55469E-06   -.64312E-04
  17  Prefactor     10.441        23.469       -.38458E-05   -.39918E-03
  18  Prefactor     .10000E-03    80.657       -.13061E-04** at limit **
  19  norm          .10000E-03    3.8642       -.22027E-06** at limit **
  20  Prefactor     .10000E-03    135.07        .52544E-04** at limit **
  21  Prefactor     .10000E-03    9.9374        .51258E-06** at limit **
  22  norm          17.556        12.498       -.59035E-06   -.78869E-04
  23  Prefactor     30.794        44.342       -.16495E-05   -.55395E-04
  24  Prefactor     .10000E-03    86.491       -.24589E-04** at limit **
  25  Prefactor     .10000E-03    22.217       -.67392E-05** at limit **
  26  norm          .10000E-03    8.4284       -.19255E-06** at limit **
  27  norm          2.2893        1.4022       -.13133E-06    .20691E-02
  28  Prefactor     .10000E-03    10.080        .41840E-06** at limit **
  29  Prefactor     .10000E-03    353.26       -.47100E-04** at limit **
  30  Normalizat    1.4479        .25119       -.96263E-07    .10180E-03
  31  Prefactor     .36819        .23482        .10910E-04    .51290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 119.634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.13582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.0574
  Prefactor  = 11.6385
  Prefactor  = 10.4411
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5565
  Prefactor  = 30.7937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.28932
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.44791
  Prefactor  = 0.368187
 **********
 **   18 **HESSE 
 **********

 FCN=   2889.761     FROM HESSE     STATUS=OK           606 CALLS     5314 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.987        .34218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.122        25.588        .12591E-03   -1.5072    
   5  Prefactor     .10000E-03    15.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1705        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     119.63        1026.8        .18340E-03   -1.3516    
   9  Prefactor     .10000E-03    72.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1358        115.05        .13265E-03   -1.5103    
  12  Prefactor     .10000E-03    9.9302        .16545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5204        .13398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.057        83.017        .57260E-04   -1.4306    
  16  Prefactor     11.639        10.984        .11743E-03   -1.5026    
  17  Prefactor     10.441        23.560        .61989E-03   -1.5062    
  18  Prefactor     .10000E-03    80.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0421        .20625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    135.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.9743        .16523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.556        12.485        .95589E-04   -1.4870    
  23  Prefactor     30.794        44.328        .36101E-03   -1.4598    
  24  Prefactor     .10000E-03    86.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.4808        .15240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.2893        1.3807        .47093E-04   -1.5405    
  28  Prefactor     .10000E-03    10.144        .16660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    361.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4479        .27256        .19007E-03   -.79253    
  31  Prefactor     .36819        .25021        .33966E-03   -1.1846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37263e-09
Minuit parameter uncertainties:
  1  4.27805e-05
  2  5.819e-06
  3  3.11144e-05
  4  25.6157
  5  3.69554e-05
  6  2.00705e-05
  7  1.01054e-05
  8  718.234
  9  0.000111144
  10  3.80142e-05
  11  64.9961
  12  2.7157e-07
  13  8.1033e-05
  14  1.19592e-05
  15  83.2132
  16  10.9859
  17  23.5806
  18  0.000113298
  19  4.08648e-05
  20  0.000315308
  21  2.14746e-05
  22  12.4873
  23  44.3751
  24  4.42055e-05
  25  1.88742e-05
  26  5.19673e-05
  27  1.38072
  28  3.43291e-05
  29  0.00155557
  30  0.272835
  31  0.250948
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.133e-04  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:  3.682e-01  2.509e-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.448e+00  2.728e-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: 8.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460405/likelihoodResults_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.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) = 2889.76083741
delta logL = -5.87886756875e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2889.76077877
delta logL = -1.46264937939e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2889.761     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6357.5        .90712E-02** at limit **
   2  Index         1.8697        7.3695        .50000       -.13825E-04
   3  Normalizat    1.4479        .30845E-01    .30575E-01   -.70051E-03
   4  Prefactor     .36819        .29555E-01    .76682E-01   -.17171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.8697
  Normalizat = 1.4479
  Prefactor  = 0.368191
 **********
 **   18 **HESSE 
 **********

 FCN=   2889.761     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7121.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8697        5.7644        .50000       -.67649    
   3  Normalizat    1.4479        .40660E-01    .19007E-03   -.79253    
   4  Prefactor     .36819        .38850E-01    .33965E-03   -1.1846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30338e-08
Minuit parameter uncertainties:
  1  0.00451014
  2  26.5361
  3  0.0406612
  4  0.0388531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460405': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2889.76077844
delta logL = 1.75822606252e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.510e-03  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.870e+00  2.654e+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:  3.682e-01  3.885e-02  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.448e+00  4.066e-02  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/460405/cmap_HighResolution_408326401_408585601_4FGL_J1517.7+6525_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.58e-08', time_completed='2021-09-11 23:56:32.256179', job_id='460405', GAL2='0.37', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631429792.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.37', dlogl='1.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='652' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:56:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 460405: <4FGL_J1517.7+6525_daily_bin652> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin652> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:41:41 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:41:42 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:41:42 2021
Terminated at Sat Sep 11 23:56:32 2021
Results reported at Sat Sep 11 23:56:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin652 229.436 65.424 408326401 408585601 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 :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             230.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

