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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin543
RA = 339.125, Dec = -23.1552
tmin = 380073601, tmax = 380332801
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='405989', job_status='RUN', time_executed='2021-09-28 17:08:56.274372', time_epoch_executed='1632874136.27' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405989/ft1_4FGL_J2236.4-2309_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405989/ft1_4FGL_J2236.4-2309_daily_bin543.fits outfile=/scratch/kocevski/405989/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin543.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=380073601.0 tmax=380332801.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 4.50
user 4.24
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/405989/ltcube_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.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/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits
.....................!
real 11.74
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/405989/ltcube_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.fits outfile=/scratch/kocevski/405989/expmap_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.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/405989/ltcube_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.fits
.....................!
real 191.78
user 186.36
sys 4.96

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/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits scfile=/scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits outfile=/scratch/kocevski/405989/cmap_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits scfile=/scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits outfile=/scratch/kocevski/405989/cmap_HighResolution_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.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/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405989/Model_4FGL_J2236.4-2309_daily_bin543.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/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits.....................!
real 44.63
user 43.10
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits', '/scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits', expMap='/scratch/kocevski/405989/expmap_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.fits', expCube='/scratch/kocevski/405989/ltcube_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405989/Model_4FGL_J2236.4-2309_daily_bin543.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/405989/ft1_filtered_4FGL_J2236.4-2309_daily_bin543.fits
Spacecraft file(s): /scratch/kocevski/405989/ft2_4FGL_J2236.4-2309_daily_bin543.fits
Exposure map: /scratch/kocevski/405989/expmap_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.fits
Exposure cube: /scratch/kocevski/405989/ltcube_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405989/Model_4FGL_J2236.4-2309_daily_bin543.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4974.77366248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12239E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    81.744       1.0000         .10000E-03   10000.    
     3 'norm      '    .99218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11427E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.587       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95461       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9222       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3756       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14940E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0753       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.9225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.582       1.0000         .10000E-03   10000.    
    20 'norm      '    .83221E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5147       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88976       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=   4972.959     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2089 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.963        .94519E-05** at limit **
   2  Prefactor     81.893        81.469        .96972E-07    .52153E-05
   3  norm          .99221        .51449        .60374E-07   -.47090E-03
   4  Prefactor     .10000E-03    4.7640        .34881E-06** at limit **
   5  Prefactor     19.120        14.828        .50616E-07   -.16299E-04
   6  Prefactor     18.269        24.101        .24289E-06   -.51182E-04
   7  Prefactor     .10000E-03    20.425       -.94288E-07** at limit **
   8  norm          20.594        23.909        .76192E-07   -.30767E-04
   9  Prefactor     .92266        14.989        .13903E-05   -.17229E-03
  10  norm          3.9223        1.4520        .25406E-07    .11509E-04
  11  norm          5.3743        3.4213        .22049E-07   -.31285E-03
  12  Prefactor     .10000E-03    31.201       -.45238E-08** at limit **
  13  Prefactor     57.648        21.715        .66870E-07   -.16531E-03
  14  Prefactor     8.0807        22.612       -.10276E-05    .59170E-04
  15  norm          .10000E-03    .93632       -.13878E-06** at limit **
  16  norm          9.9203        6.7143       -.23902E-06   -.42697E-03
  17  Prefactor     5.7028        104.86        .45228E-05    .17265E-04
  18  Prefactor     .10000E-03    14.193        .23801E-06** at limit **
  19  Prefactor     12.572        14.883       -.11010E-05   -.55987E-03
  20  norm          .83738E-01    1.3637        .81687E-06   -.37932E-03
  21  Prefactor     .10000E-03    5.5898       -.15510E-06** at limit **
  22  Prefactor     9.5037        15.366       -.12609E-05   -.37109E-03
  23  Normalizat    1.0900        .24962       -.18468E-05   -.17911E-03
  24  Prefactor     .88951        .20019        .12296E-05   -.29301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 81.8931
  norm       = 0.992214
  Prefactor  = 0.0001
  Prefactor  = 19.1202
  Prefactor  = 18.2689
  Prefactor  = 0.0001
  norm       = 20.5936
  Prefactor  = 0.922659
  norm       = 3.92235
  norm       = 5.37428
  Prefactor  = 0.0001
  Prefactor  = 57.6483
  Prefactor  = 8.0807
  norm       = 0.0001
  norm       = 9.92032
  Prefactor  = 5.70276
  Prefactor  = 0.0001
  Prefactor  = 12.572
  norm       = 0.0837384
  Prefactor  = 0.0001
  Prefactor  = 9.50368
  Normalizat = 1.08999
  Prefactor  = 0.889512
 **********
 **   18 **HESSE 
 **********

 FCN=   4972.959     FROM HESSE     STATUS=OK           407 CALLS     2496 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     81.893        81.325        .22212E-03   -1.3896    
   3  norm          .99221        .51392        .34385E-04   -1.5509    
   4  Prefactor     .10000E-03    4.7731        .15027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.120        14.833        .91577E-04   -1.4833    
   6  Prefactor     18.269        24.148        .93689E-04   -1.4853    
   7  Prefactor     .10000E-03    20.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.594        23.902        .88275E-04   -1.4800    
   9  Prefactor     .92266        60.956        .49401E-02   -1.5516    
  10  norm          3.9223        1.4516        .48857E-04   -1.5312    
  11  norm          5.3743        3.4128        .98497E-04   -1.5244    
  12  Prefactor     .10000E-03    31.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.648        21.831        .52829E-04   -1.4188    
  14  Prefactor     8.0807        20.482        .14109E-03   -1.5139    
  15  norm          .10000E-03    1.1703        .11515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.9203        6.6761        .12721E-03   -1.5078    
  17  Prefactor     5.7028        95.568        .16807E-03   -1.5230    
  18  Prefactor     .10000E-03    14.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.572        14.806        .11293E-03   -1.4999    
  20  norm          .83738E-01    2.6065        .10705E-02   -1.5650    
  21  Prefactor     .10000E-03    5.6037        .16282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.5037        15.150        .12992E-03   -1.5091    
  23  Normalizat    1.0900        .30043        .28206E-03   -.90074    
  24  Prefactor     .88951        .24104        .25827E-03   -.96509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77586e-08
