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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1054
RA = 125.299, Dec = 10.1287
tmin = 512524801, tmax = 512784001
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='420081', job_status='RUN', time_executed='2021-08-29 17:44:56.893149', time_epoch_executed='1630284296.89' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420081

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420081/ft1_4FGL_J0821.1+1007_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420081/ft2_4FGL_J0821.1+1007_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420081/ft1_4FGL_J0821.1+1007_daily_bin1054.fits outfile=/scratch/kocevski/420081/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1054.fits ra=125.299 dec=10.1287 rad=12.0 tmin=512524801.0 tmax=512784001.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 12.28
user 3.44
sys 8.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/420081/ft2_4FGL_J0821.1+1007_daily_bin1054.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/420081/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1054.fits evtable="EVENTS" outfile="/scratch/kocevski/420081/ft1_filtered_4FGL_J0821.1+1007_daily_bin1054.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 8.78
user 0.34
sys 8.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420081/ft1_filtered_4FGL_J0821.1+1007_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/420081/ft2_4FGL_J0821.1+1007_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/420081/ltcube_512524801_512784001_4FGL_J0821.1+1007_daily_bin1054.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/420081/ft2_4FGL_J0821.1+1007_daily_bin1054.fits
.....................!
real 22.82
user 12.27
sys 9.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420081/ft1_filtered_4FGL_J0821.1+1007_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/420081/ft2_4FGL_J0821.1+1007_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/420081/ltcube_512524801_512784001_4FGL_J0821.1+1007_daily_bin1054.fits outfile=/scratch/kocevski/420081/expmap_512524801_512784001_4FGL_J0821.1+1007_daily_bin1054.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/420081/ltcube_512524801_512784001_4FGL_J0821.1+1007_daily_bin1054.fits
.....................!
real 201.76
user 185.78
sys 14.29

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/420081/ft1_filtered_4FGL_J0821.1+1007_daily_bin1054.fits scfile=/scratch/kocevski/420081/ft2_4FGL_J0821.1+1007_daily_bin1054.fits outfile=/scratch/kocevski/420081/cmap_512524801_512784001_4FGL_J0821.1+1007_daily_bin1054.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 8.69
user 0.38
sys 8.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420081/ft1_filtered_4FGL_J0821.1+1007_daily_bin1054.fits scfile=/scratch/kocevski/420081/ft2_4FGL_J0821.1+1007_daily_bin1054.fits outfile=/scratch/kocevski/420081/cmap_HighResolution_512524801_512784001_4FGL_J0821.1+1007_daily_bin1054.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 8.67
user 0.40
sys 8.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.824       1.0000         .10000E-03   10000.    
     8 'norm      '    .42088       1.0000         .10000E-03   10000.    
     9 'norm      '    17.213       1.0000         .10000E-03   10000.    
    10 'norm      '    9.2772       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.260       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.149       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.545       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90118       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98345       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=   5295.871     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1906 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.228        .21508E-06** at limit **
   2  Prefactor     .10000E-03    1.8522       -.27467E-06** at limit **
   3  norm          12.210        19.525       -.10448E-05   -.87754E-05
   4  Prefactor     14.883        12.906       -.22055E-05    .44494E-05
   5  Prefactor     .10000E-03    58.719        .16098E-04** at limit **
   6  norm          .10000E-03    44.009       -.15987E-04** at limit **
   7  Prefactor     35.809        36.817       -.15382E-04   -.13422E-04
   8  norm          .50259        11.941       -.22922E-06   -.25468E-03
   9  norm          17.212        28.723        .32743E-05   -.42645E-04
  10  norm          9.2751        4.9596       -.62351E-06    .22119E-04
  11  Prefactor     .10000E-03    57.658        .17982E-04** at limit **
  12  Prefactor     16.258        15.010        .27300E-06   -.14731E-05
  13  norm          .10000E-03    .32741       -.69012E-07** at limit **
  14  Prefactor     .10000E-03    4.1591        .11346E-06** at limit **
  15  norm          13.148        10.304       -.20123E-05   -.73681E-05
  16  Prefactor     38.478        36.504       -.59707E-04    .33745E-04
  17  norm          .10000E-03    7.2087       -.75206E-07** at limit **
  18  Normalizat    .90157        .19789        .11295E-04   -.19699E-03
  19  Prefactor     .98313        .15682        .88250E-06    .21412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2102
  Prefactor  = 14.8826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.8091
  norm       = 0.502594
  norm       = 17.2117
  norm       = 9.27508
  Prefactor  = 0.000100001
  Prefactor  = 16.2583
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1479
  Prefactor  = 38.4776
  norm       = 0.0001
  Normalizat = 0.901571
  Prefactor  = 0.983129
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.871     FROM HESSE     STATUS=OK           270 CALLS     2176 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9017        .19321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.210        19.500        .11464E-03   -1.5009    
   4  Prefactor     14.883        12.898        .10381E-03   -1.4936    
   5  Prefactor     .10000E-03    58.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    44.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.809        36.737        .66957E-04   -1.4510    
   8  norm          .50259        92.289        .48092E-02   -1.5566    
   9  norm          17.212        28.657        .96536E-04   -1.4878    
  10  norm          9.2751        4.9482        .11278E-03   -1.5099    
  11  Prefactor     .10000E-03    57.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.258        15.030        .99324E-04   -1.4901    
  13  norm          .10000E-03    .33535        .81254E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2395        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.148        10.305        .11046E-03   -1.4983    
  16  Prefactor     38.478        36.528        .64558E-04   -1.4467    
  17  norm          .10000E-03    7.5285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .90157        .22992        .26866E-03   -.96405    
  19  Prefactor     .98313        .18310        .21051E-03   -.93294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73445e-09
