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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1714
RA = 334.238, Dec = 24.3575
tmin = 683596801, tmax = 683856001
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='242164', job_status='RUN', time_executed='2022-09-16 23:46:30.635599', time_epoch_executed='1663397190.64' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242164/ft1_4FGL_J2216.9+2421_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242164/ft1_4FGL_J2216.9+2421_daily_bin1714.fits outfile=/scratch/kocevski/242164/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1714.fits ra=334.238 dec=24.3575 rad=12.0 tmin=683596801.0 tmax=683856001.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.53
user 3.28
sys 0.23

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

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

Number of photons that the gtmktime cut: 821

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242164/ft1_filtered_4FGL_J2216.9+2421_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/242164/ltcube_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.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/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits
.....................!
real 16.91
user 16.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242164/ft1_filtered_4FGL_J2216.9+2421_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/242164/ltcube_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.fits outfile=/scratch/kocevski/242164/expmap_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.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/242164/ltcube_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.fits
.....................!
real 192.50
user 186.97
sys 5.14

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/242164/ft1_filtered_4FGL_J2216.9+2421_daily_bin1714.fits scfile=/scratch/kocevski/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits outfile=/scratch/kocevski/242164/cmap_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242164/ft1_filtered_4FGL_J2216.9+2421_daily_bin1714.fits scfile=/scratch/kocevski/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits outfile=/scratch/kocevski/242164/cmap_HighResolution_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.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.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242164/ft1_filtered_4FGL_J2216.9+2421_daily_bin1714.fits', '/scratch/kocevski/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits', expMap='/scratch/kocevski/242164/expmap_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.fits', expCube='/scratch/kocevski/242164/ltcube_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242164/Model_4FGL_J2216.9+2421_daily_bin1714.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/242164/ft1_filtered_4FGL_J2216.9+2421_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/242164/ft2_4FGL_J2216.9+2421_daily_bin1714.fits
Exposure map: /scratch/kocevski/242164/expmap_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.fits
Exposure cube: /scratch/kocevski/242164/ltcube_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242164/Model_4FGL_J2216.9+2421_daily_bin1714.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8614.87765743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64352E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .26397       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.6934       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22051E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .20272       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15157E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .56677E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.1771       1.0000          .0000       .10000E+07
     9 'norm      '    .47329E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.1981       1.0000          .0000       .10000E+07
    11 'norm      '    1.6446       1.0000          .0000       .10000E+07
    12 'norm      '    3.1145       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.9793       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.274       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.8116       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94400       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92920       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=   8613.747     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      961 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    32.098       -.29278E-06** at limit **
   2  norm          .26541        1.4770        .17557E-06   -.74864E-02
   3  Prefactor     6.7073        7.0668        .11536E-05    .99974E-02
   4  Prefactor     .27756E-09    8.5851        .60448E-06** at limit **
   5  norm          .20222        .44594       -.13428E-06** at limit **
   6  Prefactor      .0000        11.534       -.83964E-07** at limit **
   7  norm          .16653E-09    .66753       -.71760E-07** at limit **
   8  Prefactor     .80802        64.782       -.58043E-05    .13305E-02
   9  norm           .0000        1.2159        .15558E-06** at limit **
  10  Prefactor     2.2541        3.2982        .89595E-06   -.73301E-02
  11  norm          1.6439        .98453        .74498E-07   -.18739E-02
  12  norm          3.1155        1.6366        .24318E-07    .92359E-02
  13  Prefactor     4.9779        2.1849       -.35736E-06    .55113E-02
  14  Prefactor     16.213        3.2054        .12425E-06    .39863E-01
  15  Prefactor     1.8114        .32545        .41378E-07    .18928E-02
  16  Normalizat    .94461        .22991        .69362E-05   -.14675E-03
  17  Prefactor     .92919        .10889       -.45939E-05   -.38253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  norm       = 0.265406
  Prefactor  = 6.70726
  Prefactor  = 2.77556e-10
  norm       = 0.202224
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 0.80802
  norm       = 0
  Prefactor  = 2.25413
  norm       = 1.6439
  norm       = 3.11553
  Prefactor  = 4.97789
  Prefactor  = 16.2132
  Prefactor  = 1.81144
  Normalizat = 0.944613
  Prefactor  = 0.929186
 **********
 **   18 **HESSE 
 **********

 FCN=   8613.747     FROM HESSE     STATUS=OK           267 CALLS     1228 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    33.349        .15009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .26541        1.5220        .10733E-02   -1.5698    
   3  Prefactor     6.7073        7.5526        .38762E-03   -1.5656    
   4  Prefactor     .27756E-09    8.5838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20222        .49164        .22552E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        11.521        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .16653E-09    .66283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .80802        10.563        .10547E-01   -1.5690    
   9  norm           .0000        1.2190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2541        8.3136        .69374E-03   -1.5678    
  11  norm          1.6439        .98995        .82336E-03   -1.5682    
  12  norm          3.1155        1.6579        .57430E-03   -1.5673    
  13  Prefactor     4.9779        18.711        .45044E-03   -1.5663    
  14  Prefactor     16.213        11.885        .24800E-03   -1.5627    
  15  Prefactor     1.8114        .33035        .49213E-02   -1.5439    
  16  Normalizat    .94461        .20250        .79901E-01   -.94910    
  17  Prefactor     .92919        .93180E-01    .45376E-01   -.95129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52211e-08
