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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin654
RA = 229.436, Dec = 65.424
tmin = 408844801, tmax = 409104001
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='460408', job_status='RUN', time_executed='2021-09-11 23:45:03.515168', time_epoch_executed='1631429103.52' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460408

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460408/ft1_4FGL_J1517.7+6525_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460408/ft2_4FGL_J1517.7+6525_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460408/ft1_4FGL_J1517.7+6525_daily_bin654.fits outfile=/scratch/kocevski/460408/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin654.fits ra=229.436 dec=65.424 rad=12.0 tmin=408844801.0 tmax=409104001.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.35
user 4.11
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460408/ft1_filtered_4FGL_J1517.7+6525_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/460408/ft2_4FGL_J1517.7+6525_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/460408/ltcube_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.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/460408/ft2_4FGL_J1517.7+6525_daily_bin654.fits
.....................!
real 11.45
user 11.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460408/ft1_filtered_4FGL_J1517.7+6525_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/460408/ft2_4FGL_J1517.7+6525_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/460408/ltcube_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.fits outfile=/scratch/kocevski/460408/expmap_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.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/460408/ltcube_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.fits
.....................!
real 190.29
user 185.89
sys 4.08

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/460408/ft1_filtered_4FGL_J1517.7+6525_daily_bin654.fits scfile=/scratch/kocevski/460408/ft2_4FGL_J1517.7+6525_daily_bin654.fits outfile=/scratch/kocevski/460408/cmap_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460408/ft1_filtered_4FGL_J1517.7+6525_daily_bin654.fits scfile=/scratch/kocevski/460408/ft2_4FGL_J1517.7+6525_daily_bin654.fits outfile=/scratch/kocevski/460408/cmap_HighResolution_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460408/ft1_filtered_4FGL_J1517.7+6525_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/460408/ft2_4FGL_J1517.7+6525_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460408/Model_4FGL_J1517.7+6525_daily_bin654.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/460408/ft1_filtered_4FGL_J1517.7+6525_daily_bin654.fits....................!
real 16.28
user 15.08
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26160E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11636E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13292E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1038.7       1.0000         .10000E-03   10000.    
     9 'Prefactor '    172.21       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13667E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57691E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    75.977       1.0000         .10000E-03   10000.    
    15 'Prefactor '    168.55       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.021       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    676.87       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.338       1.0000         .10000E-03   10000.    
    22 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    844.15       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14569E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11894E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11683E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .52124       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78675       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=   423.6814     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     4720 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    369.73       -.87455E-06** at limit **
   2  Prefactor     .10000E-03    98.542       -.22505E-06** at limit **
   3  Prefactor     .10000E-03    32.323       -.25124E-05** at limit **
   4  Prefactor     .10000E-03    92.680       -.16136E-05** at limit **
   5  Prefactor     .10000E-03    26.089       -.48923E-06** at limit **
   6  Prefactor     .10000E-03    93.046       -.21243E-05** at limit **
   7  Prefactor     .10000E-03    85.637       -.24290E-06** at limit **
   8  Prefactor     1039.4        2417.0        .19805E-04    .58715E-06
   9  Prefactor     172.29        163.25        .22679E-05    .79883E-05
  10  Prefactor     .10000E-03    173.34        .41550E-06** at limit **
  11  Prefactor     .10000E-03    361.80        .31021E-05** at limit **
  12  Prefactor     .10000E-03    41.507        .87035E-07** at limit **
  13  Prefactor     .10000E-03    53.799       -.29863E-07** at limit **
  14  Prefactor     75.968        63.901        .74671E-06   -.14247E-04
  15  Prefactor     168.75        296.81        .53326E-05    .10551E-04
  16  Prefactor     .10000E-03    34.368       -.24160E-06** at limit **
  17  Prefactor     19.016        45.390        .94644E-06    .76711E-06
  18  Prefactor     .10000E-03    92.468        .31232E-07** at limit **
  19  norm          .10000E-03    12.078        .13301E-05** at limit **
  20  Prefactor     677.18        574.96       -.97787E-06   -.11139E-04
  21  Prefactor     37.331        57.864        .97977E-06   -.24042E-04
  22  norm          .10000E-03    85.649       -.12845E-05** at limit **
  23  Prefactor     .10000E-03    175.83        .76483E-06** at limit **
  24  Prefactor     844.79        984.32        .54932E-05    .11128E-04
  25  Prefactor     .10000E-03    180.77        .15185E-06** at limit **
  26  norm          .10001E-03    406.03       -.26809E-04** at limit **
  27  norm          .10007E-03    5.2019       -.10308E-05** at limit **
  28  Prefactor     .10000E-03    17.921       -.20041E-06** at limit **
  29  Prefactor     .10000E-03    43.615        .15639E-06** at limit **
  30  Normalizat    .52212        .57585       -.16819E-04   -.13810E-04
  31  Prefactor     .78565        .53690        .39656E-05   -.34285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1039.42
  Prefactor  = 172.294
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.9675
  Prefactor  = 168.745
  Prefactor  = 0.0001
  Prefactor  = 19.0164
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 677.179
  Prefactor  = 37.3311
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 844.785
  Prefactor  = 0.000100001
  norm       = 0.000100009
  norm       = 0.000100069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.522121
  Prefactor  = 0.785647
 **********
 **   18 **HESSE 
 **********

 FCN=   423.6814     FROM HESSE     STATUS=OK           596 CALLS     5316 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    369.81        .21447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    98.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.377        .11339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    92.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.103        .10274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    93.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    85.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1039.4        2417.9        .65554E-04   -.91427    
   9  Prefactor     172.29        163.31        .15374E-03   -1.3075    
  10  Prefactor     .10000E-03    173.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    362.05        .21085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.520        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.805        .14766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     75.968        63.878        .23033E-03   -1.3963    
  15  Prefactor     168.75        296.96        .15537E-03   -1.3103    
  16  Prefactor     .10000E-03    34.396        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.016        45.489        .91835E-04   -1.4836    
  18  Prefactor     .10000E-03    92.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.173        .70128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     677.18        577.83        .79616E-04   -1.0443    
  21  Prefactor     37.331        57.702        .65590E-04   -1.4485    
  22  norm          .10000E-03    85.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    176.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     844.79        993.05        .71940E-04   -.98098    
  25  Prefactor     .10000E-03    181.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    403.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10007E-03    23.155        .85350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.921        .85158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    43.630        .13295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .52212        .61582        .26929E-03   -1.1140    
  31  Prefactor     .78565        .58921        .22461E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07627e-09
