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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1773
RA = 334.238, Dec = 24.3575
tmin = 698889601, tmax = 699148801
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='805811', job_status='RUN', time_executed='2023-02-27 10:36:53.399979', time_epoch_executed='1677523013.4' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805811/ft1_4FGL_J2216.9+2421_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805811/ft1_4FGL_J2216.9+2421_daily_bin1773.fits outfile=/scratch/kocevski/805811/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1773.fits ra=334.238 dec=24.3575 rad=12.0 tmin=698889601.0 tmax=699148801.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.99
user 2.76
sys 0.19

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

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

Number of photons that the gtmktime cut: 1112

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/805811/ltcube_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.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/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits
.....................!
real 15.74
user 15.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/805811/ltcube_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.fits outfile=/scratch/kocevski/805811/expmap_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.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/805811/ltcube_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.fits
.....................!
real 191.03
user 186.02
sys 4.42

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/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits scfile=/scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits outfile=/scratch/kocevski/805811/cmap_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits scfile=/scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits outfile=/scratch/kocevski/805811/cmap_HighResolution_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805811/Model_4FGL_J2216.9+2421_daily_bin1773.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/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits.....................!
real 175.46
user 173.70
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits', '/scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits', expMap='/scratch/kocevski/805811/expmap_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.fits', expCube='/scratch/kocevski/805811/ltcube_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805811/Model_4FGL_J2216.9+2421_daily_bin1773.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/805811/ft1_filtered_4FGL_J2216.9+2421_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/805811/ft2_4FGL_J2216.9+2421_daily_bin1773.fits
Exposure map: /scratch/kocevski/805811/expmap_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.fits
Exposure cube: /scratch/kocevski/805811/ltcube_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805811/Model_4FGL_J2216.9+2421_daily_bin1773.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) = 12285.4988717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85500E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .77079       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.1652       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10521E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .16653E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .35870E-02   1.0000          .0000       .10000E+07
     7 'norm      '    1.3832       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.1196       1.0000          .0000       .10000E+07
     9 'norm      '    5.5094       1.0000          .0000       .10000E+07
    10 'Prefactor '    20.066       1.0000          .0000       .10000E+07
    11 'norm      '    1.1283       1.0000          .0000       .10000E+07
    12 'norm      '    .73836       1.0000          .0000       .10000E+07
    13 'Prefactor '    .36950E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    24.496       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.4635       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99276       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=   12285.46     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      987 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        32.076        .61353E-06** at limit **
   2  norm          .76803        2.5030       -.11177E-06    .46972E-03
   3  Prefactor     6.1280        5.2610       -.11380E-07   -.44962E-03
   4  Prefactor      .0000        14.298       -.20628E-06** at limit **
   5  norm           .0000        .19724       -.18034E-06** at limit **
   6  Prefactor     .47684E-06    21.602        .11634E-05** at limit **
   7  norm          1.3838        1.0290        .33203E-07   -.19064E-03
   8  Prefactor     6.1494        8.6821       -.60000E-07    .22684E-01
   9  norm          5.3880        6.4018       -.36300E-06    .13323E-02
  10  Prefactor     19.963        11.349        .11913E-06   -.23960E-01
  11  norm          1.1276        .91879        .82698E-07   -.28473E-03
  12  norm          .73751        .74331        .11668E-06    .17330E-02
  13  Prefactor     .44303E-06    21.139        .11770E-05** at limit **
  14  Prefactor     24.574        12.555       -.15049E-06   -.28496E-01
  15  Prefactor     1.4636        .33534        .98792E-07   -.17020E-03
  16  Normalizat    1.0470        .23364       -.16037E-04   -.11707E-04
  17  Prefactor     .99282        .10055        .80576E-05   -.12884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.768029
  Prefactor  = 6.12795
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.76841e-07
  norm       = 1.38377
  Prefactor  = 6.14936
  norm       = 5.38804
  Prefactor  = 19.9625
  norm       = 1.12763
  norm       = 0.737507
  Prefactor  = 4.43034e-07
  Prefactor  = 24.5737
  Prefactor  = 1.46362
  Normalizat = 1.04696
  Prefactor  = 0.992821
 **********
 **   18 **HESSE 
 **********

 FCN=   12285.46     FROM HESSE     STATUS=OK           261 CALLS     1248 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        32.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76803        2.5227        .55138E-03   -1.5690    
   3  Prefactor     6.1280        5.2399        .40408E-03   -1.5658    
   4  Prefactor      .0000        14.268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .19313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47684E-06    43.292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3838        1.0468        .92475E-03   -1.5684    
   8  Prefactor     6.1494        13.947        .40561E-03   -1.5658    
   9  norm          5.3880        6.4532        .42782E-03   -1.5662    
  10  Prefactor     19.963        12.835        .22331E-03   -1.5619    
  11  norm          1.1276        .94190        .11007E-02   -1.5687    
  12  norm          .73751        .73549        .57647E-03   -1.5691    
  13  Prefactor     .44303E-06    42.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.574        13.997        .20209E-03   -1.5609    
  15  Prefactor     1.4636        .33711        .66825E-02   -1.5466    
  16  Normalizat    1.0470        .19996        .88307E-01   -.91473    
  17  Prefactor     .99282        .84986E-01    .46177E-01   -.92969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98955e-08
