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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1764
RA = 334.238, Dec = 24.3575
tmin = 696556801, tmax = 696816001
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='466055', job_status='RUN', time_executed='2023-01-31 02:04:07.405747', time_epoch_executed='1675159447.41' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/466055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/466055/ft1_4FGL_J2216.9+2421_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/466055/ft2_4FGL_J2216.9+2421_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/466055/ft1_4FGL_J2216.9+2421_daily_bin1764.fits outfile=/scratch/kocevski/466055/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1764.fits ra=334.238 dec=24.3575 rad=12.0 tmin=696556801.0 tmax=696816001.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.73
user 3.49
sys 0.21

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

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

Number of photons that the gtmktime cut: 718

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/466055/ft1_filtered_4FGL_J2216.9+2421_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/466055/ft2_4FGL_J2216.9+2421_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/466055/ltcube_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.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/466055/ft2_4FGL_J2216.9+2421_daily_bin1764.fits
.....................!
real 16.92
user 16.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/466055/ft1_filtered_4FGL_J2216.9+2421_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/466055/ft2_4FGL_J2216.9+2421_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/466055/ltcube_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.fits outfile=/scratch/kocevski/466055/expmap_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.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/466055/ltcube_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.fits
.....................!
real 193.47
user 187.52
sys 5.37

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/466055/ft1_filtered_4FGL_J2216.9+2421_daily_bin1764.fits scfile=/scratch/kocevski/466055/ft2_4FGL_J2216.9+2421_daily_bin1764.fits outfile=/scratch/kocevski/466055/cmap_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/466055/ft1_filtered_4FGL_J2216.9+2421_daily_bin1764.fits scfile=/scratch/kocevski/466055/ft2_4FGL_J2216.9+2421_daily_bin1764.fits outfile=/scratch/kocevski/466055/cmap_HighResolution_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.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.62
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13397E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .17414E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.3201       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.1576       1.0000          .0000       .10000E+07
     5 'norm      '    1.3007       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.807       1.0000          .0000       .10000E+07
     7 'norm      '    .22454E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .44195E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .18763E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .19759E-03   1.0000          .0000       .10000E+07
    11 'norm      '    2.0968       1.0000          .0000       .10000E+07
    12 'norm      '    .87763E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.8508       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12922E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3271       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1303       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .83578       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=   7520.936     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      973 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21649E-08    41.337        .10059E-04** at limit **
   2  norm           .0000        .73142       -.56249E-07** at limit **
   3  Prefactor     5.3220        5.2536        .43893E-07    .12202E-02
   4  Prefactor     7.0236        1.1370       -.34111E-07    .38988E-01
   5  norm          1.3011        .77670        .42350E-06    .52930E-02
   6  Prefactor     14.398        40.455        .22224E-04    .10768E-02
   7  norm          .55511E-10    .68661       -.12995E-05** at limit **
   8  Prefactor     .11102E-09    5.6169        .21597E-05** at limit **
   9  norm          .16653E-09    1.4144       -.66554E-06** at limit **
  10  Prefactor     .33307E-09    26.341        .21785E-04** at limit **
  11  norm          2.0974        1.0894       -.55317E-06    .18385E-01
  12  norm           .0000        .44834        .19296E-05** at limit **
  13  Prefactor     5.9293        1.2105        .40228E-06   -.18582E-02
  14  Prefactor     .22204E-09    4.4370       -.12849E-05** at limit **
  15  Prefactor     1.3271        .29180       -.13526E-05   -.89642E-03
  16  Normalizat    1.1299        .24771       -.10562E-03    .31193E-04
  17  Prefactor     .83560        .11647        .35238E-04   -.32024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16493e-09
  norm       = 0
  Prefactor  = 5.32199
  Prefactor  = 7.02356
  norm       = 1.30111
  Prefactor  = 14.3976
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 1.66533e-10
  Prefactor  = 3.33067e-10
  norm       = 2.09737
  norm       = 0
  Prefactor  = 5.92933
  Prefactor  = 2.22045e-10
  Prefactor  = 1.3271
  Normalizat = 1.12992
  Prefactor  = 0.835604
 **********
 **   18 **HESSE 
 **********

 FCN=   7520.936     FROM HESSE     STATUS=OK           261 CALLS     1234 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21649E-08    41.448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .73180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3220        5.2524        .43550E-03   -1.5662    
   4  Prefactor     7.0236        21.739        .37470E-03   -1.5655    
   5  norm          1.3011        .77930        .96847E-03   -1.5685    
   6  Prefactor     14.398        40.297        .27964E-03   -1.5632    
   7  norm          .55511E-10    .33640        .19032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    5.6216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16653E-09    1.4168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33307E-09    25.820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0974        1.0916        .71250E-03   -1.5679    
  12  norm           .0000        .45164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9293        39.651        .41495E-03   -1.5659    
  14  Prefactor     .22204E-09    4.4478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3271        .30125        .48080E-02   -1.5478    
  16  Normalizat    1.1299        .20951        .73032E-01   -.88797    
  17  Prefactor     .83560        .97954E-01    .44181E-01   -.98429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04823e-07
Minuit parameter uncertainties:
  1  0.000599791
  2  2.82723e-06
  3  5.25242
  4  21.7388
  5  0.779305
  6  40.2983
  7  9.50899e-06
  8  5.09325e-05
  9  3.23425e-05
  10  0.000184886
  11  1.0916
  12  3.80453e-06
  13  30.6664
  14  6.62457e-05
  15  0.301249
  16  0.209663
  17  0.097974
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.356e-01  9.797e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.130e+00  2.097e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/466055/likelihoodResults_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7520.93930265
delta logL = -0.00351995703568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7520.93578272
delta logL = -2.35559127759e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11074E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.4712       1.0000          .0000       10.000    
     3 'Normalizat'    1.1299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83562       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7520.936     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      229 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.9102        .42118E-03** at limit **
   2  Index         1.2362        .77081       -.17215E-04     .0000    
   3  Normalizat    1.1299        1.1367        .19060E-04   -.72408E-04
   4  Prefactor     .83561        1.1832       -.87918E-05    .31374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.23618
  Normalizat = 1.12992
  Prefactor  = 0.835606
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7520.936     FROM HESSE     STATUS=FAILED         9 CALLS      238 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.9102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .10833        1.2325       -.17215E-04   -.85225    
   3  Normalizat    1.1299        1.1367        .19060E-04   -.88797    
   4  Prefactor     .83561        1.1832       -.87918E-05   -.98429    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.98417e-11
Minuit parameter uncertainties:
  1  1.4427e-05
  2  0.778033
  3  1.16289
  4  1.22256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/466055': 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): 101
logL (Free Index) = 7520.93578269
delta logL = 1.09139364213e-10

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.356e-01  1.223e+00  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.130e+00  1.163e+00  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/466055/cmap_HighResolution_696556801_696816001_4FGL_J2216.9+2421_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2023-01-31 02:13:41.921541', job_id='466055', GAL2='0.84', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1675160021.92', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.09e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1764' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 02:13:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 466055: <4FGL_J2216.9+2421_daily_bin1764> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1764> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 02:00:31 2023
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 02:01:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 02:01:16 2023
Terminated at Tue Jan 31 02:13:42 2023
Results reported at Tue Jan 31 02:13:42 2023

Your job looked like:

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

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

