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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1744
RA = 339.096, Dec = 28.4832
tmin = 691372801, tmax = 691632001
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='595769', job_status='RUN', time_executed='2022-12-02 01:57:59.103533', time_epoch_executed='1669975079.1' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595769/ft1_4FGL_J2236.3+2828_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595769/ft1_4FGL_J2236.3+2828_daily_bin1744.fits outfile=/scratch/kocevski/595769/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1744.fits ra=339.096 dec=28.4832 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.58
user 2.36
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.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/595769/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.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: 1473

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/595769/ltcube_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.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/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits
.....................!
real 12.33
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/595769/ltcube_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.fits outfile=/scratch/kocevski/595769/expmap_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.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/595769/ltcube_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.fits
.....................!
real 189.89
user 184.81
sys 4.70

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
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.3+2828 @ 339.096 28.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits scfile=/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits outfile=/scratch/kocevski/595769/cmap_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.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=339.096 yref=28.4832 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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits scfile=/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits outfile=/scratch/kocevski/595769/cmap_HighResolution_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.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=339.096 yref=28.4832 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595769/Model_4FGL_J2236.3+2828_daily_bin1744.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits.....................!
real 156.68
user 155.05
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits', '/scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits', expMap='/scratch/kocevski/595769/expmap_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.fits', expCube='/scratch/kocevski/595769/ltcube_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595769/Model_4FGL_J2236.3+2828_daily_bin1744.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.3+2828'

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.238e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/595769/ft1_filtered_4FGL_J2236.3+2828_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/595769/ft2_4FGL_J2236.3+2828_daily_bin1744.fits
Exposure map: /scratch/kocevski/595769/expmap_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.fits
Exposure cube: /scratch/kocevski/595769/ltcube_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595769/Model_4FGL_J2236.3+2828_daily_bin1744.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) = 15122.8859603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14005E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .97965       1.0000          .0000       .10000E+07
     3 'Prefactor '    12.299       1.0000          .0000       .10000E+07
     4 'Prefactor '    33.604       1.0000          .0000       .10000E+07
     5 'norm      '    2.3984       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.669       1.0000          .0000       .10000E+07
     7 'norm      '    3.1557       1.0000          .0000       .10000E+07
     8 'norm      '    2.9226       1.0000          .0000       .10000E+07
     9 'Prefactor '    .48714E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11464E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .55173E-05   1.0000          .0000       .10000E+07
    12 'norm      '    1.1336       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29196       1.0000          .0000       .10000E+07
    14 'Prefactor '    254.45       1.0000          .0000       .10000E+07
    15 'norm      '    .44954E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17339E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    .81097       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0691       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15121.91     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1054 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    5.0200        .83575E-07** at limit **
   2  norm          .97831        .54781        .40992E-07    .57676E-02
   3  Prefactor     10.290        26.457       -.81390E-05   -.66058E-01
   4  Prefactor     33.468        1.7345       -.65385E-07   -.15373E-01
   5  norm          2.4013        2.3649       -.46039E-06   -.30512E-02
   6  Prefactor     11.393        9.1618       -.10999E-05   -.13927E-02
   7  norm          3.1535        .96308       -.26081E-07    .40908E-03
   8  norm          2.9218        1.4091       -.12060E-06   -.45297E-02
   9  Prefactor     .14816E-06    9.6493        .29112E-05** at limit **
  10  Prefactor      .0000        3.0736       -.10544E-05** at limit **
  11  Prefactor     .10220E-06    9.7210       -.29507E-05** at limit **
  12  norm          1.1314        .82854       -.14500E-06    .71331E-04
  13  Prefactor     .10673E-03    154.00        .23908E-04** at limit **
  14  Prefactor     254.77        23.182        .23302E-05   -.56690    
  15  norm           .0000        3.6654       -.10785E-05** at limit **
  16  Prefactor     .83267E-09    6.4609        .99832E-06** at limit **
  17  Normalizat    .81354        .20916        .40321E-04    .96252E-04
  18  Prefactor     1.0688        .94224E-01   -.32265E-05    .35535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 0.978305
  Prefactor  = 10.2899
  Prefactor  = 33.4679
  norm       = 2.40127
  Prefactor  = 11.393
  norm       = 3.15346
  norm       = 2.92182
  Prefactor  = 1.48159e-07
  Prefactor  = 0
  Prefactor  = 1.02196e-07
  norm       = 1.13136
  Prefactor  = 0.000106726
  Prefactor  = 254.774
  norm       = 0
  Prefactor  = 8.32667e-10
  Normalizat = 0.813544
  Prefactor  = 1.06881
 **********
 **   18 **HESSE 
 **********

 FCN=   15121.91     FROM HESSE     STATUS=OK           288 CALLS     1342 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    5.0036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97831        .55061        .43044E-03   -1.5688    
   3  Prefactor     10.290        28.133        .28538E-03   -1.5644    
   4  Prefactor     33.468        13.779        .17253E-03   -1.5592    
   5  norm          2.4013        2.3639        .66094E-03   -1.5677    
   6  Prefactor     11.393        9.3050        .29301E-03   -1.5640    
   7  norm          3.1535        .96482        .57032E-03   -1.5672    
   8  norm          2.9218        1.4103        .59398E-03   -1.5674    
   9  Prefactor     .14816E-06    9.6428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.0788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10220E-06    9.7795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1314        .83510        .10952E-02   -1.5687    
  13  Prefactor     .10673E-03    17.435        .13202E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     254.77        47.314        .62698E-04   -1.5389    
  15  norm           .0000        3.6414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .83267E-09    6.4620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .81354        .19173        .98692E-01   -.99568    
  18  Prefactor     1.0688        .83220E-01    .38900E-01   -.90470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5078e-06
