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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1465
RA = 125.299, Dec = 10.1287
tmin = 619056001, tmax = 619315201
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='421829', job_status='RUN', time_executed='2021-08-29 17:48:39.038255', time_epoch_executed='1630284519.04' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421829/ft1_4FGL_J0821.1+1007_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421829/ft2_4FGL_J0821.1+1007_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421829/ft1_4FGL_J0821.1+1007_daily_bin1465.fits outfile=/scratch/kocevski/421829/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1465.fits ra=125.299 dec=10.1287 rad=12.0 tmin=619056001.0 tmax=619315201.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 12.54
user 3.36
sys 9.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421829/ft2_4FGL_J0821.1+1007_daily_bin1465.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/421829/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1465.fits evtable="EVENTS" outfile="/scratch/kocevski/421829/ft1_filtered_4FGL_J0821.1+1007_daily_bin1465.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 9.91
user 0.32
sys 9.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421829/ft1_filtered_4FGL_J0821.1+1007_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/421829/ft2_4FGL_J0821.1+1007_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/421829/ltcube_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.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/421829/ft2_4FGL_J0821.1+1007_daily_bin1465.fits
.....................!
real 22.76
user 12.21
sys 10.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421829/ft1_filtered_4FGL_J0821.1+1007_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/421829/ft2_4FGL_J0821.1+1007_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/421829/ltcube_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.fits outfile=/scratch/kocevski/421829/expmap_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.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/421829/ltcube_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.fits
.....................!
real 206.79
user 188.45
sys 16.64

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/421829/ft1_filtered_4FGL_J0821.1+1007_daily_bin1465.fits scfile=/scratch/kocevski/421829/ft2_4FGL_J0821.1+1007_daily_bin1465.fits outfile=/scratch/kocevski/421829/cmap_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.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 9.57
user 0.35
sys 8.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421829/ft1_filtered_4FGL_J0821.1+1007_daily_bin1465.fits scfile=/scratch/kocevski/421829/ft2_4FGL_J0821.1+1007_daily_bin1465.fits outfile=/scratch/kocevski/421829/cmap_HighResolution_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.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.57
user 0.39
sys 8.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6453       1.0000         .10000E-03   10000.    
     3 'norm      '    .10723E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.035       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.613       1.0000         .10000E-03   10000.    
     6 'norm      '    70.109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.322       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10698E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5751       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .46544       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.153       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90453       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=   6584.825     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1862 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.140        .66494E-05** at limit **
   2  Prefactor     2.6464        3.3303        .10837E-06   -.56905E-03
   3  norm          .10000E-03    11.113        .25845E-05** at limit **
   4  Prefactor     12.033        11.609        .24317E-06   -.41782E-04
   5  Prefactor     44.589        75.284       -.31155E-04    .15255E-05
   6  norm          70.087        94.863       -.23821E-04    .57684E-06
   7  Prefactor     12.280        22.535       -.33952E-05    .36176E-04
   8  norm          .10000E-03    6.6915        .59625E-05** at limit **
   9  norm          .10000E-03    6.8601       -.63593E-05** at limit **
  10  norm          3.5762        3.0930       -.14340E-06   -.29333E-03
  11  Prefactor     .10000E-03    10.829       -.68652E-06** at limit **
  12  Prefactor     .10000E-03    15.959       -.74968E-05** at limit **
  13  norm          .46500        .85646       -.40725E-06   -.20322E-02
  14  Prefactor     .10000E-03    2.8086        .18894E-07** at limit **
  15  norm          .10000E-03    4.5454       -.15348E-06** at limit **
  16  Prefactor     29.152        36.444       -.31900E-05    .21708E-04
  17  norm          .10000E-03    4.1390        .20384E-08** at limit **
  18  Normalizat    1.1307        .18462        .11856E-05    .13825E-03
  19  Prefactor     .90480        .14017        .10932E-05    .11714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.64642
  norm       = 0.0001
  Prefactor  = 12.0329
  Prefactor  = 44.5892
  norm       = 70.0871
  Prefactor  = 12.2795
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.57616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.464998
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.1519
  norm       = 0.0001
  Normalizat = 1.1307
  Prefactor  = 0.904799
 **********
 **   18 **HESSE 
 **********

 FCN=   6584.825     FROM HESSE     STATUS=OK           266 CALLS     2128 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6464        3.3147        .15449E-03   -1.5383    
   3  norm          .10000E-03    11.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.033        11.583        .11547E-03   -1.5014    
   5  Prefactor     44.589        75.020        .60024E-04   -1.4371    
   6  norm          70.087        94.936        .47942E-04   -1.4032    
   7  Prefactor     12.280        22.523        .11412E-03   -1.5007    
   8  norm          .10000E-03    6.7344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.8526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5762        3.0873        .12827E-03   -1.5330    
  11  Prefactor     .10000E-03    10.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .46500        .80228        .96428E-03   -1.5572    
  14  Prefactor     .10000E-03    2.8204        .13279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.5861        .16892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.152        36.574        .74202E-04   -1.4628    
  17  norm          .10000E-03    4.1773        .16123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1307        .21964        .25706E-03   -.88772    
  19  Prefactor     .90480        .16716        .22113E-03   -.95974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20376e-10
