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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1729
RA = 334.238, Dec = 24.3575
tmin = 687484801, tmax = 687744001
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='378703', job_status='RUN', time_executed='2022-10-18 00:39:05.538599', time_epoch_executed='1666078745.54' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378703/ft1_4FGL_J2216.9+2421_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378703/ft2_4FGL_J2216.9+2421_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378703/ft1_4FGL_J2216.9+2421_daily_bin1729.fits outfile=/scratch/kocevski/378703/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1729.fits ra=334.238 dec=24.3575 rad=12.0 tmin=687484801.0 tmax=687744001.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.59
user 3.37
sys 0.21

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

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

Number of photons that the gtmktime cut: 684

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378703/ft1_filtered_4FGL_J2216.9+2421_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/378703/ft2_4FGL_J2216.9+2421_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/378703/ltcube_687484801_687744001_4FGL_J2216.9+2421_daily_bin1729.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/378703/ft2_4FGL_J2216.9+2421_daily_bin1729.fits
.....................!
real 15.57
user 15.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378703/ft1_filtered_4FGL_J2216.9+2421_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/378703/ft2_4FGL_J2216.9+2421_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/378703/ltcube_687484801_687744001_4FGL_J2216.9+2421_daily_bin1729.fits outfile=/scratch/kocevski/378703/expmap_687484801_687744001_4FGL_J2216.9+2421_daily_bin1729.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/378703/ltcube_687484801_687744001_4FGL_J2216.9+2421_daily_bin1729.fits
.....................!
real 192.42
user 186.88
sys 5.19

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378703/ft1_filtered_4FGL_J2216.9+2421_daily_bin1729.fits scfile=/scratch/kocevski/378703/ft2_4FGL_J2216.9+2421_daily_bin1729.fits outfile=/scratch/kocevski/378703/cmap_HighResolution_687484801_687744001_4FGL_J2216.9+2421_daily_bin1729.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7283       1.0000          .0000       .10000E+07
     2 'norm      '    1.4826       1.0000          .0000       .10000E+07
     3 'Prefactor '    .53541E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .31773E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .10891E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16307E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .38247E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    45.623       1.0000          .0000       .10000E+07
     9 'norm      '    4.2022       1.0000          .0000       .10000E+07
    10 'Prefactor '    .40757E-01   1.0000          .0000       .10000E+07
    11 'norm      '    3.6548       1.0000          .0000       .10000E+07
    12 'norm      '    3.1967       1.0000          .0000       .10000E+07
    13 'Prefactor '    .59376       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16585E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.3250       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .81346       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1610       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=   7031.097     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1213 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9749        412.57       -.52835E-05   -.16281E-03
   2  norm          1.4734        2.6838       -.37822E-07   -.25054E-03
   3  Prefactor      .0000        7.8586        .12703E-06** at limit **
   4  Prefactor      .0000        19.138        .12688E-06** at limit **
   5  norm           .0000        .80216       -.11479E-06** at limit **
   6  Prefactor      .0000        26.779       -.31521E-06** at limit **
   7  norm           .0000        .39712        .31388E-07** at limit **
   8  Prefactor     45.761        27.347        .56188E-07    .37749E-03
   9  norm          4.1938        5.1218        .46138E-07    .20322E-03
  10  Prefactor     .55511E-10    35.179        .38784E-06** at limit **
  11  norm          3.6544        1.8277       -.79193E-08   -.48108E-03
  12  norm          3.1987        2.1776       -.49233E-07   -.71917E-04
  13  Prefactor      .0000        260.12       -.17983E-05** at limit **
  14  Prefactor      .0000        17.063        .29983E-08** at limit **
  15  Prefactor     6.3282        .69876        .57571E-06    .21523E-02
  16  Normalizat    .81412        .32323       -.34035E-05    .31309E-04
  17  Prefactor     1.1604        .14679        .28129E-05    .11003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.9749
  norm       = 1.47344
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 45.7607
  norm       = 4.19376
  Prefactor  = 5.55112e-11
  norm       = 3.6544
  norm       = 3.19866
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.32824
  Normalizat = 0.814125
  Prefactor  = 1.16042
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.097     FROM HESSE     STATUS=OK           265 CALLS     1478 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9749        399.38        .41943E-03   -1.5648    
   2  norm          1.4734        2.7120        .88095E-03   -1.5684    
   3  Prefactor      .0000        7.8439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        19.133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .78993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        26.752        .17293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .39628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.761        27.416        .14806E-03   -1.5573    
   9  norm          4.1938        5.1500        .49137E-03   -1.5667    
  10  Prefactor     .55511E-10    11.199        .87142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6544        1.8280        .52814E-03   -1.5670    
  12  norm          3.1987        2.1773        .56646E-03   -1.5672    
  13  Prefactor      .0000        250.31        .69789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        16.336        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3282        .69576        .39901E-02   -1.5205    
  16  Normalizat    .81412        .29280        .10366       -.99547    
  17  Prefactor     1.1604        .13043        .35627E-01   -.87558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63208e-10
