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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1368
RA = 339.125, Dec = -23.1552
tmin = 593913601, tmax = 594172801
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='409170', job_status='RUN', time_executed='2021-09-28 17:16:44.664634', time_epoch_executed='1632874604.66' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409170/ft1_4FGL_J2236.4-2309_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409170/ft2_4FGL_J2236.4-2309_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409170/ft1_4FGL_J2236.4-2309_daily_bin1368.fits outfile=/scratch/kocevski/409170/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1368.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=593913601.0 tmax=594172801.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.56
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409170/ft1_filtered_4FGL_J2236.4-2309_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/409170/ft2_4FGL_J2236.4-2309_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/409170/ltcube_593913601_594172801_4FGL_J2236.4-2309_daily_bin1368.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/409170/ft2_4FGL_J2236.4-2309_daily_bin1368.fits
.....................!
real 12.02
user 11.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409170/ft1_filtered_4FGL_J2236.4-2309_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/409170/ft2_4FGL_J2236.4-2309_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/409170/ltcube_593913601_594172801_4FGL_J2236.4-2309_daily_bin1368.fits outfile=/scratch/kocevski/409170/expmap_593913601_594172801_4FGL_J2236.4-2309_daily_bin1368.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/409170/ltcube_593913601_594172801_4FGL_J2236.4-2309_daily_bin1368.fits
.....................!
real 190.73
user 185.32
sys 4.98

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/409170/ft1_filtered_4FGL_J2236.4-2309_daily_bin1368.fits scfile=/scratch/kocevski/409170/ft2_4FGL_J2236.4-2309_daily_bin1368.fits outfile=/scratch/kocevski/409170/cmap_593913601_594172801_4FGL_J2236.4-2309_daily_bin1368.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409170/ft1_filtered_4FGL_J2236.4-2309_daily_bin1368.fits scfile=/scratch/kocevski/409170/ft2_4FGL_J2236.4-2309_daily_bin1368.fits outfile=/scratch/kocevski/409170/cmap_HighResolution_593913601_594172801_4FGL_J2236.4-2309_daily_bin1368.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409170/ft1_filtered_4FGL_J2236.4-2309_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/409170/ft2_4FGL_J2236.4-2309_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409170/Model_4FGL_J2236.4-2309_daily_bin1368.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/409170/ft1_filtered_4FGL_J2236.4-2309_daily_bin1368.fits.....................!
real 62.55
user 61.19
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2378       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.731       1.0000         .10000E-03   10000.    
     8 'norm      '    8.6161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.999       1.0000         .10000E-03   10000.    
    10 'norm      '    .58910       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.297       1.0000         .10000E-03   10000.    
    15 'norm      '    9.3321       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.452       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1383       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1724       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4461       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .95799E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .62188       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0214       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=   8159.101     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2773 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4142        .60171E-08** at limit **
   2  Prefactor     .10000E-03    8.8457        .68764E-08** at limit **
   3  norm          1.2379        .31226       -.13686E-08    .61133E-04
   4  Prefactor     .10000E-03    2.5334        .15687E-07** at limit **
   5  Prefactor     37.037        13.149       -.66718E-08   -.18138E-04
   6  Prefactor     .10000E-03    2.9885        .65573E-08** at limit **
   7  Prefactor     15.724        32.231       -.34123E-07   -.14952E-04
   8  norm          8.6182        14.035       -.11642E-07   -.14181E-04
   9  Prefactor     19.997        10.059       -.24354E-07    .35122E-04
  10  norm          .58912        .57276       -.23008E-07    .16756E-03
  11  norm          2.9749        1.7226       -.13196E-07    .42322E-04
  12  Prefactor     .10000E-03    15.566       -.76594E-07** at limit **
  13  Prefactor     9.9420        9.6604       -.10580E-06   -.91902E-06
  14  Prefactor     14.280        32.334       -.40743E-06   -.30151E-04
  15  norm          9.3326        3.0826        .75612E-07   -.39648E-03
  16  norm          1.5931        2.3455       -.85171E-07   -.11171E-03
  17  Prefactor     54.479        39.961       -.23044E-06    .13654E-03
  18  Prefactor     4.3498        10.298       -.10225E-05    .49753E-04
  19  Prefactor     4.1474        10.874        .21256E-05    .10632E-03
  20  norm          1.1723        .69314        .24326E-07    .95058E-03
  21  Prefactor     3.4479        5.9174        .21319E-06   -.13584E-03
  22  Prefactor     .10001E-03    5.9870       -.15368E-05** at limit **
  23  Normalizat    .62192        .15504        .16314E-06    .87670E-04
  24  Prefactor     1.0213        .13360       -.94685E-07    .16536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23785
  Prefactor  = 0.0001
  Prefactor  = 37.0371
  Prefactor  = 0.0001
  Prefactor  = 15.7236
  norm       = 8.61825
  Prefactor  = 19.9968
  norm       = 0.589119
  norm       = 2.97488
  Prefactor  = 0.0001
  Prefactor  = 9.94205
  Prefactor  = 14.2803
  norm       = 9.33264
  norm       = 1.59305
  Prefactor  = 54.4787
  Prefactor  = 4.34979
  Prefactor  = 4.14736
  norm       = 1.17227
  Prefactor  = 3.44792
  Prefactor  = 0.00010001
  Normalizat = 0.621921
  Prefactor  = 1.02133
 **********
 **   18 **HESSE 
 **********

 FCN=   8159.101     FROM HESSE     STATUS=OK           411 CALLS     3184 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2379        .31296        .24656E-04   -1.5485    
   4  Prefactor     .10000E-03    2.5431        .14038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.037        13.147        .65858E-04   -1.4490    
   6  Prefactor     .10000E-03    2.9908        .15250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.724        32.202        .10098E-03   -1.4915    
   8  norm          8.6182        14.027        .13656E-03   -1.5121    
   9  Prefactor     19.997        10.080        .89562E-04   -1.4813    
  10  norm          .58912        .54022        .64429E-03   -1.5554    
  11  norm          2.9749        1.7186        .86804E-04   -1.5363    
  12  Prefactor     .10000E-03    15.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9420        9.6949        .12708E-03   -1.5077    
  14  Prefactor     14.280        33.912        .10593E-03   -1.4952    
  15  norm          9.3326        3.2993        .47250E-04   -1.5097    
  16  norm          1.5931        2.3033        .15558E-03   -1.5456    
  17  Prefactor     54.479        39.985        .54357E-04   -1.4230    
  18  Prefactor     4.3498        10.175        .19301E-03   -1.5291    
  19  Prefactor     4.1474        11.209        .19815E-03   -1.5301    
  20  norm          1.1723        .71618        .42080E-04   -1.5491    
  21  Prefactor     3.4479        5.8934        .21787E-03   -1.5337    
  22  Prefactor     .10001E-03    59.729        .37244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62192        .18214        .29380E-03   -1.0706    
  24  Prefactor     1.0213        .15764        .21411E-03   -.92022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04582e-10
