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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin765
RA = 229.436, Dec = 65.424
tmin = 437616001, tmax = 437875201
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='461527', job_status='RUN', time_executed='2021-09-11 23:49:06.546131', time_epoch_executed='1631429346.55' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461527/ft1_4FGL_J1517.7+6525_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461527/ft2_4FGL_J1517.7+6525_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461527/ft1_4FGL_J1517.7+6525_daily_bin765.fits outfile=/scratch/kocevski/461527/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin765.fits ra=229.436 dec=65.424 rad=12.0 tmin=437616001.0 tmax=437875201.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.59
user 5.29
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461527/ft1_filtered_4FGL_J1517.7+6525_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/461527/ft2_4FGL_J1517.7+6525_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/461527/ltcube_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.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/461527/ft2_4FGL_J1517.7+6525_daily_bin765.fits
.....................!
real 12.08
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461527/ft1_filtered_4FGL_J1517.7+6525_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/461527/ft2_4FGL_J1517.7+6525_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/461527/ltcube_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.fits outfile=/scratch/kocevski/461527/expmap_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.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/461527/ltcube_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.fits
.....................!
real 190.94
user 185.40
sys 5.17

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/461527/ft1_filtered_4FGL_J1517.7+6525_daily_bin765.fits scfile=/scratch/kocevski/461527/ft2_4FGL_J1517.7+6525_daily_bin765.fits outfile=/scratch/kocevski/461527/cmap_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.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/461527/ft1_filtered_4FGL_J1517.7+6525_daily_bin765.fits scfile=/scratch/kocevski/461527/ft2_4FGL_J1517.7+6525_daily_bin765.fits outfile=/scratch/kocevski/461527/cmap_HighResolution_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461527/ft1_filtered_4FGL_J1517.7+6525_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/461527/ft2_4FGL_J1517.7+6525_daily_bin765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461527/Model_4FGL_J1517.7+6525_daily_bin765.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/461527/ft1_filtered_4FGL_J1517.7+6525_daily_bin765.fits.....................!
real 37.87
user 36.57
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1145       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32408E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.627       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.530       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4625       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    290.95       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.435       1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.1565       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0865       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83324       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=   3282.054     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4144 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.60       -.25446E-05** at limit **
   2  Prefactor     .10000E-03    12.651       -.59433E-06** at limit **
   3  Prefactor     .10000E-03    3.8267        .96901E-07** at limit **
   4  Prefactor     3.1151        19.451        .17136E-04   -.63483E-04
   5  Prefactor     .10000E-03    12.419        .37826E-06** at limit **
   6  Prefactor     .10000E-03    4.2454       -.13227E-07** at limit **
   7  Prefactor     7.4241        28.032        .34798E-06   -.61917E-06
   8  Prefactor     .10004E-03    308.74        .17305E-04** at limit **
   9  Prefactor     .10000E-03    24.379        .17688E-05** at limit **
  10  Prefactor     .10000E-03    46.295       -.30871E-05** at limit **
  11  Prefactor     .10000E-03    30.708        .89134E-06** at limit **
  12  Prefactor     .10000E-03    35.731        .14473E-05** at limit **
  13  Prefactor     19.624        28.816        .61946E-06   -.12070E-04
  14  Prefactor     .10000E-03    10.149        .55095E-07** at limit **
  15  Prefactor     38.525        58.738        .15274E-05    .19254E-04
  16  Prefactor     .10000E-03    11.940        .15756E-06** at limit **
  17  Prefactor     28.199        37.111       -.18433E-06    .88794E-04
  18  Prefactor     3.9825        580.20       -.55817E-05   -.28765E-04
  19  norm          5.1627        5.1544       -.25838E-07    .23511E-05
  20  Prefactor     290.95        221.82        .11711E-05   -.68094E-05
  21  Prefactor     .10000E-03    25.446       -.24573E-05** at limit **
  22  norm          .10000E-03    17.621        .65797E-07** at limit **
  23  Prefactor     .10000E-03    38.469       -.41133E-06** at limit **
  24  Prefactor     .10000E-03    108.33       -.10755E-05** at limit **
  25  Prefactor     18.518        54.839       -.94276E-05   -.77536E-04
  26  norm          .10000E-03    56.216        .59883E-05** at limit **
  27  norm          .10000E-03    .37352       -.13182E-05** at limit **
  28  Prefactor     4.1593        11.210        .25863E-05    .11842E-03
  29  Prefactor     .10000E-03    7.5093       -.23737E-06** at limit **
  30  Normalizat    1.0863        .23182       -.59307E-05    .13006E-03
  31  Prefactor     .83341        .21922        .40396E-05   -.15865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.11507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.4241
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6241
  Prefactor  = 0.0001
  Prefactor  = 38.525
  Prefactor  = 0.0001
  Prefactor  = 28.1988
  Prefactor  = 3.98246
  norm       = 5.16272
  Prefactor  = 290.945
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5182
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.15935
  Prefactor  = 0.0001
  Normalizat = 1.08631
  Prefactor  = 0.833413
 **********
 **   18 **HESSE 
 **********

 FCN=   3282.054     FROM HESSE     STATUS=OK           604 CALLS     4748 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9283        .21828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1151        20.098        .11488E-02   -1.5355    
   5  Prefactor     .10000E-03    12.852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2650        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4241        28.010        .14714E-03   -1.5163    
   8  Prefactor     .10004E-03    311.61        .21357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.624        28.865        .90408E-04   -1.4822    
  14  Prefactor     .10000E-03    10.152        .17828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.525        58.756        .64571E-04   -1.4466    
  16  Prefactor     .10000E-03    11.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.199        36.226        .75566E-04   -1.4645    
  18  Prefactor     3.9825        571.70        .19061E-03   -1.5309    
  19  norm          5.1627        5.1543        .12537E-03   -1.5253    
  20  Prefactor     290.95        221.92        .23799E-04   -1.2280    
  21  Prefactor     .10000E-03    25.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    17.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    108.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.518        55.092        .93281E-04   -1.4847    
  26  norm          .10000E-03    58.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .37287        .66959E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.1593        11.204        .19770E-03   -1.5300    
  29  Prefactor     .10000E-03    7.5117        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0863        .26327        .21822E-03   -.90192    
  31  Prefactor     .83341        .24934        .24269E-03   -.98508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44094e-09
