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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1037
RA = 125.299, Dec = 10.1287
tmin = 508118401, tmax = 508377601
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='418917', job_status='RUN', time_executed='2021-08-29 17:40:18.078632', time_epoch_executed='1630284018.08' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418917

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418917/ft1_4FGL_J0821.1+1007_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418917/ft2_4FGL_J0821.1+1007_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418917/ft1_4FGL_J0821.1+1007_daily_bin1037.fits outfile=/scratch/kocevski/418917/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1037.fits ra=125.299 dec=10.1287 rad=12.0 tmin=508118401.0 tmax=508377601.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 3.68
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418917/ft1_filtered_4FGL_J0821.1+1007_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/418917/ft2_4FGL_J0821.1+1007_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/418917/ltcube_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.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/418917/ft2_4FGL_J0821.1+1007_daily_bin1037.fits
.....................!
real 11.84
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418917/ft1_filtered_4FGL_J0821.1+1007_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/418917/ft2_4FGL_J0821.1+1007_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/418917/ltcube_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.fits outfile=/scratch/kocevski/418917/expmap_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.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/418917/ltcube_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.fits
.....................!
real 190.10
user 185.58
sys 4.10

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/418917/ft1_filtered_4FGL_J0821.1+1007_daily_bin1037.fits scfile=/scratch/kocevski/418917/ft2_4FGL_J0821.1+1007_daily_bin1037.fits outfile=/scratch/kocevski/418917/cmap_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418917/ft1_filtered_4FGL_J0821.1+1007_daily_bin1037.fits scfile=/scratch/kocevski/418917/ft2_4FGL_J0821.1+1007_daily_bin1037.fits outfile=/scratch/kocevski/418917/cmap_HighResolution_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    155.28       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3791       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.353       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44637       1.0000         .10000E-03   10000.    
    15 'norm      '    7.5093       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.315       1.0000         .10000E-03   10000.    
    17 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1708       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81404       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=   5407.053     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1908 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     155.30        62.869       -.87293E-05    .17078E-05
   2  Prefactor     4.3815        2.9359        .18689E-06   -.18361E-04
   3  norm          .10000E-03    7.3122       -.18971E-06** at limit **
   4  Prefactor     .10000E-03    12.687       -.25431E-06** at limit **
   5  Prefactor     52.863        94.513       -.35862E-05    .52334E-06
   6  norm          .10000E-03    29.774       -.69230E-07** at limit **
   7  Prefactor     .10000E-03    18.849       -.55939E-06** at limit **
   8  norm          .10000E-03    6.1053        .13845E-07** at limit **
   9  norm          .10000E-03    21.221        .48393E-06** at limit **
  10  norm          11.224        5.3448       -.24486E-07   -.57121E-04
  11  Prefactor     7.0938        26.463        .21814E-06   -.17293E-04
  12  Prefactor     .10000E-03    8.0685       -.61382E-07** at limit **
  13  norm          .10000E-03    .29551       -.17568E-07** at limit **
  14  Prefactor     .45914        4.2241       -.23344E-05    .57863E-03
  15  norm          7.5084        7.0642        .32296E-05   -.56982E-04
  16  Prefactor     23.310        34.094        .13581E-04    .58547E-04
  17  norm          .10000E-03    7.2539        .22874E-06** at limit **
  18  Normalizat    1.1703        .20113        .20717E-07    .24266E-03
  19  Prefactor     .81445        .15237       -.42079E-06    .19943E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 155.3
  Prefactor  = 4.38152
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.8634
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.2241
  Prefactor  = 7.09384
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.459137
  norm       = 7.50836
  Prefactor  = 23.3099
  norm       = 0.0001
  Normalizat = 1.17028
  Prefactor  = 0.814447
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.053     FROM HESSE     STATUS=OK           266 CALLS     2174 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     155.30        63.192        .16176E-03   -1.3209    
   2  Prefactor     4.3815        2.9368        .98895E-04   -1.5289    
   3  norm          .10000E-03    7.3195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.863        94.522        .54911E-04   -1.4253    
   6  norm          .10000E-03    29.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.1103        .17745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.224        5.3456        .11305E-03   -1.5038    
  11  Prefactor     7.0938        26.539        .15033E-03   -1.5175    
  12  Prefactor     .10000E-03    8.1047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .30654        .78022E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .45914        21.631        .28233E-02   -1.5572    
  15  norm          7.5084        7.0523        .14635E-03   -1.5160    
  16  Prefactor     23.310        34.337        .82957E-04   -1.4742    
  17  norm          .10000E-03    7.3607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1703        .23933        .24902E-03   -.87526    
  19  Prefactor     .81445        .18004        .23056E-03   -.99198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28263e-09
Minuit parameter uncertainties:
  1  63.2198
  2  2.9369
  3  1.83995e-06
  4  1.30716e-05
  5  94.7914
  6  1.09192e-05
  7  2.72502e-06
  8  2.44757e-07
  9  1.04593e-06
  10  5.34578
  11  26.5831
  12  1.19935e-05
  13  8.40959e-07
  14  6.30459
  15  7.05304
  16  34.3658
  17  1.71573e-06
  18  0.239553
  19  0.180167
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.199e-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:  8.144e-01  1.802e-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.170e+00  2.396e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/418917/likelihoodResults_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.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) = 5407.05380088
delta logL = -0.000587750450904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5407.0532132
delta logL = -7.27550286683e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4175       1.0000          .0000       10.000    
     3 'Normalizat'    1.1702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81450       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=   5407.053     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1394        .90712E-02** at limit **
   2  Index         2.4249        6.2116        .50000       -.84465E-05
   3  Normalizat    1.1703        .19064        .56313E-01    .28097E-04
   4  Prefactor     .81445        .15084        .43906E-01    .24449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42491
  Normalizat = 1.17028
  Prefactor  = 0.814447
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.053     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 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     .10000E-03    863.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4249        8.7873        .50000       -.54103    
   3  Normalizat    1.1703        .60489E-01    .24902E-03   -.87526    
   4  Prefactor     .81445        .47864E-01    .23056E-03   -.99198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.33827e-09
Minuit parameter uncertainties:
  1  4.54108e-05
  2  44.8729
  3  0.0604927
  4  0.0478666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418917': 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) = 5407.0532131
delta logL = 2.77241269941e-08

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  4.541e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.425e+00  4.487e+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:  8.144e-01  4.787e-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:  1.170e+00  6.049e-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/418917/cmap_HighResolution_508118401_508377601_4FGL_J0821.1+1007_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-08-29 17:49:07.660001', job_id='418917', GAL2='0.81', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630284547.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1037' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:49:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 418917: <4FGL_J0821.1+1007_daily_bin1037> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1037> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 17:36:00 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:36:01 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:36:01 2021
Terminated at Sun Aug 29 17:49:08 2021
Results reported at Sun Aug 29 17:49:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1037 125.299 10.1287 508118401 508377601 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 :                                   526.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            788 sec.

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

