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


Performing analysis on: 4FGL_J1516.9+1934_weekly_bin758
RA = 229.244, Dec = 19.5805
tmin = 697420801, tmax = 698025601
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='97196', job_status='RUN', time_executed='2023-02-14 01:50:39.006499', time_epoch_executed='1676368239.01' WHERE source_name='4FGL J1516.9+1934' and cadence='weekly' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97196

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97196/ft1_4FGL_J1516.9+1934_weekly_bin758.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97196/ft1_4FGL_J1516.9+1934_weekly_bin758.fits outfile=/scratch/kocevski/97196/ft1_filteredMKT_4FGL_J1516.9+1934_weekly_bin758.fits ra=229.244 dec=19.5805 rad=12.0 tmin=697420801.0 tmax=698025601.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 7.90
user 7.57
sys 0.30

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

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

Number of photons that the gtmktime cut: 1681

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97196/ft1_filtered_4FGL_J1516.9+1934_weekly_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/97196/ltcube_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.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/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits
.....................!
real 26.14
user 25.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97196/ft1_filtered_4FGL_J1516.9+1934_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/97196/ltcube_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.fits outfile=/scratch/kocevski/97196/expmap_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.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/97196/ltcube_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.fits
.....................!
real 189.11
user 184.81
sys 3.94

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/97196/ft1_filtered_4FGL_J1516.9+1934_weekly_bin758.fits scfile=/scratch/kocevski/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits outfile=/scratch/kocevski/97196/cmap_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.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/97196/ft1_filtered_4FGL_J1516.9+1934_weekly_bin758.fits scfile=/scratch/kocevski/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits outfile=/scratch/kocevski/97196/cmap_HighResolution_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/97196/ft1_filtered_4FGL_J1516.9+1934_weekly_bin758.fits', '/scratch/kocevski/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits', expMap='/scratch/kocevski/97196/expmap_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.fits', expCube='/scratch/kocevski/97196/ltcube_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/97196/Model_4FGL_J1516.9+1934_weekly_bin758.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/97196/ft1_filtered_4FGL_J1516.9+1934_weekly_bin758.fits
Spacecraft file(s): /scratch/kocevski/97196/ft2_4FGL_J1516.9+1934_weekly_bin758.fits
Exposure map: /scratch/kocevski/97196/expmap_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.fits
Exposure cube: /scratch/kocevski/97196/ltcube_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/97196/Model_4FGL_J1516.9+1934_weekly_bin758.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 17957.9456377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77470       1.0000          .0000       .10000E+07
     2 'norm      '    2.0956       1.0000          .0000       .10000E+07
     3 'Prefactor '    .48698E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    17.812       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.5273       1.0000          .0000       .10000E+07
     6 'norm      '    .60377       1.0000          .0000       .10000E+07
     7 'norm      '    2.2132       1.0000          .0000       .10000E+07
     8 'norm      '    .26196E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    29.265       1.0000          .0000       .10000E+07
    10 'Prefactor '    .69979E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .39242E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .42453       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10789E-04   1.0000          .0000       .10000E+07
    14 'norm      '    4.6415       1.0000          .0000       .10000E+07
    15 'norm      '    12.102       1.0000          .0000       .10000E+07
    16 'Prefactor '    .28610E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2612       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .88468       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=   17957.84     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     1041 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77855        1.5949        .25312E-08   -.20037E-02
   2  norm          2.0908        1.6930        .79393E-07    .26749E-02
   3  Prefactor     .27756E-09    11.086        .99840E-06** at limit **
   4  Prefactor     17.761        2.4225       -.95756E-06    .44310E-01
   5  Prefactor     2.5290        4.1423        .16916E-05    .14738E-02
   6  norm          .60410        .13187        .21625E-07    .27166E-01
   7  norm          2.2124        2.4621        .80102E-06   -.78238E-04
   8  norm          .39413E-08    7.1557       -.96414E-05** at limit **
   9  Prefactor     31.054        26.161        .23425E-05   -.49856E-03
  10  Prefactor      .0000        1.1978        .27068E-06** at limit **
  11  Prefactor     .55511E-10    4.7609       -.77628E-06** at limit **
  12  Prefactor     .42457        .81290        .51560E-06   -.11372E-01
  13  Prefactor     .11102E-09    6.8301        .75222E-05** at limit **
  14  norm          4.6449        1.6757       -.14015E-07    .31159E-02
  15  norm          12.112        5.3607       -.40967E-07    .13168E-03
  16  Prefactor     .55511E-10    2.5704       -.14638E-05** at limit **
  17  Normalizat    1.2599        .15537        .48119E-05   -.10818E-03
  18  Prefactor     .88470        .97438E-01   -.50057E-06   -.31735E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.778548
  norm       = 2.09077
  Prefactor  = 2.77556e-10
  Prefactor  = 17.7611
  Prefactor  = 2.52903
  norm       = 0.604096
  norm       = 2.21244
  norm       = 3.94129e-09
  Prefactor  = 31.0543
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0.424565
  Prefactor  = 1.11022e-10
  norm       = 4.64491
  norm       = 12.1121
  Prefactor  = 5.55112e-11
  Normalizat = 1.2599
  Prefactor  = 0.884702
 **********
 **   18 **HESSE 
 **********

 FCN=   17957.84     FROM HESSE     STATUS=OK           286 CALLS     1327 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77855        1.6047        .54840E-03   -1.5690    
   2  norm          2.0908        1.6938        .71272E-03   -1.5679    
   3  Prefactor     .27756E-09    11.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.761        15.583        .23704E-03   -1.5624    
   5  Prefactor     2.5290        4.1610        .64228E-03   -1.5676    
   6  norm          .60410        .13226        .49217E-03   -1.5692    
   7  norm          2.2124        2.4717        .69109E-03   -1.5678    
   8  norm          .39413E-08    7.2519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.054        26.047        .18488E-03   -1.5597    
  10  Prefactor      .0000        1.2023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    4.7618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .42457        .81910        .38128E-02   -1.5695    
  13  Prefactor     .11102E-09    6.8432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6449        1.6744        .46691E-03   -1.5665    
  15  norm          12.112        5.3686        .28771E-03   -1.5638    
  16  Prefactor     .55511E-10    2.5628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2599        .12995        .63789E-01   -.84771    
  18  Prefactor     .88470        .80580E-01    .44809E-01   -.96678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5226e-06
