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


Performing analysis on: 4FGL_J1516.9+1934_weekly_bin738
RA = 229.244, Dec = 19.5805
tmin = 685324801, tmax = 685929601
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='259272', job_status='RUN', time_executed='2022-09-27 01:42:58.071669', time_epoch_executed='1664268178.07' WHERE source_name='4FGL J1516.9+1934' and cadence='weekly' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259272

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259272/ft1_4FGL_J1516.9+1934_weekly_bin738.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259272/ft1_4FGL_J1516.9+1934_weekly_bin738.fits outfile=/scratch/kocevski/259272/ft1_filteredMKT_4FGL_J1516.9+1934_weekly_bin738.fits ra=229.244 dec=19.5805 rad=12.0 tmin=685324801.0 tmax=685929601.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 9.83
user 9.42
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.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/259272/ft1_filteredMKT_4FGL_J1516.9+1934_weekly_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.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.56
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 1406

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/259272/ltcube_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.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/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits
.....................!
real 31.80
user 30.91
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/259272/ltcube_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.fits outfile=/scratch/kocevski/259272/expmap_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.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/259272/ltcube_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.fits
.....................!
real 192.11
user 186.47
sys 5.04

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

Setting source of interest to:
4FGL J1516.9+1934 @ 229.244 19.5805

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits scfile=/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits outfile=/scratch/kocevski/259272/cmap_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.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.244 yref=19.5805 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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits scfile=/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits outfile=/scratch/kocevski/259272/cmap_HighResolution_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.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.244 yref=19.5805 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.60
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259272/Model_4FGL_J1516.9+1934_weekly_bin738.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/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits.....................!
real 106.42
user 104.91
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits', '/scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits', expMap='/scratch/kocevski/259272/expmap_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.fits', expCube='/scratch/kocevski/259272/ltcube_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259272/Model_4FGL_J1516.9+1934_weekly_bin738.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.9+1934'

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.750e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/259272/ft1_filtered_4FGL_J1516.9+1934_weekly_bin738.fits
Spacecraft file(s): /scratch/kocevski/259272/ft2_4FGL_J1516.9+1934_weekly_bin738.fits
Exposure map: /scratch/kocevski/259272/expmap_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.fits
Exposure cube: /scratch/kocevski/259272/ltcube_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259272/Model_4FGL_J1516.9+1934_weekly_bin738.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) = 15785.536375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31560E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .23259E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    27.291       1.0000          .0000       .10000E+07
     4 'Prefactor '    .85698E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.3712       1.0000          .0000       .10000E+07
     6 'norm      '    .75247       1.0000          .0000       .10000E+07
     7 'norm      '    .47279E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .21359E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    22.864       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11775E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .49120E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3960       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.9301       1.0000          .0000       .10000E+07
    14 'norm      '    6.5483       1.0000          .0000       .10000E+07
    15 'norm      '    11.847       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.564       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0262       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15785.49     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1062 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.2153       -.40106E-06** at limit **
   2  norm           .0000        2.7436       -.33383E-07** at limit **
   3  Prefactor     26.008        17.094        .73587E-06    .17959E-01
   4  Prefactor     .80713E-07    6.6332       -.67892E-06** at limit **
   5  Prefactor     6.3537        5.4087       -.17354E-06    .28512E-03
   6  norm          .75209        .15949       -.17083E-07   -.21772E-02
   7  norm           .0000        1.1750        .31659E-06** at limit **
   8  norm          .80103E-07    6.1264        .59763E-06** at limit **
   9  Prefactor     24.191        25.917       -.45198E-07   -.39766E-01
  10  Prefactor      .0000        2.3368       -.29080E-06** at limit **
  11  Prefactor     .21649E-08    5.2429       -.13295E-06** at limit **
  12  Prefactor     2.3905        1.7911        .43394E-07    .15150E-03
  13  Prefactor     9.4926        11.428        .88975E-06   -.68493E-01
  14  norm          6.5456        2.2728       -.73233E-08    .65065E-03
  15  norm          11.843        7.0608        .23802E-06    .11290E-01
  16  Prefactor     11.547        8.5354        .63034E-06    .24676E-01
  17  Normalizat    1.0274        .17147       -.10916E-05   -.20840E-04
  18  Prefactor     .96833        .10582       -.15480E-05   -.30069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 26.0078
  Prefactor  = 8.07132e-08
  Prefactor  = 6.35374
  norm       = 0.752087
  norm       = 0
  norm       = 8.01026e-08
  Prefactor  = 24.1906
  Prefactor  = 0
  Prefactor  = 2.16493e-09
  Prefactor  = 2.39049
  Prefactor  = 9.49261
  norm       = 6.54559
  norm       = 11.8431
  Prefactor  = 11.5472
  Normalizat = 1.02743
  Prefactor  = 0.968331
 **********
 **   18 **HESSE 
 **********

 FCN=   15785.49     FROM HESSE     STATUS=OK           284 CALLS     1346 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.1412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.7171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.008        17.072        .19146E-03   -1.5606    
   4  Prefactor     .80713E-07    6.8488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3537        5.4110        .39741E-03   -1.5658    
   6  norm          .75209        .15990        .49912E-03   -1.5691    
   7  norm           .0000        1.1752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .80103E-07    6.3458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.191        27.747        .20919E-03   -1.5610    
  10  Prefactor      .0000        2.3349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21649E-08    5.2513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3905        1.7991        .66130E-03   -1.5677    
  13  Prefactor     9.4926        24.037        .31775E-03   -1.5646    
  14  norm          6.5456        2.2761        .39194E-03   -1.5657    
  15  norm          11.843        7.0679        .29079E-03   -1.5639    
  16  Prefactor     11.547        8.5660        .29434E-03   -1.5640    
  17  Normalizat    1.0274        .14366        .71914E-01   -.92117    
  18  Prefactor     .96833        .87896E-01    .45872E-01   -.93793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61276e-07
