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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1744
RA = 334.238, Dec = 24.3575
tmin = 691372801, tmax = 691632001
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='595737', job_status='RUN', time_executed='2022-12-02 01:58:19.196468', time_epoch_executed='1669975099.2' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595737/ft1_4FGL_J2216.9+2421_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595737/ft1_4FGL_J2216.9+2421_daily_bin1744.fits outfile=/scratch/kocevski/595737/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1744.fits ra=334.238 dec=24.3575 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.52
user 2.31
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.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/595737/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1485

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/595737/ltcube_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.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/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits
.....................!
real 12.66
user 12.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/595737/ltcube_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.fits outfile=/scratch/kocevski/595737/expmap_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.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/595737/ltcube_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.fits
.....................!
real 191.37
user 186.06
sys 4.98

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 159 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits scfile=/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits outfile=/scratch/kocevski/595737/cmap_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.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=334.238 yref=24.3575 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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits scfile=/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits outfile=/scratch/kocevski/595737/cmap_HighResolution_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.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=334.238 yref=24.3575 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595737/Model_4FGL_J2216.9+2421_daily_bin1744.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits.....................!
real 218.00
user 215.85
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits', '/scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits', expMap='/scratch/kocevski/595737/expmap_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.fits', expCube='/scratch/kocevski/595737/ltcube_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595737/Model_4FGL_J2216.9+2421_daily_bin1744.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/595737/ft1_filtered_4FGL_J2216.9+2421_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/595737/ft2_4FGL_J2216.9+2421_daily_bin1744.fits
Exposure map: /scratch/kocevski/595737/expmap_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.fits
Exposure cube: /scratch/kocevski/595737/ltcube_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595737/Model_4FGL_J2216.9+2421_daily_bin1744.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) = 15003.0970201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66933E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .14594       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36773E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    24.718       1.0000          .0000       .10000E+07
     5 'norm      '    1.0992       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.863       1.0000          .0000       .10000E+07
     7 'norm      '    .17364E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    35.783       1.0000          .0000       .10000E+07
     9 'norm      '    2.8143       1.0000          .0000       .10000E+07
    10 'Prefactor '    13.576       1.0000          .0000       .10000E+07
    11 'norm      '    3.3807       1.0000          .0000       .10000E+07
    12 'norm      '    3.1141       1.0000          .0000       .10000E+07
    13 'Prefactor '    49.654       1.0000          .0000       .10000E+07
    14 'Prefactor '    .81005E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.6858       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .82939       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99879       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15003.00     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1028 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25341E-06    111.91        .38653E-06** at limit **
   2  norm          .14451        4.9389        .39245E-07** at limit **
   3  Prefactor     .55511E-10    5.1095       -.11407E-06** at limit **
   4  Prefactor     24.504        11.197       -.35463E-07    .16626    
   5  norm          1.0988        .57390        .64710E-08    .22606E-03
   6  Prefactor     11.084        24.490       -.28728E-07    .48147E-01
   7  norm           .0000        .26232        .41241E-08** at limit **
   8  Prefactor     36.029        14.166       -.53083E-07   -.35179E-03
   9  norm          2.8110        2.6048        .35778E-08   -.13350E-02
  10  Prefactor     13.560        9.6415        .73960E-08    .13024E-02
  11  norm          3.3797        .98788        .13898E-07    .52606E-02
  12  norm          3.1168        1.4626       -.77469E-08   -.51222E-02
  13  Prefactor     51.830        33.059        .52927E-07    .28615E-01
  14  Prefactor     .23825E-06    24.839       -.40424E-06** at limit **
  15  Prefactor     4.6795        .41346       -.38431E-07   -.27301E-02
  16  Normalizat    .82969        .20580       -.11196E-05   -.31263E-03
  17  Prefactor     .99876        .93256E-01   -.54116E-06   -.74449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53408e-07
  norm       = 0.144513
  Prefactor  = 5.55112e-11
  Prefactor  = 24.5038
  norm       = 1.0988
  Prefactor  = 11.0843
  norm       = 0
  Prefactor  = 36.0292
  norm       = 2.81099
  Prefactor  = 13.5603
  norm       = 3.37974
  norm       = 3.11678
  Prefactor  = 51.8297
  Prefactor  = 2.38254e-07
  Prefactor  = 4.67948
  Normalizat = 0.829694
  Prefactor  = 0.998762
 **********
 **   18 **HESSE 
 **********

 FCN=   15003.00     FROM HESSE     STATUS=OK           269 CALLS     1297 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25341E-06    112.81        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .14451        .56469        .58448E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    5.0827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.504        20.852        .20118E-03   -1.5609    
   5  norm          1.0988        .58446        .11339E-02   -1.5687    
   6  Prefactor     11.084        27.313        .29060E-03   -1.5641    
   7  norm           .0000        .25835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.029        14.168        .16719E-03   -1.5588    
   9  norm          2.8110        2.6054        .60606E-03   -1.5674    
  10  Prefactor     13.560        9.6196        .27159E-03   -1.5634    
  11  norm          3.3797        .99346        .55006E-03   -1.5671    
  12  norm          3.1168        1.4626        .57433E-03   -1.5673    
  13  Prefactor     51.830        33.394        .14192E-03   -1.5564    
  14  Prefactor     .23825E-06    24.753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6795        .41139        .46476E-02   -1.5275    
  16  Normalizat    .82969        .17816        .93391E-01   -.98977    
  17  Prefactor     .99876        .79144E-01    .46252E-01   -.92771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6173e-07
