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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1571
RA = 229.049, Dec = 43.8527
tmin = 646531201, tmax = 646790401
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='437310', job_status='RUN', time_executed='2021-09-11 22:21:34.154360', time_epoch_executed='1631424094.15' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437310

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437310/ft1_4FGL_J1516.1+4351_daily_bin1571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437310/ft1_4FGL_J1516.1+4351_daily_bin1571.fits outfile=/scratch/kocevski/437310/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1571.fits ra=229.049 dec=43.8527 rad=12.0 tmin=646531201.0 tmax=646790401.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.41
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.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/437310/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1571.fits evtable="EVENTS" outfile="/scratch/kocevski/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits" evtable="EVENTS" scfile=/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits sctable="SC_DATA" outfile=/scratch/kocevski/437310/ltcube_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.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/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits
.....................!
real 11.97
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits sctable="SC_DATA" expcube=/scratch/kocevski/437310/ltcube_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.fits outfile=/scratch/kocevski/437310/expmap_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.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/437310/ltcube_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.fits
.....................!
real 190.78
user 185.40
sys 4.90

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits scfile=/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits outfile=/scratch/kocevski/437310/cmap_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.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.049 yref=43.8527 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits scfile=/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits outfile=/scratch/kocevski/437310/cmap_HighResolution_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.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.049 yref=43.8527 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/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437310/Model_4FGL_J1516.1+4351_daily_bin1571.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/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits.....................!
real 48.57
user 47.17
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits', '/scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits', expMap='/scratch/kocevski/437310/expmap_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.fits', expCube='/scratch/kocevski/437310/ltcube_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437310/Model_4FGL_J1516.1+4351_daily_bin1571.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/437310/ft1_filtered_4FGL_J1516.1+4351_daily_bin1571.fits
Spacecraft file(s): /scratch/kocevski/437310/ft2_4FGL_J1516.1+4351_daily_bin1571.fits
Exposure map: /scratch/kocevski/437310/expmap_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.fits
Exposure cube: /scratch/kocevski/437310/ltcube_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437310/Model_4FGL_J1516.1+4351_daily_bin1571.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) = 6280.08221656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11440E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1844       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7584       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9541       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42728E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.916       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7567       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5125       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61044E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .51188       1.0000         .10000E-03   10000.    
    18 'norm      '    .11214E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20413E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.330       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    18.159       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3884       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6645       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94314       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6280.020     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     3962 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9679       -.29042E-05** at limit **
   2  Prefactor     1.1957        54.379        .26711E-04   -.75152E-04
   3  Prefactor     .10000E-03    7.4008       -.12226E-06** at limit **
   4  Prefactor     .10000E-03    6.9816       -.85682E-06** at limit **
   5  norm          3.7617        13.803        .33338E-05   -.12108E-05
   6  Prefactor     .10000E-03    17.013       -.16776E-06** at limit **
   7  Prefactor     6.9870        23.440        .32390E-05   -.80960E-04
   8  norm          .10000E-03    2.7631       -.13375E-06** at limit **
   9  Prefactor     .10000E-03    25.742       -.14970E-05** at limit **
  10  Prefactor     .10000E-03    31.405        .45178E-06** at limit **
  11  norm          .10000E-03    3.2192        .18955E-07** at limit **
  12  Prefactor     23.922        12.590       -.15422E-08   -.64470E-04
  13  Prefactor     1.7517        22.240        .11372E-05   -.24339E-04
  14  norm          1.5123        1.2300        .32144E-07   -.22338E-03
  15  Prefactor     .10407E-03    8.0264       -.83499E-06** at limit **
  16  Prefactor     .10000E-03    6.4652        .19736E-06** at limit **
  17  norm          .51217        1.5090        .31548E-06    .19557E-04
  18  norm          .10000E-03    1.9628        .53863E-06** at limit **
  19  Prefactor     .10001E-03    8.2728       -.39129E-05** at limit **
  20  Prefactor     .10000E-03    37.807        .11204E-05** at limit **
  21  Prefactor     .10000E-03    16.601       -.17607E-06** at limit **
  22  Prefactor     11.328        11.580       -.98805E-06   -.54714E-03
  23  Prefactor     .10000E-03    8.3778       -.76357E-07** at limit **
  24  norm          18.163        12.665        .30339E-06   -.10674E-04
  25  Prefactor     6.3883        8.3389        .12144E-06   -.11166E-04
  26  Prefactor     .10000E-03    29.059       -.56632E-06** at limit **
  27  Prefactor     4.6654        5.2007        .13076E-05   -.31081E-03
  28  Prefactor     .10000E-03    22.239        .74913E-06** at limit **
  29  Normalizat    .94281        .16698       -.44081E-07   -.32642E-03
  30  Prefactor     1.0042        .17452       -.27906E-05   -.70034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 1.19571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76168
  Prefactor  = 0.0001
  Prefactor  = 6.98697
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9225
  Prefactor  = 1.75168
  norm       = 1.51228
  Prefactor  = 0.00010407
  Prefactor  = 0.0001
  norm       = 0.51217
  norm       = 0.000100002
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3282
  Prefactor  = 0.0001
  norm       = 18.1629
  Prefactor  = 6.3883
  Prefactor  = 0.0001
  Prefactor  = 4.66543
  Prefactor  = 0.0001
  Normalizat = 0.94281
  Prefactor  = 1.00423
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.020     FROM HESSE     STATUS=OK           592 CALLS     4554 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.803        .29303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1957        61.078        .20974E-02   -1.5489    
   3  Prefactor     .10000E-03    7.4100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7617        13.788        .10413E-02   -1.5320    
   6  Prefactor     .10000E-03    17.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9870        23.492        .15213E-03   -1.5179    
   8  norm          .10000E-03    2.7836        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.565        .42466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2228        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.922        12.592        .40954E-03   -1.4729    
  13  Prefactor     1.7517        21.874        .31622E-03   -1.5443    
  14  norm          1.5123        1.2278        .74878E-04   -1.5462    
  15  Prefactor     .10407E-03    10.756        .54896E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .51217        1.4428        .13952E-03   -1.5565    
  18  norm          .10000E-03    3.3717        .20933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    18.302        .35150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.328        10.284        .11902E-03   -1.5035    
  23  Prefactor     .10000E-03    8.3829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          18.163        12.662        .93990E-04   -1.4855    
  25  Prefactor     6.3883        8.3367        .15880E-03   -1.5202    
  26  Prefactor     .10000E-03    29.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.6654        5.1870        .91973E-03   -1.5276    
  28  Prefactor     .10000E-03    22.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94281        .20346        .22900E-03   -.94972    
  30  Prefactor     1.0042        .21222        .24271E-03   -.92589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19212e-09
