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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin8
RA = 125.299, Dec = 10.1287
tmin = 241401601, tmax = 241660801
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='413853', job_status='RUN', time_executed='2021-08-29 17:24:00.923809', time_epoch_executed='1630283040.92' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413853

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413853/ft1_4FGL_J0821.1+1007_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413853/ft2_4FGL_J0821.1+1007_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413853/ft1_4FGL_J0821.1+1007_daily_bin8.fits outfile=/scratch/kocevski/413853/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin8.fits ra=125.299 dec=10.1287 rad=12.0 tmin=241401601.0 tmax=241660801.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 2.95
user 1.27
sys 1.62

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413853/ft1_filtered_4FGL_J0821.1+1007_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/413853/ft2_4FGL_J0821.1+1007_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/413853/ltcube_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.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/413853/ft2_4FGL_J0821.1+1007_daily_bin8.fits
.....................!
real 14.11
user 12.12
sys 1.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413853/ft1_filtered_4FGL_J0821.1+1007_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/413853/ft2_4FGL_J0821.1+1007_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/413853/ltcube_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.fits outfile=/scratch/kocevski/413853/expmap_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.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/413853/ltcube_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.fits
.....................!
real 193.58
user 187.19
sys 5.84

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/413853/ft1_filtered_4FGL_J0821.1+1007_daily_bin8.fits scfile=/scratch/kocevski/413853/ft2_4FGL_J0821.1+1007_daily_bin8.fits outfile=/scratch/kocevski/413853/cmap_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.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 2.39
user 0.36
sys 1.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413853/ft1_filtered_4FGL_J0821.1+1007_daily_bin8.fits scfile=/scratch/kocevski/413853/ft2_4FGL_J0821.1+1007_daily_bin8.fits outfile=/scratch/kocevski/413853/cmap_HighResolution_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.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 2.22
user 0.37
sys 1.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    38.892       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.209       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.586       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84956       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1633       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=   6590.838     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1860 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.840        54.049        .12008E-02   -.11453E-02
   2  Prefactor     .10000E-03    .79107        .90712E-02** at limit **
   3  norm          38.892        19.829        .16068E-02    .85897E-05
   4  Prefactor     .10000E-03    3.3535        .90712E-02** at limit **
   5  Prefactor     .10000E-03    98.662        .90712E-02** at limit **
   6  norm          .10000E-03    52.218        .90712E-02** at limit **
   7  Prefactor     .10000E-03    20.703        .90712E-02** at limit **
   8  norm          .10000E-03    8.0009        .90712E-02** at limit **
   9  norm          .10000E-03    6.5683        .90712E-02** at limit **
  10  norm          .10000E-03    1.2770        .90712E-02** at limit **
  11  Prefactor     63.720        37.813        .12568E-02   -.60794E-03
  12  Prefactor     24.215        17.759        .20353E-02    .32459E-03
  13  norm          1.2787        .77754        .98182E-02    .10147E-02
  14  Prefactor     16.588        9.0207        .24586E-02    .21607E-03
  15  norm          .10000E-03    4.4761        .90712E-02** at limit **
  16  Prefactor     .10000E-03    15.596        .90712E-02** at limit **
  17  norm          .10000E-03    3.2595        .90712E-02** at limit **
  18  Normalizat    .84913        .19251        .67821E-01    .36656E-04
  19  Prefactor     1.1637        .15137        .35561E-01   -.99856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.8404
  Prefactor  = 0.0001
  norm       = 38.8924
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 63.7202
  Prefactor  = 24.2148
  norm       = 1.27869
  Prefactor  = 16.5885
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.849132
  Prefactor  = 1.16368
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.838     FROM HESSE     STATUS=OK           254 CALLS     2114 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.840        54.078        .48034E-04   -1.4035    
   2  Prefactor     .10000E-03    .79448        .70499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          38.892        19.828        .64270E-04   -1.4460    
   4  Prefactor     .10000E-03    3.3575        .14517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    98.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    52.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.5790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2977        .89580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.720        37.908        .50272E-04   -1.4110    
  12  Prefactor     24.215        17.790        .81413E-04   -1.4723    
  13  norm          1.2787        .77266        .53943E-04   -1.5482    
  14  Prefactor     16.588        9.0501        .98345E-04   -1.4893    
  15  norm          .10000E-03    4.5097        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2669        .14314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .84913        .22174        .30005E-03   -.98271    
  19  Prefactor     1.1637        .17437        .21218E-03   -.87456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06745e-09
Minuit parameter uncertainties:
  1  54.1156
  2  2.53797e-05
  3  19.8309
  4  1.73056e-05
  5  0.000459089
  6  0.000190144
  7  0.000125474
  8  3.90331e-05
  9  1.44156e-05
  10  2.71145e-06
  11  37.9222
  12  17.7941
  13  0.772667
  14  9.05085
  15  1.53685e-06
  16  4.58225e-05
  17  1.71124e-05
  18  0.221973
  19  0.174452
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.421e+01  1.779e+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.164e+00  1.745e-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.491e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/413853/likelihoodResults_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.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) = 6590.34275179
delta logL = 0.494904452212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6590.33922901
delta logL = 0.498427229718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4199       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1562       1.0000          .0000       10.000    
     3 'Normalizat'    .79796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1925       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6590.339     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      284 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4148        27.895        .13057E-03   -.11049E-03
   2  Index         3.1566        1.5613        .43057E-02   -.10446E-03
   3  Normalizat    .79795        .22641        .30844E-03    .61166E-03
   4  Prefactor     1.1925        .18065        .20993E-03    .60165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.4148
  Index      = 3.15657
  Normalizat = 0.797948
  Prefactor  = 1.19251
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.339     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4148        15.362        .52230E-05   -1.5094    
   2  Index         3.1566        .86953        .17223E-03   -.37759    
   3  Normalizat    .79795        .22164        .61688E-04   -1.0014    
   4  Prefactor     1.1925        .17686        .41986E-04   -.86562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29149e-09
Minuit parameter uncertainties:
  1  15.3681
  2  0.874681
  3  0.221896
  4  0.176943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413853': 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) = 6590.33922893
delta logL = 0.498427313589

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.193e+00  1.769e-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:  7.979e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 125.299 10.129
Photon Index (Free Index): 3.16 +/- 0.87
Photon Flux (Free Index): 9.88e-08 +/- 6.43e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/413853/cmap_HighResolution_241401601_241660801_4FGL_J0821.1+1007_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='1.84e-05', photon_flux_error='4.59e-08', dlogl='4.98e-01', energy_flux='2.02e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-08-29 17:33:49.204055', photon_index_error2='0.87', photon_index2='3.16', ts='2.68', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.15e-05', EG='0.85', time_epoch_completed='1630283629.2', return_code='0', job_id='413853', GAL2='1.19', EG2='0.80', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.43e-08', ts2='3.82', photon_index='2.41' WHERE bin_id='8' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:33:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 413853: <4FGL_J0821.1+1007_daily_bin8> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin8> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:51 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:52 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:20:52 2021
Terminated at Sun Aug 29 17:33:50 2021
Results reported at Sun Aug 29 17:33:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin8 125.299 10.1287 241401601 241660801 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

