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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin938
RA = 229.222, Dec = 36.8505
tmin = 482457601, tmax = 482716801
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='443749', job_status='RUN', time_executed='2021-09-11 22:46:31.836258', time_epoch_executed='1631425591.84' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443749

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443749/ft1_4FGL_J1516.8+3651_daily_bin938.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443749/ft2_4FGL_J1516.8+3651_daily_bin938.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443749/ft1_4FGL_J1516.8+3651_daily_bin938.fits outfile=/scratch/kocevski/443749/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin938.fits ra=229.222 dec=36.8505 rad=12.0 tmin=482457601.0 tmax=482716801.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.63
user 3.38
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443749/ft1_filtered_4FGL_J1516.8+3651_daily_bin938.fits evtable="EVENTS" scfile=/scratch/kocevski/443749/ft2_4FGL_J1516.8+3651_daily_bin938.fits sctable="SC_DATA" expcube=/scratch/kocevski/443749/ltcube_482457601_482716801_4FGL_J1516.8+3651_daily_bin938.fits outfile=/scratch/kocevski/443749/expmap_482457601_482716801_4FGL_J1516.8+3651_daily_bin938.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/443749/ltcube_482457601_482716801_4FGL_J1516.8+3651_daily_bin938.fits
.....................!
real 190.04
user 185.12
sys 4.55

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/443749/ft1_filtered_4FGL_J1516.8+3651_daily_bin938.fits scfile=/scratch/kocevski/443749/ft2_4FGL_J1516.8+3651_daily_bin938.fits outfile=/scratch/kocevski/443749/cmap_482457601_482716801_4FGL_J1516.8+3651_daily_bin938.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443749/ft1_filtered_4FGL_J1516.8+3651_daily_bin938.fits scfile=/scratch/kocevski/443749/ft2_4FGL_J1516.8+3651_daily_bin938.fits outfile=/scratch/kocevski/443749/cmap_HighResolution_482457601_482716801_4FGL_J1516.8+3651_daily_bin938.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2680       1.0000         .10000E-03   10000.    
     4 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7744       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.525       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3609       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12243E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3129       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0836       1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96689E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6866       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0506       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9780       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.366       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99406       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74742       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=   5680.042     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3763 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3791        3.4269       -.48050E-07    .47498E-04
   2  Prefactor     16.334        16.675        .69202E-06    .13196E-03
   3  Prefactor     3.3045        26.008       -.17006E-05   -.60712E-04
   4  norm          .10000E-03    5.2905       -.33501E-07** at limit **
   5  Prefactor     2.7664        24.804        .13091E-05    .65671E-08
   6  norm          .10000E-03    2.6679       -.10760E-07** at limit **
   7  Prefactor     18.518        29.983       -.43978E-06    .14584E-04
   8  Prefactor     9.3637        18.192       -.35371E-06    .41825E-05
   9  norm          .10000E-03    5.0484        .34041E-07** at limit **
  10  Prefactor     .10000E-03    32.599       -.34517E-06** at limit **
  11  Prefactor     4.3149        6.6731        .50868E-07    .12943E-04
  12  Prefactor     .10000E-03    1.4748        .83774E-09** at limit **
  13  norm          3.0845        1.7136        .55688E-07    .22852E-03
  14  norm          .10000E-03    2.2681       -.23566E-06** at limit **
  15  Prefactor     .10624E-03    5.3859       -.24751E-05** at limit **
  16  Prefactor     14.882        36.799       -.57343E-05    .92300E-05
  17  Prefactor     3.4392        8.0953        .25719E-06   -.52664E-04
  18  Prefactor     8.2595        23.534       -.81718E-06    .26108E-03
  19  Prefactor     3.7009        12.847        .46162E-05    .43712E-03
  20  norm          1.0509        .97751       -.17622E-07   -.82752E-04
  21  Prefactor     .10000E-03    2.3947       -.20102E-07** at limit **
  22  Prefactor     4.9777        14.179        .34941E-05   -.23624E-03
  23  Prefactor     .10000E-03    12.106       -.87194E-07** at limit **
  24  norm          .10000E-03    6.2575       -.16657E-07** at limit **
  25  Prefactor     .10000E-03    .90292        .24301E-07** at limit **
  26  Prefactor     13.366        16.451       -.61090E-07    .24600E-04
  27  Prefactor     .10000E-03    1.7381        .39889E-07** at limit **
  28  Normalizat    .99403        .15988        .71267E-06    .28590E-03
  29  Prefactor     .74749        .15108       -.56327E-06    .29370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.37906
  Prefactor  = 16.3338
  Prefactor  = 3.30454
  norm       = 0.0001
  Prefactor  = 2.76635
  norm       = 0.0001
  Prefactor  = 18.5178
  Prefactor  = 9.36375
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3149
  Prefactor  = 0.0001
  norm       = 3.08449
  norm       = 0.0001
  Prefactor  = 0.00010624
  Prefactor  = 14.8823
  Prefactor  = 3.43921
  Prefactor  = 8.25952
  Prefactor  = 3.70092
  norm       = 1.05088
  Prefactor  = 0.0001
  Prefactor  = 4.97765
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3659
  Prefactor  = 0.0001
  Normalizat = 0.994031
  Prefactor  = 0.74749
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.042     FROM HESSE     STATUS=OK           563 CALLS     4326 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3791        3.4283        .12008E-03   -1.5289    
   2  Prefactor     16.334        16.604        .99011E-04   -1.4899    
   3  Prefactor     3.3045        25.986        .22401E-03   -1.5344    
   4  norm          .10000E-03    5.2924        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7664        24.696        .24433E-03   -1.5375    
   6  norm          .10000E-03    2.6893        .12017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.518        29.960        .93057E-04   -1.4847    
   8  Prefactor     9.3637        18.204        .13099E-03   -1.5096    
   9  norm          .10000E-03    5.0862        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3149        6.6555        .19398E-03   -1.5292    
  12  Prefactor     .10000E-03    1.4829        .89384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0845        1.7114        .65695E-04   -1.5357    
  14  norm          .10000E-03    2.3415        .22099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10624E-03    15.871        .46366E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.882        36.695        .10352E-03   -1.4936    
  17  Prefactor     3.4392        8.0812        .21808E-03   -1.5337    
  18  Prefactor     8.2595        22.676        .13950E-03   -1.5133    
  19  Prefactor     3.7009        14.632        .21035E-03   -1.5323    
  20  norm          1.0509        .95551        .67982E-04   -1.5503    
  21  Prefactor     .10000E-03    2.3992        .11381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9777        13.931        .90124E-03   -1.5262    
  23  Prefactor     .10000E-03    12.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.2725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .92336        .69897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.366        16.454        .10956E-03   -1.4977    
  27  Prefactor     .10000E-03    1.7475        .97013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99403        .19021        .21041E-03   -.93231    
  29  Prefactor     .74749        .17878        .23484E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18356e-09
