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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1595
RA = 125.299, Dec = 10.1287
tmin = 652752001, tmax = 653011201
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='51239', job_status='RUN', time_executed='2021-09-11 00:06:37.288299', time_epoch_executed='1631343997.29' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51239/ft1_4FGL_J0821.1+1007_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51239/ft2_4FGL_J0821.1+1007_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51239/ft1_4FGL_J0821.1+1007_daily_bin1595.fits outfile=/scratch/kocevski/51239/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1595.fits ra=125.299 dec=10.1287 rad=12.0 tmin=652752001.0 tmax=653011201.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 3.16
user 2.94
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/51239/ft2_4FGL_J0821.1+1007_daily_bin1595.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/51239/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/51239/ft1_filtered_4FGL_J0821.1+1007_daily_bin1595.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51239/ft1_filtered_4FGL_J0821.1+1007_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/51239/ft2_4FGL_J0821.1+1007_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/51239/ltcube_652752001_653011201_4FGL_J0821.1+1007_daily_bin1595.fits outfile=/scratch/kocevski/51239/expmap_652752001_653011201_4FGL_J0821.1+1007_daily_bin1595.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/51239/ltcube_652752001_653011201_4FGL_J0821.1+1007_daily_bin1595.fits
.....................!
real 190.28
user 185.12
sys 4.81

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/51239/ft1_filtered_4FGL_J0821.1+1007_daily_bin1595.fits scfile=/scratch/kocevski/51239/ft2_4FGL_J0821.1+1007_daily_bin1595.fits outfile=/scratch/kocevski/51239/cmap_652752001_653011201_4FGL_J0821.1+1007_daily_bin1595.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51239/ft1_filtered_4FGL_J0821.1+1007_daily_bin1595.fits scfile=/scratch/kocevski/51239/ft2_4FGL_J0821.1+1007_daily_bin1595.fits outfile=/scratch/kocevski/51239/cmap_HighResolution_652752001_653011201_4FGL_J0821.1+1007_daily_bin1595.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16740E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7218       1.0000         .10000E-03   10000.    
     3 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.776       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .30172       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40041E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.070       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5720       1.0000         .10000E-03   10000.    
    15 'norm      '    43.136       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26787E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .75215       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3489       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=   7157.358     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1941 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    41.993        .90712E-02** at limit **
   2  Prefactor     6.7195        3.4336        .38692E-02    .50271E-03
   3  norm          .10000E-03    12.227        .90712E-02** at limit **
   4  Prefactor     .10000E-03    8.1032        .90712E-02** at limit **
   5  Prefactor     .10000E-03    42.389        .90712E-02** at limit **
   6  norm          .10000E-03    36.916        .90712E-02** at limit **
   7  Prefactor     .10000E-03    8.9292        .90712E-02** at limit **
   8  norm          12.766        16.598        .28017E-02   -.10674E-02
   9  norm          .10000E-03    6.0503        .90712E-02** at limit **
  10  norm          .31166        1.7248        .58359E-01    .84227E-03
  11  Prefactor     .31661E-02    37.655        .12643        .85731E-03
  12  Prefactor     12.060        12.357        .28826E-02   -.14023E-02
  13  norm          .10000E-03    .35507        .25500E-01** at limit **
  14  Prefactor     8.5712        8.5189        .34229E-02   -.61443E-03
  15  norm          43.141        12.501        .15260E-02    .14856E-02
  16  Prefactor     .10031E-03    26.126        .13688    ** at limit **
  17  norm          .10000E-03    4.3534        .90712E-02** at limit **
  18  Normalizat    .75225        .20039        .75522E-01   -.11873E-04
  19  Prefactor     1.3489        .15353        .47357E-01   -.27061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 6.71946
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.7659
  norm       = 0.0001
  norm       = 0.311659
  Prefactor  = 0.00316612
  Prefactor  = 12.0596
  norm       = 0.0001
  Prefactor  = 8.57118
  norm       = 43.1406
  Prefactor  = 0.000100313
  norm       = 0.0001
  Normalizat = 0.752245
  Prefactor  = 1.34892
 **********
 **   18 **HESSE 
 **********

 FCN=   7157.358     FROM HESSE     STATUS=OK           276 CALLS     2217 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    42.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.7195        3.4295        .10570E-03   -1.5189    
   3  norm          .10000E-03    12.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    36.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.766        16.486        .11207E-03   -1.4993    
   9  norm          .10000E-03    6.0561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .31166        6.5260        .21000E-02   -1.5596    
  11  Prefactor     .31661E-02    38.005        .12595       -1.5697    
  12  Prefactor     12.060        12.369        .11530E-03   -1.5013    
  13  norm          .10000E-03    .49500        .97419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5712        8.5225        .13691E-03   -1.5122    
  15  norm          43.141        12.481        .61039E-04   -1.4393    
  16  Prefactor     .10031E-03    229.52        .82378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3646        .17240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .75225        .23118        .33430E-03   -1.0187    
  19  Prefactor     1.3489        .18074        .20934E-03   -.81864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00911e-08
