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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin759
RA = 125.299, Dec = 10.1287
tmin = 698025601, tmax = 698630401
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='582435', job_status='RUN', time_executed='2023-02-21 03:06:38.851210', time_epoch_executed='1676977598.85' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/582435

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/582435/ft1_4FGL_J0821.1+1007_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/582435/ft2_4FGL_J0821.1+1007_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/582435/ft1_4FGL_J0821.1+1007_weekly_bin759.fits outfile=/scratch/kocevski/582435/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin759.fits ra=125.299 dec=10.1287 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.48
user 8.15
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/582435/ft1_filtered_4FGL_J0821.1+1007_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/582435/ft2_4FGL_J0821.1+1007_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/582435/ltcube_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.fits outfile=/scratch/kocevski/582435/expmap_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.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/582435/ltcube_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.fits
.....................!
real 190.40
user 185.45
sys 4.47

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/582435/ft1_filtered_4FGL_J0821.1+1007_weekly_bin759.fits scfile=/scratch/kocevski/582435/ft2_4FGL_J0821.1+1007_weekly_bin759.fits outfile=/scratch/kocevski/582435/cmap_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/582435/ft1_filtered_4FGL_J0821.1+1007_weekly_bin759.fits scfile=/scratch/kocevski/582435/ft2_4FGL_J0821.1+1007_weekly_bin759.fits outfile=/scratch/kocevski/582435/cmap_HighResolution_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.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.58
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/582435/ft1_filtered_4FGL_J0821.1+1007_weekly_bin759.fits', '/scratch/kocevski/582435/ft2_4FGL_J0821.1+1007_weekly_bin759.fits', expMap='/scratch/kocevski/582435/expmap_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.fits', expCube='/scratch/kocevski/582435/ltcube_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/582435/Model_4FGL_J0821.1+1007_weekly_bin759.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/582435/ft1_filtered_4FGL_J0821.1+1007_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/582435/ft2_4FGL_J0821.1+1007_weekly_bin759.fits
Exposure map: /scratch/kocevski/582435/expmap_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.fits
Exposure cube: /scratch/kocevski/582435/ltcube_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/582435/Model_4FGL_J0821.1+1007_weekly_bin759.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) = 7398.37635275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.485       1.0000          .0000       .10000E+07
     2 'Prefactor '    7.3588       1.0000          .0000       .10000E+07
     3 'norm      '    4.3041       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29097E-02   1.0000          .0000       .10000E+07
     5 'norm      '    187.05       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5504       1.0000          .0000       .10000E+07
     7 'norm      '    6.5735       1.0000          .0000       .10000E+07
     8 'norm      '    26.601       1.0000          .0000       .10000E+07
     9 'norm      '    9.7305       1.0000          .0000       .10000E+07
    10 'Prefactor '    .56807E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .37325       1.0000          .0000       .10000E+07
    12 'norm      '    .36287E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .64115E-01   1.0000          .0000       .10000E+07
    14 'norm      '    4.0442       1.0000          .0000       .10000E+07
    15 'Normalizat'    .69431       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1079       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=   7398.363     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1145 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.464        6.3723       -.28760E-06   -.29676E-01
   2  Prefactor     7.3605        4.0278       -.24424E-07    .17055E-03
   3  norm          4.3638        14.455        .22564E-06    .97037E-03
   4  Prefactor     .11102E-09    9.5188        .79712E-07** at limit **
   5  norm          187.89        117.53        .34916E-06   -.44797E-02
   6  Prefactor     2.6659        88.945        .39348E-05   -.22412E-02
   7  norm          6.5716        7.7759        .71716E-08   -.57357E-04
   8  norm          26.505        25.910       -.29385E-06    .14053E-02
   9  norm          9.7280        3.7403       -.24441E-07   -.16181E-03
  10  Prefactor      .0000        4.2866       -.56153E-09** at limit **
  11  norm          .37296        .86097        .15640E-07   -.14954E-03
  12  norm          .11102E-09    8.9868       -.21660E-06** at limit **
  13  Prefactor      .0000        21.163        .21353E-06** at limit **
  14  norm          3.8546        7.7739       -.90798E-07    .77693E-04
  15  Normalizat    .69453        .21814       -.29931E-06   -.28782E-05
  16  Prefactor     1.1079        .16765       -.56319E-06    .94631E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4635
  Prefactor  = 7.36049
  norm       = 4.36376
  Prefactor  = 1.11022e-10
  norm       = 187.888
  Prefactor  = 2.66586
  norm       = 6.57155
  norm       = 26.5051
  norm       = 9.72805
  Prefactor  = 0
  norm       = 0.372956
  norm       = 1.11022e-10
  Prefactor  = 0
  norm       = 3.85456
  Normalizat = 0.694529
  Prefactor  = 1.10792
 **********
 **   18 **HESSE 
 **********

 FCN=   7398.363     FROM HESSE     STATUS=OK           237 CALLS     1382 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.464        39.428        .29536E-03   -1.5640    
   2  Prefactor     7.3605        4.0361        .36950E-03   -1.5654    
   3  norm          4.3638        14.473        .48534E-03   -1.5666    
   4  Prefactor     .11102E-09    9.4968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          187.89        117.79        .73124E-04   -1.5434    
   6  Prefactor     2.6659        99.142        .63910E-03   -1.5675    
   7  norm          6.5716        7.7787        .39117E-03   -1.5657    
   8  norm          26.505        27.101        .19393E-03   -1.5605    
   9  norm          9.7280        3.7422        .32100E-03   -1.5646    
  10  Prefactor      .0000        4.2856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .37296        .86975        .92654E-03   -1.5696    
  12  norm          .11102E-09    8.9139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        21.102        .15017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8546        7.7783        .50117E-03   -1.5669    
  15  Normalizat    .69453        .18775        .73467E-01   -1.0411    
  16  Prefactor     1.1079        .14270        .37292E-01   -.89214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23171e-07
