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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1717
RA = 334.238, Dec = 24.3575
tmin = 684374401, tmax = 684633601
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='242168', job_status='RUN', time_executed='2022-09-16 23:48:03.493262', time_epoch_executed='1663397283.49' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242168

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242168/ft1_4FGL_J2216.9+2421_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242168/ft2_4FGL_J2216.9+2421_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242168/ft1_4FGL_J2216.9+2421_daily_bin1717.fits outfile=/scratch/kocevski/242168/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1717.fits ra=334.238 dec=24.3575 rad=12.0 tmin=684374401.0 tmax=684633601.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 5.02
user 4.78
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242168/ft2_4FGL_J2216.9+2421_daily_bin1717.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/242168/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/242168/ft1_filtered_4FGL_J2216.9+2421_daily_bin1717.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.55
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 717

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242168/ft1_filtered_4FGL_J2216.9+2421_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/242168/ft2_4FGL_J2216.9+2421_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/242168/ltcube_684374401_684633601_4FGL_J2216.9+2421_daily_bin1717.fits outfile=/scratch/kocevski/242168/expmap_684374401_684633601_4FGL_J2216.9+2421_daily_bin1717.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/242168/ltcube_684374401_684633601_4FGL_J2216.9+2421_daily_bin1717.fits
.....................!
real 193.03
user 188.22
sys 4.38

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/242168/ft1_filtered_4FGL_J2216.9+2421_daily_bin1717.fits scfile=/scratch/kocevski/242168/ft2_4FGL_J2216.9+2421_daily_bin1717.fits outfile=/scratch/kocevski/242168/cmap_684374401_684633601_4FGL_J2216.9+2421_daily_bin1717.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242168/ft1_filtered_4FGL_J2216.9+2421_daily_bin1717.fits scfile=/scratch/kocevski/242168/ft2_4FGL_J2216.9+2421_daily_bin1717.fits outfile=/scratch/kocevski/242168/cmap_HighResolution_684374401_684633601_4FGL_J2216.9+2421_daily_bin1717.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/242168/ft1_filtered_4FGL_J2216.9+2421_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/242168/ft2_4FGL_J2216.9+2421_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242168/Model_4FGL_J2216.9+2421_daily_bin1717.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/242168/ft1_filtered_4FGL_J2216.9+2421_daily_bin1717.fits.....................!
real 113.79
user 112.26
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.166       1.0000          .0000       .10000E+07
     2 'norm      '    .18319E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .27050       1.0000          .0000       .10000E+07
     4 'Prefactor '    .41023E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .85351       1.0000          .0000       .10000E+07
     6 'Prefactor '    .76696       1.0000          .0000       .10000E+07
     7 'norm      '    .37492E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    16.789       1.0000          .0000       .10000E+07
     9 'norm      '    13.208       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.3534       1.0000          .0000       .10000E+07
    11 'norm      '    1.9414       1.0000          .0000       .10000E+07
    12 'norm      '    .52783       1.0000          .0000       .10000E+07
    13 'Prefactor '    106.21       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.2733       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.1192       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .69013       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0594       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=   7937.351     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1251 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.748        131.88       -.10412E-05   -.53564E-02
   2  norm           .0000        1.2670        .16898E-08** at limit **
   3  Prefactor     .28842        47.251       -.10519E-05   -.13823E-02
   4  Prefactor      .0000        16.955        .59573E-07** at limit **
   5  norm          .85873        1.0413        .20188E-07    .12676E-02
   6  Prefactor     .28701E-05    228.91       -.16795E-05** at limit **
   7  norm           .0000        .39697        .51801E-08** at limit **
   8  Prefactor     16.958        17.339       -.20215E-06   -.31100E-02
   9  norm          13.150        7.4449        .32743E-07    .17521E-02
  10  Prefactor     5.3314        7.7280        .29264E-08    .18011E-03
  11  norm          1.9474        1.5734       -.25183E-07   -.70802E-03
  12  norm          .53299        1.2766       -.95175E-08    .32797E-03
  13  Prefactor     106.87        4.1667       -.32785E-08    .38987    
  14  Prefactor     7.9608        14.841       -.77425E-07   -.11049E-03
  15  Prefactor     3.1201        .49519       -.49740E-07   -.35420E-03
  16  Normalizat    .69213        .29435        .51894E-05   -.17888E-05
  17  Prefactor     1.0571        .13110       -.40601E-06   -.50437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.748
  norm       = 0
  Prefactor  = 0.288422
  Prefactor  = 0
  norm       = 0.858727
  Prefactor  = 2.87009e-06
  norm       = 0
  Prefactor  = 16.9582
  norm       = 13.1502
  Prefactor  = 5.33137
  norm       = 1.94736
  norm       = 0.53299
  Prefactor  = 106.871
  Prefactor  = 7.96076
  Prefactor  = 3.12008
  Normalizat = 0.692133
  Prefactor  = 1.0571
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.351     FROM HESSE     STATUS=OK           267 CALLS     1518 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.748        128.87        .18520E-03   -1.5567    
   2  norm           .0000        1.2395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .28842        5.8354        .73845E-02   -1.5697    
   4  Prefactor      .0000        16.597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .85873        1.0536        .49029E-03   -1.5689    
   6  Prefactor     .28701E-05    227.74        .55431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .39611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.958        17.231        .24416E-03   -1.5626    
   9  norm          13.150        7.4424        .27536E-03   -1.5635    
  10  Prefactor     5.3314        7.7294        .43412E-03   -1.5662    
  11  norm          1.9474        1.5867        .74480E-03   -1.5680    
  12  norm          .53299        1.4834        .34619E-02   -1.5693    
  13  Prefactor     106.87        63.984        .97039E-04   -1.5501    
  14  Prefactor     7.9608        15.124        .34831E-03   -1.5652    
  15  Prefactor     3.1201        .51863        .53937E-02   -1.5355    
  16  Normalizat    .69213        .26222        .10468       -1.0420    
  17  Prefactor     1.0571        .11489        .39387E-01   -.90850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85155e-06