Minuit parameter uncertainties:
  1  0.000902316
  2  8.74706e-05
  3  1.16294e-05
  4  15.8324
  5  5.80263e-05
  6  1.36255e-05
  7  28.0598
  8  0.0066725
  9  0.000198148
  10  0.000476157
  11  0.000107939
  12  0.000245005
  13  28.886
  14  5.458e-06
  15  58.8445
  16  1.70618e-05
  17  36.2538
  18  96.3833
  19  5.15478
  20  222.568
  21  0.000231399
  22  3.49166e-05
  23  4.61621e-05
  24  0.000225175
  25  55.2444
  26  0.000371988
  27  9.68292e-06
  28  11.2101
  29  7.95362e-06
  30  0.263592
  31  0.249679
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  3.982e+00  9.638e+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:  8.334e-01  2.497e-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.086e+00  2.636e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461527/likelihoodResults_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.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) = 3281.88495864
delta logL = 0.168939080089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3281.88217686
delta logL = 0.171720859271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6266       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6853       1.0000          .0000       10.000    
     3 'Normalizat'    1.0640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83954       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3281.882     FROM MIGRAD    STATUS=FAILED       106 CALLS      319 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5888        1217.8        .72606E-03   -.30079E-04
   2  Index         2.6866        5.0905        .60611E-02    .32993E-03
   3  Normalizat    1.0647        .27760        .21990E-03    .38439E-04
   4  Prefactor     .83891        .27378        .24167E-03    .30906E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3281.882     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      411 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5888        1217.8        .74032E-03   -.30079E-04
   2  Index         2.6866        5.0905        .22448E-02    .32993E-03
   3  Normalizat    1.0647        .27760        .15673E-03    .38439E-04
   4  Prefactor     .83891        .27378        .18839E-03    .30906E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3281.882     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      442 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5888        38.796        .29042E-04   -.35818E-04
   2  Index         2.6866        1.6190        .12122E-02   -.95331E-05
   3  Normalizat    1.0647        .25213        .87960E-05    .36190E-04
   4  Prefactor     .83891        .24681        .96669E-05    .28931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.58879
  Index      = 2.68659
  Normalizat = 1.06469
  Prefactor  = 0.83891
 **********
 **   18 **HESSE 
 **********

 FCN=   3281.882     FROM HESSE     STATUS=OK            23 CALLS      465 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5888        32.245        .11617E-05   -1.5157    
   2  Index         2.6866        1.4808        .48489E-04   -.48102    
   3  Normalizat    1.0647        .25183        .17592E-05   -.90894    
   4  Prefactor     .83891        .24644        .19334E-05   -.98310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75346e-12
Minuit parameter uncertainties:
  1  31.3144
  2  1.50979
  3  0.25211
  4  0.246768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461527': 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) = 3281.88217172
delta logL = 0.171725994597

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  7.589e+00  3.131e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  2.687e+00  1.510e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.389e-01  2.468e-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.065e+00  2.521e-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/461527/cmap_HighResolution_437616001_437875201_4FGL_J1517.7+6525_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-12 00:00:45.930419', job_id='461527', GAL2='0.84', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1631430045.93', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.72e-01', ts2='0.36', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='765' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:00:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 461527: <4FGL_J1517.7+6525_daily_bin765> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin765 229.436 65.424 437616001 437875201 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 :                                   696.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             243.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

