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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin763
RA = 125.299, Dec = 10.1287
tmin = 700444801, tmax = 701049601
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='415139', job_status='RUN', time_executed='2023-03-21 00:52:31.542271', time_epoch_executed='1679385151.54' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415139

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415139/ft1_4FGL_J0821.1+1007_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415139/ft1_4FGL_J0821.1+1007_weekly_bin763.fits outfile=/scratch/kocevski/415139/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin763.fits ra=125.299 dec=10.1287 rad=12.0 tmin=700444801.0 tmax=701049601.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.63
user 9.29
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.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/415139/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.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.39
sys 0.14

Number of photons that the gtmktime cut: 1112

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/415139/ltcube_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.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/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits
.....................!
real 26.70
user 26.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/415139/ltcube_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.fits outfile=/scratch/kocevski/415139/expmap_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.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/415139/ltcube_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.fits
.....................!
real 190.54
user 185.75
sys 4.48

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

Setting source of interest to:
4FGL J0821.1+1007 @ 125.299 10.1287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits scfile=/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits outfile=/scratch/kocevski/415139/cmap_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.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=125.299 yref=10.1287 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits scfile=/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits outfile=/scratch/kocevski/415139/cmap_HighResolution_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.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=125.299 yref=10.1287 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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415139/Model_4FGL_J0821.1+1007_weekly_bin763.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/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits.....................!
real 124.55
user 123.20
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits', '/scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits', expMap='/scratch/kocevski/415139/expmap_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.fits', expCube='/scratch/kocevski/415139/ltcube_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415139/Model_4FGL_J0821.1+1007_weekly_bin763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0821.1+1007'

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.731e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/415139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/415139/ft2_4FGL_J0821.1+1007_weekly_bin763.fits
Exposure map: /scratch/kocevski/415139/expmap_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.fits
Exposure cube: /scratch/kocevski/415139/ltcube_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415139/Model_4FGL_J0821.1+1007_weekly_bin763.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) = 12783.8399978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29943E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.3928       1.0000          .0000       .10000E+07
     3 'norm      '    .37091E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8106       1.0000          .0000       .10000E+07
     5 'norm      '    .11944E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.830       1.0000          .0000       .10000E+07
     7 'norm      '    .64460E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .29736       1.0000          .0000       .10000E+07
     9 'norm      '    7.0118       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4617       1.0000          .0000       .10000E+07
    11 'norm      '    .92453       1.0000          .0000       .10000E+07
    12 'norm      '    .50515E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .30768E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.5427       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0009       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12783.80     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      847 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15377E-07    14.167        .52421E-05** at limit **
   2  Prefactor     5.3841        2.1871       -.98259E-07   -.53466E-02
   3  norm           .0000        2.9366        .27809E-06** at limit **
   4  Prefactor     3.7669        3.6995       -.76897E-07    .26622E-03
   5  norm          .13545E-07    19.900       -.83858E-06** at limit **
   6  Prefactor     12.597        3.7509        .10187E-05   -.11617E-01
   7  norm           .0000        2.6954       -.56346E-09** at limit **
   8  norm          .25940E-05    10.737       -.57513E-05** at limit **
   9  norm          7.0133        2.7760       -.14553E-06   -.23248E-02
  10  Prefactor     2.4699        5.7886        .43619E-06   -.13630E-02
  11  norm          .92437        .65142       -.53972E-07   -.23480E-02
  12  norm          .55511E-10    4.2453       -.44059E-06** at limit **
  13  Prefactor     .10603E-07    13.782       -.55143E-05** at limit **
  14  norm          2.5436        3.1372        .14728E-07   -.92379E-03
  15  Normalizat    1.0016        .15757       -.12954E-05   -.20509E-05
  16  Prefactor     .96267        .12264        .17931E-05   -.28948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53766e-08
  Prefactor  = 5.38408
  norm       = 0
  Prefactor  = 3.76687
  norm       = 1.35447e-08
  Prefactor  = 12.5972
  norm       = 0
  norm       = 2.59398e-06
  norm       = 7.01328
  Prefactor  = 2.46986
  norm       = 0.924366
  norm       = 5.55112e-11
  Prefactor  = 1.06026e-08
  norm       = 2.54363
  Normalizat = 1.00156
  Prefactor  = 0.962668
 **********
 **   18 **HESSE 
 **********

 FCN=   12783.80     FROM HESSE     STATUS=OK           237 CALLS     1084 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15377E-07    14.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3841        2.1858        .43250E-03   -1.5662    
   3  norm           .0000        2.9366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7669        3.6882        .51682E-03   -1.5669    
   5  norm          .13545E-07    20.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.597        23.496        .27940E-03   -1.5637    
   7  norm           .0000        2.6987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .25940E-05    6.6501        .14690E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.0133        2.7938        .37862E-03   -1.5655    
  10  Prefactor     2.4699        5.8182        .65156E-03   -1.5677    
  11  norm          .92437        .65511        .44079E-03   -1.5689    
  12  norm          .55511E-10    4.2334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10603E-07    14.265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5436        3.1412        .64016E-03   -1.5676    
  15  Normalizat    1.0016        .13386        .46178E-01   -.92978    
  16  Prefactor     .96267        .10299        .45799E-01   -.93984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62874e-07
