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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1732
RA = 334.238, Dec = 24.3575
tmin = 688262401, tmax = 688521601
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='647622', job_status='RUN', time_executed='2022-10-27 00:39:03.482383', time_epoch_executed='1666856343.48' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647622/ft1_4FGL_J2216.9+2421_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647622/ft2_4FGL_J2216.9+2421_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647622/ft1_4FGL_J2216.9+2421_daily_bin1732.fits outfile=/scratch/kocevski/647622/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1732.fits ra=334.238 dec=24.3575 rad=12.0 tmin=688262401.0 tmax=688521601.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.50
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647622/ft2_4FGL_J2216.9+2421_daily_bin1732.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/647622/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1732.fits evtable="EVENTS" outfile="/scratch/kocevski/647622/ft1_filtered_4FGL_J2216.9+2421_daily_bin1732.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: 952

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647622/ft1_filtered_4FGL_J2216.9+2421_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/647622/ft2_4FGL_J2216.9+2421_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/647622/ltcube_688262401_688521601_4FGL_J2216.9+2421_daily_bin1732.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/647622/ft2_4FGL_J2216.9+2421_daily_bin1732.fits
.....................!
real 12.22
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647622/ft1_filtered_4FGL_J2216.9+2421_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647622/ft2_4FGL_J2216.9+2421_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647622/ltcube_688262401_688521601_4FGL_J2216.9+2421_daily_bin1732.fits outfile=/scratch/kocevski/647622/expmap_688262401_688521601_4FGL_J2216.9+2421_daily_bin1732.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/647622/ltcube_688262401_688521601_4FGL_J2216.9+2421_daily_bin1732.fits
.....................!
real 193.26
user 187.60
sys 5.27

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/647622/ft1_filtered_4FGL_J2216.9+2421_daily_bin1732.fits scfile=/scratch/kocevski/647622/ft2_4FGL_J2216.9+2421_daily_bin1732.fits outfile=/scratch/kocevski/647622/cmap_688262401_688521601_4FGL_J2216.9+2421_daily_bin1732.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647622/ft1_filtered_4FGL_J2216.9+2421_daily_bin1732.fits scfile=/scratch/kocevski/647622/ft2_4FGL_J2216.9+2421_daily_bin1732.fits outfile=/scratch/kocevski/647622/cmap_HighResolution_688262401_688521601_4FGL_J2216.9+2421_daily_bin1732.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40484E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .12101E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2512       1.0000          .0000       .10000E+07
     4 'Prefactor '    .23008       1.0000          .0000       .10000E+07
     5 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    33.103       1.0000          .0000       .10000E+07
     7 'norm      '    .72960       1.0000          .0000       .10000E+07
     8 'Prefactor '    33.204       1.0000          .0000       .10000E+07
     9 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.7083       1.0000          .0000       .10000E+07
    11 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
    12 'norm      '    1.5551       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20008E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .73442E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.1646       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1195       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0009       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=   9860.659     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1242 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90483E-08    522.32        .35075E-05** at limit **
   2  norm           .0000        .63422        .68120E-10** at limit **
   3  Prefactor     1.2625        8.3070       -.10443E-06    .45618E-04
   4  Prefactor     .84266E-07    1027.3       -.81593E-05** at limit **
   5  norm           .0000        .76172        .34164E-07** at limit **
   6  Prefactor     34.438        55.078       -.51810E-06    .34566E-03
   7  norm          .72952        .86800       -.29861E-07    .18775E-02
   8  Prefactor     33.205        18.743       -.88887E-07    .35289E-03
   9  norm           .0000        1.5922       -.51567E-07** at limit **
  10  Prefactor     7.8457        12.492       -.35078E-06    .10721E-03
  11  norm           .0000        .18277        .10138E-07** at limit **
  12  norm          1.5548        1.1130       -.15203E-07    .16797E-03
  13  Prefactor      .0000        19.261       -.13520E-06** at limit **
  14  Prefactor      .0000        7.1955        .23915E-08** at limit **
  15  Prefactor     3.1648        .40867        .66929E-08    .97703E-04
  16  Normalizat    1.1184        .25564        .10466E-05    .74572E-04
  17  Prefactor     1.0011        .11655        .59023E-06    .90851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.04832e-09
  norm       = 0
  Prefactor  = 1.26252
  Prefactor  = 8.42659e-08
  norm       = 0
  Prefactor  = 34.4385
  norm       = 0.72952
  Prefactor  = 33.2051
  norm       = 0
  Prefactor  = 7.84565
  norm       = 0
  norm       = 1.55477
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.1648
  Normalizat = 1.11844
  Prefactor  = 1.00108
 **********
 **   18 **HESSE 
 **********

 FCN=   9860.659     FROM HESSE     STATUS=OK           269 CALLS     1511 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90483E-08    533.37        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .63338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2625        8.2723        .99920E-03   -1.5685    
   4  Prefactor     .84266E-07    18.597        .13778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .30213        .18339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.438        55.738        .17383E-03   -1.5591    
   7  norm          .72952        .87903        .58338E-03   -1.5691    
   8  Prefactor     33.205        18.764        .17356E-03   -1.5593    
   9  norm           .0000        1.5970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8457        12.562        .36094E-03   -1.5652    
  11  norm           .0000        .18329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5548        1.1013        .85343E-03   -1.5683    
  13  Prefactor      .0000        19.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        7.1978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1648        .40805        .49807E-02   -1.5352    
  16  Normalizat    1.1184        .21532        .83503E-01   -.89162    
  17  Prefactor     1.0011        .97435E-01    .45419E-01   -.92693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07119e-06
