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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1167
RA = 339.125, Dec = -23.1552
tmin = 541814401, tmax = 542073601
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='407915', job_status='RUN', time_executed='2021-09-28 17:13:54.083599', time_epoch_executed='1632874434.08' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407915/ft1_4FGL_J2236.4-2309_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407915/ft2_4FGL_J2236.4-2309_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407915/ft1_4FGL_J2236.4-2309_daily_bin1167.fits outfile=/scratch/kocevski/407915/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1167.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=541814401.0 tmax=542073601.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.65
user 3.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407915/ft1_filtered_4FGL_J2236.4-2309_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/407915/ft2_4FGL_J2236.4-2309_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/407915/ltcube_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.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/407915/ft2_4FGL_J2236.4-2309_daily_bin1167.fits
.....................!
real 11.83
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407915/ft1_filtered_4FGL_J2236.4-2309_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/407915/ft2_4FGL_J2236.4-2309_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/407915/ltcube_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.fits outfile=/scratch/kocevski/407915/expmap_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.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/407915/ltcube_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.fits
.....................!
real 191.58
user 186.11
sys 5.05

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/407915/ft1_filtered_4FGL_J2236.4-2309_daily_bin1167.fits scfile=/scratch/kocevski/407915/ft2_4FGL_J2236.4-2309_daily_bin1167.fits outfile=/scratch/kocevski/407915/cmap_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.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.51
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407915/ft1_filtered_4FGL_J2236.4-2309_daily_bin1167.fits scfile=/scratch/kocevski/407915/ft2_4FGL_J2236.4-2309_daily_bin1167.fits outfile=/scratch/kocevski/407915/cmap_HighResolution_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4594       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .79273       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3503       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.863       1.0000         .10000E-03   10000.    
    10 'norm      '    .75977       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.714       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1919       1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28850E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9592       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.538       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75105       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3907       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=   5095.487     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     3171 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4509        34.296        .26079E-03   -.16434E-04
   2  Prefactor     .10000E-03    45.106        .18142E-02** at limit **
   3  norm          .79268        .45782        .35573E-04    .23234E-03
   4  Prefactor     2.7875        10.076        .24358E-03   -.35519E-04
   5  Prefactor     .10000E-03    11.339        .18142E-02** at limit **
   6  Prefactor     .10000E-03    23.873        .18142E-02** at limit **
   7  Prefactor     .10000E-03    40.609        .18142E-02** at limit **
   8  norm          4.3404        37.640        .19312E-03   -.28669E-04
   9  Prefactor     29.866        22.192        .73317E-04    .29462E-04
  10  norm          .75993        .75814        .60235E-04   -.38880E-04
  11  norm          .10000E-03    .86731        .64822E-03** at limit **
  12  Prefactor     .10000E-03    43.711        .18142E-02** at limit **
  13  Prefactor     .10000E-03    30.975        .18142E-02** at limit **
  14  Prefactor     48.686        43.040        .57453E-04    .25328E-04
  15  norm          2.1900        3.2595        .81273E-04   -.57072E-04
  16  norm          .10000E-03    6.3298        .22424E-02** at limit **
  17  Prefactor     .10000E-03    291.43        .82912E-02** at limit **
  18  Prefactor     .10000E-03    7.1212        .18142E-02** at limit **
  19  Prefactor     .10000E-03    13.516        .18142E-02** at limit **
  20  norm          1.9596        .84171        .40033E-04   -.58558E-03
  21  Prefactor     .10000E-03    4.2958        .14444E-02** at limit **
  22  Prefactor     14.544        12.352        .10505E-03   -.73160E-04
  23  Normalizat    .75097        .29278        .34227E-03    .23782E-04
  24  Prefactor     1.3906        .24758        .22556E-03   -.14063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4509
  Prefactor  = 0.0001
  norm       = 0.792678
  Prefactor  = 2.78752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34042
  Prefactor  = 29.866
  norm       = 0.75993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.6857
  norm       = 2.18996
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95958
  Prefactor  = 0.0001
  Prefactor  = 14.5436
  Normalizat = 0.750966
  Prefactor  = 1.39064
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.487     FROM HESSE     STATUS=OK           373 CALLS     3544 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4509        34.287        .10432E-04   -1.5395    
   2  Prefactor     .10000E-03    45.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .79268        .45780        .14229E-05   -1.5530    
   4  Prefactor     2.7875        10.075        .97432E-05   -1.5374    
   5  Prefactor     .10000E-03    11.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3404        37.623        .77247E-05   -1.5291    
   9  Prefactor     29.866        22.190        .29327E-05   -1.4614    
  10  norm          .75993        .75812        .24094E-05   -1.5534    
  11  norm          .10000E-03    .86732        .12964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.686        43.003        .22981E-05   -1.4311    
  15  norm          2.1900        3.2603        .32509E-05   -1.5412    
  16  norm          .10000E-03    6.3709        .44849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    298.13        .33165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9596        .84145        .16013E-05   -1.5428    
  21  Prefactor     .10000E-03    4.2959        .28888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.544        12.351        .42019E-05   -1.4945    
  23  Normalizat    .75097        .29299        .13691E-04   -1.0191    
  24  Prefactor     1.3906        .24779        .45111E-04   -.80650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01104e-10
