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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1561
RA = 125.299, Dec = 10.1287
tmin = 643939201, tmax = 644198401
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='421968', job_status='RUN', time_executed='2021-08-29 17:48:50.022950', time_epoch_executed='1630284530.02' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421968/ft1_4FGL_J0821.1+1007_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421968/ft2_4FGL_J0821.1+1007_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421968/ft1_4FGL_J0821.1+1007_daily_bin1561.fits outfile=/scratch/kocevski/421968/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1561.fits ra=125.299 dec=10.1287 rad=12.0 tmin=643939201.0 tmax=644198401.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 5.50
user 4.19
sys 1.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421968/ft1_filtered_4FGL_J0821.1+1007_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/421968/ft2_4FGL_J0821.1+1007_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/421968/ltcube_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.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/421968/ft2_4FGL_J0821.1+1007_daily_bin1561.fits
.....................!
real 12.99
user 11.52
sys 1.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421968/ft1_filtered_4FGL_J0821.1+1007_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/421968/ft2_4FGL_J0821.1+1007_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/421968/ltcube_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.fits outfile=/scratch/kocevski/421968/expmap_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.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/421968/ltcube_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.fits
.....................!
real 192.29
user 185.08
sys 6.53

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/421968/ft1_filtered_4FGL_J0821.1+1007_daily_bin1561.fits scfile=/scratch/kocevski/421968/ft2_4FGL_J0821.1+1007_daily_bin1561.fits outfile=/scratch/kocevski/421968/cmap_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.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.62
user 0.35
sys 1.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421968/ft1_filtered_4FGL_J0821.1+1007_daily_bin1561.fits scfile=/scratch/kocevski/421968/ft2_4FGL_J0821.1+1007_daily_bin1561.fits outfile=/scratch/kocevski/421968/cmap_HighResolution_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.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.58
user 0.36
sys 1.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4649       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.152       1.0000         .10000E-03   10000.    
     6 'norm      '    50.650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.373       1.0000         .10000E-03   10000.    
     8 'norm      '    21.732       1.0000         .10000E-03   10000.    
     9 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9009       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5192       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9602       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94625       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=   5479.988     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1860 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.376        41.999        .36361E-07    .38120E-05
   2  Prefactor     3.4645        2.9714       -.12422E-06   -.21466E-03
   3  norm          .10000E-03    5.5763       -.50883E-07** at limit **
   4  Prefactor     .10000E-03    5.7427        .54393E-07** at limit **
   5  Prefactor     45.147        75.024       -.62193E-05    .71716E-06
   6  norm          50.613        98.042       -.49062E-04    .28683E-05
   7  Prefactor     25.362        36.172       -.13954E-04   -.96767E-06
   8  norm          21.731        25.111       -.41222E-06    .44351E-05
   9  norm          .10000E-03    17.860        .36037E-06** at limit **
  10  norm          1.1923        2.7533       -.43315E-07   -.44651E-03
  11  Prefactor     .10000E-03    50.710        .62698E-06** at limit **
  12  Prefactor     .10000E-03    6.5476       -.10870E-07** at limit **
  13  norm          1.9008        1.1178       -.59537E-07   -.82593E-04
  14  Prefactor     .10000E-03    12.152       -.26691E-06** at limit **
  15  norm          24.256        11.883       -.12108E-06    .22791E-05
  16  Prefactor     3.5238        64.896        .10488E-04   -.26470E-04
  17  norm          2.9601        7.3710       -.92884E-06   -.29398E-03
  18  Normalizat    1.0767        .20303        .26729E-06    .46467E-04
  19  Prefactor     .94631        .15968        .22885E-05   -.88926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.3759
  Prefactor  = 3.4645
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1473
  norm       = 50.6132
  Prefactor  = 25.3624
  norm       = 21.7314
  norm       = 0.000100001
  norm       = 1.19234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90081
  Prefactor  = 0.0001
  norm       = 24.2556
  Prefactor  = 3.52381
  norm       = 2.96006
  Normalizat = 1.07671
  Prefactor  = 0.946306
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.988     FROM HESSE     STATUS=OK           268 CALLS     2128 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.376        42.044        .50407E-04   -1.4114    
   2  Prefactor     3.4645        2.9715        .11270E-03   -1.5336    
   3  norm          .10000E-03    5.5795        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7657        .17324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.147        75.014        .59667E-04   -1.4363    
   6  norm          50.613        98.042        .56350E-04   -1.4284    
   7  Prefactor     25.362        36.137        .79526E-04   -1.4700    
   8  norm          21.731        25.046        .85920E-04   -1.4775    
   9  norm          .10000E-03    17.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1923        2.6777        .17952E-03   -1.5490    
  11  Prefactor     .10000E-03    50.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9008        1.1146        .57657E-04   -1.5432    
  14  Prefactor     .10000E-03    12.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.256        11.881        .81334E-04   -1.4723    
  16  Prefactor     3.5238        64.941        .21550E-03   -1.5333    
  17  norm          2.9601        7.3790        .23602E-03   -1.5364    
  18  Normalizat    1.0767        .24179        .26199E-03   -.90503    
  19  Prefactor     .94631        .18991        .22333E-03   -.94541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56351e-10
Minuit parameter uncertainties:
  1  42.0639
  2  2.97161
  3  1.79284e-07
  4  2.375e-08
  5  75.1717
  6  98.3569
  7  36.1678
  8  25.0582
  9  0.000234908
  10  2.678
  11  0.000203409
  12  7.80468e-06
  13  1.11466
  14  0.000106107
  15  11.8819
  16  30.2926
  17  7.38131
  18  0.242039
  19  0.190042
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  7.805e-06  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.463e-01  1.900e-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.077e+00  2.420e-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: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421968/likelihoodResults_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.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) = 5479.98902109
delta logL = -0.000725800111468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5479.9882955
delta logL = -2.17138222069e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3968       1.0000          .0000       10.000    
     3 'Normalizat'    1.0766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94637       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=   5479.988     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    72.711        .18142E-02** at limit **
   2  Index         2.3487        6.9243        .50000        .14593E-04
   3  Normalizat    1.0767        .16560E-01    .26199E-03    .22044E-04
   4  Prefactor     .94631        .13399E-01    .22333E-03    .18479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100823
  Index      = 2.34871
  Normalizat = 1.07671
  Prefactor  = 0.946308
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.988     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10082E-03    313.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3487        7.2373        .50000       -.55891    
   3  Normalizat    1.0767        .36034E-01    .10480E-04   -.90503    
   4  Prefactor     .94631        .29154E-01    .89331E-05   -.94541    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86056e-08
Minuit parameter uncertainties:
  1  0.0323043
  2  715.208
  3  0.0360346
  4  0.0291542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421968': 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) = 5479.98829512
delta logL = 1.698062988e-07

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.008e-04  3.230e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.349e+00  7.152e+02  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.463e-01  2.915e-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:  1.077e+00  3.603e-02  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/421968/cmap_HighResolution_643939201_644198401_4FGL_J0821.1+1007_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-08-29 17:58:07.261724', job_id='421968', GAL2='0.95', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630285087.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1561' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:58:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 421968: <4FGL_J0821.1+1007_daily_bin1561> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1561> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:45:28 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:45:30 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:45:30 2021
Terminated at Sun Aug 29 17:58:08 2021
Results reported at Sun Aug 29 17:58:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1561 125.299 10.1287 643939201 644198401 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 :                                   567.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            760 sec.

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

