aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 228 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0821.1+1007_daily_bin1754
RA = 125.299, Dec = 10.1287
tmin = 693964801, tmax = 694224001
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='639245', job_status='RUN', time_executed='2023-01-01 00:59:47.471741', time_epoch_executed='1672563587.47' WHERE source_name='4FGL J0821.1+1007' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639245/ft1_4FGL_J0821.1+1007_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639245/ft1_4FGL_J0821.1+1007_daily_bin1754.fits outfile=/scratch/kocevski/639245/ft1_filteredMKT_4FGL_J0821.1+1007_daily_bin1754.fits ra=125.299 dec=10.1287 rad=12.0 tmin=693964801.0 tmax=694224001.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.93
user 3.68
sys 0.21

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

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

Number of photons that the gtmktime cut: 206

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639245/ft1_filtered_4FGL_J0821.1+1007_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/639245/ltcube_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.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/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits
.....................!
real 15.08
user 14.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639245/ft1_filtered_4FGL_J0821.1+1007_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/639245/ltcube_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.fits outfile=/scratch/kocevski/639245/expmap_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.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/639245/ltcube_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.fits
.....................!
real 194.36
user 187.89
sys 5.97

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/639245/ft1_filtered_4FGL_J0821.1+1007_daily_bin1754.fits scfile=/scratch/kocevski/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits outfile=/scratch/kocevski/639245/cmap_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=125.299 yref=10.1287 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639245/ft1_filtered_4FGL_J0821.1+1007_daily_bin1754.fits scfile=/scratch/kocevski/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits outfile=/scratch/kocevski/639245/cmap_HighResolution_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.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.56
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639245/ft1_filtered_4FGL_J0821.1+1007_daily_bin1754.fits', '/scratch/kocevski/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits', expMap='/scratch/kocevski/639245/expmap_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.fits', expCube='/scratch/kocevski/639245/ltcube_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639245/Model_4FGL_J0821.1+1007_daily_bin1754.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  0.000e+00  1.000e+06 ( 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/639245/ft1_filtered_4FGL_J0821.1+1007_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/639245/ft2_4FGL_J0821.1+1007_daily_bin1754.fits
Exposure map: /scratch/kocevski/639245/expmap_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.fits
Exposure cube: /scratch/kocevski/639245/ltcube_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639245/Model_4FGL_J0821.1+1007_daily_bin1754.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) = 2325.85837625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.063       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24425E-08   1.0000          .0000       .10000E+07
     3 'norm      '    24.281       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33784E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .17819E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .77593E-05   1.0000          .0000       .10000E+07
     7 'norm      '    16.782       1.0000          .0000       .10000E+07
     8 'norm      '    14.216       1.0000          .0000       .10000E+07
     9 'norm      '    4.5824       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10963E-06   1.0000          .0000       .10000E+07
    11 'norm      '    1.2763       1.0000          .0000       .10000E+07
    12 'norm      '    8.0957       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10658E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .23315E-08   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .76946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2325.828     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     1244 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.074        1.4570        .14723E-09    .96613E-02
   2  Prefactor      .0000        1.9676       -.12568E-06** at limit **
   3  norm          24.285        5.0052       -.12999E-07    .16517E-01
   4  Prefactor      .0000        19.790        .25328E-06** at limit **
   5  norm          .21882E-06    22.634        .62241E-06** at limit **
   6  Prefactor     .24536E-06    44.575        .55231E-06** at limit **
   7  norm          16.780        1.2579        .37554E-08   -.20904E-01
   8  norm          14.218        14.177       -.16818E-07   -.24292E-01
   9  norm          4.5824        4.4402        .74193E-07    .29379E-03
  10  Prefactor      .0000        10.759        .58581E-07** at limit **
  11  norm          1.2762        1.3399       -.79278E-07    .45735E-03
  12  norm          8.0956        9.2100       -.40353E-07    .59737E-05
  13  Prefactor     .27756E-08    29.153        .63107E-06** at limit **
  14  norm           .0000        5.3404       -.17298E-06** at limit **
  15  Normalizat    1.0868        .30842       -.74233E-05    .71443E-05
  16  Prefactor     .76955        .23891        .71275E-05    .22953E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0739
  Prefactor  = 0
  norm       = 24.285
  Prefactor  = 0
  norm       = 2.18825e-07
  Prefactor  = 2.45359e-07
  norm       = 16.7802
  norm       = 14.2178
  norm       = 4.58238
  Prefactor  = 0
  norm       = 1.27621
  norm       = 8.09558
  Prefactor  = 2.77556e-09
  norm       = 0
  Normalizat = 1.08677
  Prefactor  = 0.769546
 **********
 **   18 **HESSE 
 **********

 FCN=   2325.828     FROM HESSE     STATUS=OK           231 CALLS     1475 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.074        79.370        .19592E-03   -1.5606    
   2  Prefactor      .0000        1.9665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.285        32.007        .20298E-03   -1.5609    
   4  Prefactor      .0000        19.816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .21882E-06    54.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .24536E-06    50.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.780        19.902        .24422E-03   -1.5626    
   8  norm          14.218        37.074        .26539E-03   -1.5633    
   9  norm          4.5824        4.4508        .46999E-03   -1.5665    
  10  Prefactor      .0000        10.759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2762        1.3561        .98311E-03   -1.5685    
  12  norm          8.0956        9.2040        .35213E-03   -1.5651    
  13  Prefactor     .27756E-08    55.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        5.3397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0868        .27655        .38561E-01   -.90178    
  16  Prefactor     .76955        .21084        .43318E-01   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06544e-07
