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


Performing analysis on: 4FGL_J1824.5+0107_weekly_bin735
RA = 276.125, Dec = 1.1251
tmin = 683510401, tmax = 684115201
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='296378', job_status='RUN', time_executed='2022-09-17 03:04:42.124616', time_epoch_executed='1663409082.12' WHERE source_name='4FGL J1824.5+0107' and cadence='weekly' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296378

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296378/ft1_4FGL_J1824.5+0107_weekly_bin735.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296378/ft1_4FGL_J1824.5+0107_weekly_bin735.fits outfile=/scratch/kocevski/296378/ft1_filteredMKT_4FGL_J1824.5+0107_weekly_bin735.fits ra=276.125 dec=1.1251 rad=12.0 tmin=683510401.0 tmax=684115201.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.88
user 7.15
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.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/296378/ft1_filteredMKT_4FGL_J1824.5+0107_weekly_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.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 1.24
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 12933

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/296378/ltcube_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.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/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits
.....................!
real 31.07
user 29.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/296378/ltcube_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.fits outfile=/scratch/kocevski/296378/expmap_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.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/296378/ltcube_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.fits
.....................!
real 192.84
user 187.53
sys 4.81

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
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Added 353 point sources and 16 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1824.5+0107 @ 276.125 1.1251

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits scfile=/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits outfile=/scratch/kocevski/296378/cmap_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.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=276.125 yref=1.1251 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.62
user 0.45
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits scfile=/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits outfile=/scratch/kocevski/296378/cmap_HighResolution_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.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=276.125 yref=1.1251 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.65
user 0.47
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/296378/Model_4FGL_J1824.5+0107_weekly_bin735.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source FHES J1723.5-0501
adding source G24.7+0.6
adding source G42.8+0.6
adding source GAL_V02
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 41
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits.....................!
real 4297.41
user 4286.18
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits', '/scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits', expMap='/scratch/kocevski/296378/expmap_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.fits', expCube='/scratch/kocevski/296378/ltcube_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/296378/Model_4FGL_J1824.5+0107_weekly_bin735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1824.5+0107'

4FGL J1824.5+0107
   Spectrum: PowerLaw
515    Prefactor:  1.900e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
516        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
517        Scale:  8.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/296378/ft1_filtered_4FGL_J1824.5+0107_weekly_bin735.fits
Spacecraft file(s): /scratch/kocevski/296378/ft2_4FGL_J1824.5+0107_weekly_bin735.fits
Exposure map: /scratch/kocevski/296378/expmap_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.fits
Exposure cube: /scratch/kocevski/296378/ltcube_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/296378/Model_4FGL_J1824.5+0107_weekly_bin735.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) = 110586.58333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90900       1.0000          .0000       .10000E+07
     2 'norm      '    .39413E-08   1.0000          .0000       .10000E+07
     3 'norm      '    7.6762       1.0000          .0000       .10000E+07
     4 'norm      '    1.3233       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24672E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .50571E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.4366       1.0000          .0000       .10000E+07
     8 'norm      '    2.0102       1.0000          .0000       .10000E+07
     9 'Normalizat'    1.9113       1.0000         .10000E-01   10.000    
    10 'Prefactor '    1.0301       1.0000          .0000       10.000    
    11 'norm      '    1.4332       1.0000          .0000       .10000E+07
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1343E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   110585.8     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      540 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90864        .51028        .29705E-08    .25891E-01
   2  norm          .16653E-09    1.0275       -.47458E-07** at limit **
   3  norm          7.6824        6.3261       -.97077E-06   -.50742E-03
   4  norm          1.3233        1.8619       -.94774E-08   -.26388E-02
   5  Prefactor     .23315E-08    22.934        .74405E-07** at limit **
   6  Prefactor      .0000        2.5384        .39349E-07** at limit **
   7  Prefactor     8.4335        7.5044        .14360E-05    .17779E-02
   8  norm          2.0098        1.5551       -.69573E-07    .10761E-01
   9  Normalizat    1.9114        .25739       -.66547E-05    .33885E-03
  10  Prefactor     1.0301        .15357E-01    .25766E-06    .23391E-02
  11  norm          1.4332        .22535       -.18249E-07    .70113E-01
                               ERR DEF=  .500    