Minuit parameter uncertainties:
  1  18.3463
  2  4.94481e-05
  3  0.457799
  4  10.0811
  5  1.97275e-05
  6  8.55834e-05
  7  0.000113246
  8  25.579
  9  22.1956
  10  0.758128
  11  1.22403e-06
  12  3.47907e-05
  13  8.92728e-05
  14  43.0305
  15  3.26055
  16  2.9898e-06
  17  0.000140684
  18  3.79722e-06
  19  6.19767e-05
  20  0.841454
  21  1.85547e-06
  22  12.3533
  23  0.293608
  24  0.248001
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.987e+01  2.220e+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.391e+00  2.480e-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.510e-01  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 7.80e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 1.82e-05

TS (Fixed Index): 2.49
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407915/likelihoodResults_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.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) = 5095.47315237
delta logL = 0.0139025159469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5095.24082994
delta logL = 0.246224946741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9627       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4151       1.0000          .0000       10.000    
     3 'Normalizat'    .66480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4588       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=   5095.241     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      313 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9642        131.33        .11256E-03    .18066E-02
   2  Index         4.4140        7.2045        .60775E-02    .30952E-03
   3  Normalizat    .66513        .29032        .36202E-03    .51546E-03
   4  Prefactor     1.4587        .24964        .22121E-03    .66001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96424
  Index      = 4.41396
  Normalizat = 0.665127
  Prefactor  = 1.45874
 **********
 **   18 **HESSE 
 **********

 FCN=   5095.241     FROM HESSE     STATUS=OK            23 CALLS      336 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9642        15.262        .45025E-05   -1.5180    
   2  Index         4.4140        1.7228        .24310E-03   -.11748    
   3  Normalizat    .66513        .29943        .72405E-04   -1.0529    
   4  Prefactor     1.4587        .25237        .44242E-04   -.78702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20399e-09
Minuit parameter uncertainties:
  1  15.2704
  2  1.75933
  3  0.300171
  4  0.252589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407915': 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) = 5095.24082723
delta logL = 0.246227651549

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.964e+00  1.527e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.414e+00  1.759e+00  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:  1.459e+00  2.526e-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:  6.651e-01  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 4.41 +/- 1.76
Photon Flux (Free Index): 1.54e-07 +/- 1.03e-07
Energy Flux (Free Index): 2.17e-05 +/- 1.50e-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/407915/cmap_HighResolution_541814401_542073601_4FGL_J2236.4-2309_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-02', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.17e-05', photon_flux_error='7.80e-08', dlogl='2.46e-01', energy_flux='2.45e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-28 17:23:49.470592', photon_index_error2='1.76', photon_index2='4.41', ts='2.49', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='1.50e-05', EG='0.75', time_epoch_completed='1632875029.47', return_code='0', job_id='407915', GAL2='1.46', EG2='0.67', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.03e-07', ts2='3.27', photon_index='2.74' WHERE bin_id='1167' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 407915: <4FGL_J2236.4-2309_daily_bin1167> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1167> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:44 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:46 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:46 2021
Terminated at Tue Sep 28 17:23:50 2021
Results reported at Tue Sep 28 17:23:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1167 339.125 -23.1552 541814401 542073601 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            786 sec.

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