Minuit parameter uncertainties:
  1  0.000329064
  2  81.4362
  3  0.513924
  4  5.06251e-06
  5  14.836
  6  24.1607
  7  1.35056e-05
  8  23.9135
  9  15.0141
  10  1.45157
  11  3.41291
  12  3.67118e-06
  13  21.8345
  14  20.5001
  15  1.4781e-06
  16  6.6766
  17  46.7782
  18  2.90485e-05
  19  14.8102
  20  0.933857
  21  2.03411e-06
  22  15.1564
  23  0.300898
  24  0.241329
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  9.227e-01  1.501e+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:  8.895e-01  2.413e-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.090e+00  3.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/405989/likelihoodResults_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.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) = 4972.8531401
delta logL = 0.106002204873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4972.42469623
delta logL = 0.534446073651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.188       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6944       1.0000          .0000       10.000    
     3 'Normalizat'    1.1054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85737       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=   4972.425     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      245 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.171        14.942        .27575E-02    .33110E-04
   2  Index         1.6949        .39120        .20288       -.67707E-04
   3  Normalizat    1.1053        .22990        .63334E-01    .10984E-04
   4  Prefactor     .85734        .19405        .44459E-01    .13780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1714
  Index      = 1.69492
  Normalizat = 1.10532
  Prefactor  = 0.857338
 **********
 **   18 **HESSE 
 **********

 FCN=   4972.425     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.171        16.428        .11030E-03   -1.4982    
   2  Index         1.6949        .54614        .70879E-02   -.72217    
   3  Normalizat    1.1053        .27436        .28015E-03   -.89581    
   4  Prefactor     .85734        .23134        .26222E-03   -.97648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44697e-12
Minuit parameter uncertainties:
  1  16.4339
  2  0.54809
  3  0.274712
  4  0.231609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405989': 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) = 4972.42469401
delta logL = 0.53444829422

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.317e+01  1.643e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.695e+00  5.481e-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:  8.573e-01  2.316e-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.105e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.69 +/- 0.55
Photon Flux (Free Index): 2.39e-08 +/- 3.06e-08
Energy Flux (Free Index): 3.97e-05 +/- 6.34e-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/405989/cmap_HighResolution_380073601_380332801_4FGL_J2236.4-2309_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='3.97e-05', dlogl='5.34e-01', photon_flux2='2.39e-08', job_status='DONE', time_completed='2021-09-28 17:17:56.144681', photon_index_error2='0.55', photon_index2='1.69', ts='0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='6.34e-05', EG='1.09', time_epoch_completed='1632874676.14', return_code='0', job_id='405989', GAL2='0.86', EG2='1.11', return_code2='0', photon_flux_error2='3.06e-08', ts2='1.10', photon_index='2.74' WHERE bin_id='543' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:17:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 405989: <4FGL_J2236.4-2309_daily_bin543> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin543> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:16 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:18 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:05:18 2021
Terminated at Tue Sep 28 17:17:56 2021
Results reported at Tue Sep 28 17:17:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin543 339.125 -23.1552 380073601 380332801 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 :                                   540.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