Minuit parameter uncertainties:
  1  0.000426918
  2  17.1094
  3  8.15559e-05
  4  9.22266e-05
  5  13.7994
  6  3.08293e-05
  7  23.5235
  8  1.31912e-05
  9  0.000243912
  10  0.000190186
  11  3.63494e-06
  12  12.5929
  13  12.3853
  14  1.22784
  15  0.0132349
  16  2.79116e-05
  17  1.44286
  18  0.000152055
  19  0.000806866
  20  2.03066e-05
  21  0.000176511
  22  10.2857
  23  1.70653e-05
  24  12.6638
  25  8.33818
  26  0.000121249
  27  5.18745
  28  1.758e-06
  29  0.203624
  30  0.212402
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.069e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.004e+00  2.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  9.428e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437310/likelihoodResults_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.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) = 6280.02051582
delta logL = -0.000259817523329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6280.0202561
delta logL = -9.82963683782e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4868       1.0000          .0000       10.000    
     3 'Normalizat'    .94283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6280.020     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .11425        .63570E-01** at limit **
   2  Index         2.5094        5.6685        .50000       -.95733E-05
   3  Normalizat    .94281        .58056E-03    .45447E-01    .22904E-03
   4  Prefactor     1.0042        .63626E-03    .44361E-01    .18978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.50943
  Normalizat = 0.942807
  Prefactor  = 1.00423
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.020     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      258 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    25.387        .34637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5094        6.3971        .50000       -.52142    
   3  Normalizat    .94281        .44445E-02    .22900E-03   -.94972    
   4  Prefactor     1.0042        .48716E-02    .24271E-03   -.92589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85378e-08
Minuit parameter uncertainties:
  1  0.000824067
  2  79.1992
  3  0.00444452
  4  0.00487163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437310': 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) = 6280.02025589
delta logL = 1.1709107639e-07

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.241e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.509e+00  7.920e+01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.004e+00  4.872e-03  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  9.428e-01  4.445e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.049 43.853

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/437310/cmap_HighResolution_646531201_646790401_4FGL_J1516.1+4351_daily_bin1571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-11 22:36:44.861372', job_id='437310', GAL2='1.00', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631425004.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1571' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:36:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 437310: <4FGL_J1516.1+4351_daily_bin1571> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1571> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:21:16 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:21:18 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:18 2021
Terminated at Sat Sep 11 22:36:45 2021
Results reported at Sat Sep 11 22:36:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1571 229.049 43.8527 646531201 646790401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   904.00 sec.
    Max Memory :                                 1227 MB
    Average Memory :                             327.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

