/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 57 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin56
RA = 125.299, Dec = 10.1287
tmin = 253843201, tmax = 254102401
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='415157', job_status='RUN', time_executed='2021-08-29 17:29:10.434669', time_epoch_executed='1630283350.43' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415157

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415157/ft1_4FGL_J0821.1+1007_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415157/ft2_4FGL_J0821.1+1007_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415157/ft1_4FGL_J0821.1+1007_daily_bin56.fits outfile=/scratch/kocevski/415157/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin56.fits ra=125.299 dec=10.1287 rad=12.0 tmin=253843201.0 tmax=254102401.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 9.94
user 1.30
sys 8.02

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415157/ft2_4FGL_J0821.1+1007_daily_bin56.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/415157/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/415157/ft1_filtered_4FGL_J0821.1+1007_daily_bin56.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 8.78
user 0.33
sys 8.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415157/ft1_filtered_4FGL_J0821.1+1007_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/415157/ft2_4FGL_J0821.1+1007_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/415157/ltcube_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.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/415157/ft2_4FGL_J0821.1+1007_daily_bin56.fits
.....................!
real 21.58
user 12.44
sys 8.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415157/ft1_filtered_4FGL_J0821.1+1007_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/415157/ft2_4FGL_J0821.1+1007_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/415157/ltcube_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.fits outfile=/scratch/kocevski/415157/expmap_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.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/415157/ltcube_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.fits
.....................!
real 203.03
user 184.89
sys 14.63

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/415157/ft1_filtered_4FGL_J0821.1+1007_daily_bin56.fits scfile=/scratch/kocevski/415157/ft2_4FGL_J0821.1+1007_daily_bin56.fits outfile=/scratch/kocevski/415157/cmap_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.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 8.65
user 0.37
sys 7.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415157/ft1_filtered_4FGL_J0821.1+1007_daily_bin56.fits scfile=/scratch/kocevski/415157/ft2_4FGL_J0821.1+1007_daily_bin56.fits outfile=/scratch/kocevski/415157/cmap_HighResolution_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.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 9.88
user 0.40
sys 7.87

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.602       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3256       1.0000         .10000E-03   10000.    
     3 'norm      '    14.160       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.869       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1602       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9674       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5575       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7432       1.0000         .10000E-03   10000.    
    17 'norm      '    .18172       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87596       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1292       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=   7128.355     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1868 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.600        45.525       -.17957E-06    .18346E-05
   2  Prefactor     7.3253        3.5686       -.93790E-07    .28592E-04
   3  norm          14.161        16.335        .10826E-06    .45556E-05
   4  Prefactor     5.7611        13.073       -.75882E-06    .91055E-05
   5  Prefactor     50.737        87.494        .33674E-05    .22451E-05
   6  norm          .10000E-03    35.885        .16570E-06** at limit **
   7  Prefactor     .10000E-03    10.603       -.34767E-06** at limit **
   8  norm          2.1621        24.694       -.61844E-05    .25913E-04
   9  norm          .10000E-03    6.6326       -.20473E-06** at limit **
  10  norm          4.9673        3.0143        .14860E-06    .10724E-03
  11  Prefactor     .10000E-03    16.233       -.28096E-06** at limit **
  12  Prefactor     9.5580        10.295       -.80002E-07    .11000E-04
  13  norm          2.2707        1.0427       -.23306E-06    .28802E-03
  14  Prefactor     .10000E-03    6.5500       -.75329E-06** at limit **
  15  norm          .10000E-03    4.9020       -.54758E-06** at limit **
  16  Prefactor     5.7374        43.992       -.16709E-05    .60422E-05
  17  norm          .22969        32.455       -.68815E-05   -.12904E-04
  18  Normalizat    .87611        .18381        .48227E-06    .92477E-04
  19  Prefactor     1.1291        .14328        .80004E-06    .10928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6001
  Prefactor  = 7.32529
  norm       = 14.1605
  Prefactor  = 5.76112
  Prefactor  = 50.7367
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16206
  norm       = 0.0001
  norm       = 4.96733
  Prefactor  = 0.0001
  Prefactor  = 9.55802
  norm       = 2.2707
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.73744
  norm       = 0.229689
  Normalizat = 0.876107
  Prefactor  = 1.12907
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.355     FROM HESSE     STATUS=OK           274 CALLS     2142 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.600        45.592        .58735E-04   -1.4342    
   2  Prefactor     7.3253        3.5707        .10354E-03   -1.5167    
   3  norm          14.161        16.312        .10644E-03   -1.4955    
   4  Prefactor     5.7611        13.037        .16726E-03   -1.5228    
   5  Prefactor     50.737        87.771        .28115E-03   -1.4282    
   6  norm          .10000E-03    35.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1621        24.806        .28027E-03   -1.5414    
   9  norm          .10000E-03    6.6613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9673        3.0150        .11023E-03   -1.5262    
  11  Prefactor     .10000E-03    16.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5580        10.301        .12963E-03   -1.5090    
  13  norm          2.2707        1.0432        .13627E-03   -1.5407    
  14  Prefactor     .10000E-03    6.6945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7374        44.317        .16760E-03   -1.5229    
  17  norm          .22969        31.880        .36088E-02   -1.5612    
  18  Normalizat    .87611        .21274        .29228E-03   -.97305    
  19  Prefactor     1.1291        .16559        .21125E-03   -.88543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10949e-08
