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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin595
RA = 125.299, Dec = 10.1287
tmin = 598838401, tmax = 599443201
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='78226', job_status='RUN', time_executed='2021-07-13 16:17:38.034945', time_epoch_executed='1626218258.03' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78226

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78226/ft1_4FGL_J0821.1+1007_weekly_bin595.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78226/ft2_4FGL_J0821.1+1007_weekly_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78226/ft1_4FGL_J0821.1+1007_weekly_bin595.fits outfile=/scratch/kocevski/78226/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin595.fits ra=125.299 dec=10.1287 rad=12.0 tmin=598838401.0 tmax=599443201.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 6.35
user 5.65
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78226/ft1_filtered_4FGL_J0821.1+1007_weekly_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/78226/ft2_4FGL_J0821.1+1007_weekly_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/78226/ltcube_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.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/78226/ft2_4FGL_J0821.1+1007_weekly_bin595.fits
.....................!
real 35.38
user 34.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78226/ft1_filtered_4FGL_J0821.1+1007_weekly_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/78226/ft2_4FGL_J0821.1+1007_weekly_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/78226/ltcube_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.fits outfile=/scratch/kocevski/78226/expmap_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.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/78226/ltcube_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.fits
.....................!
real 192.12
user 185.48
sys 4.73

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/78226/ft1_filtered_4FGL_J0821.1+1007_weekly_bin595.fits scfile=/scratch/kocevski/78226/ft2_4FGL_J0821.1+1007_weekly_bin595.fits outfile=/scratch/kocevski/78226/cmap_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.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.56
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78226/ft1_filtered_4FGL_J0821.1+1007_weekly_bin595.fits scfile=/scratch/kocevski/78226/ft2_4FGL_J0821.1+1007_weekly_bin595.fits outfile=/scratch/kocevski/78226/cmap_HighResolution_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.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.33
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.249       1.0000         .10000E-03   10000.    
     3 'norm      '    77.070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.238       1.0000         .10000E-03   10000.    
    15 'norm      '    16.904       1.0000         .10000E-03   10000.    
    16 'Prefactor '    100.10       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79140       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .78368       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=   3063.721     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1835 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    94.399        .83442E-04** at limit **
   2  Prefactor     12.248        11.561       -.24358E-05    .11418E-03
   3  norm          77.095        58.978        .18548E-04    .15269E-03
   4  Prefactor     .10001E-03    43.937       -.26838E-04** at limit **
   5  Prefactor     .10000E-03    168.79       -.79346E-04** at limit **
   6  norm          .10000E-03    149.81       -.11710E-04** at limit **
   7  Prefactor     .10000E-03    34.018        .32859E-04** at limit **
   8  norm          .10000E-03    17.412        .21872E-06** at limit **
   9  norm          .10000E-03    61.536       -.18897E-04** at limit **
  10  norm          26.723        11.118       -.90372E-06    .84882E-05
  11  Prefactor     .10000E-03    30.095       -.15432E-04** at limit **
  12  Prefactor     .10000E-03    11.335       -.71217E-07** at limit **
  13  norm          2.1243        1.8063        .83972E-08   -.16920E-03
  14  Prefactor     20.237        12.939        .46736E-06   -.20558E-04
  15  norm          16.904        10.798        .13656E-06   -.56534E-05
  16  Prefactor     100.09        65.710       -.15377E-05    .56500E-05
  17  norm          .10000E-03    2.4167       -.69525E-07** at limit **
  18  Normalizat    .79150        .27958        .50949E-06    .36816E-04
  19  Prefactor     .78362        .20423       -.42327E-06    .76476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.2477
  norm       = 77.0947
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 26.7234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12428
  Prefactor  = 20.2374
  norm       = 16.9042
  Prefactor  = 100.095
  norm       = 0.0001
  Normalizat = 0.791501
  Prefactor  = 0.783619
 **********
 **   18 **HESSE 
 **********

 FCN=   3063.721     FROM HESSE     STATUS=OK           262 CALLS     2097 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.248        11.561        .11446E-03   -1.5008    
   3  norm          77.095        59.193        .22871E-03   -1.3950    
   4  Prefactor     .10001E-03    44.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    168.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    149.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    62.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.723        11.120        .77492E-04   -1.4674    
  11  Prefactor     .10000E-03    30.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1243        1.7948        .63426E-04   -1.5416    
  14  Prefactor     20.237        12.957        .89032E-04   -1.4808    
  15  norm          16.904        10.797        .97413E-04   -1.4885    
  16  Prefactor     100.09        66.235        .40183E-04   -1.3704    
  17  norm          .10000E-03    2.4175        .84039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79150        .33124        .29482E-03   -1.0038    
  19  Prefactor     .78362        .24181        .22541E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40031e-10
Minuit parameter uncertainties:
  1  3.68861e-09
  2  11.5627
  3  59.2386
  4  0.000963599
  5  2.08521e-05
  6  1.54828e-07
  7  7.94527e-06
  8  1.73516e-05
  9  0.00012712
  10  11.1211
  11  1.35489e-05
  12  1.44852e-08
  13  1.79481
  14  12.9587
  15  10.7981
  16  66.2842
  17  1.81387e-07
  18  0.332086
  19  0.242141
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.449e-08  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:  7.836e-01  2.421e-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:  7.915e-01  3.321e-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.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78226/likelihoodResults_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.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) = 3063.72172074
delta logL = -0.000419333604441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3063.72130144
delta logL = -3.31024239131e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3759       1.0000          .0000       10.000    
     3 'Normalizat'    .79143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78368       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=   3063.721     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      243 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10607E-03    12.095        .18142E-01** at limit **
   2  Index         2.2579        6.9950        .50000        .21756E-04
   3  Normalizat    .79150        .60701E-02    .29482E-03    .18201E-04
   4  Prefactor     .78362        .46547E-02    .22541E-03    .92296E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106074
  Index      = 2.25795
  Normalizat = 0.791502
  Prefactor  = 0.783618
 **********
 **   18 **HESSE 
 **********

 FCN=   3063.721     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10607E-03    115.49        .20232E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2579        8.5479        .50000       -.58046    
   3  Normalizat    .79150        .18892E-01    .11793E-04   -1.0038    
   4  Prefactor     .78362        .14488E-01    .90165E-05   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.2703e-09
Minuit parameter uncertainties:
  1  0.0530736
  2  360.939
  3  0.0188926
  4  0.0144876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78226': 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) = 3063.72130078
delta logL = 6.3531615524e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.061e-04  5.307e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.258e+00  3.609e+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:  7.836e-01  1.449e-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:  7.915e-01  1.889e-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/78226/cmap_HighResolution_598838401_599443201_4FGL_J0821.1+1007_weekly_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-07-13 16:26:22.200159', job_id='78226', GAL2='0.78', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1626218782.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='595' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:26:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 78226: <4FGL_J0821.1+1007_weekly_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin595 125.299 10.1287 598838401 599443201 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 :                                   475.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             178.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            950 sec.

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

