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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1003
RA = 125.299, Dec = 10.1287
tmin = 499305601, tmax = 499564801
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='418883', job_status='RUN', time_executed='2021-08-29 17:39:20.199997', time_epoch_executed='1630283960.2' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418883/ft1_4FGL_J0821.1+1007_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418883/ft2_4FGL_J0821.1+1007_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418883/ft1_4FGL_J0821.1+1007_daily_bin1003.fits outfile=/scratch/kocevski/418883/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1003.fits ra=125.299 dec=10.1287 rad=12.0 tmin=499305601.0 tmax=499564801.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 6.09
user 5.10
sys 0.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418883/ft1_filtered_4FGL_J0821.1+1007_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/418883/ft2_4FGL_J0821.1+1007_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/418883/ltcube_499305601_499564801_4FGL_J0821.1+1007_daily_bin1003.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/418883/ft2_4FGL_J0821.1+1007_daily_bin1003.fits
.....................!
real 12.54
user 11.51
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418883/ft1_filtered_4FGL_J0821.1+1007_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/418883/ft2_4FGL_J0821.1+1007_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/418883/ltcube_499305601_499564801_4FGL_J0821.1+1007_daily_bin1003.fits outfile=/scratch/kocevski/418883/expmap_499305601_499564801_4FGL_J0821.1+1007_daily_bin1003.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/418883/ltcube_499305601_499564801_4FGL_J0821.1+1007_daily_bin1003.fits
.....................!
real 192.00
user 184.91
sys 5.83

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/418883/ft1_filtered_4FGL_J0821.1+1007_daily_bin1003.fits scfile=/scratch/kocevski/418883/ft2_4FGL_J0821.1+1007_daily_bin1003.fits outfile=/scratch/kocevski/418883/cmap_499305601_499564801_4FGL_J0821.1+1007_daily_bin1003.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.21
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418883/ft1_filtered_4FGL_J0821.1+1007_daily_bin1003.fits scfile=/scratch/kocevski/418883/ft2_4FGL_J0821.1+1007_daily_bin1003.fits outfile=/scratch/kocevski/418883/cmap_HighResolution_499305601_499564801_4FGL_J0821.1+1007_daily_bin1003.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.21
user 0.37
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.592       1.0000         .10000E-03   10000.    
     6 'norm      '    51.763       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.732       1.0000         .10000E-03   10000.    
     8 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.160       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19318E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.171       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.363       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1664       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95339       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=   5260.255     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1872 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.981       -.15094E-06** at limit **
   2  Prefactor     .10000E-03    1.9920       -.38004E-06** at limit **
   3  norm          .10000E-03    15.540       -.14446E-06** at limit **
   4  Prefactor     8.7389        15.796        .43225E-06    .11901E-04
   5  Prefactor     35.517        89.059       -.46507E-06   -.59374E-05
   6  norm          51.667        89.148       -.32757E-06   -.77276E-05
   7  Prefactor     26.800        48.121       -.22373E-05   -.24064E-04
   8  norm          .10000E-03    24.162        .15738E-05** at limit **
   9  norm          12.977        29.367        .30095E-05    .71984E-04
  10  norm          3.5825        3.9706        .37991E-06    .18635E-03
  11  Prefactor     .10000E-03    38.698        .12076E-06** at limit **
  12  Prefactor     .10000E-03    31.401       -.10549E-05** at limit **
  13  norm          1.3854        .97072        .26894E-07    .75552E-04
  14  Prefactor     .10000E-03    2.9585       -.57492E-07** at limit **
  15  norm          12.169        11.361        .13337E-06    .10764E-04
  16  Prefactor     .10000E-03    34.429       -.25100E-06** at limit **
  17  norm          11.363        8.0843       -.25218E-07   -.16600E-04
  18  Normalizat    1.1663        .24698       -.45927E-05    .86673E-05
  19  Prefactor     .95349        .19127        .34396E-05   -.12085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73893
  Prefactor  = 35.5172
  norm       = 51.667
  Prefactor  = 26.8
  norm       = 0.0001
  norm       = 12.9772
  norm       = 3.58255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38539
  Prefactor  = 0.0001
  norm       = 12.1695
  Prefactor  = 0.0001
  norm       = 11.3629
  Normalizat = 1.1663
  Prefactor  = 0.953487
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.255     FROM HESSE     STATUS=OK           268 CALLS     2140 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0394        .99907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7389        15.780        .13563E-03   -1.5117    
   5  Prefactor     35.517        89.091        .67174E-04   -1.4515    
   6  norm          51.667        89.163        .27872E-03   -1.4269    
   7  Prefactor     26.800        48.628        .77482E-04   -1.4672    
   8  norm          .10000E-03    24.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.977        29.878        .11042E-03   -1.4987    
  10  norm          3.5825        3.9930        .14694E-03   -1.5329    
  11  Prefactor     .10000E-03    38.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3854        .96560        .57661E-04   -1.5473    
  14  Prefactor     .10000E-03    2.9707        .12181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.169        11.359        .11482E-03   -1.5010    
  16  Prefactor     .10000E-03    34.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.363        8.0864        .11885E-03   -1.5034    
  18  Normalizat    1.1663        .25181        .26479E-03   -.87651    
  19  Prefactor     .95349        .19703        .22782E-03   -.94296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73496e-10
Minuit parameter uncertainties:
  1  1.0569e-05
  2  8.62626e-06
  3  1.72983e-05
  4  15.7879
  5  89.4276
  6  89.3944
  7  48.7
  8  0.000182299
  9  29.9125
  10  3.99332
  11  4.84406e-05
  12  6.61463e-05
  13  0.965608
  14  2.80524e-07
  15  11.3608
  16  1.35558e-05
  17  8.08717
  18  0.252069
  19  0.197178
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  6.615e-05  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:  9.535e-01  1.972e-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.166e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/418883/likelihoodResults_499305601_499564801_4FGL_J0821.1+1007_daily_bin1003.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) = 5260.25542746
delta logL = -0.000148655014527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5260.25527957
delta logL = -7.58259375289e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3358       1.0000          .0000       10.000    
     3 'Normalizat'    1.1663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95350       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=   5260.255     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      287 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    2175.1        .18142E-02** at limit **
   2  Index         2.4144        5.4470        .50000       -.32276E-04
   3  Normalizat    1.1663        .49784E-01    .26479E-03   -.85869E-07
   4  Prefactor     .95349        .39376E-01    .22782E-03   -.10080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.41437
  Normalizat = 1.16629
  Prefactor  = 0.953489
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.255     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    7819.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4144        5.7348        .50000       -.54349    
   3  Normalizat    1.1663        .15028        .10592E-04   -.87651    
   4  Prefactor     .95349        .11888        .91127E-05   -.94296    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.66739e-10
Minuit parameter uncertainties:
  1  0.0318964
  2  63.9337
  3  0.150337
  4  0.118908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418883': 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) = 5260.25527878
delta logL = 3.06790752802e-08

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  3.190e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.414e+00  6.393e+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:  9.535e-01  1.189e-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.166e+00  1.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.299 10.129

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-08-29 17:48:19.311821', job_id='418883', GAL2='0.95', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630284499.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1003' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:48:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 418883: <4FGL_J0821.1+1007_daily_bin1003> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1003> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 17:35:57 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:35:57 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:35:57 2021
Terminated at Sun Aug 29 17:48:21 2021
Results reported at Sun Aug 29 17:48:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1003 125.299 10.1287 499305601 499564801 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 :                                   546.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             225.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            744 sec.

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