Minuit parameter uncertainties:
  1  0.00438923
  2  1.12315e-07
  3  6.46343
  4  0.00250347
  5  3.14495e-07
  6  55.7393
  7  0.879029
  8  18.7643
  9  2.34185e-07
  10  12.5616
  11  5.03154e-09
  12  1.1013
  13  7.41528e-06
  14  6.13056e-07
  15  0.408051
  16  0.215488
  17  0.0974518
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.321e+01  1.876e+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.001e+00  9.745e-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.118e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.89e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 1.73e-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) = 9860.64365716
delta logL = 0.0150651645654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9860.62974218
delta logL = 0.0289801428171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.414       1.0000          .0000       .10000E+07
     2 'Index     '    2.3952       1.0000          .0000       10.000    
     3 'Normalizat'    1.1093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0040       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=   9860.630     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.409        25.060        .73765E-05    .38216E-02
   2  Index         2.3954        .50491        .55570E-02    .15118E-03
   3  Normalizat    1.1093        .24634        .37104E-03   -.72457E-03
   4  Prefactor     1.0040        .11408        .18117E-03   -.16427E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4088
  Index      = 2.39537
  Normalizat = 1.10931
  Prefactor  = 1.00396
 **********
 **   18 **HESSE 
 **********

 FCN=   9860.630     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.409        23.468        .14753E-05   -1.5600    
   2  Index         2.3954        .47243        .22228E-03   -.54793    
   3  Normalizat    1.1093        .24620        .74209E-04   -.89453    
   4  Prefactor     1.0040        .11405        .36234E-04   -.92598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26693e-09
Minuit parameter uncertainties:
  1  23.4681
  2  0.473399
  3  0.246458
  4  0.114074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647622': 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) = 9860.62974212
delta logL = 0.0289802012194

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  2.941e+01  2.347e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.395e+00  4.734e-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:  1.004e+00  1.141e-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:  1.109e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.49
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.40 +/- 0.47
Photon Flux (Free Index): 8.49e-08 +/- 5.26e-08
Energy Flux (Free Index): 2.80e-05 +/- 1.85e-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/647622/cmap_HighResolution_688262401_688521601_4FGL_J2216.9+2421_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.89e-08', energy_flux2='2.80e-05', photon_flux_error='4.46e-08', dlogl='2.90e-02', energy_flux='3.06e-05', photon_flux2='8.49e-08', job_status='DONE', time_completed='2022-10-27 00:49:44.360265', photon_index_error2='0.47', photon_index2='2.40', ts='5.43', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.12', time_epoch_completed='1666856984.36', return_code='0', job_id='647622', GAL2='1.00', EG2='1.11', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='5.26e-08', ts2='5.49', photon_index='2.28' WHERE bin_id='1732' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:49:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 647622: <4FGL_J2216.9+2421_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:41 2022
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:42 2022
Terminated at Thu Oct 27 00:49:45 2022
Results reported at Thu Oct 27 00:49:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1732 334.238 24.3575 688262401 688521601 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 :                                   643.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

