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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin4
RA = 229.222, Dec = 36.8505
tmin = 240364801, tmax = 240624001
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='437350', job_status='RUN', time_executed='2021-09-11 22:22:11.276004', time_epoch_executed='1631424131.28' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437350/ft1_4FGL_J1516.8+3651_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437350/ft2_4FGL_J1516.8+3651_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437350/ft1_4FGL_J1516.8+3651_daily_bin4.fits outfile=/scratch/kocevski/437350/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin4.fits ra=229.222 dec=36.8505 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.44
user 1.26
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437350/ft1_filtered_4FGL_J1516.8+3651_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/437350/ft2_4FGL_J1516.8+3651_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/437350/ltcube_240364801_240624001_4FGL_J1516.8+3651_daily_bin4.fits outfile=/scratch/kocevski/437350/expmap_240364801_240624001_4FGL_J1516.8+3651_daily_bin4.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/437350/ltcube_240364801_240624001_4FGL_J1516.8+3651_daily_bin4.fits
.....................!
real 191.11
user 185.84
sys 4.86

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/437350/ft1_filtered_4FGL_J1516.8+3651_daily_bin4.fits scfile=/scratch/kocevski/437350/ft2_4FGL_J1516.8+3651_daily_bin4.fits outfile=/scratch/kocevski/437350/cmap_240364801_240624001_4FGL_J1516.8+3651_daily_bin4.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437350/ft1_filtered_4FGL_J1516.8+3651_daily_bin4.fits scfile=/scratch/kocevski/437350/ft2_4FGL_J1516.8+3651_daily_bin4.fits outfile=/scratch/kocevski/437350/cmap_HighResolution_240364801_240624001_4FGL_J1516.8+3651_daily_bin4.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18301E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.252       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18291       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .71094       1.0000         .10000E-03   10000.    
    14 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0114       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10881E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    8.2594       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13581E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    29.002       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4985       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0562       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2112       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75140       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=   6609.877     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3801 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0709        5.3397        .10212E-06   -.29997E-03
   2  Prefactor     .10000E-03    56.261       -.12763E-05** at limit **
   3  Prefactor     16.253        16.368        .21372E-05   -.11222E-03
   4  norm          .10000E-03    6.0550       -.70776E-07** at limit **
   5  Prefactor     .10778E-03    16.376       -.31840E-05** at limit **
   6  norm          .10000E-03    1.6824       -.39122E-07** at limit **
   7  Prefactor     .10000E-03    16.690       -.89532E-07** at limit **
   8  Prefactor     .10000E-03    17.788       -.10388E-06** at limit **
   9  norm          .10000E-03    2.9251       -.14285E-07** at limit **
  10  Prefactor     .10000E-03    5.7239       -.70486E-08** at limit **
  11  Prefactor     .10000E-03    33.031        .11916E-04** at limit **
  12  Prefactor     .10000E-03    20.152       -.68622E-06** at limit **
  13  norm          .71095        1.4178       -.84696E-06   -.11353E-02
  14  norm          .10002E-03    3.7467       -.30045E-05** at limit **
  15  Prefactor     1.9947        6.9596        .73626E-06    .22252E-03
  16  Prefactor     .10000E-03    25.614        .34894E-07** at limit **
  17  Prefactor     10.681        8.4146       -.23868E-06   -.50948E-04
  18  Prefactor     .10001E-03    47.330        .56820E-06** at limit **
  19  Prefactor     .10001E-03    10.441        .21884E-05** at limit **
  20  norm          8.2593        1.6704       -.27384E-07    .53351E-03
  21  Prefactor     .10000E-03    4.4084       -.20934E-07** at limit **
  22  Prefactor     .10000E-03    8.1158       -.82423E-08** at limit **
  23  Prefactor     .10001E-03    69.316       -.42429E-06** at limit **
  24  norm          29.008        17.202       -.14398E-05    .22398E-03
  25  Prefactor     2.4985        2.2809       -.23341E-06    .17010E-03
  26  Prefactor     .10000E-03    9.2730       -.50015E-07** at limit **
  27  Prefactor     1.0572        3.7537       -.21107E-05    .27043E-03
  28  Normalizat    1.2111        .17416        .14783E-05    .28727E-03
  29  Prefactor     .75145        .16289        .47195E-06    .24230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07086
  Prefactor  = 0.000100003
  Prefactor  = 16.2529
  norm       = 0.0001
  Prefactor  = 0.000107781
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.710946
  norm       = 0.000100023
  Prefactor  = 1.99471
  Prefactor  = 0.000100001
  Prefactor  = 10.6811
  Prefactor  = 0.000100008
  Prefactor  = 0.000100006
  norm       = 8.25927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 29.0084
  Prefactor  = 2.49851
  Prefactor  = 0.0001
  Prefactor  = 1.05715
  Normalizat = 1.21113
  Prefactor  = 0.751454
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.877     FROM HESSE     STATUS=OK           565 CALLS     4366 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0709        5.3316        .16293E-03   -1.5215    
   2  Prefactor     .10000E-03    57.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.253        16.108        .99348E-04   -1.4901    
   4  norm          .10000E-03    6.0596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10778E-03    14.929        .99302E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6873        .10298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9288        .13580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.065        .35468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.982        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .71095        1.2968        .12624E-02   -1.5539    
  14  norm          .10002E-03    24.591        .21372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9947        7.0458        .29190E-03   -1.5425    
  16  Prefactor     .10000E-03    25.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.681        8.4180        .12260E-03   -1.5054    
  18  Prefactor     .10001E-03    48.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    87.925        .40753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.2593        1.6699        .44963E-04   -1.5133    
  21  Prefactor     .10000E-03    4.4313        .16649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    69.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          29.008        16.958        .74395E-04   -1.4630    
  25  Prefactor     2.4985        2.2728        .11237E-03   -1.5392    
  26  Prefactor     .10000E-03    9.3192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0572        3.7087        .28157E-03   -1.5502    
  28  Normalizat    1.2111        .20380        .22748E-03   -.86260    
  29  Prefactor     .75145        .19147        .26911E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1562e-09
