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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1166
RA = 339.144, Dec = -14.5557
tmin = 541555201, tmax = 541814401
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='414058', job_status='RUN', time_executed='2021-09-28 17:31:55.602053', time_epoch_executed='1632875515.6' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414058/ft1_4FGL_J2236.5-1433_daily_bin1166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414058/ft1_4FGL_J2236.5-1433_daily_bin1166.fits outfile=/scratch/kocevski/414058/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1166.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=541555201.0 tmax=541814401.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.66
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.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/414058/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1166.fits evtable="EVENTS" outfile="/scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits" evtable="EVENTS" scfile=/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits sctable="SC_DATA" outfile=/scratch/kocevski/414058/ltcube_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.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/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits
.....................!
real 17.47
user 17.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits sctable="SC_DATA" expcube=/scratch/kocevski/414058/ltcube_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.fits outfile=/scratch/kocevski/414058/expmap_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.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/414058/ltcube_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.fits
.....................!
real 191.09
user 186.20
sys 4.48

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.5-1433 @ 339.144 -14.5557

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits scfile=/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits outfile=/scratch/kocevski/414058/cmap_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.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.144 yref=-14.5557 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits scfile=/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits outfile=/scratch/kocevski/414058/cmap_HighResolution_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.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.144 yref=-14.5557 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414058/Model_4FGL_J2236.5-1433_daily_bin1166.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/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits.....................!
real 51.54
user 50.10
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits', '/scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits', expMap='/scratch/kocevski/414058/expmap_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.fits', expCube='/scratch/kocevski/414058/ltcube_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414058/Model_4FGL_J2236.5-1433_daily_bin1166.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.5-1433'

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/414058/ft1_filtered_4FGL_J2236.5-1433_daily_bin1166.fits
Spacecraft file(s): /scratch/kocevski/414058/ft2_4FGL_J2236.5-1433_daily_bin1166.fits
Exposure map: /scratch/kocevski/414058/expmap_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.fits
Exposure cube: /scratch/kocevski/414058/ltcube_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414058/Model_4FGL_J2236.5-1433_daily_bin1166.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) = 5544.87036545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.603       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .57751       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3871       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.917       1.0000         .10000E-03   10000.    
    15 'norm      '    .10846E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4588       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52856E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8883       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.5607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5544.342     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2420 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9260        .36250E-08** at limit **
   2  Prefactor     .10000E-03    7.7154        .36533E-08** at limit **
   3  Prefactor     .10000E-03    9.5202        .69112E-07** at limit **
   4  Prefactor     .10000E-03    5.6850       -.10988E-07** at limit **
   5  Prefactor     41.635        105.37        .68886E-05   -.14567E-04
   6  Prefactor     .10000E-03    2.7898        .13869E-06** at limit **
   7  Prefactor     .10000E-03    190.70        .10622E-05** at limit **
   8  norm          .57295        3.4275       -.50638E-06    .27628E-03
   9  Prefactor     .10000E-03    37.488       -.61601E-07** at limit **
  10  Prefactor     .10000E-03    18.604        .85549E-07** at limit **
  11  norm          1.3872        1.3925       -.28114E-07   -.22497E-03
  12  norm          2.7601        2.5074       -.11993E-06    .16271E-03
  13  Prefactor     .10000E-03    71.865        .25814E-06** at limit **
  14  Prefactor     21.954        32.121       -.96383E-06   -.25223E-03
  15  norm          .10000E-03    .98435        .46717E-06** at limit **
  16  Prefactor     3.3855        328.21       -.20273E-05   -.69273E-04
  17  Prefactor     .10022E-03    16.734        .84277E-06** at limit **
  18  Prefactor     4.8867        12.063       -.10023E-06   -.20809E-04
  19  Prefactor     .10000E-03    12.168       -.46871E-08** at limit **
  20  Normalizat    1.0274        .26094       -.17361E-06   -.42824E-04
  21  Prefactor     1.5606        .19852       -.78476E-06   -.14580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.635
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.572949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38715
  norm       = 2.76006
  Prefactor  = 0.0001
  Prefactor  = 21.9543
  norm       = 0.000100003
  Prefactor  = 3.38551
  Prefactor  = 0.000100218
  Prefactor  = 4.88675
  Prefactor  = 0.0001
  Normalizat = 1.0274
  Prefactor  = 1.56056
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.342     FROM HESSE     STATUS=OK           327 CALLS     2747 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9365        .12439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6982        .17337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.635        101.42        .62149E-04   -1.4417    
   6  Prefactor     .10000E-03    15.447        .23731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    193.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .57295        13.812        .23562E-02   -1.5557    
   9  Prefactor     .10000E-03    37.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3872        1.3701        .82289E-04   -1.5472    
  12  norm          2.7601        2.5019        .54645E-03   -1.5376    
  13  Prefactor     .10000E-03    72.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.954        32.216        .85558E-04   -1.4771    
  15  norm          .10000E-03    10.712        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3855        303.66        .21745E-03   -1.5340    
  17  Prefactor     .10022E-03    23.029        .83755E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8867        12.035        .18193E-03   -1.5266    
  19  Prefactor     .10000E-03    12.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0274        .31088        .34406E-03   -.92118    
  21  Prefactor     1.5606        .23818        .22187E-03   -.75857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18176e-09
