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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin762
RA = 125.299, Dec = 10.1287
tmin = 699840001, tmax = 700444801
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='988684', job_status='RUN', time_executed='2023-03-14 02:41:31.100899', time_epoch_executed='1678786891.1' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988684

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988684/ft1_4FGL_J0821.1+1007_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988684/ft2_4FGL_J0821.1+1007_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988684/ft1_4FGL_J0821.1+1007_weekly_bin762.fits outfile=/scratch/kocevski/988684/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin762.fits ra=125.299 dec=10.1287 rad=12.0 tmin=699840001.0 tmax=700444801.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 8.06
user 7.71
sys 0.31

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

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

Number of photons that the gtmktime cut: 1129

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/988684/ft1_filtered_4FGL_J0821.1+1007_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/988684/ft2_4FGL_J0821.1+1007_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/988684/ltcube_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.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/988684/ft2_4FGL_J0821.1+1007_weekly_bin762.fits
.....................!
real 27.81
user 26.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988684/ft1_filtered_4FGL_J0821.1+1007_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/988684/ft2_4FGL_J0821.1+1007_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/988684/ltcube_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.fits outfile=/scratch/kocevski/988684/expmap_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.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/988684/ltcube_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.fits
.....................!
real 190.24
user 184.72
sys 5.04

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/988684/ft1_filtered_4FGL_J0821.1+1007_weekly_bin762.fits scfile=/scratch/kocevski/988684/ft2_4FGL_J0821.1+1007_weekly_bin762.fits outfile=/scratch/kocevski/988684/cmap_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.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.62
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988684/ft1_filtered_4FGL_J0821.1+1007_weekly_bin762.fits scfile=/scratch/kocevski/988684/ft2_4FGL_J0821.1+1007_weekly_bin762.fits outfile=/scratch/kocevski/988684/cmap_HighResolution_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.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.59
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20961E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.2188       1.0000          .0000       .10000E+07
     3 'norm      '    .43354E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.9825       1.0000          .0000       .10000E+07
     5 'norm      '    .14993E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .82367E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .33695E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .19645E-06   1.0000          .0000       .10000E+07
     9 'norm      '    3.7463       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.1595       1.0000          .0000       .10000E+07
    11 'norm      '    .72730       1.0000          .0000       .10000E+07
    12 'norm      '    5.0379       1.0000          .0000       .10000E+07
    13 'Prefactor '    .33118E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .23972E-05   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0137       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .98946       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=   12664.66     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      890 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45519E-08    78.068       -.12714E-04** at limit **
   2  Prefactor     4.2197        2.0348        .57311E-07    .52991E-02
   3  norm           .0000        6.1227       -.80680E-06** at limit **
   4  Prefactor     2.9480        5.7002       -.29345E-06    .23750E-02
   5  norm          .16653E-08    16.736       -.94465E-06** at limit **
   6  Prefactor      .0000        10.283        .11015E-05** at limit **
   7  norm          .75590E-02    2.6434       -.19763E-05** at limit **
   8  norm          .22204E-09    6.0120        .18541E-05** at limit **
   9  norm          3.7482        2.4325        .13276E-06   -.61717E-03
  10  Prefactor     6.1427        10.478       -.29356E-06    .42164E-03
  11  norm          .72697        .51647        .14079E-06    .40057E-02
  12  norm          5.0388        5.4192        .34798E-06    .49282E-02
  13  Prefactor     .66613E-09    15.270       -.29482E-05** at limit **
  14  norm          .55511E-10    1.3014       -.25861E-07** at limit **
  15  Normalizat    1.0138        .15147        .15348E-05    .93683E-04
  16  Prefactor     .98948        .12018       -.13407E-04   -.13714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.55191e-09
  Prefactor  = 4.2197
  norm       = 0
  Prefactor  = 2.94802
  norm       = 1.66533e-09
  Prefactor  = 0
  norm       = 0.00755904
  norm       = 2.22045e-10
  norm       = 3.74825
  Prefactor  = 6.14273
  norm       = 0.726966
  norm       = 5.03876
  Prefactor  = 6.66134e-10
  norm       = 5.55112e-11
  Normalizat = 1.01384
  Prefactor  = 0.989478
 **********
 **   18 **HESSE 
 **********

 FCN=   12664.66     FROM HESSE     STATUS=OK           235 CALLS     1125 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45519E-08    77.465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2197        2.0375        .49037E-03   -1.5667    
   3  norm           .0000        6.1190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9480        5.7348        .58761E-03   -1.5674    
   5  norm          .16653E-08    16.778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        10.321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .75590E-02    7.4683        .97964E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .22204E-09    6.0198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7482        2.4582        .52141E-03   -1.5669    
  10  Prefactor     6.1427        10.487        .40427E-03   -1.5658    
  11  norm          .72697        .52193        .58520E-03   -1.5691    
  12  norm          5.0388        5.4416        .44776E-03   -1.5663    
  13  Prefactor     .66613E-09    15.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    1.3050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0138        .12894        .44501E-01   -.92568    
  16  Prefactor     .98948        .10213        .46135E-01   -.93081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16952e-09