Minuit parameter uncertainties:
  1  5.10894e-05
  2  0.550607
  3  28.1334
  4  13.7791
  5  2.3639
  6  9.30501
  7  0.964817
  8  1.41032
  9  0.00239059
  10  8.72084e-06
  11  0.00199932
  12  0.835098
  13  0.0862728
  14  47.3139
  15  3.00378e-06
  16  0.000146814
  17  0.19189
  18  0.0832303
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.153e+00  9.648e-01  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.069e+00  8.323e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.135e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.02
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 3.09e-08
Energy Flux (Fixed Index): 4.10e-05 +/- 1.25e-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) = 15121.8961222
delta logL = 0.0159936764812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15121.8946948
delta logL = 0.0174210896002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1115       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2017       1.0000          .0000       5.0000    
     3 'Normalizat'    .80763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0706       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15121.89     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1116        14.066        .57458E-03    .11005E-01
   2  alpha         2.2017        3.6001        .31071        .40367E-04
   3  Normalizat    .80771        .15575        .99018E-01    .10749E-03
   4  Prefactor     1.0706        .65275E-01    .38829E-01    .44356E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11159
  alpha      = 2.20169
  Normalizat = 0.807711
  Prefactor  = 1.07058
 **********
 **   18 **HESSE 
 **********

 FCN=   15121.89     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1116        .98767        .63246E-05   -1.5673    
   2  alpha         2.2017        .30325        .12454E-01   -.11961    
   3  Normalizat    .80771        .20448        .43876E-03   -.99783    
   4  Prefactor     1.0706        .93400E-01    .17710E-03   -.90412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92771e-11
Minuit parameter uncertainties:
  1  0.987671
  2  0.304014
  3  0.204673
  4  0.093414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595769': 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) = 15121.8946947
delta logL = 0.0174211835783

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.112e+00  9.877e-01  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.202e+00  3.040e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.071e+00  9.341e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.077e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.97
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.20 +/- 0.30
Photon Flux (Free Index): 1.05e-07 +/- 3.68e-08
Energy Flux (Free Index): 3.97e-05 +/- 1.40e-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/595769/cmap_HighResolution_691372801_691632001_4FGL_J2236.3+2828_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='3.97e-05', photon_flux_error='3.09e-08', dlogl='1.74e-02', energy_flux='4.10e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2022-12-02 02:09:54.922841', photon_index_error2='0.30', photon_index2='2.20', ts='26.02', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.81', time_epoch_completed='1669975794.92', return_code='0', job_id='595769', GAL2='1.07', EG2='0.81', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.68e-08', ts2='25.97', photon_index='2.15' WHERE bin_id='1744' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 02:09:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 595769: <4FGL_J2236.3+2828_daily_bin1744> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1744> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec  2 01:55:29 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 01:55:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 01:55:30 2022
Terminated at Fri Dec  2 02:09:55 2022
Results reported at Fri Dec  2 02:09:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1744 339.096 28.4832 691372801 691632001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.3+2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

