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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1773
RA = 339.144, Dec = -14.5557
tmin = 698889601, tmax = 699148801
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='805847', job_status='RUN', time_executed='2023-02-27 10:36:52.128253', time_epoch_executed='1677523012.13' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805847/ft1_4FGL_J2236.5-1433_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805847/ft1_4FGL_J2236.5-1433_daily_bin1773.fits outfile=/scratch/kocevski/805847/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1773.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=698889601.0 tmax=699148801.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.93
user 2.73
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.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/805847/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.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: 12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/805847/ltcube_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.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/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits
.....................!
real 12.82
user 12.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/805847/ltcube_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.fits outfile=/scratch/kocevski/805847/expmap_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.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/805847/ltcube_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.fits
.....................!
real 189.09
user 184.72
sys 4.03

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

Setting source of interest to:
4FGL J2236.5-1433 @ 339.144 -14.5557

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits scfile=/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits outfile=/scratch/kocevski/805847/cmap_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.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.144 yref=-14.5557 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits scfile=/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits outfile=/scratch/kocevski/805847/cmap_HighResolution_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.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.144 yref=-14.5557 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.54
user 0.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805847/Model_4FGL_J2236.5-1433_daily_bin1773.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/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits............!
real 14.63
user 13.40
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits', '/scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits', expMap='/scratch/kocevski/805847/expmap_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.fits', expCube='/scratch/kocevski/805847/ltcube_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805847/Model_4FGL_J2236.5-1433_daily_bin1773.xml', optimizer='MINUIT')

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

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.854e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/805847/ft1_filtered_4FGL_J2236.5-1433_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/805847/ft2_4FGL_J2236.5-1433_daily_bin1773.fits
Exposure map: /scratch/kocevski/805847/expmap_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.fits
Exposure cube: /scratch/kocevski/805847/ltcube_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805847/Model_4FGL_J2236.5-1433_daily_bin1773.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) = 143.646533878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22948E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11716       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3260       1.0000          .0000       .10000E+07
     4 'Prefactor '    25.707       1.0000          .0000       .10000E+07
     5 'Prefactor '    .84471E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2591       1.0000          .0000       .10000E+07
     7 'norm      '    2.6887       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.1762       1.0000          .0000       .10000E+07
     9 'Prefactor '    56.074       1.0000          .0000       .10000E+07
    10 'norm      '    .99781E+06   1.0000          .0000       .10000E+07
    11 'norm      '    .12954E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1491       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24222       1.0000          .0000       .10000E+07
    14 'norm      '    .18175E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .27224E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .13922E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .85289E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   142.9882     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1387 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        44.129       -.79783E-07** at limit **
   2  Prefactor      .0000        309.19       -.58559E-08** at limit **
   3  Prefactor     2.3503        1.0502        .11349E-06   -.39659E-04
   4  Prefactor     25.950        85.696        .68312E-04    .33572E-02
   5  Prefactor      .0000        14.769       -.23611E-07** at limit **
   6  Prefactor     5.2798        1.0213        .64598E-07   -.53113E-04
   7  norm          2.8215        1.5304        .58047E-06   -.23871E-03
   8  Prefactor      .0000        530.89        .12286E-04** at limit **
   9  Prefactor     .16268E-04    3779.8       -.26905E-04** at limit **
  10  norm          .99781E+06    22.224        .40642E-06   -.14034    
  11  norm           .0000        85.311       -.20766E-05** at limit **
  12  Prefactor      .0000        2083.6        .97490E-05** at limit **
  13  Prefactor      .0000        401.84        .72696E-06** at limit **
  14  norm           .0000        31.957       -.78439E-08** at limit **
  15  Prefactor     .11102E-09    303.14        .66274E-05** at limit **
  16  Prefactor      .0000        63.422       -.15871E-06** at limit **
  17  Prefactor      .0000        45.879        .93127E-07** at limit **
  18  Normalizat    .10000E-01    .28336        .53450E-05** at limit **
  19  Prefactor     .71195        .30255       -.16285E-03    .99295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.35025
  Prefactor  = 25.9499
  Prefactor  = 0
  Prefactor  = 5.27984
  norm       = 2.82154
  Prefactor  = 0
  Prefactor  = 1.62675e-05
  norm       = 997808
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.71195
 **********
 **   18 **HESSE 
 **********

 FCN=   142.9882     FROM HESSE     STATUS=OK           290 CALLS     1677 TOTAL
                     EDM=   .77E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        44.137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        308.79        .13490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3503        .21824E+06    .67221E-03   -1.5677    
   4  Prefactor     25.950        84.748        .19727E-03   -1.5606    
   5  Prefactor      .0000        14.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2798        .21797E+06    .43806E-03   -1.5662    
   7  norm          2.8215        .22985E+06    .62110E-03   -1.5674    
   8  Prefactor      .0000        529.69        .10554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16268E-04    3716.0        .13355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .99781E+06    93698.        .21369E-04    1.4771    
  11  norm           .0000        85.285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2066.4        .70261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        401.11        .11068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        31.972        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    302.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        63.429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        45.883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .25152        .89441E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .71195        .30050        .29114E-01   -1.0306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00765962