Minuit parameter uncertainties:
  1  79.3731
  2  8.14915e-07
  3  32.0068
  4  3.24972e-05
  5  0.00688952
  6  0.0070283
  7  19.9018
  8  37.0745
  9  4.45084
  10  2.23169e-05
  11  1.35614
  12  9.20403
  13  0.000781101
  14  4.47489e-07
  15  0.276922
  16  0.211062
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  2.232e-05  0.000e+00  1.000e+06 ( 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.695e-01  2.111e-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.087e+00  2.769e-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: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639245/likelihoodResults_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.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) = 2325.87202435
delta logL = -0.0444746274015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2325.82755067
delta logL = -9.43630311667e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50916E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .99638       1.0000          .0000       10.000    
     3 'Normalizat'    1.0864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76977       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2325.828     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      210 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.9075        .42118E-03** at limit **
   2  Index         2.6566        1.9696       -.53520E-04     .0000    
   3  Normalizat    1.0868        1.1658        .24182E-05    .57144E-05
   4  Prefactor     .76955        1.1188        .18780E-05   -.13231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.65655
  Normalizat = 1.08677
  Prefactor  = 0.769546
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2325.828     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.9075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .79858        2.1039       -.53520E-04   -.48781    
   3  Normalizat    1.0868        1.1658        .24182E-05   -.90178    
   4  Prefactor     .76955        1.1188        .18780E-05   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.68818e-12
Minuit parameter uncertainties:
  1  2.03606e-06
  2  2.04153
  3  1.19522
  4  1.15463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639245': 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): 101
logL (Free Index) = 2325.82754972
delta logL = -1.36424205266e-12

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  0.000e+00  2.036e-06  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  2.657e+00  2.042e+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:  7.695e-01  1.155e+00  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.087e+00  1.195e+00  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/639245/cmap_HighResolution_693964801_694224001_4FGL_J0821.1+1007_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2023-01-01 01:06:20.110391', job_id='639245', GAL2='0.77', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1672563980.11', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.36e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1754' AND source_name='4FGL J0821.1+1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:06:20 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 639245: <4FGL_J0821.1+1007_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0821.1+1007_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 00:55:13 2023
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 00:55:50 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 00:55:50 2023
Terminated at Sun Jan  1 01:06:20 2023
Results reported at Sun Jan  1 01:06:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_daily_bin1754 125.299 10.1287 693964801 694224001 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 :                                   395.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            667 sec.

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