Minuit parameter uncertainties:
  1  2.01491e-06
  2  3.38246e-06
  3  5.25423e-07
  4  3.37977e-06
  5  101.844
  6  0.000194639
  7  4.36054e-05
  8  5.62711
  9  1.72939e-05
  10  2.06421e-05
  11  1.37017
  12  2.50204
  13  4.1637e-05
  14  32.2419
  15  0.000366526
  16  64.4654
  17  0.00448613
  18  12.0414
  19  2.76775e-06
  20  0.311429
  21  0.23835
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.387e+00  1.370e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.065e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.561e+00  2.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.027e+00  3.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 2.60e-05

TS (Fixed Index): 1.36
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414058/likelihoodResults_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.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) = 5543.84442473
delta logL = 0.497281652144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.84103812
delta logL = 0.500668268559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2877       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7196       1.0000          .0000       5.0000    
     3 'Normalizat'    .98061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5543.841     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2874        19.260        .97623E-02    .64401E-03
   2  alpha         2.7200        3.8019        .35434        .33731E-04
   3  Normalizat    .98051        .80533E-01    .79285E-01    .16930E-04
   4  Prefactor     1.5787        .64398E-01    .49916E-01   -.40125E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28741
  alpha      = 2.71998
  Normalizat = 0.980513
  Prefactor  = 1.57865
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.841     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2874        1.2790        .60653E-04   -1.5481    
   2  alpha         2.7200        .72260        .13578E-01    .88104E-01
   3  Normalizat    .98051        .30729        .35092E-03   -.93686    
   4  Prefactor     1.5787        .23632        .22066E-03   -.75360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59429e-09
Minuit parameter uncertainties:
  1  1.27899
  2  0.733145
  3  0.307842
  4  0.236481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414058': 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) = 5543.84103785
delta logL = 0.500668532604

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.287e+00  1.279e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.720e+00  7.331e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.579e+00  2.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.805e-01  3.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.72 +/- 0.73
Photon Flux (Free Index): 1.02e-07 +/- 8.16e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.94e-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/414058/cmap_HighResolution_541555201_541814401_4FGL_J2236.5-1433_daily_bin1166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-05', comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='2.47e-05', photon_flux_error='5.31e-08', dlogl='5.01e-01', energy_flux='2.63e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-28 17:41:23.812221', photon_index_error2='0.73', photon_index2='2.72', ts='1.36', fit_tolerance='1e-08', GAL='1.56', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.94e-05', EG='1.03', time_epoch_completed='1632876083.81', return_code='0', job_id='414058', GAL2='1.58', EG2='0.98', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='8.16e-08', ts2='2.38', photon_index='2.06' WHERE bin_id='1166' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 414058: <4FGL_J2236.5-1433_daily_bin1166> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1166> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:51 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:52 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:30:52 2021
Terminated at Tue Sep 28 17:41:24 2021
Results reported at Tue Sep 28 17:41:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1166 339.144 -14.5557 541555201 541814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.5-1433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            633 sec.

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

