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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin71
RA = 125.299, Dec = 10.1287
tmin = 257731201, tmax = 257990401
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='415180', job_status='RUN', time_executed='2021-08-29 17:29:54.531961', time_epoch_executed='1630283394.53' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415180/ft1_4FGL_J0821.1+1007_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415180/ft2_4FGL_J0821.1+1007_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415180/ft1_4FGL_J0821.1+1007_daily_bin71.fits outfile=/scratch/kocevski/415180/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin71.fits ra=125.299 dec=10.1287 rad=12.0 tmin=257731201.0 tmax=257990401.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.10
user 1.23
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415180/ft2_4FGL_J0821.1+1007_daily_bin71.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/415180/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/415180/ft1_filtered_4FGL_J0821.1+1007_daily_bin71.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.17
user 0.31
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415180/ft1_filtered_4FGL_J0821.1+1007_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/415180/ft2_4FGL_J0821.1+1007_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/415180/ltcube_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.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/415180/ft2_4FGL_J0821.1+1007_daily_bin71.fits
.....................!
real 13.59
user 12.44
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415180/ft1_filtered_4FGL_J0821.1+1007_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/415180/ft2_4FGL_J0821.1+1007_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/415180/ltcube_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.fits outfile=/scratch/kocevski/415180/expmap_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.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/415180/ltcube_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.fits
.....................!
real 194.56
user 187.22
sys 5.20

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/415180/ft1_filtered_4FGL_J0821.1+1007_daily_bin71.fits scfile=/scratch/kocevski/415180/ft2_4FGL_J0821.1+1007_daily_bin71.fits outfile=/scratch/kocevski/415180/cmap_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.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 1.37
user 0.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415180/ft1_filtered_4FGL_J0821.1+1007_daily_bin71.fits scfile=/scratch/kocevski/415180/ft2_4FGL_J0821.1+1007_daily_bin71.fits outfile=/scratch/kocevski/415180/cmap_HighResolution_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.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 1.48
user 0.38
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1417       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    115.53       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4614       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1811       1.0000         .10000E-03   10000.    
     9 'norm      '    .79170       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5612       1.0000         .10000E-03   10000.    
    13 'norm      '    .99563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15367       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4921       1.0000         .10000E-03   10000.    
    16 'Prefactor '    68.403       1.0000         .10000E-03   10000.    
    17 'norm      '    6.6551       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2763       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80514       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=   9284.236     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1694 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1391        24.164        .14445        .20633E-03
   2  Prefactor     .10000E-03    1.0532        .90712E-02** at limit **
   3  norm          18.914        16.719        .23025E-02   -.11013E-02
   4  Prefactor     13.681        10.273        .27075E-02    .64031E-03
   5  Prefactor     115.53        79.244        .93579E-03    .53048E-03
   6  norm          .10002E-03    20.707        .90712E-02** at limit **
   7  Prefactor     8.4632        13.755        .34453E-02   -.17292E-02
   8  norm          4.1838        11.277        .49275E-02   -.76953E-03
   9  norm          .81309        5.6188        .12409       -.13049E-02
  10  norm          2.3266        2.0235        .67226E-02    .28063E-04
  11  Prefactor     .10000E-03    7.6470        .90712E-02** at limit **
  12  Prefactor     7.5658        10.012        .36461E-02   -.32854E-03
  13  norm          .99574        .61409        .12872E-01    .22599E-03
  14  Prefactor     .20400        3.7305        .59471E-01    .37344E-03
  15  norm          3.4933        4.4965        .54092E-02    .16525E-02
  16  Prefactor     68.404        30.593        .12133E-02    .12020E-02
  17  norm          6.6557        5.9577        .38887E-02    .70995E-04
  18  Normalizat    1.2760        .15678        .55903E-01    .12539E-04
  19  Prefactor     .80524        .11964        .43784E-01    .34962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13912
  Prefactor  = 0.0001
  norm       = 18.9135
  Prefactor  = 13.6808
  Prefactor  = 115.529
  norm       = 0.000100021
  Prefactor  = 8.46323
  norm       = 4.18383
  norm       = 0.813092
  norm       = 2.32661
  Prefactor  = 0.0001
  Prefactor  = 7.56577
  norm       = 0.995743
  Prefactor  = 0.203998
  norm       = 3.49326
  Prefactor  = 68.4038
  norm       = 6.65574
  Normalizat = 1.27601
  Prefactor  = 0.805236
 **********
 **   18 **HESSE 
 **********

 FCN=   9284.236     FROM HESSE     STATUS=OK           274 CALLS     1968 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1391        211.08        .90670E-02   -1.5495    
   2  Prefactor     .10000E-03    1.0753        .96450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.914        16.729        .92098E-04   -1.4838    
   4  Prefactor     13.681        10.287        .10830E-03   -1.4968    
   5  Prefactor     115.53        79.244        .18716E-03   -1.3554    
   6  norm          .10002E-03    20.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4632        13.841        .13781E-03   -1.5126    
   8  norm          4.1838        11.263        .19710E-03   -1.5299    
   9  norm          .81309        29.260        .43468E-02   -1.5528    
  10  norm          2.3266        2.0229        .12374E-03   -1.5403    
  11  Prefactor     .10000E-03    7.6533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5658        10.025        .14584E-03   -1.5158    
  13  norm          .99574        .60934        .57217E-04   -1.5508    
  14  Prefactor     .20400        29.888        .35555E-02   -1.5618    
  15  norm          3.4933        4.4861        .21637E-03   -1.5334    
  16  Prefactor     68.404        30.692        .48531E-04   -1.4052    
  17  norm          6.6557        5.9597        .15555E-03   -1.5192    
  18  Normalizat    1.2760        .18396        .24720E-03   -.84285    
  19  Prefactor     .80524        .14032        .23774E-03   -.99536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07067e-07
