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


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

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437352

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437352/ft1_4FGL_J1516.8+3651_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437352/ft2_4FGL_J1516.8+3651_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437352/ft1_4FGL_J1516.8+3651_daily_bin5.fits outfile=/scratch/kocevski/437352/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin5.fits ra=229.222 dec=36.8505 rad=12.0 tmin=240624001.0 tmax=240883201.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.37
user 1.20
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437352/ft2_4FGL_J1516.8+3651_daily_bin5.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/437352/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/437352/ft1_filtered_4FGL_J1516.8+3651_daily_bin5.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437352/ft1_filtered_4FGL_J1516.8+3651_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/437352/ft2_4FGL_J1516.8+3651_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/437352/ltcube_240624001_240883201_4FGL_J1516.8+3651_daily_bin5.fits outfile=/scratch/kocevski/437352/expmap_240624001_240883201_4FGL_J1516.8+3651_daily_bin5.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/437352/ltcube_240624001_240883201_4FGL_J1516.8+3651_daily_bin5.fits
.....................!
real 193.47
user 187.88
sys 5.21

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/437352/ft1_filtered_4FGL_J1516.8+3651_daily_bin5.fits scfile=/scratch/kocevski/437352/ft2_4FGL_J1516.8+3651_daily_bin5.fits outfile=/scratch/kocevski/437352/cmap_240624001_240883201_4FGL_J1516.8+3651_daily_bin5.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/437352/ft1_filtered_4FGL_J1516.8+3651_daily_bin5.fits scfile=/scratch/kocevski/437352/ft2_4FGL_J1516.8+3651_daily_bin5.fits outfile=/scratch/kocevski/437352/cmap_HighResolution_240624001_240883201_4FGL_J1516.8+3651_daily_bin5.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12915E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5158       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0686       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8169       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0501       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1562       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0433       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2187       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.606       1.0000         .10000E-03   10000.    
    24 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6295       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9065       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85021       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86292       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=   6814.474     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3188 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0408        .11408E-07** at limit **
   2  Prefactor     .10000E-03    5.4221        .13482E-07** at limit **
   3  Prefactor     .10000E-03    13.244       -.15327E-05** at limit **
   4  norm          7.2241        9.5417        .48900E-06    .12117E-03
   5  Prefactor     .10000E-03    49.699        .21251E-05** at limit **
   6  norm          .10000E-03    7.3831       -.15534E-06** at limit **
   7  Prefactor     .10000E-03    10.471        .91584E-06** at limit **
   8  Prefactor     .10000E-03    22.807        .26517E-05** at limit **
   9  norm          24.787        11.335       -.26342E-06    .99713E-05
  10  Prefactor     2.6005        12.100        .87174E-05    .41497E-03
  11  Prefactor     .10000E-03    6.8585        .18691E-06** at limit **
  12  Prefactor     5.5156        4.9865        .27967E-06   -.16885E-04
  13  norm          4.0691        1.7998       -.11934E-06   -.21585E-03
  14  norm          1.8154        2.6941        .12115E-06    .15721E-03
  15  Prefactor     8.0363        13.825        .18688E-05    .12784E-03
  16  Prefactor     .10000E-03    16.210        .42710E-06** at limit **
  17  Prefactor     15.898        8.2479        .76978E-07   -.45134E-05
  18  Prefactor     36.514        24.182        .20374E-05   -.36253E-05
  19  Prefactor     8.1616        21.700       -.43897E-05   -.14089E-03
  20  norm          6.0451        1.5646        .12742E-06    .13472E-03
  21  Prefactor     .10009E-03    7.8219        .27116E-05** at limit **
  22  Prefactor     2.2146        71.928        .38180E-05    .63281E-05
  23  Prefactor     16.566        16.468        .10486E-05   -.14114E-03
  24  norm          .10015E-03    12.039        .55142E-05** at limit **
  25  Prefactor     .10000E-03    .60717       -.14140E-07** at limit **
  26  Prefactor     3.6199        27.912        .19829E-05    .28272E-07
  27  Prefactor     2.9064        2.9967        .68146E-07    .25776E-05
  28  Normalizat    .85019        .15970       -.88788E-06   -.11445E-03
  29  Prefactor     .86295        .15057        .13315E-06   -.78272E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.22413
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.7868
  Prefactor  = 2.60046
  Prefactor  = 0.0001
  Prefactor  = 5.5156
  norm       = 4.06907
  norm       = 1.81538
  Prefactor  = 8.03628
  Prefactor  = 0.0001
  Prefactor  = 15.8975
  Prefactor  = 36.5135
  Prefactor  = 8.16158
  norm       = 6.04507
  Prefactor  = 0.000100086
  Prefactor  = 2.21458
  Prefactor  = 16.5656
  norm       = 0.000100149
  Prefactor  = 0.0001
  Prefactor  = 3.61994
  Prefactor  = 2.90643
  Normalizat = 0.850189
  Prefactor  = 0.862946
 **********
 **   18 **HESSE 
 **********

 FCN=   6814.474     FROM HESSE     STATUS=OK           561 CALLS     3749 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0413        .82243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2241        9.5419        .74618E-03   -1.5170    
   5  Prefactor     .10000E-03    50.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.6975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.787        11.339        .80463E-04   -1.4712    
  10  Prefactor     2.6005        13.631        .12655E-02   -1.5385    
  11  Prefactor     .10000E-03    6.9367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5156        4.9849        .17029E-03   -1.5238    
  13  norm          4.0691        1.8008        .69195E-04   -1.5305    
  14  norm          1.8154        2.6468        .15062E-03   -1.5438    
  15  Prefactor     8.0363        13.541        .14131E-03   -1.5141    
  16  Prefactor     .10000E-03    16.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.898        8.2558        .10045E-03   -1.4910    
  18  Prefactor     36.514        24.161        .66305E-04   -1.4499    
  19  Prefactor     8.1616        21.436        .14038E-03   -1.5137    
  20  norm          6.0451        1.4666        .46286E-04   -1.5216    
  21  Prefactor     .10009E-03    30.969        .36257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2146        68.924        .27609E-03   -1.5410    
  23  Prefactor     16.566        15.231        .98285E-04   -1.4894    
  24  norm          .10015E-03    33.828        .40660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .61341        .62790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6199        27.935        .21206E-03   -1.5327    
  27  Prefactor     2.9064        2.9943        .14053E-03   -1.5367    
  28  Normalizat    .85019        .18509        .24757E-03   -.98233    
  29  Prefactor     .86295        .17496        .23702E-03   -.97448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30492e-09
