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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin523
RA = 125.299, Dec = 10.1287
tmin = 555292801, tmax = 555897601
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='77085', job_status='RUN', time_executed='2021-07-13 16:10:01.542718', time_epoch_executed='1626217801.54' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77085

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77085/ft1_4FGL_J0821.1+1007_weekly_bin523.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77085/ft2_4FGL_J0821.1+1007_weekly_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77085/ft1_4FGL_J0821.1+1007_weekly_bin523.fits outfile=/scratch/kocevski/77085/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin523.fits ra=125.299 dec=10.1287 rad=12.0 tmin=555292801.0 tmax=555897601.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 7.76
user 7.41
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77085/ft1_filtered_4FGL_J0821.1+1007_weekly_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/77085/ft2_4FGL_J0821.1+1007_weekly_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/77085/ltcube_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.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/77085/ft2_4FGL_J0821.1+1007_weekly_bin523.fits
.....................!
real 32.54
user 31.79
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77085/ft1_filtered_4FGL_J0821.1+1007_weekly_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/77085/ft2_4FGL_J0821.1+1007_weekly_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/77085/ltcube_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.fits outfile=/scratch/kocevski/77085/expmap_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.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/77085/ltcube_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.fits
.....................!
real 193.85
user 188.03
sys 4.82

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/77085/ft1_filtered_4FGL_J0821.1+1007_weekly_bin523.fits scfile=/scratch/kocevski/77085/ft2_4FGL_J0821.1+1007_weekly_bin523.fits outfile=/scratch/kocevski/77085/cmap_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77085/ft1_filtered_4FGL_J0821.1+1007_weekly_bin523.fits scfile=/scratch/kocevski/77085/ft2_4FGL_J0821.1+1007_weekly_bin523.fits outfile=/scratch/kocevski/77085/cmap_HighResolution_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.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.61
user 0.44
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.510       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1863       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    141.88       1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.571       1.0000         .10000E-03   10000.    
    13 'norm      '    .21350       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9156       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.434       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9251       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2194       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0331       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=   6118.749     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1880 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.500        44.630       -.65438E-06   -.13990E-03
   2  Prefactor     1.1859        1.5924        .68060E-07    .25126E-04
   3  norm          .10000E-03    5.4773        .28480E-07** at limit **
   4  Prefactor     .10000E-03    3.6357        .28829E-07** at limit **
   5  Prefactor     141.88        104.88       -.68725E-06   -.53140E-04
   6  norm          .10001E-03    95.873       -.45581E-05** at limit **
   7  Prefactor     .10001E-03    32.522       -.46413E-05** at limit **
   8  norm          .10002E-03    49.186        .63855E-05** at limit **
   9  norm          .10000E-03    17.554       -.12380E-05** at limit **
  10  norm          .10000E-03    3.9794        .69179E-08** at limit **
  11  Prefactor     .10000E-03    21.180        .26520E-05** at limit **
  12  Prefactor     15.572        16.529        .18015E-06   -.12557E-04
  13  norm          .19374        1.3609        .66533E-07    .26317E-04
  14  Prefactor     6.9144        9.2243        .39966E-05   -.57926E-03
  15  norm          .10000E-03    12.847        .16052E-06** at limit **
  16  Prefactor     42.427        50.003       -.13980E-05   -.79361E-04
  17  norm          3.9242        5.4772       -.10241E-06   -.16259E-03
  18  Normalizat    1.2191        .23804       -.10856E-05   -.14425E-04
  19  Prefactor     1.0335        .17288       -.55989E-06   -.35491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5
  Prefactor  = 1.18587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 141.875
  norm       = 0.000100008
  Prefactor  = 0.000100009
  norm       = 0.000100017
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 15.5719
  norm       = 0.19374
  Prefactor  = 6.91437
  norm       = 0.0001
  Prefactor  = 42.427
  norm       = 3.92423
  Normalizat = 1.21909
  Prefactor  = 1.03346
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.749     FROM HESSE     STATUS=OK           264 CALLS     2144 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.500        45.104        .52009E-04   -1.4164    
   2  Prefactor     1.1859        1.5637        .11112E-03   -1.5490    
   3  norm          .10000E-03    5.4791        .17880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6383        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     141.88        105.13        .16911E-03   -1.3320    
   6  norm          .10001E-03    97.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    33.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    51.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9806        .15240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.572        16.535        .10150E-03   -1.4919    
  13  norm          .19374        5.9192        .17485E-02   -1.5620    
  14  Prefactor     6.9144        9.6439        .76280E-03   -1.5182    
  15  norm          .10000E-03    12.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.427        50.408        .61540E-04   -1.4404    
  17  norm          3.9242        5.4821        .20363E-03   -1.5312    
  18  Normalizat    1.2191        .28595        .29822E-03   -.86015    
  19  Prefactor     1.0335        .20705        .24280E-03   -.91622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49418e-09
