aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 167 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1769
RA = 229.222, Dec = 36.8505
tmin = 697852801, tmax = 698112001
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='438411', job_status='RUN', time_executed='2023-02-15 01:03:31.307980', time_epoch_executed='1676451811.31' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438411/ft1_4FGL_J1516.8+3651_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438411/ft2_4FGL_J1516.8+3651_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438411/ft1_4FGL_J1516.8+3651_daily_bin1769.fits outfile=/scratch/kocevski/438411/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1769.fits ra=229.222 dec=36.8505 rad=12.0 tmin=697852801.0 tmax=698112001.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 4.43
user 4.21
sys 0.18

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

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

Number of photons that the gtmktime cut: 575

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438411/ft1_filtered_4FGL_J1516.8+3651_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/438411/ft2_4FGL_J1516.8+3651_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/438411/ltcube_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.fits outfile=/scratch/kocevski/438411/expmap_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.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/438411/ltcube_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.fits
.....................!
real 189.62
user 185.10
sys 4.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/438411/ft1_filtered_4FGL_J1516.8+3651_daily_bin1769.fits scfile=/scratch/kocevski/438411/ft2_4FGL_J1516.8+3651_daily_bin1769.fits outfile=/scratch/kocevski/438411/cmap_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438411/ft1_filtered_4FGL_J1516.8+3651_daily_bin1769.fits scfile=/scratch/kocevski/438411/ft2_4FGL_J1516.8+3651_daily_bin1769.fits outfile=/scratch/kocevski/438411/cmap_HighResolution_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438411/ft1_filtered_4FGL_J1516.8+3651_daily_bin1769.fits', '/scratch/kocevski/438411/ft2_4FGL_J1516.8+3651_daily_bin1769.fits', expMap='/scratch/kocevski/438411/expmap_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.fits', expCube='/scratch/kocevski/438411/ltcube_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438411/Model_4FGL_J1516.8+3651_daily_bin1769.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  0.000e+00  1.000e+06 ( 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/438411/ft1_filtered_4FGL_J1516.8+3651_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/438411/ft2_4FGL_J1516.8+3651_daily_bin1769.fits
Exposure map: /scratch/kocevski/438411/expmap_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.fits
Exposure cube: /scratch/kocevski/438411/ltcube_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438411/Model_4FGL_J1516.8+3651_daily_bin1769.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) = 6197.04740988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2302       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12934E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .28333E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .16638E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .60556E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    380.05       1.0000          .0000       .10000E+07
     7 'norm      '    .14901E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.5391       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26885E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.9576       1.0000          .0000       .10000E+07
    11 'norm      '    .10703E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .95202E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .79368E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .46869E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .97249E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    27.903       1.0000          .0000       .10000E+07
    17 'norm      '    .20457       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27562E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .54008       1.0000          .0000       .10000E+07
    20 'norm      '    .30759E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .34004E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .34395E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .10896E-04   1.0000          .0000       .10000E+07
    24 'Normalizat'    .84840       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0608       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6197.044     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2218 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2331        2.8809       -.25001E-07   -.33795E-03
   2  Prefactor     .28072E-06    3.9847        .83948E-07** at limit **
   3  Prefactor     .41800E-07    6.3643        .21964E-06** at limit **
   4  norm          .67724E-08    4.0139        .24877E-06** at limit **
   5  norm          .27756E-09    2.0780       -.33356E-07** at limit **
   6  Prefactor     381.10        62.087        .10538E-07   -.23090E-01
   7  norm          .19429E-08    5.3820       -.12430E-06** at limit **
   8  Prefactor     9.4829        1.6778       -.56071E-08   -.29683E-03
   9  Prefactor     .38858E-09    2.1350        .77261E-07** at limit **
  10  Prefactor     6.9298        7.2870        .24618E-07    .17864E-03
  11  norm          .55511E-10    .91075        .21139E-06** at limit **
  12  norm          .11102E-09    1.2372        .90115E-07** at limit **
  13  Prefactor     .87375E-07    4.1539        .10153E-06** at limit **
  14  Prefactor     .14653E-05    25.118       -.16893E-06** at limit **
  15  Prefactor      .0000        21.180       -.37622E-06** at limit **
  16  Prefactor     28.034        1.7499       -.89747E-09   -.10750E-01
  17  norm          .20605        .72698       -.79413E-07** at limit **
  18  Prefactor     .11102E-09    3.2835        .37219E-07** at limit **
  19  Prefactor     .37826E-04    13.790       -.79992E-08** at limit **
  20  norm          .74329E-07    4.1979        .71176E-07** at limit **
  21  Prefactor     .19645E-06    4.1559        .74247E-08** at limit **
  22  Prefactor     .36471E-07    10.308        .14150E-06** at limit **
  23  Prefactor     .29754E-06    1.8795        .15183E-06** at limit **
  24  Normalizat    .84772        .20144       -.62854E-05   -.11663E-03
  25  Prefactor     1.0615        .19747        .41758E-05   -.78058E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2331
  Prefactor  = 2.8072e-07
  Prefactor  = 4.17999e-08
  norm       = 6.77236e-09
  norm       = 2.77556e-10
  Prefactor  = 381.104
  norm       = 1.94289e-09
  Prefactor  = 9.48291
  Prefactor  = 3.88578e-10
  Prefactor  = 6.92976
  norm       = 5.55112e-11
  norm       = 1.11022e-10
  Prefactor  = 8.73746e-08
  Prefactor  = 1.46527e-06
  Prefactor  = 0
  Prefactor  = 28.0336
  norm       = 0.206054
  Prefactor  = 1.11022e-10
  Prefactor  = 3.78257e-05
  norm       = 7.43294e-08
  Prefactor  = 1.96454e-07
  Prefactor  = 3.64708e-08
  Prefactor  = 2.9754e-07
  Normalizat = 0.847718
  Prefactor  = 1.06151
 **********
 **   18 **HESSE 
 **********

 FCN=   6197.044     FROM HESSE     STATUS=OK           467 CALLS     2685 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2331        2.9453        .10136E-02   -1.5686    
   2  Prefactor     .28072E-06    8.3995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41800E-07    9.1350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .67724E-08    4.0423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .27756E-09    2.0778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     381.10        62.319        .51305E-04   -1.5318    
   7  norm          .19429E-08    5.3923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4829        11.936        .32423E-03   -1.5646    
   9  Prefactor     .38858E-09    2.1352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9298        7.3026        .38010E-03   -1.5655    
  11  norm          .55511E-10    .89119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .11102E-09    1.2455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .87375E-07    4.5077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14653E-05    28.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        20.863        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.034        13.449        .18935E-03   -1.5602    
  17  norm          .20605        .74280        .11695E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    7.5714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .37826E-04    92.503        .74776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .74329E-07    7.2630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19645E-06    4.9002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36471E-07    11.351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .29754E-06    11.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84772        .17751        .44239E-01   -.98322    
  25  Prefactor     1.0615        .16975        .39315E-01   -.90706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84808e-07
