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 41 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1715
RA = 334.238, Dec = 24.3575
tmin = 683856001, tmax = 684115201
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='242165', job_status='RUN', time_executed='2022-09-16 23:47:05.599482', time_epoch_executed='1663397225.6' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242165/ft1_4FGL_J2216.9+2421_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242165/ft2_4FGL_J2216.9+2421_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242165/ft1_4FGL_J2216.9+2421_daily_bin1715.fits outfile=/scratch/kocevski/242165/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1715.fits ra=334.238 dec=24.3575 rad=12.0 tmin=683856001.0 tmax=684115201.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.49
user 3.21
sys 0.23

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

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

Number of photons that the gtmktime cut: 797

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242165/ft1_filtered_4FGL_J2216.9+2421_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/242165/ft2_4FGL_J2216.9+2421_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/242165/ltcube_683856001_684115201_4FGL_J2216.9+2421_daily_bin1715.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/242165/ft2_4FGL_J2216.9+2421_daily_bin1715.fits
.....................!
real 14.84
user 14.36
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242165/ft1_filtered_4FGL_J2216.9+2421_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/242165/ft2_4FGL_J2216.9+2421_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/242165/ltcube_683856001_684115201_4FGL_J2216.9+2421_daily_bin1715.fits outfile=/scratch/kocevski/242165/expmap_683856001_684115201_4FGL_J2216.9+2421_daily_bin1715.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/242165/ltcube_683856001_684115201_4FGL_J2216.9+2421_daily_bin1715.fits
.....................!
real 194.86
user 188.29
sys 5.98

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/242165/ft1_filtered_4FGL_J2216.9+2421_daily_bin1715.fits scfile=/scratch/kocevski/242165/ft2_4FGL_J2216.9+2421_daily_bin1715.fits outfile=/scratch/kocevski/242165/cmap_683856001_684115201_4FGL_J2216.9+2421_daily_bin1715.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.57
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23380       1.0000          .0000       .10000E+07
     2 'norm      '    .60956       1.0000          .0000       .10000E+07
     3 'Prefactor '    .25423E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .40249       1.0000          .0000       .10000E+07
     5 'norm      '    .35083E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    103.13       1.0000          .0000       .10000E+07
     7 'norm      '    .98471E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.348       1.0000          .0000       .10000E+07
     9 'norm      '    .37005E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48095E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .61831E-03   1.0000          .0000       .10000E+07
    12 'norm      '    3.1923       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49216E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.5585       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5132       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0355       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=   8389.079     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1293 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        37.314       -.17324E-05** at limit **
   2  norm          .59515        2.7763       -.18858E-05   -.22968E-03
   3  Prefactor     .11102E-08    4.8365        .35624E-06** at limit **
   4  Prefactor     .55511E-10    61.689       -.32279E-05** at limit **
   5  norm           .0000        .20766       -.19971E-07** at limit **
   6  Prefactor     102.85        63.025       -.10166E-05    .64490E-03
   7  norm          .55511E-10    1.1286       -.51132E-07** at limit **
   8  Prefactor     11.350        1.0883        .27001E-07   -.19898E-01
   9  norm          .55511E-10    1.9469       -.29013E-06** at limit **
  10  Prefactor     .15155E-07    5.7721        .33395E-06** at limit **
  11  norm          .26423E-07    6.0801        .69352E-06** at limit **
  12  norm          3.1926        1.9638       -.13846E-07    .17777E-02
  13  Prefactor     .10103E-07    5.9422        .12198E-05** at limit **
  14  Prefactor     6.5402        8.6453        .12099E-06   -.12379E-03
  15  Prefactor     1.5129        .31094       -.34233E-06   -.98647E-04
  16  Normalizat    1.0347        .25955       -.83652E-05    .42500E-05
  17  Prefactor     1.0356        .12160       -.15743E-05    .46854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.595149
  Prefactor  = 1.11022e-09
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 102.848
  norm       = 5.55112e-11
  Prefactor  = 11.3497
  norm       = 5.55112e-11
  Prefactor  = 1.51545e-08
  norm       = 2.64233e-08
  norm       = 3.19258
  Prefactor  = 1.0103e-08
  Prefactor  = 6.5402
  Prefactor  = 1.51288
  Normalizat = 1.03466
  Prefactor  = 1.03557
 **********
 **   18 **HESSE 
 **********

 FCN=   8389.079     FROM HESSE     STATUS=OK           261 CALLS     1554 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        37.332        .11203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59515        2.7704        .68376E-03   -1.5693    
   3  Prefactor     .11102E-08    4.9876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    61.362        .89199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .20652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     102.85        63.112        .98478E-04   -1.5505    
   7  norm          .55511E-10    1.0935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.350        14.502        .29714E-03   -1.5641    
   9  norm          .55511E-10    1.9650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15155E-07    8.4950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .26423E-07    .87323        .27679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1926        1.9673        .56687E-03   -1.5672    
  13  Prefactor     .10103E-07    7.4442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5402        8.6571        .39163E-03   -1.5657    
  15  Prefactor     1.5129        .31091        .50668E-02   -1.5462    
  16  Normalizat    1.0347        .22619        .83412E-01   -.91878    
  17  Prefactor     1.0356        .10328        .40842E-01   -.91553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06301e-06
