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 46 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1917.7-6930_daily_bin1673
RA = 289.442, Dec = -69.5061
tmin = 672969601, tmax = 673228801
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='364848', job_status='RUN', time_executed='2022-05-03 00:51:37.026445', time_epoch_executed='1651564297.03' WHERE source_name='4FGL J1917.7-6930' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364848/ft1_4FGL_J1917.7-6930_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364848/ft1_4FGL_J1917.7-6930_daily_bin1673.fits outfile=/scratch/kocevski/364848/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1673.fits ra=289.442 dec=-69.5061 rad=12.0 tmin=672969601.0 tmax=673228801.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 2.99
user 2.75
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.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/364848/ft1_filteredMKT_4FGL_J1917.7-6930_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 1334

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/364848/ltcube_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.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/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits
.....................!
real 16.05
user 15.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/364848/ltcube_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.fits outfile=/scratch/kocevski/364848/expmap_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.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/364848/ltcube_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.fits
.....................!
real 194.80
user 188.25
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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1917.7-6930 @ 289.442 -69.5061

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits scfile=/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits outfile=/scratch/kocevski/364848/cmap_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.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=289.442 yref=-69.5061 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits scfile=/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits outfile=/scratch/kocevski/364848/cmap_HighResolution_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.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=289.442 yref=-69.5061 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.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364848/Model_4FGL_J1917.7-6930_daily_bin1673.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/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits.....................!
real 117.65
user 115.85
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits', '/scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits', expMap='/scratch/kocevski/364848/expmap_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.fits', expCube='/scratch/kocevski/364848/ltcube_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/364848/Model_4FGL_J1917.7-6930_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1917.7-6930'

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  2.026e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.308e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
425        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/364848/ft1_filtered_4FGL_J1917.7-6930_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/364848/ft2_4FGL_J1917.7-6930_daily_bin1673.fits
Exposure map: /scratch/kocevski/364848/expmap_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.fits
Exposure cube: /scratch/kocevski/364848/ltcube_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/364848/Model_4FGL_J1917.7-6930_daily_bin1673.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) = 13516.5189587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.276       1.0000         .10000E-03   10000.    
     2 'norm      '    54.289       1.0000         .10000E-03   10000.    
     3 'norm      '    52.980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1298       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    128.54       1.0000         .10000E-03   10000.    
    11 'norm      '    5.5259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6468       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0043       1.0000         .10000E-03   10000.    
    15 'norm      '    88.327       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.8392       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .79557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13516.51     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1705 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.256        66.729       -.40324E-04    .57550E-05
   2  norm          54.289        9.4087       -.33051E-06    .79520E-04
   3  norm          52.978        49.348       -.25943E-05    .12830E-04
   4  Prefactor     .10000E-03    37.573        .35552E-04** at limit **
   5  Prefactor     .10000E-03    14.442       -.29166E-05** at limit **
   6  Prefactor     59.879        91.590       -.14342E-03    .11147E-03
   7  Prefactor     5.0488        468.13       -.33719E-03    .62982E-04
   8  norm          .10000E-03    9.5761       -.61362E-05** at limit **
   9  Prefactor     .10001E-03    44.104       -.34929E-04** at limit **
  10  norm          128.54        17.700       -.34285E-06    .54583E-04
  11  norm          5.5259        5.1011       -.18616E-05   -.19379E-03
  12  Prefactor     11.757        13.707       -.16666E-05   -.17224E-04
  13  Prefactor     5.6472        22.042       -.27126E-05   -.20457E-04
  14  norm          3.0044        1.3795       -.19741E-06   -.24699E-03
  15  norm          88.326        50.138       -.15872E-05    .29308E-04
  16  Prefactor     .10000E-03    9.9039        .66605E-05** at limit **
  17  Normalizat    1.8391        .21747        .15769E-05    .16646E-03
  18  Prefactor     .79561        .82667E-01    .48959E-05   -.60754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2559
  norm       = 54.2887
  norm       = 52.978
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 59.8791
  Prefactor  = 5.04878
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 128.541
  norm       = 5.52594
  Prefactor  = 11.7572
  Prefactor  = 5.64724
  norm       = 3.00435
  norm       = 88.3257
  Prefactor  = 0.0001
  Normalizat = 1.83906
  Prefactor  = 0.795606
 **********
 **   18 **HESSE 
 **********

 FCN=   13516.51     FROM HESSE     STATUS=OK           240 CALLS     1945 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.256        66.777        .86835E-04   -1.4786    
   2  norm          54.289        9.4102        .54439E-04   -1.4233    
   3  norm          52.978        49.354        .55103E-04   -1.4251    
   4  Prefactor     .10000E-03    38.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     59.879        91.569        .25899E-03   -1.4159    
   7  Prefactor     5.0488        473.71        .17751E-03   -1.5259    
   8  norm          .10000E-03    9.5991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    44.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          128.54        17.709        .35510E-04   -1.3436    
  11  norm          5.5259        5.1004        .17092E-03   -1.5238    
  12  Prefactor     11.757        13.698        .11684E-03   -1.5022    
  13  Prefactor     5.6472        22.043        .16905E-03   -1.5233    
  14  norm          3.0044        1.3799        .88811E-04   -1.5361    
  15  norm          88.326        50.178        .42751E-04   -1.3826    
  16  Prefactor     .10000E-03    9.9723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.8391        .25888        .36871E-03   -.68648    
  18  Prefactor     .79561        .98323E-01    .19920E-03   -.99890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29128e-09
