/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 178 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0821.1+1007_daily_bin66
RA = 125.299, Dec = 10.1287
tmin = 256435201, tmax = 256694401
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='415172', job_status='RUN', time_executed='2021-08-29 17:28:56.398732', time_epoch_executed='1630283336.4' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415172/ft1_4FGL_J0821.1+1007_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415172/ft2_4FGL_J0821.1+1007_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415172/ft1_4FGL_J0821.1+1007_daily_bin66.fits outfile=/scratch/kocevski/415172/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin66.fits ra=125.299 dec=10.1287 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.51
user 1.30
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415172/ft2_4FGL_J0821.1+1007_daily_bin66.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/415172/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/415172/ft1_filtered_4FGL_J0821.1+1007_daily_bin66.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.57
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415172/ft1_filtered_4FGL_J0821.1+1007_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/415172/ft2_4FGL_J0821.1+1007_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/415172/ltcube_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.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/415172/ft2_4FGL_J0821.1+1007_daily_bin66.fits
.....................!
real 14.17
user 13.24
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415172/ft1_filtered_4FGL_J0821.1+1007_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/415172/ft2_4FGL_J0821.1+1007_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/415172/ltcube_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.fits outfile=/scratch/kocevski/415172/expmap_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.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/415172/ltcube_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.fits
.....................!
real 195.70
user 186.60
sys 7.26

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/415172/ft1_filtered_4FGL_J0821.1+1007_daily_bin66.fits scfile=/scratch/kocevski/415172/ft2_4FGL_J0821.1+1007_daily_bin66.fits outfile=/scratch/kocevski/415172/cmap_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.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.70
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415172/ft1_filtered_4FGL_J0821.1+1007_daily_bin66.fits scfile=/scratch/kocevski/415172/ft2_4FGL_J0821.1+1007_daily_bin66.fits outfile=/scratch/kocevski/415172/cmap_HighResolution_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7427       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1766       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.957       1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3957       1.0000         .10000E-03   10000.    
     9 'norm      '    11.573       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    64.269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8040       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .33581       1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.021       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .67273       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2943       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=   9596.057     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1902 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.598        37.269       -.19152E-04    .43759E-05
   2  Prefactor     2.7425        2.9085       -.74671E-06   -.92578E-03
   3  norm          .10000E-03    4.1721       -.22619E-08** at limit **
   4  Prefactor     6.1762        6.3678       -.50237E-06    .54252E-04
   5  Prefactor     20.959        83.917        .40187E-05    .28397E-05
   6  norm          .10000E-03    59.559        .57378E-06** at limit **
   7  Prefactor     .10000E-03    11.467        .62808E-07** at limit **
   8  norm          4.3945        8.9889        .97922E-06   -.14630E-03
   9  norm          11.575        17.218        .20801E-06   -.73269E-05
  10  norm          .10000E-03    .64619       -.19632E-07** at limit **
  11  Prefactor     64.265        35.258       -.46562E-05    .46813E-04
  12  Prefactor     9.8051        10.718       -.95573E-06    .47164E-05
  13  norm          1.1821        .88409       -.17710E-06   -.21958E-03
  14  Prefactor     .10000E-03    1.5641        .49618E-08** at limit **
  15  norm          .33065        3.6671       -.26935E-05    .27542E-03
  16  Prefactor     78.008        32.150       -.10068E-04    .31326E-04
  17  norm          .10000E-03    1.5059        .34582E-08** at limit **
  18  Normalizat    .67275        .17329        .68604E-05    .11035E-03
  19  Prefactor     1.2944        .13208       -.58499E-06    .58306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5982
  Prefactor  = 2.74253
  norm       = 0.0001
  Prefactor  = 6.17615
  Prefactor  = 20.9594
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.39445
  norm       = 11.5748
  norm       = 0.0001
  Prefactor  = 64.2646
  Prefactor  = 9.80507
  norm       = 1.18209
  Prefactor  = 0.0001
  norm       = 0.33065
  Prefactor  = 78.0076
  norm       = 0.0001
  Normalizat = 0.672751
  Prefactor  = 1.29435
 **********
 **   18 **HESSE 
 **********

 FCN=   9596.057     FROM HESSE     STATUS=OK           270 CALLS     2172 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.598        37.277        .92845E-04   -1.4845    
   2  Prefactor     2.7425        2.9094        .15913E-03   -1.5377    
   3  norm          .10000E-03    4.1749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1762        6.3599        .16153E-03   -1.5211    
   5  Prefactor     20.959        83.779        .87493E-04   -1.4792    
   6  norm          .10000E-03    59.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3945        8.9682        .19209E-03   -1.5289    
   9  norm          11.575        17.186        .11776E-03   -1.5027    
  10  norm          .10000E-03    .64786        .76891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.265        35.250        .50058E-04   -1.4103    
  12  Prefactor     9.8051        10.718        .12798E-03   -1.5082    
  13  norm          1.1821        .86639        .74915E-04   -1.5491    
  14  Prefactor     .10000E-03    1.5694        .11962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .33065        15.193        .35764E-02   -1.5593    
  16  Prefactor     78.008        32.214        .45464E-04   -1.3939    
  17  norm          .10000E-03    1.5067        .11740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .67275        .19369        .33033E-03   -1.0498    
  19  Prefactor     1.2944        .14987        .20204E-03   -.83475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63446e-09