Minuit parameter uncertainties:
  1  39.4293
  2  4.03614
  3  14.4729
  4  6.20708e-05
  5  117.789
  6  32.5151
  7  7.77868
  8  27.1009
  9  3.74222
  10  1.57005e-06
  11  0.869752
  12  6.70421e-05
  13  6.16155e-06
  14  7.7783
  15  0.187923
  16  0.142744
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  1.570e-06  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:  1.108e+00  1.427e-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:  6.945e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/582435/likelihoodResults_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7398.3633221
delta logL = -0.000258550863691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7398.36306384
delta logL = -2.92851837003e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89195E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.2000       1.0000          .0000       10.000    
     3 'Normalizat'    .69464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1078       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.

 FCN=   7398.363     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      276 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    .12607E-02    .42118E-03** at limit **
   2  Index         3.5586        7.4111        .50000        .50022E-09
   3  Normalizat    .69453        .14559E-03    .73468E-01   -.17006E-03
   4  Prefactor     1.1079        .11261E-03    .37297E-01   -.43097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 3.55859
  Normalizat = 0.694526
  Prefactor  = 1.10792
 **********
 **   18 **HESSE 
 **********

 FCN=   7398.363     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      307 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    .24424E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5586        6.1779        .50000       -.29243    
   3  Normalizat    .69453        .63699E-03    .32520E-03   -1.0411    
   4  Prefactor     1.1079        .49372E-03    .20227E-03   -.89214    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.87896e-12
Minuit parameter uncertainties:
  1  4.25379e-06
  2  5387.44
  3  0.000636994
  4  0.000493722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/582435': 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): 102
logL (Free Index) = 7398.36306355
delta logL = -1.85536919162e-10

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.665e-10  4.254e-06  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  3.559e+00  5.387e+03  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:  1.108e+00  4.937e-04  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:  6.945e-01  6.370e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 125.299 10.129

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/582435/cmap_HighResolution_698025601_698630401_4FGL_J0821.1+1007_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2023-02-21 03:16:09.354589', job_id='582435', GAL2='1.11', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1676978169.35', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-1.86e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='759' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:16:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 582435: <4FGL_J0821.1+1007_weekly_bin759> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 03:05:28 2023
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:05:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:05:28 2023
Terminated at Tue Feb 21 03:16:10 2023
Results reported at Tue Feb 21 03:16:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin759 125.299 10.1287 698025601 698630401 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 :                                   571.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            642 sec.

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

