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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1131
RA = 229.222, Dec = 36.8505
tmin = 532483201, tmax = 532742401
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='445058', job_status='RUN', time_executed='2021-09-11 22:51:19.730073', time_epoch_executed='1631425879.73' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445058/ft1_4FGL_J1516.8+3651_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445058/ft2_4FGL_J1516.8+3651_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445058/ft1_4FGL_J1516.8+3651_daily_bin1131.fits outfile=/scratch/kocevski/445058/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1131.fits ra=229.222 dec=36.8505 rad=12.0 tmin=532483201.0 tmax=532742401.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.54
user 3.33
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445058/ft1_filtered_4FGL_J1516.8+3651_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/445058/ft2_4FGL_J1516.8+3651_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/445058/ltcube_532483201_532742401_4FGL_J1516.8+3651_daily_bin1131.fits outfile=/scratch/kocevski/445058/expmap_532483201_532742401_4FGL_J1516.8+3651_daily_bin1131.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/445058/ltcube_532483201_532742401_4FGL_J1516.8+3651_daily_bin1131.fits
.....................!
real 191.15
user 185.66
sys 5.10

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/445058/ft1_filtered_4FGL_J1516.8+3651_daily_bin1131.fits scfile=/scratch/kocevski/445058/ft2_4FGL_J1516.8+3651_daily_bin1131.fits outfile=/scratch/kocevski/445058/cmap_532483201_532742401_4FGL_J1516.8+3651_daily_bin1131.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445058/ft1_filtered_4FGL_J1516.8+3651_daily_bin1131.fits scfile=/scratch/kocevski/445058/ft2_4FGL_J1516.8+3651_daily_bin1131.fits outfile=/scratch/kocevski/445058/cmap_HighResolution_532483201_532742401_4FGL_J1516.8+3651_daily_bin1131.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/445058/ft1_filtered_4FGL_J1516.8+3651_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/445058/ft2_4FGL_J1516.8+3651_daily_bin1131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445058/Model_4FGL_J1516.8+3651_daily_bin1131.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/445058/ft1_filtered_4FGL_J1516.8+3651_daily_bin1131.fits.....................!
real 49.64
user 48.30
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16110E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.932       1.0000         .10000E-03   10000.    
     9 'norm      '    10.321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1310       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4030       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2676       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.074       1.0000         .10000E-03   10000.    
    20 'norm      '    .68582       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.302       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .15416E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .48263       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94443       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94315       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=   6226.618     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3212 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6900        .37262E-07** at limit **
   2  Prefactor     22.841        14.949       -.96400E-07    .63424E-04
   3  Prefactor     .10000E-03    28.281       -.39230E-05** at limit **
   4  norm          .10000E-03    3.9782       -.74404E-07** at limit **
   5  Prefactor     .10000E-03    8.4156        .11950E-06** at limit **
   6  norm          4.0476        5.4612        .22195E-06   -.12280E-04
   7  Prefactor     33.648        32.326        .15884E-06   -.26763E-05
   8  Prefactor     13.943        39.575        .51630E-05    .39164E-04
   9  norm          10.321        8.8260        .84665E-08   -.13616E-04
  10  Prefactor     3.1317        13.203        .57111E-06   -.16096E-04
  11  Prefactor     .10000E-03    3.7449        .36276E-06** at limit **
  12  Prefactor     8.4030        5.5845        .40572E-08   -.45859E-04
  13  norm          7.2683        2.1970        .63420E-08   -.53728E-03
  14  norm          .10000E-03    1.3107        .13349E-06** at limit **
  15  Prefactor     .10000E-03    3.9522       -.11249E-07** at limit **
  16  Prefactor     .10000E-03    31.677        .20219E-05** at limit **
  17  Prefactor     .10000E-03    2.8355        .19715E-07** at limit **
  18  Prefactor     1.2057        111.13       -.51606E-06   -.35919E-04
  19  Prefactor     28.112        15.577       -.58320E-06   -.11860E-03
  20  norm          .68637        1.5287        .59416E-06    .15330E-03
  21  Prefactor     11.299        11.630       -.66912E-06   -.22980E-03
  22  Prefactor     .10000E-03    12.151       -.97376E-06** at limit **
  23  Prefactor     .10000E-03    14.248        .14567E-05** at limit **
  24  norm          .10027E-03    9.4353        .27169E-05** at limit **
  25  Prefactor     .48093        1.8231        .56310E-06   -.20832E-03
  26  Prefactor     .10000E-03    59.217        .50097E-05** at limit **
  27  Prefactor     .10000E-03    3.5960       -.16457E-06** at limit **
  28  Normalizat    .94411        .18347       -.22417E-05   -.39779E-03
  29  Prefactor     .94344        .16448        .35600E-06   -.51833E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 22.8413
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.04763
  Prefactor  = 33.6479
  Prefactor  = 13.9427
  norm       = 10.3211
  Prefactor  = 3.13167
  Prefactor  = 0.0001
  Prefactor  = 8.40304
  norm       = 7.26834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20569
  Prefactor  = 28.1118
  norm       = 0.686369
  Prefactor  = 11.2991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100266
  Prefactor  = 0.480934
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.944107
  Prefactor  = 0.943438
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.618     FROM HESSE     STATUS=OK           553 CALLS     3765 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7199        .12636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.841        14.929        .83808E-04   -1.4752    
   3  Prefactor     .10000E-03    28.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9785        .15370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0476        5.4543        .20045E-03   -1.5306    
   7  Prefactor     33.648        32.327        .69082E-04   -1.4547    
   8  Prefactor     13.943        39.744        .10731E-03   -1.4961    
   9  norm          10.321        8.8184        .12472E-03   -1.5065    
  10  Prefactor     3.1317        13.106        .22911E-03   -1.5354    
  11  Prefactor     .10000E-03    3.7605        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4030        5.5832        .13829E-03   -1.5128    
  13  norm          7.2683        2.2032        .60371E-04   -1.5169    
  14  norm          .10000E-03    1.3221        .88277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9609        .15298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8474        .12976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2057        128.16        .39664E-02   -1.5488    
  19  Prefactor     28.112        16.240        .75612E-04   -1.4647    
  20  norm          .68637        1.4403        .10296E-03   -1.5542    
  21  Prefactor     11.299        11.026        .11917E-03   -1.5036    
  22  Prefactor     .10000E-03    12.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10027E-03    46.479        .42587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .48093        2.8483        .19378E-02   -1.5569    
  26  Prefactor     .10000E-03    62.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.6886        .29190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .94411        .21473        .24588E-03   -.94927    
  29  Prefactor     .94344        .19402        .23883E-03   -.94639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77314e-08