Minuit parameter uncertainties:
  1  7.48388e-07
  2  1.14776e-06
  3  0.31296
  4  1.52499e-06
  5  13.1478
  6  9.91982e-07
  7  32.2381
  8  14.0328
  9  10.0804
  10  0.540225
  11  1.71863
  12  6.25799e-06
  13  9.69647
  14  33.9576
  15  3.29932
  16  2.30342
  17  40.0049
  18  10.1791
  19  11.2144
  20  0.716189
  21  5.89437
  22  0.0015216
  23  0.182312
  24  0.157708
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.000e+01  1.008e+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.021e+00  1.577e-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.219e-01  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.73
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 7.04e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 8.27e-06

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) = 8159.10006733
delta logL = 0.000802864508842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8159.09978676
delta logL = 0.00108343932607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.229       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7171       1.0000          .0000       10.000    
     3 'Normalizat'    .62347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       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=   8159.100     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      236 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.233        199.42        .22263E-02    .43926E-04
   2  Index         2.7170        6.3541        .21328        .62677E-04
   3  Normalizat    .62322        .77284E-01    .66326E-01    .64497E-04
   4  Prefactor     1.0205        .65375E-01    .42115E-01    .15373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2334
  Index      = 2.71702
  Normalizat = 0.623222
  Prefactor  = 1.02049
 **********
 **   18 **HESSE 
 **********

 FCN=   8159.100     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.233        11.525        .89053E-04   -1.4808    
   2  Index         2.7170        .55797        .78477E-02   -.47417    
   3  Normalizat    .62322        .16850        .29351E-03   -1.0701    
   4  Prefactor     1.0205        .15254        .21419E-03   -.92050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15859e-12
Minuit parameter uncertainties:
  1  11.5259
  2  0.559446
  3  0.168638
  4  0.152602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409170': 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) = 8159.09978547
delta logL = 0.00108472835109

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.023e+01  1.153e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.717e+00  5.594e-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:  1.020e+00  1.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.232e-01  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.65
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.72 +/- 0.56
Photon Flux (Free Index): 6.96e-08 +/- 3.89e-08
Energy Flux (Free Index): 1.65e-05 +/- 8.83e-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/409170/cmap_HighResolution_593913601_594172801_4FGL_J2236.4-2309_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.04e-08', energy_flux2='1.65e-05', photon_flux_error='3.54e-08', dlogl='1.08e-03', energy_flux='1.64e-05', photon_flux2='6.96e-08', job_status='DONE', time_completed='2021-09-28 17:27:47.951372', photon_index_error2='0.56', photon_index2='2.72', ts='6.73', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='8.83e-06', EG='0.62', time_epoch_completed='1632875267.95', return_code='0', job_id='409170', GAL2='1.02', EG2='0.62', return_code2='0', energy_flux_error='8.27e-06', photon_flux_error2='3.89e-08', ts2='6.65', photon_index='2.74' WHERE bin_id='1368' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:27:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 409170: <4FGL_J2236.4-2309_daily_bin1368> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1368> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:14 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:16 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:15:16 2021
Terminated at Tue Sep 28 17:27:48 2021
Results reported at Tue Sep 28 17:27:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1368 339.125 -23.1552 593913601 594172801 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 :                                   660.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

