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


Performing analysis on: 4FGL_J1516.9+1934_weekly_bin749
RA = 229.244, Dec = 19.5805
tmin = 691977601, tmax = 692582401
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='531895', job_status='RUN', time_executed='2022-12-13 01:17:44.954725', time_epoch_executed='1670923064.95' WHERE source_name='4FGL J1516.9+1934' and cadence='weekly' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531895

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531895/ft1_4FGL_J1516.9+1934_weekly_bin749.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531895/ft1_4FGL_J1516.9+1934_weekly_bin749.fits outfile=/scratch/kocevski/531895/ft1_filteredMKT_4FGL_J1516.9+1934_weekly_bin749.fits ra=229.244 dec=19.5805 rad=12.0 tmin=691977601.0 tmax=692582401.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.23
user 8.96
sys 0.24

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

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

Number of photons that the gtmktime cut: 1681

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531895/ft1_filtered_4FGL_J1516.9+1934_weekly_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/531895/ltcube_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.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/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits
.....................!
real 26.54
user 26.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531895/ft1_filtered_4FGL_J1516.9+1934_weekly_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/531895/ltcube_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.fits outfile=/scratch/kocevski/531895/expmap_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.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/531895/ltcube_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.fits
.....................!
real 190.70
user 184.85
sys 5.54

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/531895/ft1_filtered_4FGL_J1516.9+1934_weekly_bin749.fits scfile=/scratch/kocevski/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits outfile=/scratch/kocevski/531895/cmap_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531895/ft1_filtered_4FGL_J1516.9+1934_weekly_bin749.fits scfile=/scratch/kocevski/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits outfile=/scratch/kocevski/531895/cmap_HighResolution_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.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.59
user 0.40
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531895/ft1_filtered_4FGL_J1516.9+1934_weekly_bin749.fits', '/scratch/kocevski/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits', expMap='/scratch/kocevski/531895/expmap_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.fits', expCube='/scratch/kocevski/531895/ltcube_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531895/Model_4FGL_J1516.9+1934_weekly_bin749.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/531895/ft1_filtered_4FGL_J1516.9+1934_weekly_bin749.fits
Spacecraft file(s): /scratch/kocevski/531895/ft2_4FGL_J1516.9+1934_weekly_bin749.fits
Exposure map: /scratch/kocevski/531895/expmap_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.fits
Exposure cube: /scratch/kocevski/531895/ltcube_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531895/Model_4FGL_J1516.9+1934_weekly_bin749.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) = 18429.8195887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13696E-04   1.0000          .0000       .10000E+07
     2 'norm      '    3.7392       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.856       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15482E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3980       1.0000          .0000       .10000E+07
     6 'norm      '    .68327       1.0000          .0000       .10000E+07
     7 'norm      '    .81616       1.0000          .0000       .10000E+07
     8 'norm      '    .42788E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .48348       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64187E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .33523E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .37633E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .96098E-03   1.0000          .0000       .10000E+07
    14 'norm      '    1.6023       1.0000          .0000       .10000E+07
    15 'norm      '    .16510E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .52291E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2733       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .91702       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=   18429.77     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1057 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .91734       -.99180E-07** at limit **
   2  norm          3.7399        2.2371       -.18452E-06    .17839E-03
   3  Prefactor     23.030        1.7627       -.13457E-07   -.14686E-02
   4  Prefactor     .11102E-09    10.883        .30273E-06** at limit **
   5  Prefactor     1.4002        3.8262       -.59372E-06   -.31143E-03
   6  norm          .68312        .13567       -.29053E-08    .90181E-02
   7  norm          .81592        3.6759        .76167E-06   -.61250E-03
   8  norm          .61062E-09    7.2839        .97383E-06** at limit **
   9  Prefactor     .12318E-04    13.937       -.28144E-05** at limit **
  10  Prefactor      .0000        1.3468        .23363E-06** at limit **
  11  Prefactor      .0000        4.7632        .38939E-06** at limit **
  12  Prefactor      .0000        1.4053        .28093E-06** at limit **
  13  Prefactor     .41156E-06    27.520       -.36985E-05** at limit **
  14  norm          1.6020        1.5190        .36480E-06   -.75966E-04
  15  norm          .15543E-08    8.7664       -.56896E-06** at limit **
  16  Prefactor      .0000        2.3102        .74063E-06** at limit **
  17  Normalizat    1.2732        .15490        .97831E-05    .11617E-03
  18  Prefactor     .91718        .97258E-01   -.56087E-06    .97507E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 3.73989
  Prefactor  = 23.0302
  Prefactor  = 1.11022e-10
  Prefactor  = 1.40021
  norm       = 0.683116
  norm       = 0.815918
  norm       = 6.10623e-10
  Prefactor  = 1.23185e-05
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.1156e-07
  norm       = 1.60202
  norm       = 1.55431e-09
  Prefactor  = 0
  Normalizat = 1.27319
  Prefactor  = 0.917184
 **********
 **   18 **HESSE 
 **********

 FCN=   18429.77     FROM HESSE     STATUS=OK           280 CALLS     1337 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .90582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7399        2.2372        .52192E-03   -1.5669    
   3  Prefactor     23.030        15.730        .20922E-03   -1.5612    
   4  Prefactor     .11102E-09    10.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4002        3.8678        .91768E-03   -1.5684    
   6  norm          .68312        .13630        .48213E-03   -1.5691    
   7  norm          .81592        3.7050        .51738E-03   -1.5690    
   8  norm          .61062E-09    7.2974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12318E-04    115.01        .80389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.3488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.7755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.3506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .41156E-06    31.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6020        1.5357        .83708E-03   -1.5683    
  15  norm          .15543E-08    8.6975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.3111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2732        .12868        .65131E-01   -.84370    
  18  Prefactor     .91718        .80214E-01    .45222E-01   -.95543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65557e-06
