/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 95 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 = 7400
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1099
RA = 339.125, Dec = -23.1552
tmin = 524188801, tmax = 524448001
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='407815', job_status='RUN', time_executed='2021-09-28 17:12:23.813738', time_epoch_executed='1632874343.81' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407815/ft1_4FGL_J2236.4-2309_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407815/ft1_4FGL_J2236.4-2309_daily_bin1099.fits outfile=/scratch/kocevski/407815/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1099.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=524188801.0 tmax=524448001.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.39
user 3.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.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/407815/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/407815/ltcube_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.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/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits
.....................!
real 11.80
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/407815/ltcube_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.fits outfile=/scratch/kocevski/407815/expmap_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.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/407815/ltcube_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.fits
.....................!
real 191.00
user 185.54
sys 5.07

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/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits scfile=/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits outfile=/scratch/kocevski/407815/cmap_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits scfile=/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits outfile=/scratch/kocevski/407815/cmap_HighResolution_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407815/Model_4FGL_J2236.4-2309_daily_bin1099.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/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits.....................!
real 48.79
user 47.44
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits', '/scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits', expMap='/scratch/kocevski/407815/expmap_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.fits', expCube='/scratch/kocevski/407815/ltcube_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/407815/Model_4FGL_J2236.4-2309_daily_bin1099.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/407815/ft1_filtered_4FGL_J2236.4-2309_daily_bin1099.fits
Spacecraft file(s): /scratch/kocevski/407815/ft2_4FGL_J2236.4-2309_daily_bin1099.fits
Exposure map: /scratch/kocevski/407815/expmap_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.fits
Exposure cube: /scratch/kocevski/407815/ltcube_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/407815/Model_4FGL_J2236.4-2309_daily_bin1099.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) = 5869.40272534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.186       1.0000         .10000E-03   10000.    
     8 'norm      '    13.722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.382       1.0000         .10000E-03   10000.    
    10 'norm      '    .33423       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.058       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1970       1.0000         .10000E-03   10000.    
    16 'norm      '    10.162       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3671       1.0000         .10000E-03   10000.    
    20 'norm      '    4.1870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3390       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71615       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0070       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.

 FCN=   5869.396     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2708 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4164       -.14165E-06** at limit **
   2  Prefactor     .10000E-03    16.303        .68203E-06** at limit **
   3  norm          1.0746        .38424        .13112E-08    .89266E-04
   4  Prefactor     12.727        11.496       -.38723E-06   -.49171E-04
   5  Prefactor     18.519        15.708        .13906E-06   -.17738E-04
   6  Prefactor     25.816        22.791        .15162E-05   -.14882E-04
   7  Prefactor     32.185        35.481       -.58017E-06   -.68008E-06
   8  norm          13.722        14.473       -.18202E-06   -.41950E-05
   9  Prefactor     29.374        16.005        .11113E-06   -.56238E-04
  10  norm          .33426        .61922       -.21147E-07   -.34287E-03
  11  norm          1.5166        2.1551       -.19741E-06   -.65385E-03
  12  Prefactor     .10000E-03    51.102        .21203E-05** at limit **
  13  Prefactor     .10000E-03    24.284       -.78629E-06** at limit **
  14  Prefactor     14.176        19.500       -.19444E-05   -.73699E-03
  15  norm          2.1869        1.6635        .29840E-06   -.59025E-03
  16  norm          10.160        5.5427        .57085E-07   -.22549E-03
  17  Prefactor     .10000E-03    11.499       -.53481E-06** at limit **
  18  Prefactor     23.235        23.907       -.25248E-05   -.15944E-03
  19  Prefactor     3.3950        21.311        .48025E-05   -.24533E-03
  20  norm          4.1853        1.2936       -.28365E-06   -.62742E-03
  21  Prefactor     .10000E-03    7.2689       -.16458E-06** at limit **
  22  Prefactor     3.3339        7.1439        .62152E-05   -.24990E-03
  23  Normalizat    .71635        .20196       -.23810E-05   -.33776E-04
  24  Prefactor     1.0068        .16913        .96505E-06   -.14454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07461
  Prefactor  = 12.7267
  Prefactor  = 18.5194
  Prefactor  = 25.8161
  Prefactor  = 32.1854
  norm       = 13.7219
  Prefactor  = 29.3745
  norm       = 0.334263
  norm       = 1.5166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1758
  norm       = 2.18686
  norm       = 10.1597
  Prefactor  = 0.0001
  Prefactor  = 23.235
  Prefactor  = 3.39504
  norm       = 4.18533
  Prefactor  = 0.0001
  Prefactor  = 3.33392
  Normalizat = 0.716352
  Prefactor  = 1.00675
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.396     FROM HESSE     STATUS=OK           405 CALLS     3113 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4175        .17414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0746        .38473        .27605E-04   -1.5501    
   4  Prefactor     12.727        11.501        .11229E-03   -1.4994    
   5  Prefactor     18.519        15.710        .93072E-04   -1.4847    
   6  Prefactor     25.816        22.760        .78839E-04   -1.4691    
   7  Prefactor     32.185        35.479        .70629E-04   -1.4573    
   8  norm          13.722        14.466        .10813E-03   -1.4967    
   9  Prefactor     29.374        16.029        .73914E-04   -1.4623    
  10  norm          .33426        .61961        .42297E-04   -1.5592    
  11  norm          1.5166        2.1322        .12886E-03   -1.5462    
  12  Prefactor     .10000E-03    51.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.176        23.188        .53414E-03   -1.4955    
  15  norm          2.1869        1.9141        .58390E-04   -1.5412    
  16  norm          10.160        5.5217        .12084E-03   -1.5070    
  17  Prefactor     .10000E-03    11.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.235        23.302        .83039E-04   -1.4744    
  19  Prefactor     3.3950        18.684        .22053E-03   -1.5339    
  20  norm          4.1853        1.2870        .34857E-04   -1.5299    
  21  Prefactor     .10000E-03    7.3469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3339        6.8473        .22150E-03   -1.5343    
  23  Normalizat    .71635        .23494        .30172E-03   -1.0325    
  24  Prefactor     1.0068        .19945        .22751E-03   -.92505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11101e-09
