/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 118 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin93
RA = 229.222, Dec = 36.8505
tmin = 263433601, tmax = 263692801
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='438555', job_status='RUN', time_executed='2021-09-11 22:28:20.126811', time_epoch_executed='1631424500.13' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438555

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438555/ft1_4FGL_J1516.8+3651_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438555/ft1_4FGL_J1516.8+3651_daily_bin93.fits outfile=/scratch/kocevski/438555/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin93.fits ra=229.222 dec=36.8505 rad=12.0 tmin=263433601.0 tmax=263692801.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.48
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438555/ft1_filtered_4FGL_J1516.8+3651_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/438555/ltcube_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.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/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits
.....................!
real 12.22
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438555/ft1_filtered_4FGL_J1516.8+3651_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/438555/ltcube_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.fits outfile=/scratch/kocevski/438555/expmap_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.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/438555/ltcube_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.fits
.....................!
real 190.19
user 184.75
sys 4.96

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/438555/ft1_filtered_4FGL_J1516.8+3651_daily_bin93.fits scfile=/scratch/kocevski/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits outfile=/scratch/kocevski/438555/cmap_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438555/ft1_filtered_4FGL_J1516.8+3651_daily_bin93.fits scfile=/scratch/kocevski/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits outfile=/scratch/kocevski/438555/cmap_HighResolution_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438555/ft1_filtered_4FGL_J1516.8+3651_daily_bin93.fits', '/scratch/kocevski/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits', expMap='/scratch/kocevski/438555/expmap_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.fits', expCube='/scratch/kocevski/438555/ltcube_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438555/Model_4FGL_J1516.8+3651_daily_bin93.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/438555/ft1_filtered_4FGL_J1516.8+3651_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/438555/ft2_4FGL_J1516.8+3651_daily_bin93.fits
Exposure map: /scratch/kocevski/438555/expmap_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.fits
Exposure cube: /scratch/kocevski/438555/ltcube_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438555/Model_4FGL_J1516.8+3651_daily_bin93.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) = 6274.06831411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11372E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8760       1.0000         .10000E-03   10000.    
     4 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27119       1.0000         .10000E-03   10000.    
     6 'norm      '    17.151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.935       1.0000         .10000E-03   10000.    
     9 'norm      '    9.1753       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6871       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.624       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3942       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.724       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2913       1.0000         .10000E-03   10000.    
    20 'norm      '    14.639       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78951       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1133       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=   6274.055     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3724 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74342        5.6837        .17768E-05   -.14162E-03
   2  Prefactor     .10000E-03    9.7566        .22454E-05** at limit **
   3  Prefactor     7.8639        19.001       -.11707E-05   -.14845E-03
   4  norm          .10000E-03    5.7972        .42977E-06** at limit **
   5  Prefactor     .11678        33.529       -.26980E-05    .27705E-03
   6  norm          17.148        8.2552       -.14086E-06   -.44282E-03
   7  Prefactor     .10000E-03    57.736        .37968E-06** at limit **
   8  Prefactor     16.944        21.687        .73883E-08   -.10449E-03
   9  norm          9.1694        9.0821        .10947E-06    .18205E-05
  10  Prefactor     .10000E-03    6.3628       -.10906E-06** at limit **
  11  Prefactor     .10000E-03    6.5945        .26909E-06** at limit **
  12  Prefactor     10.291        6.8877        .74491E-07   -.15351E-04
  13  norm          .10000E-03    .34134        .77095E-07** at limit **
  14  norm          1.6863        2.6874        .19373E-06    .15237E-03
  15  Prefactor     .10000E-03    8.0616        .89570E-06** at limit **
  16  Prefactor     12.607        43.158        .67183E-06    .47627E-05
  17  Prefactor     4.4061        9.4038        .63289E-06    .87369E-04
  18  Prefactor     22.709        27.291       -.23391E-06   -.40476E-05
  19  Prefactor     9.2908        16.327        .11682E-05    .24536E-04
  20  norm          14.639        2.1711        .44789E-07   -.18765E-04
  21  Prefactor     .10000E-03    7.9440       -.42409E-07** at limit **
  22  Prefactor     .10000E-03    12.481       -.22292E-07** at limit **
  23  Prefactor     .10000E-03    4.9831        .41187E-07** at limit **
  24  norm          .10000E-03    4.5338        .67487E-07** at limit **
  25  Prefactor     .10001E-03    1.7667       -.77962E-06** at limit **
  26  Prefactor     .10000E-03    10.428        .64713E-07** at limit **
  27  Prefactor     .10000E-03    1.2063        .51235E-09** at limit **
  28  Normalizat    .78958        .20235       -.40829E-05   -.29970E-03
  29  Prefactor     1.1134        .18535        .18291E-05   -.33339E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.743417
  Prefactor  = 0.000100002
  Prefactor  = 7.86389
  norm       = 0.0001
  Prefactor  = 0.116781
  norm       = 17.148
  Prefactor  = 0.0001
  Prefactor  = 16.9445
  norm       = 9.1694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2914
  norm       = 0.0001
  norm       = 1.68625
  Prefactor  = 0.0001
  Prefactor  = 12.607
  Prefactor  = 4.40614
  Prefactor  = 22.7092
  Prefactor  = 9.29079
  norm       = 14.6389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.789582
  Prefactor  = 1.11343
 **********
 **   18 **HESSE 
 **********

 FCN=   6274.055     FROM HESSE     STATUS=OK           563 CALLS     4287 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74342        10.493        .32990E-02   -1.5536    
   2  Prefactor     .10000E-03    9.9979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8639        19.196        .14288E-03   -1.5147    
   4  norm          .10000E-03    5.8061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11678        32.159        .10862       -1.5640    
   6  norm          17.148        8.2861        .96712E-04   -1.4880    
   7  Prefactor     .10000E-03    57.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.944        21.676        .97324E-04   -1.4884    
   9  norm          9.1694        9.0808        .13231E-03   -1.5102    
  10  Prefactor     .10000E-03    6.3737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.291        6.8843        .12490E-03   -1.5066    
  13  norm          .10000E-03    .34413        .45234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6863        2.6473        .15498E-03   -1.5448    
  15  Prefactor     .10000E-03    8.1180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.607        43.167        .11274E-03   -1.4998    
  17  Prefactor     4.4061        9.4833        .19213E-03   -1.5288    
  18  Prefactor     22.709        27.071        .84027E-04   -1.4755    
  19  Prefactor     9.2908        16.135        .13148E-03   -1.5098    
  20  norm          14.639        2.1724        .42462E-04   -1.4943    
  21  Prefactor     .10000E-03    8.0003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.9852        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.5478        .16473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    5.8750        .17727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.2114        .84952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78958        .23046        .27896E-03   -1.0046    
  29  Prefactor     1.1134        .21252        .23586E-03   -.89039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90508e-08
