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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin917
RA = 229.222, Dec = 36.8505
tmin = 477014401, tmax = 477273601
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='443718', job_status='RUN', time_executed='2021-09-11 22:46:36.320657', time_epoch_executed='1631425596.32' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443718/ft1_4FGL_J1516.8+3651_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443718/ft1_4FGL_J1516.8+3651_daily_bin917.fits outfile=/scratch/kocevski/443718/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin917.fits ra=229.222 dec=36.8505 rad=12.0 tmin=477014401.0 tmax=477273601.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 3.59
user 3.37
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.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/443718/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin917.fits evtable="EVENTS" outfile="/scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/443718/ltcube_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.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/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits
.....................!
real 11.76
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/443718/ltcube_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.fits outfile=/scratch/kocevski/443718/expmap_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.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/443718/ltcube_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.fits
.....................!
real 190.47
user 185.70
sys 4.45

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits scfile=/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits outfile=/scratch/kocevski/443718/cmap_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.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.222 yref=36.8505 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits scfile=/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits outfile=/scratch/kocevski/443718/cmap_HighResolution_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.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.222 yref=36.8505 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443718/Model_4FGL_J1516.8+3651_daily_bin917.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/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits.....................!
real 50.52
user 49.27
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits', '/scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits', expMap='/scratch/kocevski/443718/expmap_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.fits', expCube='/scratch/kocevski/443718/ltcube_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443718/Model_4FGL_J1516.8+3651_daily_bin917.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/443718/ft1_filtered_4FGL_J1516.8+3651_daily_bin917.fits
Spacecraft file(s): /scratch/kocevski/443718/ft2_4FGL_J1516.8+3651_daily_bin917.fits
Exposure map: /scratch/kocevski/443718/expmap_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.fits
Exposure cube: /scratch/kocevski/443718/ltcube_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443718/Model_4FGL_J1516.8+3651_daily_bin917.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) = 6618.37473539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8021       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.080       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.206       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.132       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73111       1.0000         .10000E-03   10000.    
    13 'norm      '    .41136E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1318       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30041E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    22.850       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .87092       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93381       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92760       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6618.371     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3729 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8022        3.5381       -.20960E-07    .27291E-04
   2  Prefactor     .10000E-03    7.9998       -.32182E-05** at limit **
   3  Prefactor     46.085        23.266        .31554E-05   -.21782E-03
   4  norm          .10000E-03    4.7025        .15299E-06** at limit **
   5  Prefactor     .10000E-03    14.002       -.39023E-05** at limit **
   6  norm          .10000E-03    2.6227       -.46570E-07** at limit **
   7  Prefactor     .10000E-03    26.674        .42275E-05** at limit **
   8  Prefactor     15.204        20.493       -.11625E-05    .43450E-04
   9  norm          1.4691        4.0936       -.81356E-06   -.65883E-03
  10  Prefactor     13.132        11.075        .13638E-07    .31243E-04
  11  Prefactor     20.185        9.1190        .99709E-08    .16320E-03
  12  Prefactor     .73787        3.5357       -.38729E-06   -.23466E-03
  13  norm          .40981E-01    .73186       -.18512E-06    .29681E-04
  14  norm          4.3400        3.6445        .83877E-07   -.28224E-03
  15  Prefactor     .10000E-03    3.1176        .52512E-07** at limit **
  16  Prefactor     .10000E-03    29.483       -.49069E-05** at limit **
  17  Prefactor     .10000E-03    2.8494       -.40296E-07** at limit **
  18  Prefactor     12.662        13.392       -.24534E-06   -.15735E-04
  19  Prefactor     .10000E-03    19.105        .20426E-05** at limit **
  20  norm          1.1318        .85437        .10383E-07   -.81966E-04
  21  Prefactor     .10000E-03    3.9770       -.13549E-06** at limit **
  22  Prefactor     .10000E-03    12.408        .12839E-05** at limit **
  23  Prefactor     .10000E-03    29.944        .10647E-05** at limit **
  24  norm          22.847        16.327       -.75042E-06    .43885E-04
  25  Prefactor     .87133        1.9377       -.43132E-06   -.10530E-02
  26  Prefactor     .10000E-03    8.7011        .35306E-05** at limit **
  27  Prefactor     .10000E-03    2.2014       -.22565E-07** at limit **
  28  Normalizat    .93387        .16775       -.62224E-06    .12026E-03
  29  Prefactor     .92750        .15459        .54393E-06    .15045E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80225
  Prefactor  = 0.0001
  Prefactor  = 46.0852
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.2045
  norm       = 1.4691
  Prefactor  = 13.1316
  Prefactor  = 20.1853
  Prefactor  = 0.737865
  norm       = 0.0409808
  norm       = 4.34
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.6624
  Prefactor  = 0.0001
  norm       = 1.13179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.8474
  Prefactor  = 0.871325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.933871
  Prefactor  = 0.9275
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.371     FROM HESSE     STATUS=OK           555 CALLS     4284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8022        3.5403        .14356E-03   -1.5318    
   2  Prefactor     .10000E-03    8.0297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.085        23.033        .59065E-04   -1.4349    
   4  norm          .10000E-03    4.7029        .17226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6380        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.204        20.521        .10271E-03   -1.4928    
   9  norm          1.4691        4.1683        .27609E-03   -1.5466    
  10  Prefactor     13.132        11.072        .11054E-03   -1.4983    
  11  Prefactor     20.185        9.0253        .89146E-04   -1.4809    
  12  Prefactor     .73787        13.107        .29234E-02   -1.5536    
  13  norm          .40981E-01    6.9250        .12656E-02   -1.5668    
  14  norm          4.3400        3.6240        .13517E-03   -1.5291    
  15  Prefactor     .10000E-03    3.1263        .14017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8614        .13410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.662        13.386        .11254E-03   -1.4996    
  19  Prefactor     .10000E-03    19.810        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1318        .85116        .62484E-04   -1.5495    
  21  Prefactor     .10000E-03    3.9993        .15824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.086        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          22.847        16.292        .83794E-04   -1.4752    
  25  Prefactor     .87133        1.9374        .16554E-03   -1.5521    
  26  Prefactor     .10000E-03    8.5851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.2496        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .93387        .19786        .24094E-03   -.95280    
  29  Prefactor     .92750        .18328        .23281E-03   -.95187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51496e-09
