aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 148 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 = 16784
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin543
RA = 125.299, Dec = 10.1287
tmin = 567388801, tmax = 567993601
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='78140', job_status='RUN', time_executed='2021-07-13 16:17:28.345465', time_epoch_executed='1626218248.35' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78140

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

Retrieving the FT1 file...

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

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

Retrieving 105 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78140/ft1_4FGL_J0821.1+1007_weekly_bin543.fits


Retrieving the FT1 file...

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

Retrieving 105 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78140/ft1_4FGL_J0821.1+1007_weekly_bin543.fits outfile=/scratch/kocevski/78140/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin543.fits ra=125.299 dec=10.1287 rad=12.0 tmin=567388801.0 tmax=567993601.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 5.66
user 4.82
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.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/78140/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin543.fits evtable="EVENTS" outfile="/scratch/kocevski/78140/ft1_filtered_4FGL_J0821.1+1007_weekly_bin543.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.08
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78140/ft1_filtered_4FGL_J0821.1+1007_weekly_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/78140/ltcube_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.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/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits
.....................!
real 33.00
user 31.72
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78140/ft1_filtered_4FGL_J0821.1+1007_weekly_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/78140/ltcube_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.fits outfile=/scratch/kocevski/78140/expmap_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.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/78140/ltcube_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.fits
.....................!
real 196.57
user 187.57
sys 5.69

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/78140/ft1_filtered_4FGL_J0821.1+1007_weekly_bin543.fits scfile=/scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits outfile=/scratch/kocevski/78140/cmap_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.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 1.06
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78140/ft1_filtered_4FGL_J0821.1+1007_weekly_bin543.fits scfile=/scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits outfile=/scratch/kocevski/78140/cmap_HighResolution_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.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 1.38
user 0.43
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/78140/ft1_filtered_4FGL_J0821.1+1007_weekly_bin543.fits', '/scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits', expMap='/scratch/kocevski/78140/expmap_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.fits', expCube='/scratch/kocevski/78140/ltcube_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/78140/Model_4FGL_J0821.1+1007_weekly_bin543.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  1.000e-04  1.000e+04 ( 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/78140/ft1_filtered_4FGL_J0821.1+1007_weekly_bin543.fits
Spacecraft file(s): /scratch/kocevski/78140/ft2_4FGL_J0821.1+1007_weekly_bin543.fits
Exposure map: /scratch/kocevski/78140/expmap_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.fits
Exposure cube: /scratch/kocevski/78140/ltcube_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/78140/Model_4FGL_J0821.1+1007_weekly_bin543.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    205.94       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    117.70       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.547       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.290       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .64364       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.008       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6349       1.0000         .10000E-03   10000.    
    16 'Prefactor '    133.41       1.0000         .10000E-03   10000.    
    17 'norm      '    10.620       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .67294       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1179       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=   4375.020     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1963 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     205.95        194.25        .37746E-05   -.14746E-05
   2  Prefactor     .10000E-03    5.7603        .89975E-07** at limit **
   3  norm          .10000E-03    82.526        .11441E-04** at limit **
   4  Prefactor     22.665        31.003        .56381E-05   -.18985E-03
   5  Prefactor     .10000E-03    182.56       -.48825E-05** at limit **
   6  norm          117.77        387.01        .65534E-04   -.12966E-05
   7  Prefactor     .10000E-03    18.254       -.30398E-06** at limit **
   8  norm          .10000E-03    6.2076        .27425E-06** at limit **
   9  norm          .10000E-03    14.893        .11056E-05** at limit **
  10  norm          11.547        6.1193        .64204E-06   -.15499E-03
  11  Prefactor     22.226        71.873       -.91397E-04   -.15314E-04
  12  Prefactor     .10002E-03    61.788       -.33537E-05** at limit **
  13  norm          .64469        1.0673        .17296E-06   -.68151E-03
  14  Prefactor     11.007        13.534       -.33392E-05   -.58091E-04
  15  norm          1.6290        19.878        .19610E-04   -.39191E-03
  16  Prefactor     133.43        65.444        .67460E-05    .37607E-05
  17  norm          10.620        8.3079       -.12769E-05   -.18550E-04
  18  Normalizat    .67310        .26850        .48529E-05   -.34556E-03
  19  Prefactor     1.1178        .19121       -.24720E-05   -.24199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 205.947
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.6651
  Prefactor  = 0.0001
  norm       = 117.773
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 11.5465
  Prefactor  = 22.2263
  Prefactor  = 0.000100021
  norm       = 0.644689
  Prefactor  = 11.0068
  norm       = 1.62901
  Prefactor  = 133.428
  norm       = 10.6203
  Normalizat = 0.673096
  Prefactor  = 1.11782
 **********
 **   18 **HESSE 
 **********

 FCN=   4375.020     FROM HESSE     STATUS=OK           270 CALLS     2233 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     205.95        194.21        .14082E-03   -1.2828    
   2  Prefactor     .10000E-03    5.7941        .15487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    82.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.665        30.797        .42068E-03   -1.4755    
   5  Prefactor     .10000E-03    182.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          117.77        387.13        .18544E-03   -1.3533    
   7  Prefactor     .10000E-03    18.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2128        .16094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.547        6.1238        .11331E-03   -1.5028    
  11  Prefactor     22.226        72.044        .84840E-04   -1.4765    
  12  Prefactor     .10002E-03    62.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .64469        .94209        .79329E-03   -1.5547    
  14  Prefactor     11.007        13.511        .12075E-03   -1.5044    
  15  norm          1.6290        18.437        .33062E-03   -1.5453    
  16  Prefactor     133.43        65.513        .34864E-04   -1.3393    
  17  norm          10.620        8.3112        .12295E-03   -1.5056    
  18  Normalizat    .67310        .30457        .34194E-03   -1.0496    
  19  Prefactor     1.1178        .22162        .20680E-03   -.88899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08688e-09
Minuit parameter uncertainties:
  1  194.825
  2  2.42607e-06
  3  7.43402e-05
  4  30.8185
  5  4.96876e-05
  6  395.963
  7  0.000147038
  8  1.44306e-06
  9  0.000443793
  10  6.12412
  11  72.3279
  12  0.00230569
  13  0.942111
  14  13.5146
  15  10.9647
  16  65.5489
  17  8.31205
  18  0.305336
  19  0.2218
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.306e-03  1.000e-04  1.000e+04 ( 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.118e+00  2.218e-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.731e-01  3.053e-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: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78140/likelihoodResults_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.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) = 4375.02048646
delta logL = -7.61793708079e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4375.02040993
delta logL = 3.48912180925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6319       1.0000          .0000       10.000    
     3 'Normalizat'    .67309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   4375.020     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      264 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    .36868        .10160    ** at limit **
   2  Index         2.7100        8.5824        .50000       -.51853E-05
   3  Normalizat    .67310        .85090E-03    .77228E-01    .24573E-04
   4  Prefactor     1.1178        .65202E-03    .36946E-01    .53150E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.71001
  Normalizat = 0.673103
  Prefactor  = 1.11781
 **********
 **   18 **HESSE 
 **********

 FCN=   4375.020     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      301 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    101.64        .54235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7100        8.6066        .50000       -.47574    
   3  Normalizat    .67310        .49235E-02    .34193E-03   -1.0496    
   4  Prefactor     1.1178        .37814E-02    .20680E-03   -.88899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23753e-08
Minuit parameter uncertainties:
  1  0.00279498
  2  103.393
  3  0.0049235
  4  0.00378139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78140': 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) = 4375.02040982
delta logL = 4.63022843178e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.795e-03  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.710e+00  1.034e+02  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.118e+00  3.781e-03  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.731e-01  4.924e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/78140/cmap_HighResolution_567388801_567993601_4FGL_J0821.1+1007_weekly_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-07-13 16:27:00.883388', job_id='78140', GAL2='1.12', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1626218820.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='543' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 78140: <4FGL_J0821.1+1007_weekly_bin543> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin543> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Jul 13 16:10:26 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 16:10:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 13 16:10:33 2021
Terminated at Tue Jul 13 16:27:01 2021
Results reported at Tue Jul 13 16:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin543 125.299 10.1287 567388801 567993601 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 :                                   524.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             185.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            995 sec.

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

