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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin21
RA = 125.299, Dec = 10.1287
tmin = 244771201, tmax = 245030401
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='413872', job_status='RUN', time_executed='2021-08-29 17:23:34.540879', time_epoch_executed='1630283014.54' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413872/ft1_4FGL_J0821.1+1007_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413872/ft2_4FGL_J0821.1+1007_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413872/ft1_4FGL_J0821.1+1007_daily_bin21.fits outfile=/scratch/kocevski/413872/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin21.fits ra=125.299 dec=10.1287 rad=12.0 tmin=244771201.0 tmax=245030401.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.38
user 1.25
sys 2.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413872/ft2_4FGL_J0821.1+1007_daily_bin21.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/413872/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/413872/ft1_filtered_4FGL_J0821.1+1007_daily_bin21.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 2.43
user 0.31
sys 2.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413872/ft1_filtered_4FGL_J0821.1+1007_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/413872/ft2_4FGL_J0821.1+1007_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/413872/ltcube_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.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/413872/ft2_4FGL_J0821.1+1007_daily_bin21.fits
.....................!
real 14.76
user 12.15
sys 2.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413872/ft1_filtered_4FGL_J0821.1+1007_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/413872/ft2_4FGL_J0821.1+1007_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/413872/ltcube_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.fits outfile=/scratch/kocevski/413872/expmap_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.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/413872/ltcube_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.fits
.....................!
real 193.10
user 185.70
sys 7.07

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/413872/ft1_filtered_4FGL_J0821.1+1007_daily_bin21.fits scfile=/scratch/kocevski/413872/ft2_4FGL_J0821.1+1007_daily_bin21.fits outfile=/scratch/kocevski/413872/cmap_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.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 2.45
user 0.36
sys 2.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413872/ft1_filtered_4FGL_J0821.1+1007_daily_bin21.fits scfile=/scratch/kocevski/413872/ft2_4FGL_J0821.1+1007_daily_bin21.fits outfile=/scratch/kocevski/413872/cmap_HighResolution_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.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 2.49
user 0.38
sys 2.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.454       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.2723       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5528       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3344       1.0000         .10000E-03   10000.    
    13 'norm      '    .92410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3828       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9012       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .77188       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0493       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=   6211.889     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1938 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.449        48.661       -.21524E-05   -.42027E-05
   2  Prefactor     .10000E-03    1.0757        .30954E-07** at limit **
   3  norm          6.0635        9.5939        .27358E-06   -.41914E-04
   4  Prefactor     9.7384        8.4955       -.12529E-05   -.11019E-04
   5  Prefactor     .10000E-03    34.193       -.33648E-05** at limit **
   6  norm          .10000E-03    192.19        .99557E-05** at limit **
   7  Prefactor     .10000E-03    35.805        .26857E-05** at limit **
   8  norm          .10000E-03    7.1929        .85876E-07** at limit **
   9  norm          6.2657        18.108       -.13807E-04   -.10657E-03
  10  norm          2.5524        3.4076       -.10023E-07   -.45174E-03
  11  Prefactor     61.892        42.256        .20734E-04    .60493E-04
  12  Prefactor     1.3105        32.079       -.46058E-05   -.36818E-03
  13  norm          .92417        .78018       -.88187E-07   -.69840E-03
  14  Prefactor     .10000E-03    3.7927        .85309E-07** at limit **
  15  norm          4.9412        7.6344       -.14653E-05   -.22109E-03
  16  Prefactor     6.3796        47.672        .21273E-05   -.11997E-04
  17  norm          1.9011        4.8506       -.66107E-06   -.53458E-03
  18  Normalizat    .77191        .18610       -.30298E-05    .13721E-03
  19  Prefactor     1.0494        .14168        .10007E-05   -.94264E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.449
  Prefactor  = 0.0001
  norm       = 6.06346
  Prefactor  = 9.73838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.26568
  norm       = 2.55244
  Prefactor  = 61.8922
  Prefactor  = 1.31045
  norm       = 0.924174
  Prefactor  = 0.0001
  norm       = 4.94125
  Prefactor  = 6.37962
  norm       = 1.90105
  Normalizat = 0.771905
  Prefactor  = 1.04937
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.889     FROM HESSE     STATUS=OK           272 CALLS     2210 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.449        48.696        .40513E-04   -1.3720    
   2  Prefactor     .10000E-03    1.8601        .15858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0635        9.5795        .16305E-03   -1.5215    
   4  Prefactor     9.7384        8.4897        .12842E-03   -1.5084    
   5  Prefactor     .10000E-03    34.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    192.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.2209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.2657        18.166        .16028E-03   -1.5207    
  10  norm          2.5524        3.3928        .16089E-03   -1.5388    
  11  Prefactor     61.892        42.373        .51022E-04   -1.4133    
  12  Prefactor     1.3105        33.098        .37989E-03   -1.5479    
  13  norm          .92417        .75247        .61403E-03   -1.5516    
  14  Prefactor     .10000E-03    3.8425        .14986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9412        7.6415        .18091E-03   -1.5263    
  16  Prefactor     6.3796        48.054        .15887E-03   -1.5203    
  17  norm          1.9011        4.8271        .27125E-03   -1.5432    
  18  Normalizat    .77191        .21673        .28279E-03   -1.0112    
  19  Prefactor     1.0494        .16652        .19998E-03   -.91101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01866e-09
