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 44 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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_J2236.4-2309_daily_bin1707
RA = 339.125, Dec = -23.1552
tmin = 681782401, tmax = 682041601
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='551515', job_status='RUN', time_executed='2022-08-13 00:36:14.515959', time_epoch_executed='1660376174.52' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551515/ft1_4FGL_J2236.4-2309_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551515/ft1_4FGL_J2236.4-2309_daily_bin1707.fits outfile=/scratch/kocevski/551515/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1707.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=681782401.0 tmax=682041601.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.44
user 5.20
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.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/551515/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.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.50
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 455

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551515/ltcube_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.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/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits
.....................!
real 11.76
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551515/ltcube_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.fits outfile=/scratch/kocevski/551515/expmap_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.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/551515/ltcube_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.fits
.....................!
real 190.91
user 186.02
sys 4.50

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

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits scfile=/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits outfile=/scratch/kocevski/551515/cmap_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.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.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits scfile=/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits outfile=/scratch/kocevski/551515/cmap_HighResolution_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.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.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551515/Model_4FGL_J2236.4-2309_daily_bin1707.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/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits.....................!
real 46.55
user 45.18
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits', '/scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits', expMap='/scratch/kocevski/551515/expmap_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.fits', expCube='/scratch/kocevski/551515/ltcube_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551515/Model_4FGL_J2236.4-2309_daily_bin1707.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/551515/ft1_filtered_4FGL_J2236.4-2309_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/551515/ft2_4FGL_J2236.4-2309_daily_bin1707.fits
Exposure map: /scratch/kocevski/551515/expmap_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.fits
Exposure cube: /scratch/kocevski/551515/ltcube_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551515/Model_4FGL_J2236.4-2309_daily_bin1707.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) = 4919.07206319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .78224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2657       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24181E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.316       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .43165       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.247       1.0000         .10000E-03   10000.    
    15 'norm      '    .11213E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7345       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13323E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0230       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5817       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8366       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .27663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4918.872     FROM MIGRAD    STATUS=CONVERGED    977 CALLS     3299 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1501        .15544E-02** at limit **
   2  Prefactor     .10000E-03    15.751        .18142E-02** at limit **
   3  norm          .78224        .36279        .27892E-04    .63789E-03
   4  Prefactor     4.2666        5.9307        .97539E-03    .26226E-03
   5  Prefactor     50.056        23.776        .56683E-04    .10830E-04
   6  Prefactor     .10165E-03    27.451        .84470E-01** at limit **
   7  Prefactor     73.333        79.628        .46889E-04    .30114E-04
   8  norm          .10000E-03    9.0863        .18142E-02** at limit **
   9  Prefactor     .10000E-03    23.980        .36285E-03** at limit **
  10  norm          .43216        1.2474        .11994E-03    .10227E-03
  11  norm          .10000E-03    .86547        .63284E-03** at limit **
  12  Prefactor     .10000E-03    17.104        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.2412        .17068E-02** at limit **
  14  Prefactor     37.221        22.578        .65670E-04    .26435E-03
  15  norm          .10000E-03    1.9396        .13836E-02** at limit **
  16  norm          2.7363        4.9789        .19438E-03   -.44742E-04
  17  Prefactor     34.804        42.331        .67942E-04    .18068E-03
  18  Prefactor     .10000E-03    21.724        .18142E-02** at limit **
  19  Prefactor     .10000E-03    41.390        .36116E-02** at limit **
  20  norm          1.0243        .74550        .45893E-04   -.43029E-03
  21  Prefactor     8.2742        9.4417        .13936E-03    .13623E-04
  22  Prefactor     6.5858        9.5090        .78212E-03    .18577E-04
  23  Normalizat    1.8365        .25447        .21142E-03    .60723E-03
  24  Prefactor     .27677        .20512        .40538E-03    .33099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.782244
  Prefactor  = 4.26655
  Prefactor  = 50.0555
  Prefactor  = 0.000101652
  Prefactor  = 73.3332
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.432156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.2211
  norm       = 0.000100001
  norm       = 2.73632
  Prefactor  = 34.8043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02427
  Prefactor  = 8.27422
  Prefactor  = 6.5858
  Normalizat = 1.8365
  Prefactor  = 0.276773
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.872     FROM HESSE     STATUS=OK           385 CALLS     3684 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1501        .31087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .78224        .36279        .11157E-05   -1.5531    
   4  Prefactor     4.2666        5.9299        .39015E-04   -1.5295    
   5  Prefactor     50.056        23.777        .22673E-05   -1.4292    
   6  Prefactor     .10165E-03    24.218        .91406E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     73.333        79.619        .93777E-05   -1.3993    
   8  norm          .10000E-03    9.0868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.982        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .43216        1.2468        .47976E-05   -1.5577    
  11  norm          .10000E-03    .86552        .12657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2423        .34136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.221        22.553        .13134E-04   -1.4487    
  15  norm          .10000E-03    1.9398        .27672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7363        4.9775        .77752E-05   -1.5377    
  17  Prefactor     34.804        42.331        .13588E-04   -1.4527    
  18  Prefactor     .10000E-03    21.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.632        .72233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0243        .74245        .18357E-05   -1.5506    
  21  Prefactor     8.2742        9.4415        .55745E-05   -1.5133    
  22  Prefactor     6.5858        9.5050        .31285E-04   -1.5195    
  23  Normalizat    1.8365        .25443        .42284E-04   -.68715    
  24  Prefactor     .27677        .20507        .16215E-04   -1.2365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11038e-09