Minuit parameter uncertainties:
  1  1.44753e-07
  2  3.56218e-06
  3  5.05562e-05
  4  9.54388
  5  0.000274629
  6  1.99587e-05
  7  1.57871e-05
  8  0.000111948
  9  11.3397
  10  11.9116
  11  1.18082e-05
  12  4.98524
  13  1.80085
  14  2.64695
  15  13.5463
  16  1.67811e-05
  17  8.25644
  18  24.1671
  19  21.4565
  20  1.46661
  21  0.0032702
  22  24.74
  23  15.235
  24  0.00448727
  25  1.28366e-06
  26  20.1249
  27  2.99446
  28  0.185231
  29  0.175077
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.678e-05  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.629e-01  1.751e-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:  8.502e-01  1.852e-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: 3.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437352/likelihoodResults_240624001_240883201_4FGL_J1516.8+3651_daily_bin5.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) = 6814.47429333
delta logL = -0.000293297098324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6814.47400181
delta logL = -1.78113168658e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11377E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4429       1.0000          .0000       10.000    
     3 'Normalizat'    .85018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86295       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=   6814.474     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10233E-03    6.3015        .18142E-01** at limit **
   2  Index         2.3721        6.1065        .50000        .23325E-04
   3  Normalizat    .85019        .26569E-02    .24757E-03   -.24108E-04
   4  Prefactor     .86295        .25763E-02    .23702E-03    .14389E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102335
  Index      = 2.37213
  Normalizat = 0.850189
  Prefactor  = 0.862946
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10233E-03    46.937        .28976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3721        8.0377        .50000       -.55339    
   3  Normalizat    .85019        .72746E-02    .99028E-05   -.98233    
   4  Prefactor     .86295        .70541E-02    .94808E-05   -.97448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8821e-09
Minuit parameter uncertainties:
  1  0.0209527
  2  154.772
  3  0.00727462
  4  0.00705414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437352': 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) = 6814.47400091
delta logL = -8.72926648299e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.023e-04  2.095e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.372e+00  1.548e+02  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.629e-01  7.054e-03  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:  8.502e-01  7.275e-03  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/437352/cmap_HighResolution_240624001_240883201_4FGL_J1516.8+3651_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2021-09-11 22:35:54.267162', job_id='437352', GAL2='0.86', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631424954.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-8.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='5' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 437352: <4FGL_J1516.8+3651_daily_bin5> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin5> 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) <bullet0057>, 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:35:55 2021
Results reported at Sat Sep 11 22:35:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin5 229.222 36.8505 240624001 240883201 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 :                                   824.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