Minuit parameter uncertainties:
  1  3.88496e-06
  2  3.31493
  3  1.19029e-05
  4  11.5854
  5  75.1794
  6  95.1425
  7  22.5387
  8  1.99489e-05
  9  1.33271e-05
  10  3.08746
  11  2.46723e-06
  12  3.25294e-05
  13  0.802302
  14  3.47657e-06
  15  8.08573e-06
  16  36.6018
  17  4.23439e-06
  18  0.219813
  19  0.167255
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.253e-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:  9.048e-01  1.673e-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.131e+00  2.198e-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: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421829/likelihoodResults_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.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) = 6584.82552028
delta logL = -0.000293661242722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6584.82522913
delta logL = -2.50748598773e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37188E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2924       1.0000          .0000       10.000    
     3 'Normalizat'    1.1312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90443       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=   6583.553     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      259 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8316        3.1968        .10648E-01    .22259E-03
   2  Index         .80469        .40185        .24340       -.58284E-04
   3  Normalizat    1.1201        .17811        .58309E-01    .47655E-04
   4  Prefactor     .90938        .13951        .45062E-01   -.58025E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83164
  Index      = 0.804692
  Normalizat = 1.12014
  Prefactor  = 0.909376
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.553     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8316        5.6740        .15046E-03   -1.6045    
   2  Index         .80469        .70464        .11741E-02   -.99556    
   3  Normalizat    1.1201        .21240        .25787E-03   -.89108    
   4  Prefactor     .90938        .16645        .22054E-03   -.95814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07023e-11
Minuit parameter uncertainties:
  1  5.67509
  2  0.712766
  3  0.212559
  4  0.16654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421829': 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) = 6583.55264342
delta logL = 1.27258320259

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.832e+00  5.675e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  8.047e-01  7.128e-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:  9.094e-01  1.665e-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.120e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 125.299 10.129
Photon Index (Free Index): 0.80 +/- 0.71
Photon Flux (Free Index): 2.96e-09 +/- 9.25e-09
Energy Flux (Free Index): 6.54e-05 +/- 2.87e-04

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/421829/cmap_HighResolution_619056001_619315201_4FGL_J0821.1+1007_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', comment='SUCCESS', energy_flux2='6.54e-05', dlogl='1.27e+00', photon_flux2='2.96e-09', job_status='DONE', time_completed='2021-08-29 18:00:37.957349', photon_index_error2='0.71', photon_index2='0.80', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='7.48e-08', energy_flux_error2='2.87e-04', EG='1.13', time_epoch_completed='1630285237.96', return_code='0', job_id='421829', GAL2='0.91', EG2='1.12', return_code2='0', photon_flux_error2='9.25e-09', ts2='2.55', photon_index='2.41' WHERE bin_id='1465' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 421829: <4FGL_J0821.1+1007_daily_bin1465> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1465> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:45:19 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:45:20 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:45:20 2021
Terminated at Sun Aug 29 18:00:40 2021
Results reported at Sun Aug 29 18:00:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1465 125.299 10.1287 619056001 619315201 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 :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

