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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1301
RA = 339.125, Dec = -23.1552
tmin = 576547201, tmax = 576806401
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='408106', job_status='RUN', time_executed='2021-09-28 17:15:02.480638', time_epoch_executed='1632874502.48' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408106/ft1_4FGL_J2236.4-2309_daily_bin1301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408106/ft1_4FGL_J2236.4-2309_daily_bin1301.fits outfile=/scratch/kocevski/408106/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1301.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=576547201.0 tmax=576806401.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.06
user 4.71
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.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/408106/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1301.fits evtable="EVENTS" outfile="/scratch/kocevski/408106/ft1_filtered_4FGL_J2236.4-2309_daily_bin1301.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/408106/ft1_filtered_4FGL_J2236.4-2309_daily_bin1301.fits" evtable="EVENTS" scfile=/scratch/kocevski/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.fits sctable="SC_DATA" outfile=/scratch/kocevski/408106/ltcube_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.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/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.fits
.....................!
real 11.67
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408106/ft1_filtered_4FGL_J2236.4-2309_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.fits sctable="SC_DATA" expcube=/scratch/kocevski/408106/ltcube_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.fits outfile=/scratch/kocevski/408106/expmap_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.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/408106/ltcube_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.fits
.....................!
real 189.29
user 184.33
sys 4.66

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/408106/ft1_filtered_4FGL_J2236.4-2309_daily_bin1301.fits scfile=/scratch/kocevski/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.fits outfile=/scratch/kocevski/408106/cmap_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408106/ft1_filtered_4FGL_J2236.4-2309_daily_bin1301.fits scfile=/scratch/kocevski/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.fits outfile=/scratch/kocevski/408106/cmap_HighResolution_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.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/408106/ft1_filtered_4FGL_J2236.4-2309_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/408106/ft2_4FGL_J2236.4-2309_daily_bin1301.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408106/Model_4FGL_J2236.4-2309_daily_bin1301.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/408106/ft1_filtered_4FGL_J2236.4-2309_daily_bin1301.fits.....................!
real 58.04
user 56.80
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.1351       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.6385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5852       1.0000         .10000E-03   10000.    
    10 'norm      '    .92167       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6851       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8228       1.0000         .10000E-03   10000.    
    16 'norm      '    .80536E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    182.78       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.073       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1684       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.424       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.338       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2902       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76041       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=   6925.415     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     3401 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8272       -.34147E-08** at limit **
   2  Prefactor     .10000E-03    17.863        .55036E-06** at limit **
   3  norm          1.1351        .33592       -.10720E-08   -.20618E-04
   4  Prefactor     .10000E-03    2.9377       -.73253E-08** at limit **
   5  Prefactor     9.5977        13.031        .15992E-06    .14665E-05
   6  Prefactor     .10000E-03    24.510        .90726E-07** at limit **
   7  Prefactor     .10000E-03    121.31       -.39762E-05** at limit **
   8  norm          5.6386        11.683        .41953E-05   -.11704E-04
   9  Prefactor     9.5875        12.644       -.23073E-07   -.94879E-06
  10  norm          .92167        .71680        .94678E-07    .43780E-04
  11  norm          1.4067        1.6476        .32911E-07   -.59132E-05
  12  Prefactor     .10000E-03    34.741        .74229E-07** at limit **
  13  Prefactor     5.6870        7.8903        .84193E-06   -.13617E-03
  14  Prefactor     12.502        35.270        .47938E-05    .95848E-04
  15  norm          3.8145        2.8102       -.11007E-05    .30054E-03
  16  norm          .79145E-01    2.0688       -.17166E-06    .44403E-04
  17  Prefactor     182.78        61.809        .65156E-06    .32678E-04
  18  Prefactor     .10000E-03    18.968       -.10163E-05** at limit **
  19  Prefactor     10.076        10.180        .36280E-06    .63762E-04
  20  norm          1.1683        .78716       -.26815E-08    .34707E-03
  21  Prefactor     15.423        12.211        .62493E-06   -.12935E-05
  22  Prefactor     14.340        12.069        .38185E-07    .20870E-04
  23  Normalizat    1.2897        .19346       -.91334E-06    .79996E-04
  24  Prefactor     .76067        .15905        .52554E-06   -.16478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13507
  Prefactor  = 0.0001
  Prefactor  = 9.5977
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.63855
  Prefactor  = 9.5875
  norm       = 0.921667
  norm       = 1.40668
  Prefactor  = 0.0001
  Prefactor  = 5.68704
  Prefactor  = 12.502
  norm       = 3.81447
  norm       = 0.0791455
  Prefactor  = 182.78
  Prefactor  = 0.0001
  Prefactor  = 10.0762
  norm       = 1.16828
  Prefactor  = 15.4233
  Prefactor  = 14.3398
  Normalizat = 1.28974
  Prefactor  = 0.760667
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.415     FROM HESSE     STATUS=OK           407 CALLS     3808 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8296        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1351        .33690        .25516E-04   -1.5495    
   4  Prefactor     .10000E-03    2.9530        .13928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5977        13.030        .12936E-03   -1.5088    
   6  Prefactor     .10000E-03    25.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    121.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.6386        11.798        .84587E-03   -1.5233    
   9  Prefactor     9.5875        12.721        .12944E-03   -1.5089    
  10  norm          .92167        .71632        .59861E-04   -1.5516    
  11  norm          1.4067        1.6184        .11162E-03   -1.5471    
  12  Prefactor     .10000E-03    34.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6870        7.8751        .16847E-03   -1.5231    
  14  Prefactor     12.502        35.710        .11373E-03   -1.5001    
  15  norm          3.8145        2.8675        .65580E-04   -1.5317    
  16  norm          .79145E-01    27.719        .21926E-02   -1.5652    
  17  Prefactor     182.78        61.357        .29861E-04   -1.2996    
  18  Prefactor     .10000E-03    19.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.076        10.353        .12625E-03   -1.5073    
  20  norm          1.1683        .78779        .48268E-04   -1.5492    
  21  Prefactor     15.423        12.222        .50992E-03   -1.4922    
  22  Prefactor     14.340        12.008        .10578E-03   -1.4950    
  23  Normalizat    1.2897        .23248        .25014E-03   -.83873    
  24  Prefactor     .76067        .19068        .26951E-03   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66148e-10
