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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1763
RA = 334.238, Dec = 24.3575
tmin = 696297601, tmax = 696556801
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='296552', job_status='RUN', time_executed='2023-01-28 01:50:33.907684', time_epoch_executed='1674899433.91' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296552/ft1_4FGL_J2216.9+2421_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296552/ft2_4FGL_J2216.9+2421_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296552/ft1_4FGL_J2216.9+2421_daily_bin1763.fits outfile=/scratch/kocevski/296552/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1763.fits ra=334.238 dec=24.3575 rad=12.0 tmin=696297601.0 tmax=696556801.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.68
user 3.41
sys 0.22

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

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

Number of photons that the gtmktime cut: 811

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/296552/ft1_filtered_4FGL_J2216.9+2421_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/296552/ft2_4FGL_J2216.9+2421_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/296552/ltcube_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.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/296552/ft2_4FGL_J2216.9+2421_daily_bin1763.fits
.....................!
real 13.74
user 13.28
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296552/ft1_filtered_4FGL_J2216.9+2421_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/296552/ft2_4FGL_J2216.9+2421_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/296552/ltcube_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.fits outfile=/scratch/kocevski/296552/expmap_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.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/296552/ltcube_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.fits
.....................!
real 192.14
user 185.73
sys 6.03

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/296552/ft1_filtered_4FGL_J2216.9+2421_daily_bin1763.fits scfile=/scratch/kocevski/296552/ft2_4FGL_J2216.9+2421_daily_bin1763.fits outfile=/scratch/kocevski/296552/cmap_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.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.58
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/296552/ft1_filtered_4FGL_J2216.9+2421_daily_bin1763.fits scfile=/scratch/kocevski/296552/ft2_4FGL_J2216.9+2421_daily_bin1763.fits outfile=/scratch/kocevski/296552/cmap_HighResolution_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13403       1.0000          .0000       .10000E+07
     2 'norm      '    .28105       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11304E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.7038       1.0000          .0000       .10000E+07
     5 'norm      '    .33652       1.0000          .0000       .10000E+07
     6 'Prefactor '    20.984       1.0000          .0000       .10000E+07
     7 'norm      '    .10603E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .34697E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .83636E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23244       1.0000          .0000       .10000E+07
    11 'norm      '    .80607       1.0000          .0000       .10000E+07
    12 'norm      '    1.7259       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18982E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .76660       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.2099       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1882       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84775       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=   8428.989     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      976 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        32.415        .51006E-06** at limit **
   2  norm          .27887        2.6316       -.96311E-06   -.21969E-03
   3  Prefactor     .55511E-10    1.6905       -.37782E-06** at limit **
   4  Prefactor     6.5233        2.6971       -.86849E-07   -.29266E-01
   5  norm          .33628        .79654        .24554E-06    .78104E-04
   6  Prefactor     23.447        36.159        .75427E-06   -.36931E-02
   7  norm           .0000        .31412        .20133E-06** at limit **
   8  Prefactor      .0000        3.7952       -.12704E-06** at limit **
   9  norm           .0000        2.6240        .27721E-06** at limit **
  10  Prefactor     .21735        .58689       -.21756E-06** at limit **
  11  norm          .80646        .72691        .17811E-06   -.19818E-02
  12  norm          1.7292        1.5583        .30218E-06   -.83441E-02
  13  Prefactor      .0000        11.254        .20930E-06** at limit **
  14  Prefactor     .66308        48.916       -.60346E-05   -.30982E-02
  15  Prefactor     1.2102        .27748       -.66866E-06   -.20905E-03
  16  Normalizat    1.1884        .23523        .99596E-05   -.10102E-03
  17  Prefactor     .84733        .10980       -.49539E-05   -.66414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.27887
  Prefactor  = 5.55112e-11
  Prefactor  = 6.52334
  norm       = 0.336277
  Prefactor  = 23.4474
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.217355
  norm       = 0.806461
  norm       = 1.72915
  Prefactor  = 0
  Prefactor  = 0.663078
  Prefactor  = 1.21024
  Normalizat = 1.18839
  Prefactor  = 0.847328
 **********
 **   18 **HESSE 
 **********

 FCN=   8428.989     FROM HESSE     STATUS=OK           265 CALLS     1241 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        32.364        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .27887        1.4116        .32877E-02   -1.5697    
   3  Prefactor     .55511E-10    1.6936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5233        22.366        .38731E-03   -1.5657    
   5  norm          .33628        .79282        .97244E-03   -1.5696    
   6  Prefactor     23.447        35.950        .21837E-03   -1.5611    
   7  norm           .0000        .31194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.7892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.6072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21735        6.7203        .11225E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .80646        .73436        .52484E-03   -1.5690    
  12  norm          1.7292        1.5908        .79905E-03   -1.5682    
  13  Prefactor      .0000        11.224        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66308        48.367        .55458E-03   -1.5692    
  15  Prefactor     1.2102        .27685        .50299E-02   -1.5488    
  16  Normalizat    1.1884        .20632        .72153E-01   -.86962    
  17  Prefactor     .84733        .92234E-01    .44336E-01   -.98007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39719e-08
Minuit parameter uncertainties:
  1  2.75934e-05
  2  1.25482
  3  1.43405e-05
  4  22.3663
  5  0.792822
  6  35.9504
  7  2.00599e-06
  8  3.30673e-06
  9  3.17227e-06
  10  2.41718
  11  0.734364
  12  1.59077
  13  9.15816e-06
  14  11.3264
  15  0.276852
  16  0.20646
  17  0.092251
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  3.307e-06  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:  8.473e-01  9.225e-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.188e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/296552/likelihoodResults_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.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): 102
logL (Free Index) = 8428.98879396
delta logL = -0.000286895523459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8428.98850825
delta logL = -1.18077696243e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18122E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.1585       1.0000          .0000       10.000    
     3 'Normalizat'    1.1881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84744       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.

 FCN=   8428.989     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      263 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    .39154E-01    .42118E-03** at limit **
   2  Index         2.6585        6.2297        .35694        .70071E-09
   3  Normalizat    1.1884        .64557E-03    .72153E-01   -.57773E-03
   4  Prefactor     .84733        .30465E-03    .44332E-01   -.11191E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-10
  Index      = 2.65849
  Normalizat = 1.18839
  Prefactor  = 0.847327
 **********
 **   18 **HESSE 
 **********

 FCN=   8428.989     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-09    .89091E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6585        5.8005        .50000       -.48737    
   3  Normalizat    1.1884        .97185E-03    .31928E-03   -.86962    
   4  Prefactor     .84733        .45911E-03    .17435E-03   -.98007    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.99758e-12
Minuit parameter uncertainties:
  1  1.37323e-05
  2  3610.41
  3  0.000971849
  4  0.000459114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296552': 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): 102
logL (Free Index) = 8428.98850707
delta logL = -3.47426976077e-10

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.551e-10  1.373e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.658e+00  3.610e+03  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:  8.473e-01  4.591e-04  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.188e+00  9.718e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/296552/cmap_HighResolution_696297601_696556801_4FGL_J2216.9+2421_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2023-01-28 02:00:43.543054', job_id='296552', GAL2='0.85', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1674900043.54', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-3.47e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1763' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 02:00:43 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 296552: <4FGL_J2216.9+2421_daily_bin1763> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1763> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jan 28 01:45:25 2023
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 01:47:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 01:47:12 2023
Terminated at Sat Jan 28 02:00:44 2023
Results reported at Sat Jan 28 02:00:44 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1763 334.238 24.3575 696297601 696556801 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 :                                   611.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            919 sec.

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

