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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1765
RA = 334.238, Dec = 24.3575
tmin = 696816001, tmax = 697075201
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='648326', job_status='RUN', time_executed='2023-02-03 01:47:30.914087', time_epoch_executed='1675417650.91' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648326/ft1_4FGL_J2216.9+2421_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648326/ft2_4FGL_J2216.9+2421_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648326/ft1_4FGL_J2216.9+2421_daily_bin1765.fits outfile=/scratch/kocevski/648326/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1765.fits ra=334.238 dec=24.3575 rad=12.0 tmin=696816001.0 tmax=697075201.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.72
user 3.45
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648326/ft2_4FGL_J2216.9+2421_daily_bin1765.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/648326/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/648326/ft1_filtered_4FGL_J2216.9+2421_daily_bin1765.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.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 887

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648326/ft1_filtered_4FGL_J2216.9+2421_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/648326/ft2_4FGL_J2216.9+2421_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/648326/ltcube_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.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/648326/ft2_4FGL_J2216.9+2421_daily_bin1765.fits
.....................!
real 15.84
user 15.31
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648326/ft1_filtered_4FGL_J2216.9+2421_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648326/ft2_4FGL_J2216.9+2421_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/648326/ltcube_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.fits outfile=/scratch/kocevski/648326/expmap_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.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/648326/ltcube_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.fits
.....................!
real 194.71
user 188.74
sys 4.90

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/648326/ft1_filtered_4FGL_J2216.9+2421_daily_bin1765.fits scfile=/scratch/kocevski/648326/ft2_4FGL_J2216.9+2421_daily_bin1765.fits outfile=/scratch/kocevski/648326/cmap_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648326/ft1_filtered_4FGL_J2216.9+2421_daily_bin1765.fits scfile=/scratch/kocevski/648326/ft2_4FGL_J2216.9+2421_daily_bin1765.fits outfile=/scratch/kocevski/648326/cmap_HighResolution_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33519E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .11102E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9732       1.0000          .0000       .10000E+07
     4 'Prefactor '    .60704E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .47393E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.4136       1.0000          .0000       .10000E+07
     7 'norm      '    .64186       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.5640       1.0000          .0000       .10000E+07
     9 'norm      '    .83822E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12101E-07   1.0000          .0000       .10000E+07
    11 'norm      '    3.0246       1.0000          .0000       .10000E+07
    12 'norm      '    1.5637       1.0000          .0000       .10000E+07
    13 'Prefactor '    15.329       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.8297       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.4771       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .81861       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1514       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=   9271.879     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      980 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        39.838       -.11977E-06** at limit **
   2  norm           .0000        1.4475        .10802E-06** at limit **
   3  Prefactor     3.9863        6.5104        .27907E-07   -.58797E-03
   4  Prefactor      .0000        4.9535        .32097E-06** at limit **
   5  norm          .47905E-01    1.0966        .74260E-07** at limit **
   6  Prefactor     9.2698        31.297       -.56275E-05   -.66948E-04
   7  norm          .64222        .63335       -.26417E-07    .38778E-03
   8  Prefactor     2.0021        35.590        .25063E-05   -.67128E-04
   9  norm          .55511E-10    3.8093       -.31414E-07** at limit **
  10  Prefactor      .0000        4.0615       -.38400E-06** at limit **
  11  norm          3.0251        1.1458        .50987E-08   -.65967E-02
  12  norm          1.5635        1.2379       -.66096E-07   -.19147E-02
  13  Prefactor     15.782        18.020       -.10153E-05    .36868E-03
  14  Prefactor     9.8753        8.4454        .15836E-05    .31770E-03
  15  Prefactor     1.4766        .30892       -.96199E-07    .92670E-03
  16  Normalizat    .81743        .25398       -.48244E-05   -.60139E-04
  17  Prefactor     1.1515        .12086        .18971E-05   -.72918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.98625
  Prefactor  = 0
  norm       = 0.0479054
  Prefactor  = 9.26982
  norm       = 0.642216
  Prefactor  = 2.00206
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 3.0251
  norm       = 1.56346
  Prefactor  = 15.7823
  Prefactor  = 9.87529
  Prefactor  = 1.47656
  Normalizat = 0.817434
  Prefactor  = 1.15147
 **********
 **   18 **HESSE 
 **********

 FCN=   9271.879     FROM HESSE     STATUS=OK           265 CALLS     1245 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        39.764        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.4235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9863        6.5374        .50577E-03   -1.5668    
   4  Prefactor      .0000        4.9515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47905E-01    .36486        .22104E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2698        31.338        .32639E-03   -1.5647    
   7  norm          .64222        .64103        .65559E-03   -1.5692    
   8  Prefactor     2.0021        35.545        .85025E-03   -1.5680    
   9  norm          .55511E-10    3.7972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.0541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0251        1.1462        .58326E-03   -1.5673    
  12  norm          1.5635        1.2372        .85035E-03   -1.5683    
  13  Prefactor     15.782        17.995        .25555E-03   -1.5629    
  14  Prefactor     9.8753        8.4495        .31937E-03   -1.5645    
  15  Prefactor     1.4766        .30860        .52856E-02   -1.5465    
  16  Normalizat    .81743        .22563        .93680E-01   -.99425    
  17  Prefactor     1.1515        .10597        .35897E-01   -.87838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54058e-07