Minuit parameter uncertainties:
  1  0.00118665
  2  2.0375
  3  2.05463e-05
  4  5.73479
  5  0.000333622
  6  4.6672e-06
  7  0.475197
  8  7.39113e-05
  9  2.45821
  10  10.4871
  11  0.521934
  12  5.44156
  13  0.000205237
  14  1.88576e-05
  15  0.128977
  16  0.102149
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  6.143e+00  1.049e+01  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:  9.895e-01  1.021e-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.014e+00  1.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/988684/likelihoodResults_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.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) = 12664.4431076
delta logL = 0.214247140368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12664.4301789
delta logL = 0.227175787721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3819       1.0000          .0000       .10000E+07
     2 'Index     '    3.2985       1.0000          .0000       10.000    
     3 'Normalizat'    .98761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0037       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=   12664.43     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      255 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3819        55.521        .66345E-03    .14307E-01
   2  Index         3.2985        3.0698        .14666        .13360E-03
   3  Normalizat    .98761        .32021E-01    .46011E-01    .43330E-04
   4  Prefactor     1.0037        .25206E-01    .44482E-01   -.15129E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38193
  Index      = 3.29851
  Normalizat = 0.987611
  Prefactor  = 1.00372
 **********
 **   18 **HESSE 
 **********

 FCN=   12664.43     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3819        141.01        .18551E-04   -1.5677    
   2  Index         3.2985        6.4192        .88496E-02   -.34723    
   3  Normalizat    .98761        .14134        .26386E-03   -.93447    
   4  Prefactor     1.0037        .11397        .21040E-03   -.92606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16061e-08
Minuit parameter uncertainties:
  1  36.6551
  2  7.78549
  3  0.141394
  4  0.113998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988684': 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) = 12664.4301789
delta logL = 0.227175789387

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.382e+00  3.666e+01  0.000e+00  1.000e+06 ( 1.000e-13)
296        Index:  3.299e+00  7.785e+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.004e+00  1.140e-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:  9.876e-01  1.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
Ra Dec: 125.299 10.129

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/988684/cmap_HighResolution_699840001_700444801_4FGL_J0821.1+1007_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2023-03-14 02:53:32.412302', job_id='988684', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1678787612.41', return_code2='102', ts='0.41', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.27e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='762' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 02:53:32 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 988684: <4FGL_J0821.1+1007_weekly_bin762> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 14 02:40:22 2023
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 02:40:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 02:40:23 2023
Terminated at Tue Mar 14 02:53:33 2023
Results reported at Tue Mar 14 02:53:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin762 125.299 10.1287 699840001 700444801 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            791 sec.

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

