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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin644
RA = 125.299, Dec = 10.1287
tmin = 406252801, tmax = 406512001
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='417042', job_status='RUN', time_executed='2021-08-29 17:31:29.078605', time_epoch_executed='1630283489.08' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417042/ft1_4FGL_J0821.1+1007_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417042/ft2_4FGL_J0821.1+1007_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417042/ft1_4FGL_J0821.1+1007_daily_bin644.fits outfile=/scratch/kocevski/417042/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin644.fits ra=125.299 dec=10.1287 rad=12.0 tmin=406252801.0 tmax=406512001.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.84
user 3.61
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417042/ft1_filtered_4FGL_J0821.1+1007_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/417042/ft2_4FGL_J0821.1+1007_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/417042/ltcube_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.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/417042/ft2_4FGL_J0821.1+1007_daily_bin644.fits
.....................!
real 11.97
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417042/ft1_filtered_4FGL_J0821.1+1007_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/417042/ft2_4FGL_J0821.1+1007_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/417042/ltcube_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.fits outfile=/scratch/kocevski/417042/expmap_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.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/417042/ltcube_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.fits
.....................!
real 191.39
user 186.21
sys 4.75

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/417042/ft1_filtered_4FGL_J0821.1+1007_daily_bin644.fits scfile=/scratch/kocevski/417042/ft2_4FGL_J0821.1+1007_daily_bin644.fits outfile=/scratch/kocevski/417042/cmap_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417042/ft1_filtered_4FGL_J0821.1+1007_daily_bin644.fits scfile=/scratch/kocevski/417042/ft2_4FGL_J0821.1+1007_daily_bin644.fits outfile=/scratch/kocevski/417042/cmap_HighResolution_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8443       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13851E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8210       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3858       1.0000         .10000E-03   10000.    
    15 'norm      '    20.477       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88739       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=   6120.287     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1874 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.99        .36354E-07** at limit **
   2  Prefactor     1.8429        2.4742       -.10350E-07   -.50715E-04
   3  norm          .10000E-03    4.6802        .31063E-08** at limit **
   4  Prefactor     7.1590        9.4901       -.16463E-06    .11576E-02
   5  Prefactor     .10000E-03    177.18       -.55212E-07** at limit **
   6  norm          .10000E-03    35.177       -.36061E-07** at limit **
   7  Prefactor     .10000E-03    30.750        .15184E-07** at limit **
   8  norm          .10000E-03    13.195       -.21550E-08** at limit **
   9  norm          .10000E-03    8.4543       -.47484E-08** at limit **
  10  norm          .10000E-03    1.0893        .51441E-09** at limit **
  11  Prefactor     44.104        33.714        .84204E-07   -.15524E-03
  12  Prefactor     3.8212        2.9271       -.63400E-06   -.46984E-03
  13  norm          3.0725        1.2007       -.41170E-08    .59834E-04
  14  Prefactor     1.3867        4.3898       -.13008E-06   -.98348E-04
  15  norm          20.478        9.7576        .70526E-07   -.15751E-02
  16  Prefactor     .10000E-03    14.334        .67227E-08** at limit **
  17  norm          .10000E-03    1.8987       -.20634E-09** at limit **
  18  Normalizat    1.0573        .18500        .96686E-07    .33301E-04
  19  Prefactor     .88736        .14426       -.90290E-08    .28323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.84294
  norm       = 0.0001
  Prefactor  = 7.15904
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 44.104
  Prefactor  = 3.82118
  norm       = 3.07255
  Prefactor  = 1.38672
  norm       = 20.4776
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05732
  Prefactor  = 0.887363
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.287     FROM HESSE     STATUS=OK           262 CALLS     2136 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8429        2.4611        .13574E-03   -1.5436    
   3  norm          .10000E-03    4.6814        .16527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1590        9.4432        .14990E-03   -1.5173    
   5  Prefactor     .10000E-03    177.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    35.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.4646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0934        .79731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.104        33.790        .60371E-04   -1.4379    
  12  Prefactor     3.8212        8.2000        .10324E-02   -1.5317    
  13  norm          3.0725        1.2011        .51127E-04   -1.5357    
  14  Prefactor     1.3867        4.4532        .28716E-03   -1.5472    
  15  norm          20.478        9.7397        .88513E-04   -1.4803    
  16  Prefactor     .10000E-03    14.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8988        .10528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0573        .21629        .25240E-03   -.91134    
  19  Prefactor     .88736        .16776        .21876E-03   -.96584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31434e-09
Minuit parameter uncertainties:
  1  0.000431168
  2  2.46126
  3  1.10832e-06
  4  9.44514
  5  0.00072938
  6  0.000197403
  7  0.000107839
  8  4.61639e-06
  9  8.45572e-06
  10  1.41233e-06
  11  33.8042
  12  8.20241
  13  1.20116
  14  4.4543
  15  9.74045
  16  2.07151e-05
  17  1.3909e-07
  18  0.216466
  19  0.167854
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.821e+00  8.202e+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

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  8.874e-01  1.679e-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.057e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/417042/likelihoodResults_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.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) = 6119.95625893
delta logL = 0.330679678165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6119.73922083
delta logL = 0.547717782032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.0636       1.0000          .0000       10.000    
     3 'Normalizat'    .98945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92809       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=   6119.739     FROM MIGRAD    STATUS=CONVERGED    244 CALLS      576 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29804E-02    .35137E-03** at limit **
   2  Index         8.0627        2.4350        .17351        .16878E-03
   3  Normalizat    .98945        .40102E-01    .46035E-01   -.73999E-04
   4  Prefactor     .92810        .31955E-01    .45362E-01   -.11909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.06271
  Normalizat = 0.989451
  Prefactor  = 0.928102
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.739     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      617 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .24488E-01    .17211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.0627        8.1750        .62685E-02    .65927    
   3  Normalizat    .98945        .99765E-01    .25987E-03   -.93385    
   4  Prefactor     .92810        .79402E-01    .21455E-03   -.95166    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.0924e-09
Minuit parameter uncertainties:
  1  1.88211e-08
  2  5.44107
  3  0.0997839
  4  0.0794117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417042': 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) = 6119.73921838
delta logL = 0.547720237209

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.882e-08  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  8.063e+00  5.441e+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:  9.281e-01  7.941e-02  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.895e-01  9.978e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 125.299 10.129
Photon Index (Free Index): 8.06 +/- 5.44
Photon Flux (Free Index): 5.33e-08 +/- 6.55e-07
Energy Flux (Free Index): 6.17e-06 +/- 7.55e-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/417042/cmap_HighResolution_406252801_406512001_4FGL_J0821.1+1007_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='6.17e-06', dlogl='5.48e-01', photon_flux2='5.33e-08', job_status='DONE', time_completed='2021-08-29 17:41:13.949757', photon_index_error2='5.44', photon_index2='8.06', ts='0.30', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.56e-08', energy_flux_error2='7.55e-05', EG='1.06', time_epoch_completed='1630284073.95', return_code='0', job_id='417042', GAL2='0.93', EG2='0.99', return_code2='102', photon_flux_error2='6.55e-07', ts2='1.51', photon_index='2.41' WHERE bin_id='644' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:41:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 417042: <4FGL_J0821.1+1007_daily_bin644> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin644> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 17:31:00 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:31:01 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:31:01 2021
Terminated at Sun Aug 29 17:41:14 2021
Results reported at Sun Aug 29 17:41:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin644 125.299 10.1287 406252801 406512001 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 :                                   581.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            614 sec.

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