Minuit parameter uncertainties:
  1  0.000606784
  2  1.27113
  3  7.55266
  4  9.86704e-05
  5  0.491641
  6  8.08433e-06
  7  1.95345e-05
  8  5.84309
  9  6.56172e-06
  10  8.31364
  11  0.989951
  12  1.65791
  13  18.7114
  14  11.8847
  15  0.330349
  16  0.202664
  17  0.0931957
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  8.080e-01  5.843e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.292e-01  9.320e-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:  9.446e-01  2.027e-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: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242164/likelihoodResults_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.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) = 8613.73200376
delta logL = 0.0150658262828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8613.72733629
delta logL = 0.0197333006254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5219       1.0000          .0000       .10000E+07
     2 'Index     '    2.7347       1.0000          .0000       10.000    
     3 'Normalizat'    .93774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93036       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8613.727     FROM MIGRAD    STATUS=FAILED        93 CALLS      271 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5203        16.772        .34624E-04   -.22551E-02
   2  Index         2.7365        2.1707        .45691E-02   -.31719E-03
   3  Normalizat    .93754        .23098        .35489E-03   -.14307E-02
   4  Prefactor     .93046        .10875        .16882E-03   -.22371E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8613.727     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      346 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5203        16.772        .30374E-04   -1.5683    
   2  Index         2.7365        2.1707        .26549E-02   -.46978    
   3  Normalizat    .93754        .23098        .43075E-03   -.95153    
   4  Prefactor     .93046        .10875        .19286E-03   -.95085    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8613.727     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      373 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5194        14.383        .13850E-05   -.25004E-02
   2  Index         2.7368        2.0231        .18276E-03   -.20726E-04
   3  Normalizat    .93755        .23118        .70977E-04   -.20707E-03
   4  Prefactor     .93046        .10883        .33764E-04   -.31893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51939
  Index      = 2.73683
  Normalizat = 0.937546
  Prefactor  = 0.93046
 **********
 **   18 **HESSE 
 **********

 FCN=   8613.727     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5194        14.323        .37392E-06   -1.5683    
   2  Index         2.7368        2.0193        .36553E-04   -.46972    
   3  Normalizat    .93755        .23120        .14195E-04   -.95153    
   4  Prefactor     .93046        .10884        .67528E-05   -.95085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42278e-10
Minuit parameter uncertainties:
  1  9.33009
  2  2.09564
  3  0.231442
  4  0.108863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242164': 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) = 8613.72733527
delta logL = 0.0197343193049

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.519e+00  9.330e+00  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.737e+00  2.096e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.305e-01  1.089e-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:  9.375e-01  2.314e-01  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/242164/cmap_HighResolution_683596801_683856001_4FGL_J2216.9+2421_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2022-09-16 23:57:00.950621', job_id='242164', GAL2='0.93', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1663397820.95', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.97e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1714' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:57:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 242164: <4FGL_J2216.9+2421_daily_bin1714> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1714> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:45:25 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:46:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:46:13 2022
Terminated at Fri Sep 16 23:57:01 2022
Results reported at Fri Sep 16 23:57:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1714 334.238 24.3575 683596801 683856001 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 :                                   632.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             402.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            696 sec.

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

