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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin905
RA = 229.436, Dec = 65.424
tmin = 473904001, tmax = 474163201
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='461730', job_status='RUN', time_executed='2021-09-11 23:48:11.695563', time_epoch_executed='1631429291.7' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461730/ft1_4FGL_J1517.7+6525_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461730/ft2_4FGL_J1517.7+6525_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461730/ft1_4FGL_J1517.7+6525_daily_bin905.fits outfile=/scratch/kocevski/461730/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin905.fits ra=229.436 dec=65.424 rad=12.0 tmin=473904001.0 tmax=474163201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.10
user 4.83
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461730/ft1_filtered_4FGL_J1517.7+6525_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/461730/ft2_4FGL_J1517.7+6525_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/461730/ltcube_473904001_474163201_4FGL_J1517.7+6525_daily_bin905.fits outfile=/scratch/kocevski/461730/expmap_473904001_474163201_4FGL_J1517.7+6525_daily_bin905.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/461730/ltcube_473904001_474163201_4FGL_J1517.7+6525_daily_bin905.fits
.....................!
real 190.29
user 185.30
sys 4.66

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/461730/ft1_filtered_4FGL_J1517.7+6525_daily_bin905.fits scfile=/scratch/kocevski/461730/ft2_4FGL_J1517.7+6525_daily_bin905.fits outfile=/scratch/kocevski/461730/cmap_473904001_474163201_4FGL_J1517.7+6525_daily_bin905.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/461730/ft1_filtered_4FGL_J1517.7+6525_daily_bin905.fits scfile=/scratch/kocevski/461730/ft2_4FGL_J1517.7+6525_daily_bin905.fits outfile=/scratch/kocevski/461730/cmap_HighResolution_473904001_474163201_4FGL_J1517.7+6525_daily_bin905.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.52
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461730/ft1_filtered_4FGL_J1517.7+6525_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/461730/ft2_4FGL_J1517.7+6525_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461730/Model_4FGL_J1517.7+6525_daily_bin905.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/461730/ft1_filtered_4FGL_J1517.7+6525_daily_bin905.fits......................!
real 37.08
user 35.87
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1421       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11637E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12390E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .86375       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.9290       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4713       1.0000         .10000E-03   10000.    
    22 'norm      '    10.138       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    107.57       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.927       1.0000         .10000E-03   10000.    
    26 'norm      '    8.0608       1.0000         .10000E-03   10000.    
    27 'norm      '    1.5796       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .43053       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .68322       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=   3674.948     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4103 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.417       -.20529E-06** at limit **
   2  Prefactor     .10000E-03    42.021       -.52360E-08** at limit **
   3  Prefactor     1.1312        10.730        .33640E-05   -.23928E-04
   4  Prefactor     2.1525        40.750        .39315E-06   -.19017E-04
   5  Prefactor     .10000E-03    12.925       -.74366E-06** at limit **
   6  Prefactor     .10000E-03    6.7981        .13442E-07** at limit **
   7  Prefactor     .10000E-03    33.026        .67907E-09** at limit **
   8  Prefactor     .10000E-03    286.32       -.41949E-06** at limit **
   9  Prefactor     25.359        31.743        .28172E-07   -.96116E-05
  10  Prefactor     .10000E-03    29.538       -.15396E-06** at limit **
  11  Prefactor     56.109        49.804       -.22435E-08   -.27268E-05
  12  Prefactor     .10000E-03    21.628        .20518E-06** at limit **
  13  Prefactor     .10000E-03    110.62        .15634E-05** at limit **
  14  Prefactor     .10000E-03    3.0699       -.28685E-07** at limit **
  15  Prefactor     12.707        61.026        .16264E-07   -.26304E-04
  16  Prefactor     .86367        8.4988        .28329E-05   -.14023E-04
  17  Prefactor     .10000E-03    15.373        .12536E-06** at limit **
  18  Prefactor     .10000E-03    21.821        .10233E-06** at limit **
  19  norm          9.9289        4.5877       -.10991E-07   -.43570E-04
  20  Prefactor     .10000E-03    38.214        .18921E-06** at limit **
  21  Prefactor     2.4717        8.7955        .11684E-05   -.51368E-05
  22  norm          10.138        9.1584       -.34347E-06   -.38541E-04
  23  Prefactor     .10000E-03    78.889       -.37570E-06** at limit **
  24  Prefactor     107.57        111.42        .20859E-06    .31266E-05
  25  Prefactor     26.926        33.508        .99871E-07   -.14368E-05
  26  norm          8.0605        9.6911        .15208E-06   -.43206E-05
  27  norm          1.5795        .95548       -.44338E-07   -.14244E-04
  28  Prefactor     .43425        5.3379        .79519E-08    .94410E-04
  29  Prefactor     .10000E-03    22.747       -.62352E-07** at limit **
  30  Normalizat    1.0390        .20475       -.96118E-06   -.10563E-03
  31  Prefactor     .68317        .19449       -.23260E-06   -.97410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1312
  Prefactor  = 2.1525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3592
  Prefactor  = 0.0001
  Prefactor  = 56.1091
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.7067
  Prefactor  = 0.863671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.92891
  Prefactor  = 0.0001
  Prefactor  = 2.4717
  norm       = 10.1379
  Prefactor  = 0.0001
  Prefactor  = 107.575
  Prefactor  = 26.9259
  norm       = 8.06047
  norm       = 1.57951
  Prefactor  = 0.434254
  Prefactor  = 0.0001
  Normalizat = 1.03896
  Prefactor  = 0.683172
 **********
 **   18 **HESSE 
 **********

 FCN=   3674.948     FROM HESSE     STATUS=OK           620 CALLS     4723 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1312        10.905        .36429E-03   -1.5495    
   4  Prefactor     2.1525        40.506        .28044E-03   -1.5415    
   5  Prefactor     .10000E-03    13.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8314        .15436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    286.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.359        31.782        .79518E-04   -1.4700    
  10  Prefactor     .10000E-03    29.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.109        49.796        .53555E-04   -1.4208    
  12  Prefactor     .10000E-03    21.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    111.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0716        .10373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.707        61.271        .11201E-03   -1.4995    
  16  Prefactor     .86367        8.4959        .33737E-03   -1.5522    
  17  Prefactor     .10000E-03    15.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.9289        4.5935        .84739E-04   -1.5078    
  20  Prefactor     .10000E-03    38.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4717        8.6858        .26011E-03   -1.5394    
  22  norm          10.138        9.0472        .12584E-03   -1.5071    
  23  Prefactor     .10000E-03    79.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     107.57        111.45        .19388E-03   -1.3630    
  25  Prefactor     26.926        33.497        .77202E-04   -1.4670    
  26  norm          8.0605        9.6670        .14122E-03   -1.5140    
  27  norm          1.5795        .94458        .41836E-04   -1.5457    
  28  Prefactor     .43425        26.517        .25515E-02   -1.5576    
  29  Prefactor     .10000E-03    22.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0390        .23608        .21173E-03   -.91736    
  31  Prefactor     .68317        .22473        .25412E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77618e-10