Final values: 
  norm       = 0.908644
  norm       = 1.66533e-10
  norm       = 7.68242
  norm       = 1.32327
  Prefactor  = 2.33147e-09
  Prefactor  = 0
  Prefactor  = 8.43348
  norm       = 2.00982
  Normalizat = 1.91141
  Prefactor  = 1.03015
  norm       = 1.43318
 **********
 **   18 **HESSE 
 **********

 FCN=   110585.8     FROM HESSE     STATUS=OK           146 CALLS      686 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90864        .51035        .45140E-03   -1.5689    
   2  norm          .16653E-09    1.0276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6824        6.3269        .36171E-03   -1.5653    
   4  norm          1.3233        1.8942        .95567E-03   -1.5685    
   5  Prefactor     .23315E-08    1.2155        .77483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.5705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4335        7.5082        .34489E-03   -1.5650    
   8  norm          2.0098        1.5545        .72991E-03   -1.5680    
   9  Normalizat    1.9114        .26276        .26406       -.66790    
  10  Prefactor     1.0301        .15268E-01    .26827E-01   -.91731    
  11  norm          1.4332        .22768        .90170E-03   -1.5684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76764e-08
Minuit parameter uncertainties:
  1  0.51035
  2  2.59559e-05
  3  6.32688
  4  1.89424
  5  0.000106676
  6  1.40438e-05
  7  7.50823
  8  1.55453
  9  0.262959
  10  0.0152681
  11  0.227682
Done.

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

Extracting fit parameters...

4FGL J1824.5+0107
   Spectrum: PowerLaw
515    Prefactor:  2.331e-09  1.067e-04  0.000e+00  1.000e+06 ( 1.000e-12)
516        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
517        Scale:  8.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1300    Prefactor:  1.030e+00  1.527e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1301        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1302        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  1.911e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 276.125 1.125
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/296378/likelihoodResults_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.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) = 110585.805366
delta logL = -0.053569798838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 110585.605174
delta logL = 0.146622915912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10728E-05   1.0000          .0000       .10000E+07
     2 'Index     '    9.9874       1.0000          .0000       10.000    
     3 'Normalizat'    1.8877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1343E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   110585.8     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      551 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .21503        .17981E-06** at limit **
   2  Index         .88238        .93147E-03    .38446E-07     .0000    
   3  Normalizat    1.9114        .25038        .33247E-05    .17001E-03
   4  Prefactor     1.0301        .14644E-01    .17840E-05   -.38468E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.882382
  Normalizat = 1.91141
  Prefactor  = 1.03015
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   110585.8     FROM HESSE     STATUS=FAILED        11 CALLS      562 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .21346        .84235E-03   -278.03    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7910        1.9087        .38446E-07   -.11688E+06
   3  Normalizat    1.9114        .14173        .33247E-05   -157.75    
   4  Prefactor     1.0301        .53708E-01    .17840E-05    3271.3    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.30324e-10
Minuit parameter uncertainties:
  1  2.57128e-06
  2  0.000735067
  3  0.141758
  4  0.0537104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296378': 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): 101
logL (Free Index) = 110585.751797
delta logL = 8.73114913702e-11

Extracting fit parameters...

4FGL J1824.5+0107
   Spectrum: PowerLaw
515    Prefactor:  0.000e+00  2.571e-06  0.000e+00  1.000e+06 ( 1.000e-12)
516        Index:  8.824e-01  7.351e-04  0.000e+00  1.000e+01 (-1.000e+00)
517        Scale:  8.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1300    Prefactor:  1.030e+00  5.371e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1301        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1302        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1283   Normalization:  1.911e+00  1.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 276.125 1.125

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/296378/cmap_HighResolution_683510401_684115201_4FGL_J1824.5+0107_weekly_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2022-09-17 05:59:31.252891', job_id='296378', GAL2='1.03', fit_tolerance='1e-08', EG2='1.91', EG='1.91', time_epoch_completed='1663419571.25', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='735' AND source_name='4FGL J1824.5+0107' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 05:59:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 296378: <4FGL_J1824.5+0107_weekly_bin735> in cluster <slac> Done

Job <4FGL_J1824.5+0107_weekly_bin735> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 17 02:40:24 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 03:04:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 03:04:29 2022
Terminated at Sat Sep 17 05:59:33 2022
Results reported at Sat Sep 17 05:59:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1824.5+0107_weekly_bin735 276.125 1.1251 683510401 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1824.5+0107 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10444.00 sec.
    Max Memory :                                 1291 MB
    Average Memory :                             692.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10503 sec.
    Turnaround time :                            11949 sec.

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