Minuit parameter uncertainties:
  1  0.000984517
  2  3.42964
  3  6.65163e-06
  4  0.000168114
  5  0.000147701
  6  0.000322543
  7  0.000101177
  8  16.4915
  9  2.08725e-05
  10  2.85219
  11  0.683154
  12  12.3718
  13  7.69542e-07
  14  8.52366
  15  12.4822
  16  0.0170269
  17  9.85307e-06
  18  0.231486
  19  0.180828
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.206e+01  1.237e+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.349e+00  1.808e-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:  7.522e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/51239/likelihoodResults_652752001_653011201_4FGL_J0821.1+1007_daily_bin1595.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) = 7157.35715531
delta logL = 0.000509091665663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7157.35683924
delta logL = 0.0008251532754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.747       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4544       1.0000          .0000       10.000    
     3 'Normalizat'    .74969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3500       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=   7157.357     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      232 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.738        251.53        .29221E-02    .29401E-04
   2  Index         2.4566        3.4694        .23699        .54088E-04
   3  Normalizat    .74966        .67229E-01    .75643E-01    .21073E-04
   4  Prefactor     1.3502        .43040E-01    .47339E-01   -.15960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7382
  Index      = 2.45659
  Normalizat = 0.749664
  Prefactor  = 1.35018
 **********
 **   18 **HESSE 
 **********

 FCN=   7157.357     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.738        15.484        .11688E-03   -1.5023    
   2  Index         2.4566        1.2042        .81682E-02   -.53365    
   3  Normalizat    .74966        .23199        .33484E-03   -1.0196    
   4  Prefactor     1.3502        .18299        .20926E-03   -.81827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09281e-12
Minuit parameter uncertainties:
  1  15.4895
  2  1.22049
  3  0.232295
  4  0.18308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51239': 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) = 7157.35683323
delta logL = 0.000831167791148

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.174e+01  1.549e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.457e+00  1.220e+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.350e+00  1.831e-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:  7.497e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.46 +/- 1.22
Photon Flux (Free Index): 3.29e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.02e-05

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/51239/cmap_HighResolution_652752001_653011201_4FGL_J0821.1+1007_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='1.00e-05', photon_flux_error='3.19e-08', dlogl='8.31e-04', energy_flux='1.01e-05', photon_flux2='3.29e-08', job_status='DONE', time_completed='2021-09-11 00:16:34.357869', photon_index_error2='1.22', photon_index2='2.46', ts='1.82', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.02e-05', EG='0.75', time_epoch_completed='1631344594.36', return_code='0', job_id='51239', GAL2='1.35', EG2='0.75', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='5.39e-08', ts2='1.82', photon_index='2.41' WHERE bin_id='1595' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 51239: <4FGL_J0821.1+1007_daily_bin1595> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1595> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:06:19 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:06:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:06:21 2021
Terminated at Sat Sep 11 00:16:35 2021
Results reported at Sat Sep 11 00:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1595 125.299 10.1287 652752001 653011201 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 :                                   599.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            616 sec.

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