Minuit parameter uncertainties:
  1  5.07918e-07
  2  4.78495e-05
  3  0.336898
  4  9.50722e-07
  5  13.0338
  6  1.29922e-05
  7  0.0011782
  8  11.8026
  9  12.7242
  10  0.716329
  11  1.61845
  12  6.07485e-05
  13  7.87655
  14  35.7713
  15  2.86756
  16  2.96184
  17  61.3789
  18  2.98184e-05
  19  10.3551
  20  0.787796
  21  12.2236
  22  12.0097
  23  0.232665
  24  0.190843
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  9.588e+00  1.272e+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:  7.607e-01  1.908e-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.290e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/408106/likelihoodResults_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.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): 0
logL (Free Index) = 6925.09833142
delta logL = 0.316854094735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6925.09731153
delta logL = 0.317873985972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2307       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6962       1.0000          .0000       10.000    
     3 'Normalizat'    1.2537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78156       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=   6925.097     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2267        148.39        .40205E-02    .52291E-03
   2  Index         3.6971        6.8469        .20903        .12182E-03
   3  Normalizat    1.2539        .60381E-01    .57243E-01    .15905E-03
   4  Prefactor     .78142        .50469E-01    .43477E-01   -.40398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22674
  Index      = 3.6971
  Normalizat = 1.25385
  Prefactor  = 0.781416
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.097     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2267        13.737        .16082E-03   -1.5209    
   2  Index         3.6971        1.7993        .10209E-01   -.26362    
   3  Normalizat    1.2539        .22717        .25314E-03   -.84955    
   4  Prefactor     .78142        .18903        .26627E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21322e-10
Minuit parameter uncertainties:
  1  13.744
  2  1.84379
  3  0.227347
  4  0.189189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408106': 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) = 6925.09731094
delta logL = 0.317874578454

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.227e+00  1.374e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.697e+00  1.844e+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:  7.814e-01  1.892e-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.254e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.70 +/- 1.84
Photon Flux (Free Index): 5.94e-08 +/- 5.81e-08
Energy Flux (Free Index): 9.42e-06 +/- 9.60e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/408106/cmap_HighResolution_576547201_576806401_4FGL_J2236.4-2309_daily_bin1301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='9.42e-06', dlogl='3.18e-01', photon_flux2='5.94e-08', job_status='DONE', time_completed='2021-09-28 17:27:25.189980', photon_index_error2='1.84', photon_index2='3.70', ts='0.74', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='9.60e-06', EG='1.29', time_epoch_completed='1632875245.19', return_code='0', job_id='408106', GAL2='0.78', EG2='1.25', return_code2='0', photon_flux_error2='5.81e-08', ts2='1.43', photon_index='2.74' WHERE bin_id='1301' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:27:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 408106: <4FGL_J2236.4-2309_daily_bin1301> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1301> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:58 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:59 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:59 2021
Terminated at Tue Sep 28 17:27:25 2021
Results reported at Tue Sep 28 17:27:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1301 339.125 -23.1552 576547201 576806401 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 :                                   740.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

