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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin53
RA = 229.222, Dec = 36.8505
tmin = 253065601, tmax = 253324801
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='438515', job_status='RUN', time_executed='2021-09-11 22:29:13.901643', time_epoch_executed='1631424553.9' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438515/ft1_4FGL_J1516.8+3651_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438515/ft2_4FGL_J1516.8+3651_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438515/ft1_4FGL_J1516.8+3651_daily_bin53.fits outfile=/scratch/kocevski/438515/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin53.fits ra=229.222 dec=36.8505 rad=12.0 tmin=253065601.0 tmax=253324801.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.22
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438515/ft1_filtered_4FGL_J1516.8+3651_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/438515/ft2_4FGL_J1516.8+3651_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/438515/ltcube_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.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/438515/ft2_4FGL_J1516.8+3651_daily_bin53.fits
.....................!
real 13.11
user 12.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438515/ft1_filtered_4FGL_J1516.8+3651_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/438515/ft2_4FGL_J1516.8+3651_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/438515/ltcube_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.fits outfile=/scratch/kocevski/438515/expmap_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.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/438515/ltcube_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.fits
.....................!
real 190.17
user 185.31
sys 4.36

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/438515/ft1_filtered_4FGL_J1516.8+3651_daily_bin53.fits scfile=/scratch/kocevski/438515/ft2_4FGL_J1516.8+3651_daily_bin53.fits outfile=/scratch/kocevski/438515/cmap_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438515/ft1_filtered_4FGL_J1516.8+3651_daily_bin53.fits scfile=/scratch/kocevski/438515/ft2_4FGL_J1516.8+3651_daily_bin53.fits outfile=/scratch/kocevski/438515/cmap_HighResolution_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.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/438515/ft1_filtered_4FGL_J1516.8+3651_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/438515/ft2_4FGL_J1516.8+3651_daily_bin53.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438515/Model_4FGL_J1516.8+3651_daily_bin53.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/438515/ft1_filtered_4FGL_J1516.8+3651_daily_bin53.fits.....................!
real 48.93
user 47.47
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12204E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.156       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5627       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7028       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6609       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8710       1.0000         .10000E-03   10000.    
    20 'norm      '    11.419       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.143       1.0000         .10000E-03   10000.    
    24 'norm      '    .11536E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4974       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.1964       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2599       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80334       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=   5878.283     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3133 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0009        4.3941        .82948E-07    .92121E-04
   2  Prefactor     11.170        12.566        .22275E-06    .20263E-03
   3  Prefactor     .10000E-03    21.042       -.11074E-04** at limit **
   4  norm          .10000E-03    5.6194       -.30296E-05** at limit **
   5  Prefactor     .10000E-03    7.2855        .17433E-05** at limit **
   6  norm          .10000E-03    1.7030       -.22571E-08** at limit **
   7  Prefactor     .10000E-03    10.112       -.23049E-05** at limit **
   8  Prefactor     15.159        43.221        .54518E-05    .26223E-05
   9  norm          .10000E-03    5.2404        .26103E-05** at limit **
  10  Prefactor     .10000E-03    28.134       -.39197E-05** at limit **
  11  Prefactor     7.5618        6.8610        .25059E-06    .40483E-03
  12  Prefactor     .10000E-03    2.6364        .46791E-07** at limit **
  13  norm          3.7031        2.1218       -.30743E-07   -.34481E-03
  14  norm          .10000E-03    1.8043        .25478E-07** at limit **
  15  Prefactor     5.6691        10.125       -.40322E-06   -.19028E-03
  16  Prefactor     .10000E-03    37.947        .26585E-04** at limit **
  17  Prefactor     .10000E-03    4.6671       -.38828E-06** at limit **
  18  Prefactor     .10000E-03    17.071        .65659E-05** at limit **
  19  Prefactor     4.8615        15.843       -.21679E-08   -.12515E-03
  20  norm          11.419        2.1737        .33179E-08   -.19186E-04
  21  Prefactor     .10000E-03    3.3238        .18299E-07** at limit **
  22  Prefactor     .10000E-03    27.645       -.72361E-05** at limit **
  23  Prefactor     26.144        23.682        .63966E-06   -.76061E-04
  24  norm          .10000E-03    17.551        .38405E-05** at limit **
  25  Prefactor     2.4972        2.5483       -.68662E-07   -.39620E-03
  26  Prefactor     .10000E-03    60.319       -.16772E-04** at limit **
  27  Prefactor     8.1967        5.4506       -.10959E-07   -.81805E-04
  28  Normalizat    1.2595        .19624       -.54064E-06    .10796E-03
  29  Prefactor     .80366        .17561       -.82188E-08    .33223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.0009
  Prefactor  = 11.1696
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1593
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.56181
  Prefactor  = 0.0001
  norm       = 3.70313
  norm       = 0.0001
  Prefactor  = 5.6691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.86145
  norm       = 11.4186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1438
  norm       = 0.0001
  Prefactor  = 2.49722
  Prefactor  = 0.0001
  Prefactor  = 8.19668
  Normalizat = 1.25952
  Prefactor  = 0.803664
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.283     FROM HESSE     STATUS=OK           545 CALLS     3678 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0009        4.3967        .14615E-03   -1.5261    
   2  Prefactor     11.170        12.562        .11987E-03   -1.5039    
   3  Prefactor     .10000E-03    21.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.6213        .17749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7057        .97706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.159        43.509        .10288E-03   -1.4929    
   9  norm          .10000E-03    5.2781        .17136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5618        6.8736        .72914E-03   -1.5158    
  12  Prefactor     .10000E-03    2.6419        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7031        2.1278        .78179E-04   -1.5323    
  14  norm          .10000E-03    1.8098        .10025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6691        9.9283        .16883E-03   -1.5232    
  16  Prefactor     .10000E-03    37.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7012        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8615        15.611        .18226E-03   -1.5267    
  20  norm          11.419        2.1770        .46694E-04   -1.5032    
  21  Prefactor     .10000E-03    3.3283        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.144        23.667        .78349E-04   -1.4685    
  24  norm          .10000E-03    17.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.4972        2.5408        .11876E-03   -1.5392    
  26  Prefactor     .10000E-03    60.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.1967        5.4513        .14004E-03   -1.5135    
  28  Normalizat    1.2595        .23448        .24391E-03   -.84783    
  29  Prefactor     .80366        .20731        .28217E-03   -.99593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84775e-10