Minuit parameter uncertainties:
  1  3.72321e-06
  2  3.82468e-05
  3  0.36279
  4  5.93071
  5  23.7816
  6  0.012657
  7  79.7355
  8  1.35311e-05
  9  0.000198843
  10  1.24692
  11  2.09108e-06
  12  8.04027e-05
  13  1.85868e-05
  14  22.5578
  15  8.53694e-05
  16  4.97827
  17  42.3675
  18  1.1896e-05
  19  8.24035e-05
  20  0.742461
  21  9.44315
  22  9.5072
  23  0.254617
  24  0.205613
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.988e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  2.768e-01  2.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.837e+00  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 9.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551515/likelihoodResults_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.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) = 4918.87251314
delta logL = -0.000198978471417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4918.68400987
delta logL = 0.188304290242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80429E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9998       1.0000          .0000       10.000    
     3 'Normalizat'    1.7995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4918.684     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      579 TOTAL
                     EDM=   .95E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80216E-03    .15883E-02    .36392E-05** at limit **
   2  Index        10.0000        7.4792        .50000    ** at limit **
   3  Normalizat    1.7997        .25711        .21307E-03    .22410E-04
   4  Prefactor     .29749        .20505        .39183E-03    .12389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000802155
  Index      = 10
  Normalizat = 1.79969
  Prefactor  = 0.297491
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.684     FROM HESSE     STATUS=OK            31 CALLS      610 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80216E-03    .15824E-02    .72784E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        7.4649        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.7997        .25722        .85226E-05   -.69672    
   4  Prefactor     .29749        .20512        .15673E-04   -1.2241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45735e-13
Minuit parameter uncertainties:
  1  0.00158237
  2  2.76258e-06
  3  0.257411
  4  0.205618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551515': 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) = 4918.68400603
delta logL = 0.188308127192

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.022e-04  1.582e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  2.763e-06  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  2.975e-01  2.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.800e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.125 -23.155

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/551515/cmap_HighResolution_681782401_682041601_4FGL_J2236.4-2309_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', job_status='DONE', photon_flux_upper_limit='9.80e-08', time_completed='2022-08-13 00:46:40.024559', job_id='551515', GAL2='0.30', fit_tolerance='1e-08', EG2='1.80', EG='1.84', time_epoch_completed='1660376800.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='1.88e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1707' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:46:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 551515: <4FGL_J2236.4-2309_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:21 2022
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:22 2022
Terminated at Sat Aug 13 00:46:40 2022
Results reported at Sat Aug 13 00:46:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1707 339.125 -23.1552 681782401 682041601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            679 sec.

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