Minuit parameter uncertainties:
  1  9.51907e-05
  2  1.55224e-05
  3  7.02565
  4  18.6892
  5  0.000103221
  6  2.33672e-06
  7  1.68784e-05
  8  0.000752292
  9  31.8036
  10  5.95457e-05
  11  49.8326
  12  3.82897e-05
  13  0.00079335
  14  3.94234e-06
  15  55.8977
  16  5.41832
  17  4.9833e-06
  18  2.40556e-05
  19  4.59367
  20  9.47155e-05
  21  8.69019
  22  9.04845
  23  0.000248124
  24  111.663
  25  33.5208
  26  9.6689
  27  0.944593
  28  6.78913
  29  1.27018e-05
  30  0.236319
  31  0.225031
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.406e-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:  6.832e-01  2.250e-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.039e+00  2.363e-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: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461730/likelihoodResults_473904001_474163201_4FGL_J1517.7+6525_daily_bin905.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) = 3674.94814642
delta logL = -0.000217688954763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3674.94793005
delta logL = -1.31798242364e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2830       1.0000          .0000       10.000    
     3 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68317       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=   3674.948     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      270 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10433E-03    .87064        .18142E-01** at limit **
   2  Index         2.1709        6.9288        .50000        .14257E-04
   3  Normalizat    1.0390        .11282E-02    .21173E-03   -.80004E-05
   4  Prefactor     .68317        .11247E-02    .25412E-03   -.87238E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010433
  Index      = 2.17087
  Normalizat = 1.03896
  Prefactor  = 0.683172
 **********
 **   18 **HESSE 
 **********

 FCN=   3674.948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10433E-03    72.142        .23750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1709        5.4888        .50000       -.60143    
   3  Normalizat    1.0390        .10284E-01    .84693E-05   -.91736    
   4  Prefactor     .68317        .10252E-01    .10165E-04   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.69455e-09
Minuit parameter uncertainties:
  1  0.0353912
  2  337.83
  3  0.0102837
  4  0.0102516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461730': 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) = 3674.94792965
delta logL = -9.25223503145e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.043e-04  3.539e-02  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  2.171e+00  3.378e+02  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:  6.832e-01  1.025e-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.039e+00  1.028e-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/461730/cmap_HighResolution_473904001_474163201_4FGL_J1517.7+6525_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-12 00:00:24.595982', job_id='461730', GAL2='0.68', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631430024.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-9.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='905' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:00:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 461730: <4FGL_J1517.7+6525_daily_bin905> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin905 229.436 65.424 473904001 474163201 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

