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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1603
RA = 339.125, Dec = -23.1552
tmin = 654825601, tmax = 655084801
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='917440', job_status='RUN', time_executed='2021-10-05 00:15:43.862612', time_epoch_executed='1633418143.86' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917440/ft1_4FGL_J2236.4-2309_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917440/ft2_4FGL_J2236.4-2309_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917440/ft1_4FGL_J2236.4-2309_daily_bin1603.fits outfile=/scratch/kocevski/917440/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1603.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=654825601.0 tmax=655084801.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 2.99
user 2.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917440/ft1_filtered_4FGL_J2236.4-2309_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917440/ft2_4FGL_J2236.4-2309_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917440/ltcube_654825601_655084801_4FGL_J2236.4-2309_daily_bin1603.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/917440/ft2_4FGL_J2236.4-2309_daily_bin1603.fits
.....................!
real 12.21
user 11.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917440/ft1_filtered_4FGL_J2236.4-2309_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917440/ft2_4FGL_J2236.4-2309_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917440/ltcube_654825601_655084801_4FGL_J2236.4-2309_daily_bin1603.fits outfile=/scratch/kocevski/917440/expmap_654825601_655084801_4FGL_J2236.4-2309_daily_bin1603.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/917440/ltcube_654825601_655084801_4FGL_J2236.4-2309_daily_bin1603.fits
.....................!
real 190.51
user 185.20
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/917440/ft1_filtered_4FGL_J2236.4-2309_daily_bin1603.fits scfile=/scratch/kocevski/917440/ft2_4FGL_J2236.4-2309_daily_bin1603.fits outfile=/scratch/kocevski/917440/cmap_654825601_655084801_4FGL_J2236.4-2309_daily_bin1603.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/917440/ft1_filtered_4FGL_J2236.4-2309_daily_bin1603.fits scfile=/scratch/kocevski/917440/ft2_4FGL_J2236.4-2309_daily_bin1603.fits outfile=/scratch/kocevski/917440/cmap_HighResolution_654825601_655084801_4FGL_J2236.4-2309_daily_bin1603.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917440/ft1_filtered_4FGL_J2236.4-2309_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917440/ft2_4FGL_J2236.4-2309_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917440/Model_4FGL_J2236.4-2309_daily_bin1603.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/917440/ft1_filtered_4FGL_J2236.4-2309_daily_bin1603.fits....................!
real 51.93
user 50.65
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1355       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.849       1.0000         .10000E-03   10000.    
     3 'norm      '    .90269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.957       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8900       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.941       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1034       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1791       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.622       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3945       1.0000         .10000E-03   10000.    
    20 'norm      '    .18659       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7650       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .45034       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=   6190.914     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2704 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1496        24.698        .20999E-05    .69560E-04
   2  Prefactor     54.756        62.082       -.55372E-05   -.35449E-03
   3  norm          .90276        .33226        .15123E-07    .19839E-03
   4  Prefactor     6.4963        7.7064        .19916E-06    .28045E-04
   5  Prefactor     .10000E-03    7.4716       -.20117E-06** at limit **
   6  Prefactor     .10000E-03    9.6991       -.12899E-06** at limit **
   7  Prefactor     .10000E-03    48.477        .20828E-06** at limit **
   8  norm          5.0648        15.605        .24371E-06    .80428E-05
   9  Prefactor     23.968        15.573       -.70226E-07    .92695E-04
  10  norm          1.8899        1.1328        .15072E-07    .10178E-04
  11  norm          2.1034        2.2321        .75417E-07    .82616E-04
  12  Prefactor     63.931        57.670       -.45618E-06   -.14909E-04
  13  Prefactor     5.1152        13.199       -.75688E-06    .96323E-05
  14  Prefactor     .10000E-03    8.0733        .64838E-06** at limit **
  15  norm          .10000E-03    .49708        .14129E-06** at limit **
  16  norm          2.1780        3.0377        .65359E-07    .39251E-04
  17  Prefactor     58.629        49.212        .39171E-06    .64012E-04
  18  Prefactor     .10000E-03    6.1338       -.25353E-06** at limit **
  19  Prefactor     5.4039        11.146       -.71955E-05   -.16464E-03
  20  norm          .18605        .57424        .28253E-05    .60585E-04
  21  Prefactor     3.7479        24.705       -.55839E-07   -.72039E-05
  22  Prefactor     .10000E-03    10.243       -.10874E-05** at limit **
  23  Normalizat    1.7639        .22739        .47182E-05   -.25115E-03
  24  Prefactor     .45116        .17490       -.60823E-05    .15995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14959
  Prefactor  = 54.7563
  norm       = 0.902757
  Prefactor  = 6.49632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.06477
  Prefactor  = 23.9683
  norm       = 1.88992
  norm       = 2.10343
  Prefactor  = 63.9313
  Prefactor  = 5.11519
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.17796
  Prefactor  = 58.629
  Prefactor  = 0.0001
  Prefactor  = 5.40394
  norm       = 0.186051
  Prefactor  = 3.74793
  Prefactor  = 0.0001
  Normalizat = 1.76389
  Prefactor  = 0.451164
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.914     FROM HESSE     STATUS=OK           399 CALLS     3103 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1496        24.715        .22894E-03   -1.5353    
   2  Prefactor     54.756        63.964        .27081E-03   -1.4227    
   3  norm          .90276        .33272        .26552E-04   -1.5518    
   4  Prefactor     6.4963        7.6982        .15746E-03   -1.5198    
   5  Prefactor     .10000E-03    7.4904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0648        15.587        .17866E-03   -1.5258    
   9  Prefactor     23.968        15.637        .81838E-04   -1.4728    
  10  norm          1.8899        1.1260        .62194E-04   -1.5433    
  11  norm          2.1034        2.2272        .10656E-03   -1.5418    
  12  Prefactor     63.931        57.606        .50185E-04   -1.4107    
  13  Prefactor     5.1152        13.316        .17798E-03   -1.5256    
  14  Prefactor     .10000E-03    8.0772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .49870        .53970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1780        3.0045        .15028E-03   -1.5413    
  17  Prefactor     58.629        49.026        .52399E-04   -1.4175    
  18  Prefactor     .10000E-03    6.1386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4039        11.076        .17302E-03   -1.5243    
  20  norm          .18605        .58195        .19833E-03   -1.5622    
  21  Prefactor     3.7479        24.551        .20830E-03   -1.5321    
  22  Prefactor     .10000E-03    10.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7639        .25989        .22957E-03   -.70610    
  24  Prefactor     .45116        .19637        .33968E-03   -1.1427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08169e-09
