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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin22
RA = 125.299, Dec = 10.1287
tmin = 245030401, tmax = 245289601
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='413873', job_status='RUN', time_executed='2021-08-29 17:24:21.230866', time_epoch_executed='1630283061.23' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413873/ft1_4FGL_J0821.1+1007_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413873/ft2_4FGL_J0821.1+1007_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413873/ft1_4FGL_J0821.1+1007_daily_bin22.fits outfile=/scratch/kocevski/413873/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin22.fits ra=125.299 dec=10.1287 rad=12.0 tmin=245030401.0 tmax=245289601.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.69
user 1.24
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413873/ft2_4FGL_J0821.1+1007_daily_bin22.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/413873/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/413873/ft1_filtered_4FGL_J0821.1+1007_daily_bin22.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.73
user 0.32
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413873/ft1_filtered_4FGL_J0821.1+1007_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/413873/ft2_4FGL_J0821.1+1007_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/413873/ltcube_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.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/413873/ft2_4FGL_J0821.1+1007_daily_bin22.fits
.....................!
real 12.89
user 12.25
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413873/ft1_filtered_4FGL_J0821.1+1007_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/413873/ft2_4FGL_J0821.1+1007_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/413873/ltcube_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.fits outfile=/scratch/kocevski/413873/expmap_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.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/413873/ltcube_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.fits
.....................!
real 191.67
user 185.93
sys 5.29

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/413873/ft1_filtered_4FGL_J0821.1+1007_daily_bin22.fits scfile=/scratch/kocevski/413873/ft2_4FGL_J0821.1+1007_daily_bin22.fits outfile=/scratch/kocevski/413873/cmap_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.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.33
user 0.36
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413873/ft1_filtered_4FGL_J0821.1+1007_daily_bin22.fits scfile=/scratch/kocevski/413873/ft2_4FGL_J0821.1+1007_daily_bin22.fits outfile=/scratch/kocevski/413873/cmap_HighResolution_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.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.47
user 0.36
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    1.1041       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0491       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11670E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.287       1.0000         .10000E-03   10000.    
     8 'norm      '    11.955       1.0000         .10000E-03   10000.    
     9 'norm      '    20.042       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .19722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0536       1.0000         .10000E-03   10000.    
    15 'norm      '    13.041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.534       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2039       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2527       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77661       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=   5891.448     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1889 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.243       -.10264E-07** at limit **
   2  Prefactor     1.1039        3.0412       -.25329E-05   -.13625E-02
   3  norm          .10000E-03    6.1516       -.29517E-06** at limit **
   4  Prefactor     7.0498        10.981        .10460E-04    .89923E-05
   5  Prefactor     .10000E-03    85.020        .40736E-05** at limit **
   6  norm          .10000E-03    152.90       -.10574E-04** at limit **
   7  Prefactor     11.283        33.655       -.35514E-05   -.10908E-04
   8  norm          11.956        10.209        .65283E-06   -.78249E-05
   9  norm          20.044        25.582        .12915E-05    .11990E-04
  10  norm          5.1508        3.9944        .37835E-06   -.20465E-03
  11  Prefactor     .10000E-03    9.5784       -.14368E-06** at limit **
  12  Prefactor     .10000E-03    2.5193        .32065E-07** at limit **
  13  norm          .19735        .83723       -.34801E-06   -.82824E-03
  14  Prefactor     3.0535        4.4602        .34089E-05   -.14934E-03
  15  norm          13.041        8.7262       -.22688E-06    .11633E-04
  16  Prefactor     17.534        20.214       -.22478E-06   -.61109E-05
  17  norm          5.2039        5.3923       -.20667E-05    .17002E-03
  18  Normalizat    1.2528        .19648       -.89512E-07    .14955E-03
  19  Prefactor     .77653        .14998       -.86327E-06    .15760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.10385
  norm       = 0.0001
  Prefactor  = 7.04983
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.283
  norm       = 11.9555
  norm       = 20.0443
  norm       = 5.15083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.197349
  Prefactor  = 3.05346
  norm       = 13.0412
  Prefactor  = 17.5344
  norm       = 5.20393
  Normalizat = 1.25282
  Prefactor  = 0.776527
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.448     FROM HESSE     STATUS=OK           274 CALLS     2163 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1039        3.1685        .21301E-03   -1.5498    
   3  norm          .10000E-03    6.1631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0498        10.907        .15110E-03   -1.5177    
   5  Prefactor     .10000E-03    85.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    153.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.283        33.538        .11925E-03   -1.5036    
   8  norm          11.956        10.205        .11586E-03   -1.5016    
   9  norm          20.044        25.446        .89467E-04   -1.4812    
  10  norm          5.1508        3.9847        .12891E-03   -1.5254    
  11  Prefactor     .10000E-03    9.5821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5199        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19735        1.5302        .12857E-02   -1.5619    
  14  Prefactor     3.0535        4.3969        .18760E-03   -1.5358    
  15  norm          13.041        8.7008        .11092E-03   -1.4986    
  16  Prefactor     17.534        20.228        .95649E-04   -1.4870    
  17  norm          5.2039        5.3716        .17622E-03   -1.5252    
  18  Normalizat    1.2528        .23300        .24094E-03   -.84986    
  19  Prefactor     .77653        .17820        .23564E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27893e-09
Minuit parameter uncertainties:
  1  8.00082e-06
  2  3.16902
  3  8.31939e-05
  4  10.9103
  5  5.28525e-05
  6  8.82323e-05
  7  33.5944
  8  10.2069
  9  25.4601
  10  3.98489
  11  7.00502e-06
  12  2.05784e-07
  13  1.09884
  14  4.3974
  15  8.70159
  16  20.2361
  17  5.37214
  18  0.233197
  19  0.178334
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.058e-07  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:  7.765e-01  1.783e-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.253e+00  2.332e-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: 3.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413873/likelihoodResults_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.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) = 5891.45000157
delta logL = -0.00180081074086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5891.44820037
delta logL = 3.94008566218e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3827       1.0000          .0000       10.000    
     3 'Normalizat'    1.2528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77651       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=   5891.448     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.652        .12308E-01** at limit **
   2  Index         1.6039        5.5948        .50000       -.20759E-07
   3  Normalizat    1.2528        .91584E-02    .24094E-03    .13858E-02
   4  Prefactor     .77653        .72707E-02    .23564E-03    .14201E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60393
  Normalizat = 1.25283
  Prefactor  = 0.776528
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.448     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    124.22        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6039        7.8636        .50000       -.74669    
   3  Normalizat    1.2528        .25721E-01    .48188E-04   -.84986    
   4  Prefactor     .77653        .20420E-01    .47129E-04   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4413e-10
Minuit parameter uncertainties:
  1  1.30845e-05
  2  571.916
  3  0.0257216
  4  0.0204198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413873': 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) = 5891.44819208
delta logL = 8.68328515935e-06

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.308e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.604e+00  5.719e+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:  7.765e-01  2.042e-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.253e+00  2.572e-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/413873/cmap_HighResolution_245030401_245289601_4FGL_J0821.1+1007_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-03', job_status='DONE', photon_flux_upper_limit='3.78e-08', time_completed='2021-08-29 17:33:29.312126', job_id='413873', GAL2='0.78', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630283609.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='22' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:33:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 413873: <4FGL_J0821.1+1007_daily_bin22> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin22> 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) <bullet0260>, 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:30 2021
Results reported at Sun Aug 29 17:33:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin22 125.299 10.1287 245030401 245289601 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 :                                   546.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