Minuit parameter uncertainties:
  1  48.7154
  2  7.7028e-06
  3  9.58196
  4  8.49072
  5  1.80989e-06
  6  5.39391e-05
  7  2.55231e-05
  8  6.71745e-06
  9  18.182
  10  3.39301
  11  42.3938
  12  13.1794
  13  0.752482
  14  6.8933e-06
  15  7.64301
  16  35.0571
  17  4.8281
  18  0.216977
  19  0.166602
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.310e+00  1.318e+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.049e+00  1.666e-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.719e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413872/likelihoodResults_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.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) = 6210.45345928
delta logL = 1.43549423579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6210.43107221
delta logL = 1.45788130453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10417       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2337       1.0000          .0000       10.000    
     3 'Normalizat'    .64688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1157       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=   6210.431     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10317        .98290        .35729E-02   -.13966E-01
   2  Index         5.2379        2.2291        .98205E-01   -.40928E-03
   3  Normalizat    .64712        .46491E-01    .69263E-01   -.24344E-03
   4  Prefactor     1.1157        .37907E-01    .37017E-01   -.32915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.103166
  Index      = 5.23792
  Normalizat = 0.647124
  Prefactor  = 1.11566
 **********
 **   18 **HESSE 
 **********

 FCN=   6210.431     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10317        2.1535        .16184E-03   -1.5644    
   2  Index         5.2379        3.6241        .37753E-02    .47602E-01
   3  Normalizat    .64712        .16411        .30653E-03   -1.0602    
   4  Prefactor     1.1157        .13119        .19461E-03   -.88968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09826e-09
Minuit parameter uncertainties:
  1  0.942283
  2  4.0553
  3  0.16423
  4  0.131224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413872': 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) = 6210.43106916
delta logL = 1.45788435638

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.032e-01  9.423e-01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  5.238e+00  4.055e+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.116e+00  1.312e-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.471e-01  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 125.299 10.129
Photon Index (Free Index): 5.24 +/- 4.06
Photon Flux (Free Index): 9.01e-08 +/- 5.88e-08
Energy Flux (Free Index): 1.18e-05 +/- 9.11e-06

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/413872/cmap_HighResolution_244771201_245030401_4FGL_J0821.1+1007_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.46e+00', photon_flux2='9.01e-08', job_status='DONE', time_completed='2021-08-29 17:33:13.481610', photon_index_error2='4.06', photon_index2='5.24', ts='0.01', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.72e-08', energy_flux_error2='9.11e-06', EG='0.77', time_epoch_completed='1630283593.48', return_code='0', job_id='413872', GAL2='1.12', EG2='0.65', return_code2='102', photon_flux_error2='5.88e-08', ts2='3.27', photon_index='2.41' WHERE bin_id='21' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:33:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 413872: <4FGL_J0821.1+1007_daily_bin21> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin21> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:52 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:54 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:20:54 2021
Terminated at Sun Aug 29 17:33:14 2021
Results reported at Sun Aug 29 17:33:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin21 125.299 10.1287 244771201 245030401 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 :                                   609.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