Minuit parameter uncertainties:
  1  4.91267e-06
  2  14.9319
  3  0.00017487
  4  5.9743e-07
  5  1.29233e-05
  6  5.45498
  7  32.3434
  8  39.8191
  9  8.81946
  10  12.8176
  11  1.30288e-05
  12  5.58359
  13  2.20322
  14  5.99023e-06
  15  1.86693e-05
  16  0.000167343
  17  1.73474e-06
  18  24.9156
  19  16.2427
  20  1.44037
  21  11.028
  22  4.51547e-05
  23  4.20958e-05
  24  0.00703328
  25  2.34073
  26  0.000538079
  27  6.99476e-06
  28  0.214923
  29  0.194166
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.673e-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:  9.434e-01  1.942e-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.441e-01  2.149e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445058/likelihoodResults_532483201_532742401_4FGL_J1516.8+3651_daily_bin1131.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) = 6226.61778259
delta logL = -0.000149787759256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6226.61763285
delta logL = -4.89280864713e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2634       1.0000          .0000       10.000    
     3 'Normalizat'    .94409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94346       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=   6226.618     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      227 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.725        .90712E-02** at limit **
   2  Index         2.2555        6.0692        .50000        .21382E-05
   3  Normalizat    .94411        .16465        .45463E-01    .14245E-04
   4  Prefactor     .94344        .16074        .45557E-01    .99676E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25547
  Normalizat = 0.944106
  Prefactor  = 0.94344
 **********
 **   18 **HESSE 
 **********

 FCN=   6226.618     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2555        6.1169        .50000       -.58105    
   3  Normalizat    .94411        .19139        .24588E-03   -.94927    
   4  Prefactor     .94344        .18688        .23883E-03   -.94639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16105e-12
Minuit parameter uncertainties:
  1  7.55388e-06
  2  4.52551
  3  0.191533
  4  0.187004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445058': 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) = 6226.61763283
delta logL = -3.05135472445e-08

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  7.554e-06  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.255e+00  4.526e+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:  9.434e-01  1.870e-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.441e-01  1.915e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/445058/cmap_HighResolution_532483201_532742401_4FGL_J1516.8+3651_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-11 23:04:28.553355', job_id='445058', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631426668.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-3.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1131' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:04:28 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1131 229.222 36.8505 532483201 532742401 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 :                                   781.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