Minuit parameter uncertainties:
  1  37.324
  2  2.90956
  3  2.25471e-06
  4  6.36058
  5  84.0144
  6  1.55326e-05
  7  1.67064e-05
  8  8.97096
  9  17.1932
  10  1.93596e-06
  11  35.2617
  12  10.72
  13  0.866401
  14  5.4818e-07
  15  4.48321
  16  32.2207
  17  5.70841e-07
  18  0.193885
  19  0.149923
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  9.805e+00  1.072e+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.294e+00  1.499e-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:  6.728e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 8.18e-06 +/- 8.95e-06

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

Saving results to:
/scratch/kocevski/415172/likelihoodResults_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.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) = 9596.04030041
delta logL = 0.0162003753885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9596.03078982
delta logL = 0.0257109639879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1519       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6421       1.0000          .0000       10.000    
     3 'Normalizat'    .66314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2993       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9596.031     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      263 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1332        14.172        .70211E-03    .86020E-04
   2  Index         2.6428        1.2200        .79456E-02    .32052E-03
   3  Normalizat    .66328        .18798        .33253E-03    .20513E-06
   4  Prefactor     1.2993        .15113        .20171E-03    .22545E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.13325
  Index      = 2.6428
  Normalizat = 0.66328
  Prefactor  = 1.29928
 **********
 **   18 **HESSE 
 **********

 FCN=   9596.031     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1332        12.413        .14042E-03   -1.5138    
   2  Index         2.6428        1.0694        .15891E-02   -.49092    
   3  Normalizat    .66328        .18690        .13301E-04   -1.0536    
   4  Prefactor     1.2993        .15066        .80684E-05   -.83328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7411e-12
Minuit parameter uncertainties:
  1  12.417
  2  1.08018
  3  0.187082
  4  0.150706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415172': 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) = 9596.03078818
delta logL = 0.0257126060333

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  8.133e+00  1.242e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.643e+00  1.080e+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.299e+00  1.507e-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:  6.633e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.64 +/- 1.08
Photon Flux (Free Index): 3.19e-08 +/- 4.30e-08
Energy Flux (Free Index): 8.04e-06 +/- 8.35e-06

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/415172/cmap_HighResolution_256435201_256694401_4FGL_J0821.1+1007_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='8.04e-06', photon_flux_error='2.77e-08', dlogl='2.57e-02', energy_flux='8.18e-06', photon_flux2='3.19e-08', job_status='DONE', time_completed='2021-08-29 17:40:57.202426', photon_index_error2='1.08', photon_index2='2.64', ts='1.46', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='9.10e-08', energy_flux_error2='8.35e-06', EG='0.67', time_epoch_completed='1630284057.2', return_code='0', job_id='415172', GAL2='1.30', EG2='0.66', return_code2='0', energy_flux_error='8.95e-06', photon_flux_error2='4.30e-08', ts2='1.52', photon_index='2.41' WHERE bin_id='66' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:40:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 415172: <4FGL_J0821.1+1007_daily_bin66> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin66> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 17:25:33 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:25:35 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:25:35 2021
Terminated at Sun Aug 29 17:40:58 2021
Results reported at Sun Aug 29 17:40:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin66 125.299 10.1287 256435201 256694401 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 :                                   711.46 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