Minuit parameter uncertainties:
  1  0.000954087
  2  2.18579
  3  9.50406e-07
  4  3.6882
  5  0.0010546
  6  23.4961
  7  8.75217e-06
  8  0.00830667
  9  2.79376
  10  5.81822
  11  0.65511
  12  3.12265e-05
  13  0.000777735
  14  3.14124
  15  0.133909
  16  0.103011
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.470e+00  5.818e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  9.627e-01  1.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.002e+00  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415139/likelihoodResults_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.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) = 12783.4147405
delta logL = 0.383988332936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12783.4130803
delta logL = 0.385648512491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3640       1.0000          .0000       .10000E+07
     2 'Index     '    1.6446       1.0000          .0000       10.000    
     3 'Normalizat'    1.0082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12783.41     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      244 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3638        5.8724       -.11690E-06    .63969E-02
   2  Index         1.6448        .46029        .52590E-05    .20778E-03
   3  Normalizat    1.0082        .13107       -.12114E-06   -.88701E-04
   4  Prefactor     .95743        .10281        .87837E-07   -.93893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36377
  Index      = 1.64479
  Normalizat = 1.00817
  Prefactor  = 0.957427
 **********
 **   18 **HESSE 
 **********

 FCN=   12783.41     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3638        7.3583        .17347E-04   -1.5662    
   2  Index         1.6448        .69364        .16369E-01   -.73561    
   3  Normalizat    1.0082        .15580        .26863E-03   -.92757    
   4  Prefactor     .95743        .12224        .21447E-03   -.94162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1184e-09
Minuit parameter uncertainties:
  1  7.3583
  2  0.697754
  3  0.155872
  4  0.122278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415139': 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) = 12783.4130803
delta logL = 0.385648547923

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  5.364e+00  7.358e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  1.645e+00  6.978e-01  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  9.574e-01  1.223e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.008e+00  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 125.299 10.129
Photon Index (Free Index): 1.64 +/- 0.70
Photon Flux (Free Index): 4.60e-09 +/- 7.57e-09
Energy Flux (Free Index): 8.98e-06 +/- 1.70e-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/415139/cmap_HighResolution_700444801_701049601_4FGL_J0821.1+1007_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', comment='SUCCESS', energy_flux2='8.98e-06', dlogl='3.86e-01', photon_flux2='4.60e-09', job_status='DONE', time_completed='2023-03-21 01:04:04.322703', photon_index_error2='0.70', photon_index2='1.64', ts='0.23', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='4.84e-08', energy_flux_error2='1.70e-05', EG='1.00', time_epoch_completed='1679385844.32', return_code='0', job_id='415139', GAL2='0.96', EG2='1.01', return_code2='0', photon_flux_error2='7.57e-09', ts2='1.01', photon_index='2.41' WHERE bin_id='763' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:04:04 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 415139: <4FGL_J0821.1+1007_weekly_bin763> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 00:50:22 2023
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 00:50:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 00:50:23 2023
Terminated at Tue Mar 21 01:04:05 2023
Results reported at Tue Mar 21 01:04:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin763 125.299 10.1287 700444801 701049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0821.1+1007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