Minuit parameter uncertainties:
  1  119.748
  2  2.71203
  3  4.0206e-06
  4  3.55584e-05
  5  3.63146e-06
  6  4.08314e-05
  7  3.05433e-07
  8  27.4163
  9  5.14997
  10  4.13904e-05
  11  1.82795
  12  2.17729
  13  3.79351e-05
  14  2.75635e-06
  15  0.695765
  16  0.293366
  17  0.130461
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  4.576e+01  2.742e+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.160e+00  1.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  8.141e-01  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 6.51e-08
Energy Flux (Fixed Index): 4.22e-05 +/- 2.53e-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) = 7030.82861338
delta logL = 0.26829216025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7030.78344552
delta logL = 0.313460018617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.010       1.0000          .0000       .10000E+07
     2 'Index     '    2.8110       1.0000          .0000       10.000    
     3 'Normalizat'    .74185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1842       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=   7030.783     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      247 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.010        214.59        .20413E-03    .47899E-02
   2  Index         2.8112        2.6008        .11711        .44816E-04
   3  Normalizat    .74186        .12126        .10814       -.46307E-04
   4  Prefactor     1.1842        .47256E-01    .35016E-01   -.19229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0101
  Index      = 2.81118
  Normalizat = 0.741863
  Prefactor  = 1.18416
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.783     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.010        51.944        .81651E-05   -1.5610    
   2  Index         2.8112        1.2100        .43419E-02   -.45311    
   3  Normalizat    .74186        .34175        .47946E-03   -1.0226    
   4  Prefactor     1.1842        .15421        .17991E-03   -.86820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42866e-09
Minuit parameter uncertainties:
  1  51.9453
  2  1.22506
  3  0.342738
  4  0.154264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378703': 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) = 7030.78344537
delta logL = 0.313460163489

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.184e+00  1.543e-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.419e-01  3.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.81 +/- 1.23
Photon Flux (Free Index): 1.51e-07 +/- 9.39e-08
Energy Flux (Free Index): 3.36e-05 +/- 2.50e-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/378703/cmap_HighResolution_687484801_687744001_4FGL_J2216.9+2421_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.36e-05', photon_flux_error='6.51e-08', dlogl='3.13e-01', energy_flux='4.22e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2022-10-18 00:48:11.798413', photon_index_error2='1.23', photon_index2='2.81', ts='4.59', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.50e-05', EG='0.81', time_epoch_completed='1666079291.8', return_code='0', job_id='378703', GAL2='1.18', EG2='0.74', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='9.39e-08', ts2='5.36', photon_index='2.28' WHERE bin_id='1729' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:48:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 378703: <4FGL_J2216.9+2421_daily_bin1729> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1729> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:27 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:35:28 2022
Terminated at Tue Oct 18 00:48:12 2022
Results reported at Tue Oct 18 00:48:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1729 334.238 24.3575 687484801 687744001 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 :                                   548.50 sec.
    Max Memory :                                 1144 MB
    Average Memory :                             235.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            765 sec.

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