Minuit parameter uncertainties:
  1  3.54052
  2  2.99621e-05
  3  23.037
  4  1.71408e-05
  5  0.000132287
  6  7.73503e-06
  7  0.000283026
  8  20.5301
  9  4.16907
  10  11.0735
  11  9.02591
  12  6.22098
  13  1.06427
  14  3.62415
  15  1.31994e-06
  16  0.000310005
  17  1.38218e-06
  18  13.3892
  19  0.000123513
  20  0.85117
  21  8.24316e-06
  22  4.54968e-05
  23  8.44723e-05
  24  16.2956
  25  1.93758
  26  0.000115182
  27  1.22741e-06
  28  0.19801
  29  0.183399
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  3.100e-04  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.275e-01  1.834e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.339e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 4.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443718/likelihoodResults_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.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) = 6618.37083196
delta logL = -0.000162888674822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6618.37083192
delta logL = -0.000162846662533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96331E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1905       1.0000          .0000       10.000    
     3 'Normalizat'    .93387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92750       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6618.371     FROM MIGRAD    STATUS=FAILED        97 CALLS      237 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10147E-03    38.243        .18143E-01** at limit **
   2  Index         1.8670        9.0576        .50000        .58046E-06
   3  Normalizat    .93387        .42308E-02    .24094E-03   -.30198E-05
   4  Prefactor     .92750        .40978E-02    .23281E-03   -.25393E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6618.371     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      355 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10147E-03    38.243        .79101E-03** at limit **
   2  Index         1.8670        9.0576        .10625E-02    .58046E-06
   3  Normalizat    .93387        .42308E-02    .13826E-05   -.30198E-05
   4  Prefactor     .92750        .40978E-02    .11696E-05   -.25393E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6618.371     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      388 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    580.89        .36286E-02** at limit **
   2  Index         1.9093        5.6907        .50000        .10358E-05
   3  Normalizat    .93387        .16980E-01    .96376E-05   -.28311E-05
   4  Prefactor     .92750        .16446E-01    .93122E-05   -.21975E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100409
  Index      = 1.9093
  Normalizat = 0.93387
  Prefactor  = 0.927501
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.371     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      417 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10041E-03    6312.7        .72572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9093        5.9229        .50000       -.66637    
   3  Normalizat    .93387        .41320E-01    .19275E-05   -.95280    
   4  Prefactor     .92750        .40009E-01    .18624E-05   -.95187    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.77515e-09
Minuit parameter uncertainties:
  1  0.0688063
  2  4151.7
  3  0.0413216
  4  0.04001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443718': 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) = 6618.37066889
delta logL = 1.76565663423e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.004e-04  6.881e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  1.909e+00  4.152e+03  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.275e-01  4.001e-02  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.339e-01  4.132e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.222 36.850

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/443718/cmap_HighResolution_477014401_477273601_4FGL_J1516.8+3651_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2021-09-11 23:00:53.688348', job_id='443718', GAL2='0.93', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631426453.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='917' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:00:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 443718: <4FGL_J1516.8+3651_daily_bin917> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin917> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:46:13 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:46:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 22:46:14 2021
Terminated at Sat Sep 11 23:00:54 2021
Results reported at Sat Sep 11 23:00:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin917 229.222 36.8505 477014401 477273601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