Minuit parameter uncertainties:
  1  45.1299
  2  1.56377
  3  2.06689e-06
  4  1.85751e-06
  5  105.271
  6  0.00181114
  7  0.00109433
  8  0.00185967
  9  0.00021014
  10  6.47171e-07
  11  0.000496912
  12  16.5394
  13  2.14144
  14  9.64602
  15  2.39964e-05
  16  50.4588
  17  5.48282
  18  0.286319
  19  0.207212
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.557e+01  1.654e+01  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.033e+00  2.072e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.219e+00  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.02e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.38e-05

TS (Fixed Index): 1.46
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77085/likelihoodResults_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6118.06254492
delta logL = 0.68599830203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6118.02327003
delta logL = 0.725273184657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.368       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6163       1.0000          .0000       10.000    
     3 'Normalizat'    1.2401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0229       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=   6118.023     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      215 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.393        24.556        .21662E-02    .22264E-04
   2  Index         1.6165        .54014        .25773       -.35848E-04
   3  Normalizat    1.2403        .22597        .66887E-01    .85291E-06
   4  Prefactor     1.0229        .17175        .41863E-01   -.59354E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3933
  Index      = 1.61651
  Normalizat = 1.24032
  Prefactor  = 1.02289
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.023     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.393        22.536        .43325E-03   -1.4783    
   2  Index         1.6165        .59975        .93897E-02   -.74327    
   3  Normalizat    1.2403        .26843        .29591E-03   -.85366    
   4  Prefactor     1.0229        .20451        .24379E-03   -.91970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1469e-12
Minuit parameter uncertainties:
  1  22.5449
  2  0.602436
  3  0.268727
  4  0.204668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77085': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6118.02326786
delta logL = 0.725275356591

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.139e+01  2.254e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.617e+00  6.024e-01  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.240e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 125.299 10.129
Photon Index (Free Index): 1.62 +/- 0.60
Photon Flux (Free Index): 1.79e-08 +/- 2.46e-08
Energy Flux (Free Index): 3.83e-05 +/- 5.33e-05

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/77085/cmap_HighResolution_555292801_555897601_4FGL_J0821.1+1007_weekly_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.02e-08', energy_flux2='3.83e-05', photon_flux_error='4.27e-08', dlogl='7.25e-01', energy_flux='1.30e-05', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-07-13 16:20:19.679353', photon_index_error2='0.60', photon_index2='1.62', ts='1.46', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='5.33e-05', EG='1.22', time_epoch_completed='1626218419.68', return_code='0', job_id='77085', GAL2='1.02', EG2='1.24', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.46e-08', ts2='2.91', photon_index='2.41' WHERE bin_id='523' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:20:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 77085: <4FGL_J0821.1+1007_weekly_bin523> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin523> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jul 13 16:06:30 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 16:07:13 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:07:13 2021
Terminated at Tue Jul 13 16:20:21 2021
Results reported at Tue Jul 13 16:20:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin523 125.299 10.1287 555292801 555897601 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 :                                   601.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            831 sec.

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

