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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1131
RA = 125.299, Dec = 10.1287
tmin = 532483201, tmax = 532742401
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='420221', job_status='RUN', time_executed='2021-08-29 17:41:15.796712', time_epoch_executed='1630284075.8' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420221/ft1_4FGL_J0821.1+1007_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420221/ft2_4FGL_J0821.1+1007_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420221/ft1_4FGL_J0821.1+1007_daily_bin1131.fits outfile=/scratch/kocevski/420221/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1131.fits ra=125.299 dec=10.1287 rad=12.0 tmin=532483201.0 tmax=532742401.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 4.00
user 3.26
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420221/ft1_filtered_4FGL_J0821.1+1007_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/420221/ft2_4FGL_J0821.1+1007_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/420221/ltcube_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.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/420221/ft2_4FGL_J0821.1+1007_daily_bin1131.fits
.....................!
real 12.47
user 11.60
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420221/ft1_filtered_4FGL_J0821.1+1007_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/420221/ft2_4FGL_J0821.1+1007_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/420221/ltcube_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.fits outfile=/scratch/kocevski/420221/expmap_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.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/420221/ltcube_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.fits
.....................!
real 192.98
user 185.83
sys 4.66

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/420221/ft1_filtered_4FGL_J0821.1+1007_daily_bin1131.fits scfile=/scratch/kocevski/420221/ft2_4FGL_J0821.1+1007_daily_bin1131.fits outfile=/scratch/kocevski/420221/cmap_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.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.76
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420221/ft1_filtered_4FGL_J0821.1+1007_daily_bin1131.fits scfile=/scratch/kocevski/420221/ft2_4FGL_J0821.1+1007_daily_bin1131.fits outfile=/scratch/kocevski/420221/cmap_HighResolution_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.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.79
user 0.39
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4639       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.061       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7692       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .79105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2414       1.0000         .10000E-03   10000.    
    13 'norm      '    .73098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40792       1.0000         .10000E-03   10000.    
    15 'norm      '    12.228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.290       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0395       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=   7721.834     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1912 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.851        47.960        .34611E-05    .21381E-04
   2  Prefactor     2.4631        2.6041       -.73721E-06   -.75604E-03
   3  norm          .10000E-03    5.4363       -.17045E-06** at limit **
   4  Prefactor     9.8930        8.3768        .30274E-05    .26849E-04
   5  Prefactor     .10000E-03    186.22        .60505E-04** at limit **
   6  norm          23.880        72.545       -.26103E-03    .33722E-04
   7  Prefactor     .10000E-03    88.851       -.10888E-04** at limit **
   8  norm          6.7671        10.943        .11570E-05   -.43588E-04
   9  norm          .10000E-03    7.6990       -.85469E-07** at limit **
  10  norm          5.7346        2.8332       -.17148E-06    .16076E-03
  11  Prefactor     .75401        14.547       -.86095E-06   -.27702E-03
  12  Prefactor     6.2440        12.532        .12798E-05   -.21932E-04
  13  norm          .73114        .66222       -.21866E-06   -.77754E-03
  14  Prefactor     .40942        3.8678       -.26130E-05    .45028E-04
  15  norm          12.228        7.3155        .17400E-05   -.86989E-05
  16  Prefactor     18.295        36.753       -.33095E-05    .60129E-04
  17  norm          .10000E-03    4.6666       -.11025E-06** at limit **
  18  Normalizat    1.0027        .18449       -.22241E-05    .63090E-03
  19  Prefactor     1.0397        .13885        .56103E-05   -.48597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.8506
  Prefactor  = 2.46313
  norm       = 0.0001
  Prefactor  = 9.89295
  Prefactor  = 0.000100001
  norm       = 23.8802
  Prefactor  = 0.000100001
  norm       = 6.76706
  norm       = 0.0001
  norm       = 5.73459
  Prefactor  = 0.754009
  Prefactor  = 6.244
  norm       = 0.731141
  Prefactor  = 0.409415
  norm       = 12.2278
  Prefactor  = 18.295
  norm       = 0.0001
  Normalizat = 1.00269
  Prefactor  = 1.03966
 **********
 **   18 **HESSE 
 **********

 FCN=   7721.834     FROM HESSE     STATUS=OK           274 CALLS     2186 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.851        48.036        .52747E-04   -1.4185    
   2  Prefactor     2.4631        2.5924        .13886E-03   -1.5394    
   3  norm          .10000E-03    5.4435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8930        8.3721        .12739E-03   -1.5079    
   5  Prefactor     .10000E-03    187.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.880        72.662        .81663E-04   -1.4730    
   7  Prefactor     .10000E-03    92.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7671        10.935        .15422E-03   -1.5188    
   9  norm          .10000E-03    7.7224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7346        2.8326        .10089E-03   -1.5229    
  11  Prefactor     .75401        222.41        .62590E-02   -1.5534    
  12  Prefactor     6.2440        12.532        .16068E-03   -1.5208    
  13  norm          .73114        .64731        .65294E-04   -1.5537    
  14  Prefactor     .40942        10.349        .33097E-02   -1.5580    
  15  norm          12.228        7.3130        .11455E-03   -1.5008    
  16  Prefactor     18.295        36.938        .93651E-04   -1.4852    
  17  norm          .10000E-03    4.7047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0027        .21457        .27517E-03   -.92940    
  19  Prefactor     1.0397        .16172        .21678E-03   -.91419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88418e-09