Minuit parameter uncertainties:
  1  1.60473
  2  1.69379
  3  0.000113133
  4  15.5828
  5  4.16103
  6  0.132261
  7  2.4717
  8  0.000338917
  9  26.0475
  10  1.19688e-06
  11  3.73968e-05
  12  0.819096
  13  4.84058e-05
  14  1.67443
  15  5.36864
  16  1.71606e-05
  17  0.129979
  18  0.080591
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.105e+01  2.605e+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:  8.847e-01  8.059e-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.260e+00  1.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 8.38e-06 +/- 7.03e-06

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

Saving results to:
/scratch/kocevski/97196/likelihoodResults_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.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) = 17957.831229
delta logL = 0.0134916498355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17957.828987
delta logL = 0.0157336631273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.752       1.0000          .0000       .10000E+07
     2 'Index     '    2.3183       1.0000          .0000       10.000    
     3 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88103       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=   17957.83     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      252 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.929        238.94        .17749E-03   -.29618E-03
   2  Index         2.3352        1.2227        .50000       -.17845E-04
   3  Normalizat    1.2702        .21226E-01    .63565E-01    .10119E-03
   4  Prefactor     .88112        .13172E-01    .44763E-01    .41660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9294
  Index      = 2.33523
  Normalizat = 1.27024
  Prefactor  = 0.881119
 **********
 **   18 **HESSE 
 **********

 FCN=   17957.83     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.929        29.220        .70996E-05   -1.5595    
   2  Index         2.3352        1.3023        .61648E-02   -.56209    
   3  Normalizat    1.2702        .16169        .28117E-03   -.84459    
   4  Prefactor     .88112        .98180E-01    .20910E-03   -.96804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86528e-11
Minuit parameter uncertainties:
  1  29.2202
  2  1.32375
  3  0.161751
  4  0.0981997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97196': 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) = 17957.828894
delta logL = 0.0158266212784

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.193e+01  2.922e+01  0.000e+00  1.000e+06 ( 1.000e-13)
226        Index:  2.335e+00  1.324e+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:  8.811e-01  9.820e-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.270e+00  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.34 +/- 1.32
Photon Flux (Free Index): 2.36e-08 +/- 4.72e-08
Energy Flux (Free Index): 8.46e-06 +/- 7.71e-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/97196/cmap_HighResolution_697420801_698025601_4FGL_J1516.9+1934_weekly_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='8.46e-06', photon_flux_error='2.63e-08', dlogl='1.58e-02', energy_flux='8.38e-06', photon_flux2='2.36e-08', job_status='DONE', time_completed='2023-02-14 02:04:35.401370', photon_index_error2='1.32', photon_index2='2.34', ts='2.08', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='7.71e-06', EG='1.26', time_epoch_completed='1676369075.4', return_code='0', job_id='97196', GAL2='0.88', EG2='1.27', return_code2='0', energy_flux_error='7.03e-06', photon_flux_error2='4.72e-08', ts2='2.07', photon_index='2.58' WHERE bin_id='758' AND source_name='4FGL J1516.9+1934' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 14 02:04:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 97196: <4FGL_J1516.9+1934_weekly_bin758> in cluster <slac> Done

Job <4FGL_J1516.9+1934_weekly_bin758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 14 01:50:28 2023
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 14 01:50:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 14 01:50:29 2023
Terminated at Tue Feb 14 02:04:36 2023
Results reported at Tue Feb 14 02:04:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_weekly_bin758 229.244 19.5805 697420801 698025601 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             385.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