Minuit parameter uncertainties:
  1  5.58674
  2  0.000275289
  3  19.2106
  4  4.17459e-05
  5  3.87627
  6  8.28667
  7  0.000178835
  8  21.6858
  9  9.08217
  10  3.18646e-06
  11  4.27582e-05
  12  6.88486
  13  2.3187e-06
  14  2.64748
  15  8.34424e-05
  16  43.2739
  17  9.48655
  18  27.0855
  19  16.1426
  20  2.17239
  21  5.00784e-06
  22  2.92574e-07
  23  4.88053e-06
  24  7.45108e-06
  25  0.000445647
  26  4.64269e-06
  27  1.33104e-06
  28  0.230748
  29  0.212679
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.261e+01  4.327e+01  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:  1.113e+00  2.127e-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:  7.896e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438555/likelihoodResults_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.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): 0
logL (Free Index) = 6274.03541661
delta logL = 0.0192419544474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6274.02600593
delta logL = 0.0286526321497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.366       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8737       1.0000          .0000       10.000    
     3 'Normalizat'    .79156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1114       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.

 FCN=   6274.026     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      250 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.356        60.964        .88754E-04    .39578E-03
   2  Index         1.8741        1.2141        .15578E-01    .23599E-03
   3  Normalizat    .79155        .20493        .27863E-03   -.32784E-03
   4  Prefactor     1.1114        .20386        .23603E-03   -.46114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3557
  Index      = 1.8741
  Normalizat = 0.79155
  Prefactor  = 1.11142
 **********
 **   18 **HESSE 
 **********

 FCN=   6274.026     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.356        59.304        .17751E-04   -1.4805    
   2  Index         1.8741        1.1832        .62310E-03   -.67536    
   3  Normalizat    .79155        .20508        .11145E-04   -1.0038    
   4  Prefactor     1.1114        .20402        .47205E-04   -.89102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34146e-09
Minuit parameter uncertainties:
  1  59.4761
  2  1.20208
  3  0.205278
  4  0.204167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438555': 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) = 6274.02600589
delta logL = 0.0286526745122

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  2.036e+01  5.948e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  1.874e+00  1.202e+00  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:  1.111e+00  2.042e-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:  7.916e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/438555/cmap_HighResolution_263433601_263692801_4FGL_J1516.8+3651_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-11 22:42:20.542626', job_id='438555', GAL2='1.11', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631425340.54', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.87e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='93' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:42:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 438555: <4FGL_J1516.8+3651_daily_bin93> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin93> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 22:26:09 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:26:11 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:26:11 2021
Terminated at Sat Sep 11 22:42:21 2021
Results reported at Sat Sep 11 22:42:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin93 229.222 36.8505 263433601 263692801 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 :                                   839.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