Minuit parameter uncertainties:
  1  48.0678
  2  2.59255
  3  3.59794e-05
  4  8.37308
  5  0.000871208
  6  72.9328
  7  0.000454708
  8  10.938
  9  2.16265e-05
  10  2.83268
  11  25.9959
  12  12.5374
  13  0.647316
  14  4.11705
  15  7.31357
  16  36.9838
  17  1.89445e-05
  18  0.214751
  19  0.161795
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  6.244e+00  1.254e+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.040e+00  1.618e-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.003e+00  2.148e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420221/likelihoodResults_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.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) = 7720.6363833
delta logL = 1.19739285487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7720.54504231
delta logL = 1.28873384842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13426       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1322       1.0000          .0000       10.000    
     3 'Normalizat'    .88577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1049       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=   7720.545     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      277 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13418        1.0896        .44299E-02    .28968E-02
   2  Index         5.1328        2.0179        .10850        .21599E-03
   3  Normalizat    .88583        .42475E-01    .65790E-01    .25757E-04
   4  Prefactor     1.1048        .34036E-01    .37405E-01    .48319E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.134179
  Index      = 5.13275
  Normalizat = 0.885831
  Prefactor  = 1.10479
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.545     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      312 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13418        2.6269        .20144E-03   -1.5635    
   2  Index         5.1328        3.5863        .40088E-02    .26554E-01
   3  Normalizat    .88583        .15981        .29103E-03   -.96960    
   4  Prefactor     1.1048        .12537        .21110E-03   -.89314    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60869e-10
Minuit parameter uncertainties:
  1  1.18702
  2  3.99971
  3  0.159891
  4  0.125399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420221': 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) = 7720.54504155
delta logL = 1.28873460494

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.342e-01  1.187e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  5.133e+00  4.000e+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.105e+00  1.254e-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.858e-01  1.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 125.299 10.129
Photon Index (Free Index): 5.13 +/- 4.00
Photon Flux (Free Index): 9.29e-08 +/- 5.77e-08
Energy Flux (Free Index): 1.22e-05 +/- 8.53e-06

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/420221/cmap_HighResolution_532483201_532742401_4FGL_J0821.1+1007_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='1.29e+00', photon_flux2='9.29e-08', job_status='DONE', time_completed='2021-08-29 17:51:45.155288', photon_index_error2='4.00', photon_index2='5.13', ts='0.32', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.22e-08', energy_flux_error2='8.53e-06', EG='1.00', time_epoch_completed='1630284705.16', return_code='0', job_id='420221', GAL2='1.10', EG2='0.89', return_code2='102', photon_flux_error2='5.77e-08', ts2='3.26', photon_index='2.41' WHERE bin_id='1131' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 420221: <4FGL_J0821.1+1007_daily_bin1131> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1131> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:40:37 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:40:39 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:40:39 2021
Terminated at Sun Aug 29 17:51:46 2021
Results reported at Sun Aug 29 17:51:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1131 125.299 10.1287 532483201 532742401 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            669 sec.

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

