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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1728
RA = 334.238, Dec = 24.3575
tmin = 687225601, tmax = 687484801
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='304471', job_status='RUN', time_executed='2022-10-15 00:38:57.208566', time_epoch_executed='1665819537.21' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304471/ft1_4FGL_J2216.9+2421_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304471/ft2_4FGL_J2216.9+2421_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304471/ft1_4FGL_J2216.9+2421_daily_bin1728.fits outfile=/scratch/kocevski/304471/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1728.fits ra=334.238 dec=24.3575 rad=12.0 tmin=687225601.0 tmax=687484801.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.71
user 2.47
sys 0.22

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

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

Number of photons that the gtmktime cut: 381

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304471/ft1_filtered_4FGL_J2216.9+2421_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304471/ft2_4FGL_J2216.9+2421_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304471/ltcube_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.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/304471/ft2_4FGL_J2216.9+2421_daily_bin1728.fits
.....................!
real 12.98
user 12.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304471/ft1_filtered_4FGL_J2216.9+2421_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304471/ft2_4FGL_J2216.9+2421_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304471/ltcube_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.fits outfile=/scratch/kocevski/304471/expmap_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.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/304471/ltcube_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.fits
.....................!
real 191.11
user 186.02
sys 4.75

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/304471/ft1_filtered_4FGL_J2216.9+2421_daily_bin1728.fits scfile=/scratch/kocevski/304471/ft2_4FGL_J2216.9+2421_daily_bin1728.fits outfile=/scratch/kocevski/304471/cmap_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304471/ft1_filtered_4FGL_J2216.9+2421_daily_bin1728.fits scfile=/scratch/kocevski/304471/ft2_4FGL_J2216.9+2421_daily_bin1728.fits outfile=/scratch/kocevski/304471/cmap_HighResolution_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11967       1.0000          .0000       .10000E+07
     2 'norm      '    2.1046       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11534E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .95820E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .20244       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18318E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .65177       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.3634       1.0000          .0000       .10000E+07
     9 'norm      '    6.4857       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12841E-01   1.0000          .0000       .10000E+07
    11 'norm      '    1.7729       1.0000          .0000       .10000E+07
    12 'norm      '    .20373E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    79.425       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15486E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.8621       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .71900       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94174       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=   4219.988     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1205 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        46.520        .76412E-07** at limit **
   2  norm          2.1056        2.2090        .31721E-07    .63150E-04
   3  Prefactor      .0000        6.0552        .13183E-06** at limit **
   4  Prefactor     .16653E-09    91.952        .10155E-06** at limit **
   5  norm          .20151        .89922        .20703E-07** at limit **
   6  Prefactor      .0000        21.613       -.21749E-06** at limit **
   7  norm          .65603        1.3436       -.25538E-07    .23842E-04
   8  Prefactor     6.3798        1.1836       -.47749E-09    .15202E-01
   9  norm          6.3243        8.9274        .20717E-07    .12186E-03
  10  Prefactor      .0000        13.915       -.15878E-06** at limit **
  11  norm          1.7718        1.7360        .37816E-09   -.58362E-05
  12  norm           .0000        .99064       -.15599E-07** at limit **
  13  Prefactor     80.239        82.996        .10080E-06   -.35235E-03
  14  Prefactor      .0000        7.1734        .28003E-07** at limit **
  15  Prefactor     3.8603        .91675        .14050E-07    .10223E-04
  16  Normalizat    .72028        .35292        .25665E-05   -.20972E-06
  17  Prefactor     .94145        .15043       -.14221E-05   -.88512E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 2.10559
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 0.201515
  Prefactor  = 0
  norm       = 0.656034
  Prefactor  = 6.37978
  norm       = 6.32434
  Prefactor  = 0
  norm       = 1.77182
  norm       = 0
  Prefactor  = 80.2395
  Prefactor  = 0
  Prefactor  = 3.86026
  Normalizat = 0.720285
  Prefactor  = 0.94145
 **********
 **   18 **HESSE 
 **********

 FCN=   4219.988     FROM HESSE     STATUS=OK           261 CALLS     1466 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        46.505        .13428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1056        2.2154        .71098E-03   -1.5679    
   3  Prefactor      .0000        6.0333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    88.561        .14043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20151        .69518        .25557E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        21.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .65603        1.3640        .64713E-03   -1.5692    
   8  Prefactor     6.3798        20.924        .39766E-03   -1.5657    
   9  norm          6.3243        8.9482        .39385E-03   -1.5658    
  10  Prefactor      .0000        13.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7718        1.7320        .78605E-03   -1.5681    
  12  norm           .0000        .98962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     80.239        82.740        .11221E-03   -1.5529    
  14  Prefactor      .0000        7.1698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8603        .91290        .51334E-02   -1.5315    
  16  Normalizat    .72028        .30932        .93492E-01   -1.0310    
  17  Prefactor     .94145        .12828        .45535E-01   -.94707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73298e-08
Minuit parameter uncertainties:
  1  2.57172e-06
  2  2.21544
  3  1.28807e-06
  4  0.000229706
  5  0.695179
  6  4.45853e-05
  7  1.364
  8  20.9245
  9  8.94819
  10  2.37878e-05
  11  1.73196
  12  9.65009e-08
  13  82.7415
  14  2.49595e-06
  15  0.9129
  16  0.310071
  17  0.128316
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  6.380e+00  2.092e+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.415e-01  1.283e-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.203e-01  3.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304471/likelihoodResults_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.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) = 4219.9851816
delta logL = 0.00250846150448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4219.98419821
delta logL = 0.00349185534105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4399       1.0000          .0000       .10000E+07
     2 'Index     '    2.4680       1.0000          .0000       10.000    
     3 'Normalizat'    .71582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94279       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=   4219.984     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      261 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4381        27.060        .17224E-04   -.18581E-02
   2  Index         2.4741        2.5092        .60714E-02   -.11187E-03
   3  Normalizat    .71558        .34540        .41554E-03   -.31005E-03
   4  Prefactor     .94282        .14934        .15930E-03   -.70149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.43812
  Index      = 2.47406
  Normalizat = 0.715576
  Prefactor  = 0.942818
 **********
 **   18 **HESSE 
 **********

 FCN=   4219.984     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4381        23.632        .68894E-06   -1.5661    
   2  Index         2.4741        2.3607        .24286E-03   -.52960    
   3  Normalizat    .71558        .34498        .16622E-04   -1.0328    
   4  Prefactor     .94282        .14920        .31860E-04   -.94661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05428e-09
Minuit parameter uncertainties:
  1  22.6727
  2  2.49792
  3  0.346029
  4  0.149267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304471': 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) = 4219.98419317
delta logL = 0.00349689626273

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.438e+00  2.267e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.474e+00  2.498e+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.428e-01  1.493e-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.156e-01  3.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/304471/cmap_HighResolution_687225601_687484801_4FGL_J2216.9+2421_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2022-10-15 00:46:31.195360', job_id='304471', GAL2='0.94', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1665819991.2', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.50e-03', ts2='0.12', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1728' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:46:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 304471: <4FGL_J2216.9+2421_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:35:57 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:35:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:35:58 2022
Terminated at Sat Oct 15 00:46:32 2022
Results reported at Sat Oct 15 00:46:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1728 334.238 24.3575 687225601 687484801 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 :                                   455.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