Minuit parameter uncertainties:
  1  128.875
  2  2.39592e-06
  3  2.59465
  4  1.62933e-05
  5  1.05362
  6  0.0511348
  7  3.34673e-08
  8  17.2306
  9  7.44236
  10  7.72937
  11  1.58669
  12  1.48337
  13  63.9844
  14  15.1237
  15  0.518629
  16  0.262694
  17  0.114921
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.696e+01  1.723e+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.057e+00  1.149e-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:  6.921e-01  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.59e-05

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

Saving results to:
/scratch/kocevski/242168/likelihoodResults_684374401_684633601_4FGL_J2216.9+2421_daily_bin1717.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) = 7937.34921063
delta logL = 0.00198125421502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7937.34837006
delta logL = 0.00282182256524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.303       1.0000          .0000       .10000E+07
     2 'Index     '    2.3604       1.0000          .0000       10.000    
     3 'Normalizat'    .68655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0586       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=   7937.348     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      233 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.303        349.84        .24779E-03    .24232E-02
   2  Index         2.3604        3.3374        .24059        .10626E-03
   3  Normalizat    .68656        .85808E-01    .10507        .47387E-04
   4  Prefactor     1.0586        .30281E-01    .39430E-01   -.68792E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3027
  Index      = 2.36039
  Normalizat = 0.68656
  Prefactor  = 1.05862
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.348     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.303        20.139        .99115E-05   -1.5627    
   2  Index         2.3604        1.0638        .82489E-02   -.55615    
   3  Normalizat    .68656        .29217        .46582E-03   -1.0443    
   4  Prefactor     1.0586        .12912        .17247E-03   -.90800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62613e-10
Minuit parameter uncertainties:
  1  20.1392
  2  1.07525
  3  0.292834
  4  0.129157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242168': 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) = 7937.34837006
delta logL = 0.00282182273804

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.630e+01  2.014e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.360e+00  1.075e+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.059e+00  1.292e-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:  6.866e-01  2.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.36 +/- 1.08
Photon Flux (Free Index): 4.42e-08 +/- 6.81e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.62e-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/242168/cmap_HighResolution_684374401_684633601_4FGL_J2216.9+2421_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='1.53e-05', photon_flux_error='4.09e-08', dlogl='2.82e-03', energy_flux='1.56e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2022-09-16 23:58:09.327411', photon_index_error2='1.08', photon_index2='2.36', ts='1.61', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.62e-05', EG='0.69', time_epoch_completed='1663397889.33', return_code='0', job_id='242168', GAL2='1.06', EG2='0.69', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='6.81e-08', ts2='1.62', photon_index='2.28' WHERE bin_id='1717' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:58:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 242168: <4FGL_J2216.9+2421_daily_bin1717> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1717> 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) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:46:15 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:15 2022
Terminated at Fri Sep 16 23:58:10 2022
Results reported at Fri Sep 16 23:58:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1717 334.238 24.3575 684374401 684633601 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 :                                   607.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            765 sec.

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