Minuit parameter uncertainties:
  1  2.94531
  2  0.00307113
  3  0.00123573
  4  0.000331078
  5  4.8809e-05
  6  62.3196
  7  0.000203724
  8  11.9364
  9  5.90786e-05
  10  7.30264
  11  1.21187e-05
  12  2.3208e-05
  13  0.00125531
  14  0.0129067
  15  4.24136e-05
  16  13.4493
  17  0.742803
  18  6.17639e-05
  19  0.118306
  20  0.00146938
  21  0.00196236
  22  0.00128709
  23  0.00371712
  24  0.17763
  25  0.169832
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.465e-06  1.291e-02  0.000e+00  1.000e+06 ( 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:  1.062e+00  1.698e-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.477e-01  1.776e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438411/likelihoodResults_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.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) = 6197.06078067
delta logL = -0.0168157234566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6197.04396538
delta logL = -4.316052582e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11834E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .30568       1.0000          .0000       10.000    
     3 'Normalizat'    .84786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6197.031     FROM MIGRAD    STATUS=FAILED       162 CALLS      331 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53086E-01    1.3169        .70825E-04** at limit **
   2  Index         4.7645        .20104        .50000       -.10953E-04
   3  Normalizat    .83370        .73667E-02    .26161E-03   -.18564E-03
   4  Prefactor     1.0700        .73064E-02    .23061E-03   -.14816E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6197.031     FROM SIMPLEX   STATUS=UNCHANGED     58 CALLS      389 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53086E-01    1.3169        .11295E-04** at limit **
   2  Index         4.7645        .20104        .79745E-03   -.10953E-04
   3  Normalizat    .83370        .73667E-02    .61032E-04   -.18564E-03
   4  Prefactor     1.0700        .73064E-02    .38333E-04   -.14816E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6197.031     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      422 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53088E-01    84.092        .14165E-04** at limit **
   2  Index         4.7645        5.9472        .17603E-02    .40881E-05
   3  Normalizat    .83370        .18772        .10465E-04   -.10321E-03
   4  Prefactor     1.0700        .17258        .46121E-04   -.92929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0530881
  Index      = 4.76451
  Normalizat = 0.833705
  Prefactor  = 1.07
 **********
 **   18 **HESSE 
 **********

 FCN=   6197.031     FROM HESSE     STATUS=OK            25 CALLS      447 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53088E-01    3.8773        .56660E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7645        7.2987        .70413E-04   -.47115E-01
   3  Normalizat    .83370        .21739        .20929E-05   -.98830    
   4  Prefactor     1.0700        .20450        .92243E-05   -.90431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55609e-11
Minuit parameter uncertainties:
  1  0.907393
  2  6.31482
  3  0.217619
  4  0.204651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438411': 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) = 6197.03135242
delta logL = 0.0126125312245

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  5.309e-02  9.074e-01  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  4.765e+00  6.315e+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:  1.070e+00  2.047e-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.337e-01  2.176e-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/438411/cmap_HighResolution_697852801_698112001_4FGL_J1516.8+3651_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2023-02-15 01:14:21.500973', job_id='438411', GAL2='1.07', fit_tolerance='1e-08', EG2='0.83', EG='0.85', time_epoch_completed='1676452461.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.26e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1769' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:14:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 438411: <4FGL_J1516.8+3651_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1769> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb 15 01:00:23 2023
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:00:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:00:25 2023
Terminated at Wed Feb 15 01:14:22 2023
Results reported at Wed Feb 15 01:14:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1769 229.222 36.8505 697852801 698112001 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 :                                   651.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