Minuit parameter uncertainties:
  1  6.75784e-06
  2  2.2372
  3  15.73
  4  7.18267e-05
  5  3.86778
  6  0.136302
  7  3.47735
  8  0.000135724
  9  0.0752818
  10  1.81881e-06
  11  5.0867e-06
  12  2.01822e-06
  13  0.00714748
  14  1.53567
  15  0.00023273
  16  1.27548e-05
  17  0.128717
  18  0.0802243
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.232e-05  7.528e-02  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.172e-01  8.022e-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.273e+00  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/531895/likelihoodResults_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.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) = 18429.7723346
delta logL = -0.00510071136887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18429.6806605
delta logL = 0.0865734082763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4770       1.0000          .0000       .10000E+07
     2 'Index     '    1.6292       1.0000          .0000       10.000    
     3 'Normalizat'    1.2756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91384       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.

 FCN=   18429.68     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      254 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4424        22.741        .36653E-03   -.18352E-02
   2  Index         1.6289        .66082        .33718        .70945E-05
   3  Normalizat    1.2755        .12717        .65081E-01   -.24501E-03
   4  Prefactor     .91391        .79848E-01    .45181E-01   -.30831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4424
  Index      = 1.62894
  Normalizat = 1.27548
  Prefactor  = 0.913913
 **********
 **   18 **HESSE 
 **********

 FCN=   18429.68     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4424        20.119        .14661E-04   -1.5653    
   2  Index         1.6289        1.0004        .20270E-01   -.73990    
   3  Normalizat    1.2755        .15397        .28790E-03   -.84301    
   4  Prefactor     .91391        .96693E-01    .20788E-03   -.95657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17386e-09
Minuit parameter uncertainties:
  1  20.1189
  2  1.01309
  3  0.154023
  4  0.0967113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531895': 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) = 18429.6806586
delta logL = 0.0865752737227

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.442e+00  2.012e+01  0.000e+00  1.000e+06 ( 1.000e-13)
226        Index:  1.629e+00  1.013e+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.139e-01  9.671e-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.275e+00  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.244 19.581

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/531895/cmap_HighResolution_691977601_692582401_4FGL_J1516.9+1934_weekly_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2022-12-13 01:31:55.757831', job_id='531895', GAL2='0.91', fit_tolerance='1e-08', EG2='1.28', EG='1.27', time_epoch_completed='1670923915.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.66e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='749' AND source_name='4FGL J1516.9+1934' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 13 01:31:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 531895: <4FGL_J1516.9+1934_weekly_bin749> in cluster <slac> Done

Job <4FGL_J1516.9+1934_weekly_bin749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 13 01:15:23 2022
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 13 01:15:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 13 01:15:24 2022
Terminated at Tue Dec 13 01:31:56 2022
Results reported at Tue Dec 13 01:31:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_weekly_bin749 229.244 19.5805 691977601 692582401 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 :                                   849.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