Minuit parameter uncertainties:
  1  5.87292e-06
  2  2.56813
  3  0.000150407
  4  8.59251e-05
  5  4.55828e-08
  6  63.1125
  7  1.65193e-05
  8  14.5019
  9  2.55529e-05
  10  0.000717977
  11  0.000303788
  12  1.96729
  13  0.000547768
  14  8.65715
  15  0.310907
  16  0.226403
  17  0.103303
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.135e+01  1.450e+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.036e+00  1.033e-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:  1.035e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242165/likelihoodResults_683856001_684115201_4FGL_J2216.9+2421_daily_bin1715.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) = 8388.86281939
delta logL = 0.215811166103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8388.83806869
delta logL = 0.240561873832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3708       1.0000          .0000       .10000E+07
     2 'Index     '    3.1282       1.0000          .0000       10.000    
     3 'Normalizat'    .99344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0485       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=   8388.838     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      269 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3655        80.621        .48153E-03    .10411E-01
   2  Index         3.1288        2.6962        .17533        .22174E-03
   3  Normalizat    .99350        .58763E-01    .84942E-01    .19034E-03
   4  Prefactor     1.0485        .26707E-01    .39997E-01    .21501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36549
  Index      = 3.12879
  Normalizat = 0.993502
  Prefactor  = 1.04851
 **********
 **   18 **HESSE 
 **********

 FCN=   8388.838     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      300 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3655        202.71        .17770E-04   -1.5666    
   2  Index         3.1288        6.3734        .61351E-02   -.38358    
   3  Normalizat    .99350        .30789        .37606E-03   -.93248    
   4  Prefactor     1.0485        .13632        .17294E-03   -.91130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35291e-09
Minuit parameter uncertainties:
  1  59.4978
  2  7.32877
  3  0.308438
  4  0.136369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242165': 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) = 8388.83806854
delta logL = 0.240562018129

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  4.365e+00  5.950e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  3.129e+00  7.329e+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.049e+00  1.364e-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.935e-01  3.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 334.238 24.358
Photon Index (Free Index): 3.13 +/- 7.33
Photon Flux (Free Index): 5.19e-08 +/- 8.48e-08
Energy Flux (Free Index): 9.77e-06 +/- 1.93e-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/242165/cmap_HighResolution_683856001_684115201_4FGL_J2216.9+2421_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', comment='SUCCESS', energy_flux2='9.77e-06', dlogl='2.41e-01', photon_flux2='5.19e-08', job_status='DONE', time_completed='2022-09-16 23:57:46.286362', photon_index_error2='7.33', photon_index2='3.13', ts='0.88', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.93e-05', EG='1.03', time_epoch_completed='1663397866.29', return_code='0', job_id='242165', GAL2='1.05', EG2='0.99', return_code2='102', photon_flux_error2='8.48e-08', ts2='1.45', photon_index='2.28' WHERE bin_id='1715' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:57:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 242165: <4FGL_J2216.9+2421_daily_bin1715> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1715> 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) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:46:14 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:14 2022
Terminated at Fri Sep 16 23:57:47 2022
Results reported at Fri Sep 16 23:57:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1715 334.238 24.3575 683856001 684115201 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 :                                   640.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             347.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            742 sec.

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