Minuit parameter uncertainties:
  1  6.27626e-06
  2  6.18891e-07
  3  1490.35
  4  84.7519
  5  2.12364e-07
  6  2232.33
  7  1679.74
  8  2.73599e-05
  9  0.49204
  10  29165.1
  11  3.02492e-05
  12  0.000370281
  13  1.47833e-05
  14  2.45456e-06
  15  0.000382432
  16  5.50317e-06
  17  1.54623e-05
  18  6.56414e-08
  19  0.301187
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  9.978e+05  2.917e+04  0.000e+00  1.000e+06 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.120e-01  3.012e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.000e-02  6.564e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.97
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.87e-02 +/- 1.13e-03
Energy Flux (Fixed Index): 1.89e+01 +/- 5.53e-01

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) = 136.025239151
delta logL = 6.96299284885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 136.007868615
delta logL = 6.98036338571

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   136.0079     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      191 TOTAL
                     EDM=   .27E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E+07    .15773E+06    .19531E-02** at limit **
   2  alpha         5.0000        .20767       -.63157E-05** at limit **
   3  Normalizat    .10000E-01    .28192       -.58396E-05** at limit **
   4  Prefactor     .71159        .28465        .18453E-06    .21282E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1e+06
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.711591
 **********
 **   18 **HESSE 
 **********

 FCN=   136.0079     FROM HESSE     STATUS=OK            25 CALLS      216 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E+07    .15773E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .20748        .23417E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .28322        .19089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71159        .28216        .12547E-03   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49721e-12
Minuit parameter uncertainties:
  1  0.000347796
  2  6.08624e-09
  3  9.42685e-08
  4  0.282732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805847': 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) = 136.007868607
delta logL = 6.98036339283

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e+06  3.478e-04  0.000e+00  1.000e+06 ( 1.000e-11)
258        alpha:  5.000e+00  6.086e-09  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.116e-01  2.827e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.000e-02  9.427e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.87
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.27e+00 +/- 2.19e-08
Energy Flux (Free Index): 3.06e+02 +/- 2.80e-06

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/805847/cmap_HighResolution_698889601_699148801_4FGL_J2236.5-1433_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.87e-02', energy_flux2='3.06e+02', photon_flux_error='1.13e-03', dlogl='6.98e+00', energy_flux='1.89e+01', photon_flux2='2.27e+00', job_status='DONE', time_completed='2023-02-27 10:42:02.687765', photon_index_error2='0.00', photon_index2='5.00', ts='38.97', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.80e-06', EG='0.01', time_epoch_completed='1677523322.69', return_code='0', job_id='805847', GAL2='0.71', EG2='0.01', return_code2='0', energy_flux_error='5.53e-01', photon_flux_error2='2.19e-08', ts2='52.87', photon_index='2.06' WHERE bin_id='1773' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:42:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 805847: <4FGL_J2236.5-1433_daily_bin1773> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 10:35:21 2023
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:35:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:35:22 2023
Terminated at Mon Feb 27 10:42:08 2023
Results reported at Mon Feb 27 10:42:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1773 339.144 -14.5557 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.5-1433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   311.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             418.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   406 sec.
    Turnaround time :                            419 sec.

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