Minuit parameter uncertainties:
  1  17.6556
  2  64.0441
  3  0.332719
  4  7.69936
  5  2.55328e-05
  6  8.14775e-07
  7  1.61402e-05
  8  15.599
  9  15.6393
  10  1.12606
  11  2.22728
  12  57.6564
  13  13.3235
  14  2.4719e-05
  15  9.18743e-07
  16  3.00473
  17  49.0593
  18  2.29612e-06
  19  11.0807
  20  0.581972
  21  19.1963
  22  9.58268e-05
  23  0.260095
  24  0.196665
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.397e+01  1.564e+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:  4.512e-01  1.967e-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.764e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.44e-08 +/- 5.50e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.28e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6190.91201122
delta logL = 0.00157929592297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6190.91179353
delta logL = 0.00179698262673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.791       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7905       1.0000          .0000       10.000    
     3 'Normalizat'    1.7602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45312       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=   6190.912     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      233 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.748        360.15        .20531E-02    .34945E-03
   2  Index         2.7868        6.1819        .22632        .41043E-04
   3  Normalizat    1.7606        .11467        .51965E-01    .39601E-04
   4  Prefactor     .45301        .82349E-01    .76551E-01    .65963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7475
  Index      = 2.78685
  Normalizat = 1.76061
  Prefactor  = 0.453011
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.912     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.748        15.723        .41062E-03   -1.4733    
   2  Index         2.7868        .74443        .90621E-02   -.45853    
   3  Normalizat    1.7606        .24369        .22972E-03   -.70696    
   4  Prefactor     .45301        .19124        .33905E-03   -1.1418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09857e-12
Minuit parameter uncertainties:
  1  15.7259
  2  0.747895
  3  0.243856
  4  0.191508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917440': 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) = 6190.91177104
delta logL = 0.00181948010595

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.375e+01  1.573e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.787e+00  7.479e-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:  4.530e-01  1.915e-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.761e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.79 +/- 0.75
Photon Flux (Free Index): 8.71e-08 +/- 6.96e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.24e-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/917440/cmap_HighResolution_654825601_655084801_4FGL_J2236.4-2309_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.44e-08', energy_flux2='1.97e-05', photon_flux_error='5.50e-08', dlogl='1.82e-03', energy_flux='1.97e-05', photon_flux2='8.71e-08', job_status='DONE', time_completed='2021-10-05 00:25:10.249495', photon_index_error2='0.75', photon_index2='2.79', ts='4.45', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.76', time_epoch_completed='1633418710.25', return_code='0', job_id='917440', GAL2='0.45', EG2='1.76', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='6.96e-08', ts2='4.46', photon_index='2.74' WHERE bin_id='1603' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:25:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 917440: <4FGL_J2236.4-2309_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:33 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:34 2021
Terminated at Tue Oct  5 00:25:11 2021
Results reported at Tue Oct  5 00:25:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1603 339.125 -23.1552 654825601 655084801 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 :                                   568.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            578 sec.

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