Minuit parameter uncertainties:
  1  1.32653e-05
  2  2.98081e-06
  3  6.53737
  4  2.19199e-05
  5  0.264414
  6  31.3383
  7  0.641031
  8  16.8717
  9  3.54501e-05
  10  1.76087e-05
  11  1.14624
  12  1.23723
  13  17.9947
  14  8.44949
  15  0.308595
  16  0.225891
  17  0.10599
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  2.002e+00  1.687e+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:  1.151e+00  1.060e-01  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.174e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/648326/likelihoodResults_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.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) = 9271.69943143
delta logL = 0.17998953769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9271.69874838
delta logL = 0.180672582992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9146       1.0000          .0000       .10000E+07
     2 'Index     '    3.2633       1.0000          .0000       10.000    
     3 'Normalizat'    .78267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1603       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=   9271.699     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      352 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9205        270.39        .21538E-04   -.53839E-04
   2  Index         3.2648        5.2238        .75930E-02    .19674E-04
   3  Normalizat    .78266        .24505        .42351E-03   -.19704E-04
   4  Prefactor     1.1603        .12034        .17118E-03   -.34935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.92055
  Index      = 3.26482
  Normalizat = 0.782665
  Prefactor  = 1.16032
 **********
 **   18 **HESSE 
 **********

 FCN=   9271.699     FROM HESSE     STATUS=OK            25 CALLS      377 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9205        7.5053        .86154E-06   -1.5680    
   2  Index         3.2648        1.7570        .30372E-03   -.35441    
   3  Normalizat    .78266        .25428        .16940E-04   -1.0071    
   4  Prefactor     1.1603        .12085        .68470E-05   -.87561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86995e-12
Minuit parameter uncertainties:
  1  7.50536
  2  1.80095
  3  0.254661
  4  0.120875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648326': 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) = 9271.69874058
delta logL = 0.180680388026

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.921e+00  7.505e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  3.265e+00  1.801e+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:  1.160e+00  1.209e-01  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:  7.827e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/648326/cmap_HighResolution_696816001_697075201_4FGL_J2216.9+2421_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.93e-08', time_completed='2023-02-03 01:58:21.032982', job_id='648326', GAL2='1.16', fit_tolerance='1e-08', EG2='0.78', EG='0.82', time_epoch_completed='1675418301.03', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.81e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1765' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:58:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 648326: <4FGL_J2216.9+2421_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 01:45:14 2023
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:46:00 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:46:00 2023
Terminated at Fri Feb  3 01:58:21 2023
Results reported at Fri Feb  3 01:58:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1765 334.238 24.3575 696816001 697075201 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 :                                   649.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            787 sec.

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