Minuit parameter uncertainties:
  1  6.1205e-07
  2  2.43218e-06
  3  0.384727
  4  11.5033
  5  15.7133
  6  22.7677
  7  35.5026
  8  14.47
  9  16.031
  10  0.619625
  11  2.1323
  12  9.07424e-05
  13  1.2868e-05
  14  23.2027
  15  1.91414
  16  5.52193
  17  1.54647e-05
  18  23.3116
  19  15.9364
  20  1.28698
  21  7.9284e-06
  22  6.84891
  23  0.235275
  24  0.199592
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.937e+01  1.603e+01  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:  1.007e+00  1.996e-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:  7.164e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.64e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.31e-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) = 5869.18730696
delta logL = 0.208592536482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5869.16995649
delta logL = 0.22594300996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.673       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3946       1.0000          .0000       10.000    
     3 'Normalizat'    .74277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98981       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.

 FCN=   5869.170     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.685        43.406        .17525E-02   -.46661E-04
   2  Index         2.3939        1.0258        .18927       -.23618E-04
   3  Normalizat    .74291        .19022        .67060E-01   -.14300E-04
   4  Prefactor     .98972        .16819        .46140E-01   -.12374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.6852
  Index      = 2.39386
  Normalizat = 0.742912
  Prefactor  = 0.989716
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.170     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.685        18.138        .70102E-04   -1.4564    
   2  Index         2.3939        .48914        .73177E-02   -.54829    
   3  Normalizat    .74291        .22151        .29672E-03   -1.0222    
   4  Prefactor     .98972        .19253        .22918E-03   -.93073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35748e-11
Minuit parameter uncertainties:
  1  18.1415
  2  0.490217
  3  0.221773
  4  0.192667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407815': 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) = 5869.16995487
delta logL = 0.22594462397

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.269e+01  1.814e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.394e+00  4.902e-01  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:  9.897e-01  1.927e-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:  7.429e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.39 +/- 0.49
Photon Flux (Free Index): 8.52e-08 +/- 5.63e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.77e-05

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/407815/cmap_HighResolution_524188801_524448001_4FGL_J2236.4-2309_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.81e-05', photon_flux_error='5.64e-08', dlogl='2.26e-01', energy_flux='2.41e-05', photon_flux2='8.52e-08', job_status='DONE', time_completed='2021-09-28 17:21:41.066860', photon_index_error2='0.49', photon_index2='2.39', ts='6.16', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.72', time_epoch_completed='1632874901.07', return_code='0', job_id='407815', GAL2='0.99', EG2='0.74', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.63e-08', ts2='6.50', photon_index='2.74' WHERE bin_id='1099' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 407815: <4FGL_J2236.4-2309_daily_bin1099> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1099> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:37 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:10:39 2021
Terminated at Tue Sep 28 17:21:41 2021
Results reported at Tue Sep 28 17:21:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1099 339.125 -23.1552 524188801 524448001 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 :                                   554.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            664 sec.

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