Minuit parameter uncertainties:
  1  5.332
  2  0.000791334
  3  16.1125
  4  2.63104e-05
  5  0.0215616
  6  3.41983e-06
  7  0.000255551
  8  0.000429067
  9  1.12375e-06
  10  2.16602e-07
  11  0.000487395
  12  0.000125317
  13  1.29682
  14  0.00151375
  15  7.04876
  16  0.000283132
  17  8.41898
  18  0.00122982
  19  0.00142281
  20  1.66987
  21  2.34927e-07
  22  9.56067e-06
  23  0.00118125
  24  16.9607
  25  2.27287
  26  9.08405e-06
  27  3.70946
  28  0.203935
  29  0.191634
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  2.831e-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:  7.515e-01  1.916e-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:  1.211e+00  2.039e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437350/likelihoodResults_240364801_240624001_4FGL_J1516.8+3651_daily_bin4.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) = 6609.87740976
delta logL = -0.000185940042684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6609.87722378
delta logL = 4.76056811749e-08

Fit tolerance = 1e-08

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

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

 FCN=   6609.877     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2265.9        .90712E-02** at limit **
   2  Index         2.1027        8.4098        .50000        .24568E-05
   3  Normalizat    1.2111        .45657E-01    .51451E-01   -.56214E-05
   4  Prefactor     .75145        .43814E-01    .43082E-01    .29990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1027
  Normalizat = 1.21113
  Prefactor  = 0.751454
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.877     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7395.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1027        6.1191        .50000       -.61807    
   3  Normalizat    1.2111        .11841        .22748E-03   -.86260    
   4  Prefactor     .75145        .11362        .26912E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.97098e-11
Minuit parameter uncertainties:
  1  0.0014521
  2  60.9527
  3  0.118435
  4  0.113654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437350': 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) = 6609.87722377
delta logL = 5.64032234251e-08

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.452e-03  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.103e+00  6.095e+01  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:  7.515e-01  1.137e-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:  1.211e+00  1.184e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/437350/cmap_HighResolution_240364801_240624001_4FGL_J1516.8+3651_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-11 22:36:32.122079', job_id='437350', GAL2='0.75', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631424992.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='4' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:36:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 437350: <4FGL_J1516.8+3651_daily_bin4> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin4> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:21:20 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:21:22 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:21:22 2021
Terminated at Sat Sep 11 22:36:32 2021
Results reported at Sat Sep 11 22:36:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin4 229.222 36.8505 240364801 240624001 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 :                                   860.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