Minuit parameter uncertainties:
  1  4.39695
  2  12.565
  3  5.76272e-05
  4  1.59873e-06
  5  1.55952e-06
  6  3.29574e-08
  7  8.19285e-07
  8  43.6004
  9  4.0642e-06
  10  2.32293e-05
  11  6.87431
  12  1.15778e-06
  13  2.12781
  14  3.9899e-06
  15  9.93121
  16  3.68185e-06
  17  2.2789e-06
  18  8.63026e-06
  19  15.6238
  20  2.17704
  21  1.43066e-06
  22  1.88997e-05
  23  23.6758
  24  3.6432e-05
  25  2.54087
  26  0.000236882
  27  5.4516
  28  0.234674
  29  0.207512
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  3.682e-06  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:  8.037e-01  2.075e-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.260e+00  2.347e-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: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438515/likelihoodResults_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.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) = 5878.28267587
delta logL = -0.000125494788335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5878.28255039
delta logL = -1.07811501948e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1251       1.0000          .0000       10.000    
     3 'Normalizat'    1.2595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80367       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=   5878.283     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2191.9        .90712E-02** at limit **
   2  Index         2.1268        5.3942        .50000       -.42660E-06
   3  Normalizat    1.2595        .41426E-01    .55161E-01    .42088E-03
   4  Prefactor     .80367        .39414E-01    .63792E-01    .38403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12683
  Normalizat = 1.25952
  Prefactor  = 0.803665
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.283     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7782.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1268        5.9641        .50000       -.61216    
   3  Normalizat    1.2595        .99458E-01    .24391E-03   -.84783    
   4  Prefactor     .80367        .94551E-01    .28217E-03   -.99593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60833e-10
Minuit parameter uncertainties:
  1  0.00124634
  2  56.5025
  3  0.0994728
  4  0.0945701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438515': 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) = 5878.28255038
delta logL = -8.23365553515e-09

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.246e-03  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.127e+00  5.650e+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:  8.037e-01  9.457e-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:  1.260e+00  9.947e-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/438515/cmap_HighResolution_253065601_253324801_4FGL_J1516.8+3651_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-11 22:41:40.230704', job_id='438515', GAL2='0.80', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631425300.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-8.23e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='53' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:41:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 438515: <4FGL_J1516.8+3651_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin53 229.222 36.8505 253065601 253324801 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 :                                   745.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