Minuit parameter uncertainties:
  1  1.95557e-06
  2  1.40949e-05
  3  17.0717
  4  0.00148702
  5  5.411
  6  0.1599
  7  1.04052e-06
  8  0.00142598
  9  27.7472
  10  8.09258e-06
  11  0.000212304
  12  1.79914
  13  24.037
  14  2.27613
  15  7.0679
  16  8.56598
  17  0.143716
  18  0.087909
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.419e+01  2.775e+01  0.000e+00  1.000e+06 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.683e-01  8.791e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.027e+00  1.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 2.44e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 6.53e-06 +/- 7.49e-06

TS (Fixed Index): 1.07
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 8.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259272/likelihoodResults_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.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) = 15785.4584371
delta logL = 0.0308969233793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15785.4570666
delta logL = 0.0322673939063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.219       1.0000          .0000       .10000E+07
     2 'Index     '    2.3149       1.0000          .0000       10.000    
     3 'Normalizat'    1.0348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   15785.46     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.222        29.257        .79668E-05   -.23135E-02
   2  Index         2.3186        .98905        .87583E-02   -.17798E-03
   3  Normalizat    1.0347        .16932        .31719E-03    .59799E-03
   4  Prefactor     .96589        .10467        .20297E-03    .96736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2221
  Index      = 2.31863
  Normalizat = 1.0347
  Prefactor  = 0.965886
 **********
 **   18 **HESSE 
 **********

 FCN=   15785.46     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.222        29.370        .15934E-05   -1.5608    
   2  Index         2.3186        .99223        .35033E-03   -.56602    
   3  Normalizat    1.0347        .16945        .12688E-04   -.91877    
   4  Prefactor     .96589        .10475        .40594E-04   -.93875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68976e-09
Minuit parameter uncertainties:
  1  29.3702
  2  1.00161
  3  0.169535
  4  0.104774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259272': 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) = 15785.4570596
delta logL = 0.0322744550176

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.522e+01  2.937e+01  0.000e+00  1.000e+06 ( 1.000e-13)
226        Index:  2.319e+00  1.002e+00  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.659e-01  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.035e+00  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.32 +/- 1.00
Photon Flux (Free Index): 1.82e-08 +/- 3.24e-08
Energy Flux (Free Index): 6.71e-06 +/- 7.84e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/259272/cmap_HighResolution_685324801_685929601_4FGL_J1516.9+1934_weekly_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', comment='SUCCESS', photon_flux='2.44e-08', energy_flux2='6.71e-06', photon_flux_error='2.80e-08', dlogl='3.23e-02', energy_flux='6.53e-06', photon_flux2='1.82e-08', job_status='DONE', time_completed='2022-09-27 01:56:10.158238', photon_index_error2='1.00', photon_index2='2.32', ts='1.07', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.57e-08', energy_flux_error2='7.84e-06', EG='1.03', time_epoch_completed='1664268970.16', return_code='0', job_id='259272', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='7.49e-06', photon_flux_error2='3.24e-08', ts2='1.11', photon_index='2.58' WHERE bin_id='738' AND source_name='4FGL J1516.9+1934' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 27 01:56:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 259272: <4FGL_J1516.9+1934_weekly_bin738> in cluster <slac> Done

Job <4FGL_J1516.9+1934_weekly_bin738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 27 01:40:38 2022
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 01:42:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 01:42:40 2022
Terminated at Tue Sep 27 01:56:10 2022
Results reported at Tue Sep 27 01:56:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_weekly_bin738 229.244 19.5805 685324801 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.9+1934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   786.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            932 sec.

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