Minuit parameter uncertainties:
  1  3.42841
  2  16.6088
  3  18.5444
  4  2.82893e-07
  5  16.5399
  6  2.96722e-07
  7  29.984
  8  18.2147
  9  2.01155e-06
  10  1.49544e-05
  11  6.65665
  12  4.51286e-07
  13  1.7114
  14  1.3402e-06
  15  0.0199084
  16  36.7507
  17  8.08377
  18  22.6994
  19  14.6463
  20  0.955522
  21  2.37596e-06
  22  13.9401
  23  5.05642e-06
  24  1.46989e-06
  25  1.92005e-06
  26  16.4596
  27  2.07031e-06
  28  0.19034
  29  0.178915
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.488e+01  3.675e+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:  7.475e-01  1.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.940e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/443749/likelihoodResults_482457601_482716801_4FGL_J1516.8+3651_daily_bin938.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) = 5680.04185559
delta logL = 1.62699725479e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5680.04183166
delta logL = 4.01979668823e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.071       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1758       1.0000          .0000       10.000    
     3 'Normalizat'    .99415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74745       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=   5680.042     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.078        45.699        .10317E-03   -.13298E-03
   2  Index         2.1765        1.6103        .15034E-01   -.64577E-04
   3  Normalizat    .99414        .17962        .21040E-03    .84334E-03
   4  Prefactor     .74742        .17667        .23485E-03    .80247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0777
  Index      = 2.1765
  Normalizat = 0.994142
  Prefactor  = 0.747425
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.042     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.078        42.742        .20634E-04   -1.4931    
   2  Index         2.1765        1.5114        .60138E-03   -.60007    
   3  Normalizat    .99414        .17965        .42080E-04   -.93227    
   4  Prefactor     .74742        .17674        .46970E-04   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31016e-09
Minuit parameter uncertainties:
  1  42.8285
  2  1.54743
  3  0.179757
  4  0.176877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443749': 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) = 5680.04183134
delta logL = 4.05157206842e-05

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.508e+01  4.283e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.177e+00  1.547e+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:  7.474e-01  1.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.941e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/443749/cmap_HighResolution_482457601_482716801_4FGL_J1516.8+3651_daily_bin938.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-11 22:59:42.895724', job_id='443749', GAL2='0.75', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631426382.9', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.05e-05', ts2='0.23', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='938' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:59:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 443749: <4FGL_J1516.8+3651_daily_bin938> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin938 229.222 36.8505 482457601 482716801 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 :                                   786.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

