/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 21 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin145
RA = 125.299, Dec = 10.1287
tmin = 276912001, tmax = 277171201
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='415292', job_status='RUN', time_executed='2021-08-29 17:29:06.861511', time_epoch_executed='1630283346.86' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415292/ft1_4FGL_J0821.1+1007_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415292/ft2_4FGL_J0821.1+1007_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415292/ft1_4FGL_J0821.1+1007_daily_bin145.fits outfile=/scratch/kocevski/415292/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin145.fits ra=125.299 dec=10.1287 rad=12.0 tmin=276912001.0 tmax=277171201.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 14.06
user 3.26
sys 9.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415292/ft2_4FGL_J0821.1+1007_daily_bin145.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/415292/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin145.fits evtable="EVENTS" outfile="/scratch/kocevski/415292/ft1_filtered_4FGL_J0821.1+1007_daily_bin145.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.55
user 0.34
sys 9.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415292/ft1_filtered_4FGL_J0821.1+1007_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/415292/ft2_4FGL_J0821.1+1007_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/415292/ltcube_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.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/415292/ft2_4FGL_J0821.1+1007_daily_bin145.fits
.....................!
real 22.29
user 11.58
sys 10.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415292/ft1_filtered_4FGL_J0821.1+1007_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/415292/ft2_4FGL_J0821.1+1007_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/415292/ltcube_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.fits outfile=/scratch/kocevski/415292/expmap_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.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/415292/ltcube_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.fits
.....................!
real 202.88
user 185.37
sys 15.54

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/415292/ft1_filtered_4FGL_J0821.1+1007_daily_bin145.fits scfile=/scratch/kocevski/415292/ft2_4FGL_J0821.1+1007_daily_bin145.fits outfile=/scratch/kocevski/415292/cmap_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.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.37
sys 8.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415292/ft1_filtered_4FGL_J0821.1+1007_daily_bin145.fits scfile=/scratch/kocevski/415292/ft2_4FGL_J0821.1+1007_daily_bin145.fits outfile=/scratch/kocevski/415292/cmap_HighResolution_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.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 10.07
user 0.38
sys 9.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.913       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4277       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.312       1.0000         .10000E-03   10000.    
     6 'norm      '    248.79       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12090E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .76887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2137       1.0000         .10000E-03   10000.    
    15 'norm      '    .41298E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.3588       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.9797       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .67478       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=   6433.616     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1898 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.909        49.640       -.34674E-05   -.32038E-05
   2  Prefactor     1.4292        3.5916        .22914E-05   -.60340E-03
   3  norm          .10000E-03    5.3488        .78217E-07** at limit **
   4  Prefactor     .10000E-03    3.6582        .21106E-07** at limit **
   5  Prefactor     31.156        73.628       -.24797E-03    .24648E-05
   6  norm          248.78        141.42       -.56620E-05    .55513E-06
   7  Prefactor     .10000E-03    14.689       -.20579E-05** at limit **
   8  norm          .10000E-03    7.7063        .22903E-05** at limit **
   9  norm          .10000E-03    9.8413       -.68518E-05** at limit **
  10  norm          .10008E-03    1.8018       -.72741E-06** at limit **
  11  Prefactor     .10000E-03    11.474        .77766E-05** at limit **
  12  Prefactor     .10000E-03    6.6294       -.77932E-06** at limit **
  13  norm          .76910        1.0947       -.33396E-06    .58787E-04
  14  Prefactor     8.2114        10.625       -.13763E-05   -.10652E-03
  15  norm          .10004E-03    6.6401       -.23415E-05** at limit **
  16  Prefactor     .10000E-03    54.755        .84733E-05** at limit **
  17  norm          6.3589        6.3936        .89091E-06    .16416E-02
  18  Normalizat    1.9797        .22378        .12391E-05    .23515E-03
  19  Prefactor     .67483        .16591        .46487E-05    .18481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.9091
  Prefactor  = 1.42918
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.156
  norm       = 248.776
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.00010008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.769105
  Prefactor  = 8.21143
  norm       = 0.000100042
  Prefactor  = 0.0001
  norm       = 6.35894
  Normalizat = 1.97967
  Prefactor  = 0.674825
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.616     FROM HESSE     STATUS=OK           272 CALLS     2170 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.909        49.671        .47671E-04   -1.4022    
   2  Prefactor     1.4292        3.5760        .22696E-03   -1.5469    
   3  norm          .10000E-03    5.3516        .18117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6639        .14982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.156        73.648        .35802E-03   -1.4591    
   6  norm          248.78        141.40        .12841E-03   -1.2540    
   7  Prefactor     .10000E-03    14.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.8793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10008E-03    2.5441        .40829E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76910        1.0931        .49293E-04   -1.5533    
  14  Prefactor     8.2114        10.684        .13989E-03   -1.5135    
  15  norm          .10004E-03    28.811        .39880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    55.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3589        6.4005        .79586E-03   -1.5204    
  18  Normalizat    1.9797        .26325        .24767E-03   -.65061    
  19  Prefactor     .67483        .19363        .29873E-03   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76727e-09
Minuit parameter uncertainties:
  1  49.7003
  2  3.57654
  3  1.50446e-07
  4  6.28281e-06
  5  73.8642
  6  141.598
  7  2.30544e-05
  8  1.86227e-05
  9  1.33416e-05
  10  0.00090002
  11  8.80484e-06
  12  9.72286e-06
  13  1.0931
  14  10.6862
  15  0.00219555
  16  0.00028071
  17  6.40118
  18  0.263438
  19  0.193824
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  9.723e-06  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:  6.748e-01  1.938e-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.980e+00  2.634e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415292/likelihoodResults_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.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) = 6433.61650351
delta logL = -0.000714491949111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6433.61578902
delta logL = -8.98762664292e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4077       1.0000          .0000       10.000    
     3 'Normalizat'    1.9797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67484       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=   6433.616     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1080.0        .90712E-02** at limit **
   2  Index         2.4052        5.8035        .50000        .31941E-05
   3  Normalizat    1.9797        .99306E-01    .56021E-01   -.45224E-05
   4  Prefactor     .67483        .75245E-01    .67510E-01    .26035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4052
  Normalizat = 1.97967
  Prefactor  = 0.674825
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.616     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1054.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4052        5.5340        .50000       -.54563    
   3  Normalizat    1.9797        .97239E-01    .24767E-03   -.65061    
   4  Prefactor     .67483        .73869E-01    .29873E-03   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63178e-09
Minuit parameter uncertainties:
  1  8.35484e-06
  2  54.8901
  3  0.0972489
  4  0.0738792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415292': 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) = 6433.61578901
delta logL = 3.87535692425e-09

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  8.355e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.405e+00  5.489e+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:  6.748e-01  7.388e-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.980e+00  9.725e-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/415292/cmap_HighResolution_276912001_277171201_4FGL_J0821.1+1007_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-08-29 17:41:00.006383', job_id='415292', GAL2='0.67', fit_tolerance='1e-08', EG2='1.98', EG='1.98', time_epoch_completed='1630284060.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='3.88e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='145' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 415292: <4FGL_J0821.1+1007_daily_bin145> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin145> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:25:43 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:25:45 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:45 2021
Terminated at Sun Aug 29 17:41:02 2021
Results reported at Sun Aug 29 17:41:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin145 125.299 10.1287 276912001 277171201 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 :                                   845.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

