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 201 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 = 17177
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin533
RA = 125.299, Dec = 10.1287
tmin = 561340801, tmax = 561945601
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='78124', job_status='RUN', time_executed='2021-07-13 16:17:51.397966', time_epoch_executed='1626218271.4' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78124

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78124/ft1_4FGL_J0821.1+1007_weekly_bin533.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78124/ft2_4FGL_J0821.1+1007_weekly_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78124/ft1_4FGL_J0821.1+1007_weekly_bin533.fits outfile=/scratch/kocevski/78124/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin533.fits ra=125.299 dec=10.1287 rad=12.0 tmin=561340801.0 tmax=561945601.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 13.55
user 7.90
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78124/ft1_filtered_4FGL_J0821.1+1007_weekly_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/78124/ft2_4FGL_J0821.1+1007_weekly_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/78124/ltcube_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.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/78124/ft2_4FGL_J0821.1+1007_weekly_bin533.fits
.....................!
real 28.08
user 27.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78124/ft1_filtered_4FGL_J0821.1+1007_weekly_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/78124/ft2_4FGL_J0821.1+1007_weekly_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/78124/ltcube_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.fits outfile=/scratch/kocevski/78124/expmap_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.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/78124/ltcube_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.fits
.....................!
real 193.21
user 186.24
sys 5.20

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/78124/ft1_filtered_4FGL_J0821.1+1007_weekly_bin533.fits scfile=/scratch/kocevski/78124/ft2_4FGL_J0821.1+1007_weekly_bin533.fits outfile=/scratch/kocevski/78124/cmap_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.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.45
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78124/ft1_filtered_4FGL_J0821.1+1007_weekly_bin533.fits scfile=/scratch/kocevski/78124/ft2_4FGL_J0821.1+1007_weekly_bin533.fits outfile=/scratch/kocevski/78124/cmap_HighResolution_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.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 2.19
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11352E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    82.108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.157       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1020.8       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.743       1.0000         .10000E-03   10000.    
     8 'norm      '    29.998       1.0000         .10000E-03   10000.    
     9 'norm      '    .88227E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    5.2121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93606       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .67638       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=   2103.709     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1955 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    217.60        .51252E-06** at limit **
   2  Prefactor     .10000E-03    8.2736       -.21165E-05** at limit **
   3  norm          82.124        71.849        .82011E-06    .80247E-05
   4  Prefactor     19.124        55.038       -.20066E-05    .72880E-06
   5  Prefactor     1021.0        624.30       -.13547E-05    .16022E-05
   6  norm          .10000E-03    431.41       -.63707E-05** at limit **
   7  Prefactor     51.801        49.445       -.98957E-06   -.10818E-05
   8  norm          29.994        19.743        .14647E-06   -.14948E-06
   9  norm          .10000E-03    824.37       -.52091E-05** at limit **
  10  norm          5.2131        4.8184        .69445E-07   -.35945E-04
  11  Prefactor     .10000E-03    28.798        .14402E-06** at limit **
  12  Prefactor     .10000E-03    27.175        .27161E-06** at limit **
  13  norm          .10000E-03    .82899        .44943E-06** at limit **
  14  Prefactor     .10000E-03    50.208       -.78911E-07** at limit **
  15  norm          21.475        14.096        .18357E-06   -.50204E-04
  16  Prefactor     .10000E-03    440.22       -.86101E-05** at limit **
  17  norm          .10000E-03    44.329        .47696E-07** at limit **
  18  Normalizat    .93655        .42599        .42267E-05   -.12915E-03
  19  Prefactor     .67619        .28396       -.59392E-05   -.36589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 82.124
  Prefactor  = 19.1235
  Prefactor  = 1020.95
  norm       = 0.000100004
  Prefactor  = 51.8015
  norm       = 29.9938
  norm       = 0.000100002
  norm       = 5.21306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.4755
  Prefactor  = 0.000100005
  norm       = 0.0001
  Normalizat = 0.936548
  Prefactor  = 0.676188
 **********
 **   18 **HESSE 
 **********

 FCN=   2103.709     FROM HESSE     STATUS=OK           272 CALLS     2227 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    217.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3710        .12913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          82.124        71.592        .44327E-04   -1.3893    
   4  Prefactor     19.124        54.675        .91509E-04   -1.4833    
   5  Prefactor     1021.0        622.34        .66061E-04   -.92034    
   6  norm          .10000E-03    434.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.801        51.440        .55755E-04   -1.4267    
   8  norm          29.994        19.832        .73152E-04   -1.4612    
   9  norm          .10000E-03    68.093        .79571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.2131        4.8131        .90904E-04   -1.5251    
  11  Prefactor     .10000E-03    28.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .86558        .82092E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    50.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.475        14.104        .86430E-04   -1.4781    
  16  Prefactor     .10000E-03    444.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    44.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .93655        .48709        .30791E-03   -.95188    
  19  Prefactor     .67619        .31296        .23779E-03   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73118e-10
Minuit parameter uncertainties:
  1  0.000298604
  2  6.64891e-05
  3  71.6676
  4  54.8187
  5  626.808
  6  0.00277236
  7  51.4842
  8  19.8363
  9  0.000677096
  10  4.81348
  11  3.57274e-06
  12  3.5196e-05
  13  6.31275e-06
  14  9.16958e-06
  15  14.1059
  16  0.00288904
  17  6.77705e-06
  18  0.489415
  19  0.313779
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.520e-05  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:  6.762e-01  3.138e-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:  9.365e-01  4.894e-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: 2.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78124/likelihoodResults_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.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) = 2103.70954839
delta logL = -0.000174645783773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2103.70937499
delta logL = -1.24773441712e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8161       1.0000          .0000       10.000    
     3 'Normalizat'    .93655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67619       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2103.709     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10653E-03    10.876        .18142E-01** at limit **
   2  Index         2.6888        6.0944        .50000        .16650E-04
   3  Normalizat    .93655        .66821E-02    .30791E-03   -.10473E-03
   4  Prefactor     .67619        .44758E-02    .23779E-03   -.94019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106528
  Index      = 2.68882
  Normalizat = 0.936552
  Prefactor  = 0.676185
 **********
 **   18 **HESSE 
 **********

 FCN=   2103.709     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10653E-03    158.83        .19658E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6888        6.3444        .50000       -.48051    
   3  Normalizat    .93655        .25656E-01    .12317E-04   -.95187    
   4  Prefactor     .67619        .17185E-01    .95115E-05   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.86629e-09
Minuit parameter uncertainties:
  1  0.064572
  2  450.564
  3  0.025656
  4  0.017185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78124': 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) = 2103.70937464
delta logL = -9.01688508748e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.065e-04  6.457e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.689e+00  4.506e+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:  6.762e-01  1.719e-02  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:  9.366e-01  2.566e-02  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/78124/cmap_HighResolution_561340801_561945601_4FGL_J0821.1+1007_weekly_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', job_status='DONE', photon_flux_upper_limit='2.30e-07', time_completed='2021-07-13 16:26:11.063955', job_id='78124', GAL2='0.68', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1626218771.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-9.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='533' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:26:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 78124: <4FGL_J0821.1+1007_weekly_bin533> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin533> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Jul 13 16:10:24 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 16:10:27 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:27 2021
Terminated at Tue Jul 13 16:26:12 2021
Results reported at Tue Jul 13 16:26:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin533 125.299 10.1287 561340801 561945601 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 :                                   452.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             187.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            948 sec.

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