Minuit parameter uncertainties:
  1  45.626
  2  3.57077
  3  16.3169
  4  13.0435
  5  87.9961
  6  4.44663e-06
  7  4.01428e-06
  8  14.6541
  9  3.90003e-07
  10  3.01512
  11  2.82469e-06
  12  10.3025
  13  1.04326
  14  5.63352e-06
  15  2.96225e-06
  16  31.9239
  17  5.41381
  18  0.212947
  19  0.165665
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  9.558e+00  1.030e+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.129e+00  1.657e-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:  8.761e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.47e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 7.98e-06 +/- 8.60e-06

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

Saving results to:
/scratch/kocevski/415157/likelihoodResults_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.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) = 7128.33724394
delta logL = 0.0178187211886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7128.32548002
delta logL = 0.0295826396214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7342       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6226       1.0000          .0000       10.000    
     3 'Normalizat'    .87025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1320       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=   7128.325     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7304        259.54        .36048E-02   -.16679E-03
   2  Index         2.6229        6.2758        .16545        .59272E-04
   3  Normalizat    .87027        .78588E-01    .66274E-01   -.15540E-03
   4  Prefactor     1.1320        .51070E-01    .36481E-01    .12447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.73039
  Index      = 2.62285
  Normalizat = 0.870265
  Prefactor  = 1.13197
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.325     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7304        12.893        .14419E-03   -1.5152    
   2  Index         2.6229        .99710        .90365E-02   -.49545    
   3  Normalizat    .87027        .20392        .29318E-03   -.97513    
   4  Prefactor     1.1320        .16437        .21102E-03   -.88451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83631e-10
Minuit parameter uncertainties:
  1  12.898
  2  1.00585
  3  0.204105
  4  0.164444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415157': 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) = 7128.32547995
delta logL = 0.0295827098944

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  7.730e+00  1.290e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.623e+00  1.006e+00  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.132e+00  1.644e-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:  8.703e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.62 +/- 1.01
Photon Flux (Free Index): 2.92e-08 +/- 3.44e-08
Energy Flux (Free Index): 7.49e-06 +/- 8.30e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/415157/cmap_HighResolution_253843201_254102401_4FGL_J0821.1+1007_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', comment='SUCCESS', photon_flux='2.47e-08', energy_flux2='7.49e-06', photon_flux_error='2.66e-08', dlogl='2.96e-02', energy_flux='7.98e-06', photon_flux2='2.92e-08', job_status='DONE', time_completed='2021-08-29 17:41:07.934617', photon_index_error2='1.01', photon_index2='2.62', ts='1.45', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='9.31e-08', energy_flux_error2='8.30e-06', EG='0.88', time_epoch_completed='1630284067.93', return_code='0', job_id='415157', GAL2='1.13', EG2='0.87', return_code2='0', energy_flux_error='8.60e-06', photon_flux_error2='3.44e-08', ts2='1.51', photon_index='2.41' WHERE bin_id='56' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 415157: <4FGL_J0821.1+1007_daily_bin56> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin56> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:25:32 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:25:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:25:34 2021
Terminated at Sun Aug 29 17:41:10 2021
Results reported at Sun Aug 29 17:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin56 125.299 10.1287 253843201 254102401 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 :                                   829.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