Minuit parameter uncertainties:
  1  0.0106929
  2  0.564692
  3  3.48582e-05
  4  20.8519
  5  0.584461
  6  27.3129
  7  4.77705e-07
  8  14.1679
  9  2.60537
  10  9.6196
  11  0.993463
  12  1.46261
  13  33.3938
  14  0.00485725
  15  0.411395
  16  0.178284
  17  0.079153
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.603e+01  1.417e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.988e-01  7.915e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.297e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.14
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 8.56e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.31e-05

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) = 15003.0029069
delta logL = 0.000647151782687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15003.0024588
delta logL = 0.00109517114288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.502       1.0000          .0000       .10000E+07
     2 'Index     '    2.2663       1.0000          .0000       10.000    
     3 'Normalizat'    .83168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   15003.00     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      279 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.550        18.812        .66214E-05    .41207E-05
   2  Index         2.2678        .36664        .63741E-02    .43484E-04
   3  Normalizat    .83158        .20172        .41330E-03    .49513E-06
   4  Prefactor     .99820        .92691E-01    .17706E-03    .77051E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.5498
  Index      = 2.2678
  Normalizat = 0.83158
  Prefactor  = 0.998203
 **********
 **   18 **HESSE 
 **********

 FCN=   15003.00     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .89E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.550        17.980        .13243E-05   -1.5587    
   2  Index         2.2678        .34995        .25496E-03   -.57811    
   3  Normalizat    .83158        .20151        .16532E-04   -.98908    
   4  Prefactor     .99820        .92667E-01    .70823E-05   -.92789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89858e-16
Minuit parameter uncertainties:
  1  17.9805
  2  0.350362
  3  0.201691
  4  0.0926816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595737': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15003.0024241
delta logL = 0.00112989349327

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.655e+01  1.798e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.268e+00  3.504e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.982e-01  9.268e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.316e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.09
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.27 +/- 0.35
Photon Flux (Free Index): 8.44e-08 +/- 4.19e-08
Energy Flux (Free Index): 3.37e-05 +/- 1.61e-05

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/595737/cmap_HighResolution_691372801_691632001_4FGL_J2216.9+2421_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.56e-08', energy_flux2='3.37e-05', photon_flux_error='3.36e-08', dlogl='1.13e-03', energy_flux='3.32e-05', photon_flux2='8.44e-08', job_status='DONE', time_completed='2022-12-02 02:11:30.367560', photon_index_error2='0.35', photon_index2='2.27', ts='14.14', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.83', time_epoch_completed='1669975890.37', return_code='0', job_id='595737', GAL2='1.00', EG2='0.83', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.19e-08', ts2='14.09', photon_index='2.28' WHERE bin_id='1744' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 02:11:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 595737: <4FGL_J2216.9+2421_daily_bin1744> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1744> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec  2 01:55:26 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 01:55:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 01:55:28 2022
Terminated at Fri Dec  2 02:11:31 2022
Results reported at Fri Dec  2 02:11:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1744 334.238 24.3575 691372801 691632001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2216.9+2421 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            965 sec.

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