Minuit parameter uncertainties:
  1  5.86579e-05
  2  6.41471e-05
  3  8.25059e-05
  4  0.000149647
  5  5.94685e-05
  6  0.00027512
  7  7.04325e-05
  8  2790.94
  9  163.74
  10  0.000465805
  11  0.000883018
  12  6.35464e-05
  13  5.11979e-06
  14  63.9362
  15  299.655
  16  1.25298e-05
  17  45.5716
  18  3.55849e-06
  19  0.000100563
  20  583.053
  21  57.7889
  22  1.9059e-06
  23  0.000646722
  24  1015.47
  25  0.000642856
  26  0.00389252
  27  0.00252346
  28  1.41549e-05
  29  7.97598e-05
  30  0.624138
  31  0.594026
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.558e-06  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:  7.856e-01  5.940e-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:  5.221e-01  6.241e-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: 2.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460408/likelihoodResults_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.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) = 423.681489635
delta logL = -4.73582253449e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 423.68144248
delta logL = -2.03710442293e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9469       1.0000          .0000       10.000    
     3 'Normalizat'    .52213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78574       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=   423.6814     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    55.522        .90712E-02** at limit **
   2  Index         1.8964        7.9101        .50000        .47844E-05
   3  Normalizat    .52211        .11002E-01    .60870E-01   -.45428E-04
   4  Prefactor     .78566        .11205E-01    .43531E-01    .82551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 1.89639
  Normalizat = 0.522105
  Prefactor  = 0.785665
 **********
 **   18 **HESSE 
 **********

 FCN=   423.6814     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    279.79        .17988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8964        8.7681        .50000       -.66966    
   3  Normalizat    .52211        .24809E-01    .26933E-03   -1.1140    
   4  Prefactor     .78566        .25303E-01    .22461E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.36798e-08
Minuit parameter uncertainties:
  1  0.00413934
  2  211.011
  3  0.02481
  4  0.0253033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460408': 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) = 423.681442363
delta logL = -8.65306901687e-08

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.139e-03  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.896e+00  2.110e+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:  7.857e-01  2.530e-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:  5.221e-01  2.481e-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/460408/cmap_HighResolution_408844801_409104001_4FGL_J1517.7+6525_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-02', job_status='DONE', photon_flux_upper_limit='2.76e-07', time_completed='2021-09-11 23:51:34.180977', job_id='460408', GAL2='0.79', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1631429494.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-8.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='654' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:51:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 460408: <4FGL_J1517.7+6525_daily_bin654> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin654> 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) <bullet0259>, 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:51:34 2021
Results reported at Sat Sep 11 23:51:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin654 229.436 65.424 408844801 409104001 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 :                                   388.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            593 sec.

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