Minuit parameter uncertainties:
  1  5.44663e-05
  2  3.43776e-05
  3  19.5097
  4  12.9001
  5  0.000101191
  6  6.65791e-05
  7  36.7601
  8  13.6411
  9  28.6801
  10  4.9484
  11  0.000372833
  12  15.0336
  13  4.30899e-06
  14  1.41688e-05
  15  10.3062
  16  36.5493
  17  3.03452e-05
  18  0.230166
  19  0.183211
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.626e+01  1.503e+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:  9.831e-01  1.832e-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.016e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.25e-05

TS (Fixed Index): 1.69
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420081/likelihoodResults_512524801_512784001_4FGL_J0821.1+1007_daily_bin1054.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) = 5295.86247334
delta logL = 0.00847545782926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5295.85546504
delta logL = 0.0154837618502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.051       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5529       1.0000          .0000       10.000    
     3 'Normalizat'    .89425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98718       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=   5295.855     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      239 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.046        20.895        .10685E-03    .81785E-03
   2  Index         2.5533        .93307        .72605E-02    .23597E-03
   3  Normalizat    .89429        .22952        .26964E-03   -.75475E-03
   4  Prefactor     .98715        .18448        .21014E-03   -.12279E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0456
  Index      = 2.55332
  Normalizat = 0.894289
  Prefactor  = 0.987154
 **********
 **   18 **HESSE 
 **********

 FCN=   5295.855     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.046        18.686        .21370E-04   -1.4958    
   2  Index         2.5533        .83429        .29042E-03   -.51133    
   3  Normalizat    .89429        .22896        .53928E-04   -.96661    
   4  Prefactor     .98715        .18418        .42029E-04   -.93159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66347e-09
Minuit parameter uncertainties:
  1  18.6935
  2  0.839464
  3  0.229207
  4  0.184295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420081': 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) = 5295.85546489
delta logL = 0.0154839133902

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.405e+01  1.869e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.553e+00  8.395e-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.872e-01  1.843e-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.943e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.55 +/- 0.84
Photon Flux (Free Index): 4.67e-08 +/- 4.91e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.23e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='1.28e-05', photon_flux_error='3.88e-08', dlogl='1.55e-02', energy_flux='1.36e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-08-29 17:55:54.726360', photon_index_error2='0.84', photon_index2='2.55', ts='1.69', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.23e-05', EG='0.90', time_epoch_completed='1630284954.73', return_code='0', job_id='420081', GAL2='0.99', EG2='0.89', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.91e-08', ts2='1.72', photon_index='2.41' WHERE bin_id='1054' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 420081: <4FGL_J0821.1+1007_daily_bin1054> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1054 125.299 10.1287 512524801 512784001 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 :                                   774.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             212.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