Minuit parameter uncertainties:
  1  67.0136
  2  9.41045
  3  49.3922
  4  0.000723083
  5  1.40638e-05
  6  91.7854
  7  98.6232
  8  3.90703e-05
  9  0.0011564
  10  17.7092
  11  5.10081
  12  13.7014
  13  22.0747
  14  1.37989
  15  50.2024
  16  0.000108456
  17  0.259078
  18  0.0983451
Done.

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

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  1.176e+01  1.370e+01  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.308e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
425        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  7.956e-01  9.835e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.839e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 289.442 -69.506
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364848/likelihoodResults_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.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) = 13516.4519016
delta logL = 0.0609868619122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13516.4463233
delta logL = 0.0665652224616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5482       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7436       1.0000          .0000       10.000    
     3 'Normalizat'    1.8181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80051       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13516.45     FROM MIGRAD    STATUS=FAILED       100 CALLS      327 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5546        374.41        .14597E-03    .62930E-04
   2  Index         2.7438        5.4908        .98537E-02    .69188E-04
   3  Normalizat    1.8170        .40928        .37030E-03   -.10727E-03
   4  Prefactor     .80095        .12940        .19858E-03    .91494E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13516.45     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      421 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5546        374.41        .20316E-03    .62930E-04
   2  Index         2.7438        5.4908        .88275E-03    .69188E-04
   3  Normalizat    1.8170        .40928        .17793E-03   -.10727E-03
   4  Prefactor     .80095        .12940        .75799E-04    .91494E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13516.45     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      453 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5548        18.348        .58388E-05   -.15577E-04
   2  Index         2.7438        1.4794        .39415E-03    .11538E-05
   3  Normalizat    1.8170        .26658        .14812E-04   -.36227E-04
   4  Prefactor     .80095        .98391E-01    .39716E-04   -.48547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.55483
  Index      = 2.74379
  Normalizat = 1.81696
  Prefactor  = 0.800946
 **********
 **   18 **HESSE 
 **********

 FCN=   13516.45     FROM HESSE     STATUS=OK            23 CALLS      476 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5548        17.939        .11678E-05   -1.5158    
   2  Index         2.7438        1.4482        .15766E-04   -.46816    
   3  Normalizat    1.8170        .26642        .29624E-05   -.69222    
   4  Prefactor     .80095        .98355E-01    .79433E-05   -.99693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07572e-12
Minuit parameter uncertainties:
  1  17.9519
  2  1.47493
  3  0.266633
  4  0.098377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364848': 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) = 13516.4463124
delta logL = 0.0665760473621

Extracting fit parameters...

4FGL J1917.7-6930
   Spectrum: PowerLaw
423    Prefactor:  7.555e+00  1.795e+01  1.000e-04  1.000e+04 ( 1.000e-13)
424        Index:  2.744e+00  1.475e+00  0.000e+00  1.000e+01 (-1.000e+00)
425        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.009e-01  9.838e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.817e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 289.442 -69.506
Photon Index (Free Index): 2.74 +/- 1.47
Photon Flux (Free Index): 5.45e-08 +/- 7.32e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.35e-05

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/364848/cmap_HighResolution_672969601_673228801_4FGL_J1917.7-6930_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='6.66e-02', photon_flux2='5.45e-08', job_status='DONE', time_completed='2022-05-03 01:08:34.601908', photon_index_error2='1.47', photon_index2='2.74', ts='0.93', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.35e-05', EG='1.84', time_epoch_completed='1651565314.6', return_code='0', job_id='364848', GAL2='0.80', EG2='1.82', return_code2='0', photon_flux_error2='7.32e-08', ts2='1.09', photon_index='2.31' WHERE bin_id='1673' AND source_name='4FGL J1917.7-6930' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 01:08:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0007>
Subject: Job 364848: <4FGL_J1917.7-6930_daily_bin1673> in cluster <slac> Done

Job <4FGL_J1917.7-6930_daily_bin1673> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue May  3 00:50:16 2022
Job was executed on host(s) <bullet0007>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:50:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:50:40 2022
Terminated at Tue May  3 01:08:35 2022
Results reported at Tue May  3 01:08:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1917.7-6930_daily_bin1673 289.442 -69.5061 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1917.7-6930 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1016.31 sec.
    Max Memory :                                 626 MB
    Average Memory :                             329.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2932 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1074 sec.
    Turnaround time :                            1099 sec.

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