Minuit parameter uncertainties:
  1  31.1229
  2  1.91102e-07
  3  16.7328
  4  10.2884
  5  79.317
  6  0.00130364
  7  13.8458
  8  11.2687
  9  9.75977
  10  2.02294
  11  9.15403e-06
  12  10.027
  13  0.609347
  14  4.93976
  15  4.48649
  16  30.6994
  17  5.96028
  18  0.184054
  19  0.140377
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  7.566e+00  1.003e+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:  8.052e-01  1.404e-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.276e+00  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/415180/likelihoodResults_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.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) = 9284.20536978
delta logL = 0.0309496657064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9284.18707721
delta logL = 0.0492422339285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4773       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7230       1.0000          .0000       10.000    
     3 'Normalizat'    1.2684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80929       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9284.187     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      261 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4797        13.348        .85842E-03   -.18594E-04
   2  Index         2.7225        1.3435        .81256E-02    .23483E-04
   3  Normalizat    1.2684        .18081        .24784E-03    .17609E-03
   4  Prefactor     .80928        .14051        .23721E-03   -.90104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47969
  Index      = 2.72246
  Normalizat = 1.26839
  Prefactor  = 0.809275
 **********
 **   18 **HESSE 
 **********

 FCN=   9284.187     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4797        10.458        .34337E-04   -1.5240    
   2  Index         2.7225        1.0579        .32502E-03   -.47294    
   3  Normalizat    1.2684        .18058        .49567E-04   -.84515    
   4  Prefactor     .80928        .14027        .94882E-05   -.99387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94805e-10
Minuit parameter uncertainties:
  1  10.4612
  2  1.06812
  3  0.180666
  4  0.140334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415180': 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) = 9284.18707707
delta logL = 0.0492423767264

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  5.480e+00  1.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.722e+00  1.068e+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:  8.093e-01  1.403e-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.268e+00  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/415180/cmap_HighResolution_257731201_257990401_4FGL_J0821.1+1007_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-08-29 17:41:16.878701', job_id='415180', GAL2='0.81', fit_tolerance='1e-08', EG2='1.27', EG='1.28', time_epoch_completed='1630284076.88', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.92e-02', ts2='0.83', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='71' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 415180: <4FGL_J0821.1+1007_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin71 125.299 10.1287 257731201 257990401 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 :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

