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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin27
RA = 125.299, Dec = 10.1287
tmin = 246326401, tmax = 246585601
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='413880', job_status='RUN', time_executed='2021-08-29 17:25:07.916164', time_epoch_executed='1630283107.92' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413880/ft1_4FGL_J0821.1+1007_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413880/ft2_4FGL_J0821.1+1007_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413880/ft1_4FGL_J0821.1+1007_daily_bin27.fits outfile=/scratch/kocevski/413880/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin27.fits ra=125.299 dec=10.1287 rad=12.0 tmin=246326401.0 tmax=246585601.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 1.76
user 1.27
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413880/ft1_filtered_4FGL_J0821.1+1007_daily_bin27.fits" evtable="EVENTS" scfile=/scratch/kocevski/413880/ft2_4FGL_J0821.1+1007_daily_bin27.fits sctable="SC_DATA" outfile=/scratch/kocevski/413880/ltcube_246326401_246585601_4FGL_J0821.1+1007_daily_bin27.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/413880/ft2_4FGL_J0821.1+1007_daily_bin27.fits
.....................!
real 13.47
user 12.74
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413880/ft1_filtered_4FGL_J0821.1+1007_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/413880/ft2_4FGL_J0821.1+1007_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/413880/ltcube_246326401_246585601_4FGL_J0821.1+1007_daily_bin27.fits outfile=/scratch/kocevski/413880/expmap_246326401_246585601_4FGL_J0821.1+1007_daily_bin27.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/413880/ltcube_246326401_246585601_4FGL_J0821.1+1007_daily_bin27.fits
.....................!
real 193.04
user 187.58
sys 4.95

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/413880/ft1_filtered_4FGL_J0821.1+1007_daily_bin27.fits scfile=/scratch/kocevski/413880/ft2_4FGL_J0821.1+1007_daily_bin27.fits outfile=/scratch/kocevski/413880/cmap_246326401_246585601_4FGL_J0821.1+1007_daily_bin27.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.96
user 0.38
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413880/ft1_filtered_4FGL_J0821.1+1007_daily_bin27.fits scfile=/scratch/kocevski/413880/ft2_4FGL_J0821.1+1007_daily_bin27.fits outfile=/scratch/kocevski/413880/cmap_HighResolution_246326401_246585601_4FGL_J0821.1+1007_daily_bin27.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.89
user 0.39
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    27.499       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.416       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8992       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3528       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.219       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4904       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97393       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1004       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=   8175.552     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1895 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.290        31.335        .22230E-02   -.31072E-03
   2  Prefactor     .10000E-03    .97278        .90712E-02** at limit **
   3  norm          27.499        20.632        .19099E-02   -.24691E-04
   4  Prefactor     26.335        13.790        .19516E-02    .69088E-05
   5  Prefactor     65.416        92.900        .12405E-02    .32979E-03
   6  norm          .10000E-03    23.735        .90712E-02** at limit **
   7  Prefactor     .10000E-03    7.4864        .90712E-02** at limit **
   8  norm          6.8967        11.794        .38186E-02    .73918E-04
   9  norm          .10000E-03    5.0882        .90712E-02** at limit **
  10  norm          .10000E-03    2.2269        .90712E-02** at limit **
  11  Prefactor     10.131        20.660        .31473E-02   -.34926E-03
  12  Prefactor     6.3538        12.392        .39812E-02    .83266E-04
  13  norm          2.5256        1.0301        .64260E-03   -.12791E-03
  14  Prefactor     25.220        9.7820        .19942E-02    .70763E-03
  15  norm          .10000E-03    2.4118        .90712E-02** at limit **
  16  Prefactor     .10000E-03    26.509        .90712E-02** at limit **
  17  norm          5.4904        5.5024        .42869E-02   -.13711E-03
  18  Normalizat    .97388        .17842        .65599E-01    .15163E-04
  19  Prefactor     1.1004        .13994        .37572E-01    .10951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2901
  Prefactor  = 0.0001
  norm       = 27.4995
  Prefactor  = 26.3351
  Prefactor  = 65.4155
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.8967
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1309
  Prefactor  = 6.35377
  norm       = 2.52561
  Prefactor  = 25.2198
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49044
  Normalizat = 0.973876
  Prefactor  = 1.1004
 **********
 **   18 **HESSE 
 **********

 FCN=   8175.552     FROM HESSE     STATUS=OK           266 CALLS     2161 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.290        31.336        .88919E-04   -1.4807    
   2  Prefactor     .10000E-03    .98885        .87029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          27.499        20.638        .76396E-04   -1.4659    
   4  Prefactor     26.335        13.803        .78064E-04   -1.4681    
   5  Prefactor     65.416        92.917        .49620E-04   -1.4089    
   6  norm          .10000E-03    23.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8967        11.786        .15274E-03   -1.5183    
   9  norm          .10000E-03    5.0947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3297        .26334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.131        20.680        .12589E-03   -1.5071    
  12  Prefactor     6.3538        12.406        .15925E-03   -1.5204    
  13  norm          2.5256        1.0309        .25704E-04   -1.5390    
  14  Prefactor     25.220        9.8154        .39884E-03   -1.4703    
  15  norm          .10000E-03    2.4211        .13712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4904        5.5047        .17148E-03   -1.5239    
  18  Normalizat    .97388        .20906        .29015E-03   -.93911    
  19  Prefactor     1.1004        .16374        .22150E-03   -.89454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52261e-09
Minuit parameter uncertainties:
  1  31.3616
  2  1.59153e-06
  3  20.6433
  4  13.8046
  5  93.1244
  6  6.34376e-05
  7  2.13259e-05
  8  11.7903
  9  1.1111e-05
  10  8.8587e-08
  11  20.6945
  12  12.411
  13  1.03087
  14  9.81604
  15  1.14277e-06
  16  9.52442e-05
  17  5.50517
  18  0.209236
  19  0.163812
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  6.354e+00  1.241e+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.100e+00  1.638e-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:  9.739e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413880/likelihoodResults_246326401_246585601_4FGL_J0821.1+1007_daily_bin27.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) = 8175.51173386
delta logL = 0.0403374775951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8175.45332069
delta logL = 0.0987506439596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1096       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6948       1.0000          .0000       10.000    
     3 'Normalizat'    .94138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1197       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=   8175.453     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1023        31.830        .11216E-01    .11060E-02
   2  Index         3.6977        3.2557        .13993        .14092E-03
   3  Normalizat    .94134        .35916E-01    .66620E-01   -.27537E-04
   4  Prefactor     1.1199        .29020E-01    .36881E-01   -.41982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10226
  Index      = 3.6977
  Normalizat = 0.941341
  Prefactor  = 1.11991
 **********
 **   18 **HESSE 
 **********

 FCN=   8175.453     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1023        105.40        .12970E-03   -1.5498    
   2  Index         3.6977        6.3148        .85019E-02   -.26350    
   3  Normalizat    .94134        .15941        .29469E-03   -.95022    
   4  Prefactor     1.1199        .12749        .21985E-03   -.88833    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85531e-06
Minuit parameter uncertainties:
  1  21.5954
  2  9.5252
  3  0.159487
  4  0.127523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413880': 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) = 8175.4533189
delta logL = 0.0987524336433

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.120e+00  1.275e-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:  9.413e-01  1.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
Ra Dec: 125.299 10.129

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-08-29 17:35:46.781411', job_id='413880', GAL2='1.12', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1630283746.78', return_code2='102', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='9.88e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='27' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:35:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 413880: <4FGL_J0821.1+1007_daily_bin27> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin27 125.299 10.1287 246326401 246585601 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 :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