Minuit parameter uncertainties:
  1  4.21654e-05
  2  2.52275
  3  5.23992
  4  1.92859e-05
  5  4.37735e-07
  6  0.00908687
  7  1.04682
  8  13.9471
  9  6.45322
  10  12.8351
  11  0.941904
  12  0.735487
  13  0.00864491
  14  13.9971
  15  0.337111
  16  0.200107
  17  0.0849972
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  6.149e+00  1.395e+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.928e-01  8.500e-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:  1.047e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805811/likelihoodResults_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.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) = 12285.4566894
delta logL = 0.000989192136331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12285.4565146
delta logL = 0.00116395248551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9085       1.0000          .0000       .10000E+07
     2 'Index     '    2.3405       1.0000          .0000       10.000    
     3 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99301       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=   12285.46     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      271 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9009        15.031        .16516E-04   -.21849E-02
   2  Index         2.3370        1.1239        .84780E-02   -.14136E-03
   3  Normalizat    1.0459        .22214        .39124E-03   -.14413E-04
   4  Prefactor     .99310        .99009E-01    .17858E-03    .44832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.90086
  Index      = 2.33704
  Normalizat = 1.04594
  Prefactor  = 0.993103
 **********
 **   18 **HESSE 
 **********

 FCN=   12285.46     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9009        14.488        .66062E-06   -1.5659    
   2  Index         2.3370        1.0839        .33912E-03   -.56166    
   3  Normalizat    1.0459        .22229        .15650E-04   -.91507    
   4  Prefactor     .99310        .99053E-01    .35717E-04   -.92960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36616e-09
Minuit parameter uncertainties:
  1  14.4877
  2  1.09616
  3  0.222486
  4  0.0990713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805811': 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) = 12285.4565049
delta logL = 0.00117369199324

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.901e+00  1.449e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.337e+00  1.096e+00  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.931e-01  9.907e-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:  1.046e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 334.238 24.358

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/805811/cmap_HighResolution_698889601_699148801_4FGL_J2216.9+2421_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2023-02-27 10:48:58.537232', job_id='805811', GAL2='0.99', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1677523738.54', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.17e-03', ts2='0.23', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1773' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:48:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0015>
Subject: Job 805811: <4FGL_J2216.9+2421_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 10:35:18 2023
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:35:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:35:19 2023
Terminated at Mon Feb 27 10:48:58 2023
Results reported at Mon Feb 27 10:48:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1773 334.238 24.3575 698889601 699148801 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

