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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1499
RA = 339.144, Dec = -14.5557
tmin = 627868801, tmax = 628128001
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='415511', job_status='RUN', time_executed='2021-09-28 17:39:42.652928', time_epoch_executed='1632875982.65' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415511

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415511/ft1_4FGL_J2236.5-1433_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415511/ft1_4FGL_J2236.5-1433_daily_bin1499.fits outfile=/scratch/kocevski/415511/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1499.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=627868801.0 tmax=628128001.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.47
user 2.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.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/415511/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/415511/ltcube_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.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/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits
.....................!
real 12.23
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/415511/ltcube_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.fits outfile=/scratch/kocevski/415511/expmap_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.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/415511/ltcube_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.fits
.....................!
real 189.91
user 185.13
sys 4.47

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/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits scfile=/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits outfile=/scratch/kocevski/415511/cmap_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits scfile=/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits outfile=/scratch/kocevski/415511/cmap_HighResolution_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415511/Model_4FGL_J2236.5-1433_daily_bin1499.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/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits.....................!
real 54.74
user 53.52
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits', '/scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits', expMap='/scratch/kocevski/415511/expmap_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.fits', expCube='/scratch/kocevski/415511/ltcube_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415511/Model_4FGL_J2236.5-1433_daily_bin1499.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/415511/ft1_filtered_4FGL_J2236.5-1433_daily_bin1499.fits
Spacecraft file(s): /scratch/kocevski/415511/ft2_4FGL_J2236.5-1433_daily_bin1499.fits
Exposure map: /scratch/kocevski/415511/expmap_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.fits
Exposure cube: /scratch/kocevski/415511/ltcube_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415511/Model_4FGL_J2236.5-1433_daily_bin1499.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) = 6182.27982032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0316       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53668E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.4314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.770       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1657       1.0000         .10000E-03   10000.    
    12 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.115       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1585       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87548       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=   6182.215     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2193 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6002        6.1676        .95347E-06   -.88845E-03
   2  Prefactor     4.0330        12.392        .58302E-05   -.52886E-03
   3  Prefactor     .10001E-03    7.0837       -.10703E-05** at limit **
   4  Prefactor     .10000E-03    5.4970        .85165E-07** at limit **
   5  Prefactor     .10002E-03    37.427       -.66533E-05** at limit **
   6  Prefactor     4.5776        4.1997        .41706E-06    .13794E-03
   7  Prefactor     .10000E-03    19.855       -.16974E-05** at limit **
   8  norm          8.4323        4.1864       -.38172E-06   -.83031E-03
   9  Prefactor     .10001E-03    28.983        .49407E-05** at limit **
  10  Prefactor     22.767        17.396       -.62314E-06   -.36877E-04
  11  norm          2.1658        .98324        .27405E-07    .14905E-04
  12  norm          .10000E-03    1.4285        .16316E-06** at limit **
  13  Prefactor     62.128        54.367        .37948E-05    .27963E-03
  14  Prefactor     .10000E-03    32.519        .28289E-05** at limit **
  15  norm          5.6545        1.4827        .46871E-07   -.53833E-03
  16  Prefactor     .10000E-03    14.081       -.16019E-05** at limit **
  17  Prefactor     .10000E-03    4.2451       -.23149E-07** at limit **
  18  Prefactor     .10000E-03    8.2173       -.25461E-06** at limit **
  19  Prefactor     .10000E-03    12.160        .17994E-05** at limit **
  20  Normalizat    1.1583        .21140       -.53212E-06    .70896E-04
  21  Prefactor     .87569        .15565       -.36729E-06    .58781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.60017
  Prefactor  = 4.03303
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 4.57762
  Prefactor  = 0.000100001
  norm       = 8.43234
  Prefactor  = 0.000100009
  Prefactor  = 22.7674
  norm       = 2.16583
  norm       = 0.0001
  Prefactor  = 62.1281
  Prefactor  = 0.000100003
  norm       = 5.65449
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.15831
  Prefactor  = 0.875694
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.215     FROM HESSE     STATUS=OK           313 CALLS     2506 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6002        6.2585        .68347E-03   -1.5121    
   2  Prefactor     4.0330        13.318        .10042E-02   -1.5306    
   3  Prefactor     .10001E-03    24.129        .39793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5117        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    39.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5776        4.1908        .14671E-03   -1.5280    
   7  Prefactor     .10000E-03    19.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.4323        4.2343        .10807E-03   -1.5127    
   9  Prefactor     .10001E-03    30.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.767        17.570        .83942E-04   -1.4753    
  11  norm          2.1658        .98177        .50464E-04   -1.5414    
  12  norm          .10000E-03    1.4411        .91465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     62.128        55.416        .50913E-04   -1.4130    
  14  Prefactor     .10000E-03    33.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6545        1.4725        .46651E-04   -1.5232    
  16  Prefactor     .10000E-03    14.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2708        .15821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1583        .25570        .27211E-03   -.87901    
  21  Prefactor     .87569        .18865        .23280E-03   -.96996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38821e-09
Minuit parameter uncertainties:
  1  6.25894
  2  13.3274
  3  0.000788094
  4  2.45443e-06
  5  0.00154297
  6  4.19102
  7  0.000286513
  8  4.23444
  9  0.00104436
  10  17.5736
  11  0.98178
  12  1.59893e-05
  13  55.4619
  14  0.000589986
  15  1.4725
  16  0.000231065
  17  1.65569e-06
  18  2.8416e-05
  19  0.000239258
  20  0.255973
  21  0.188792
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.166e+00  9.818e-01  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:  8.757e-01  1.888e-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.158e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.71
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 8.40e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 4.11e-05 +/- 1.86e-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) = 6182.2001606
delta logL = 0.0152524044861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6182.19963186
delta logL = 0.0157811461295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1736       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9865       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87243       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=   6182.200     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1736        2.7226        .69823E-02    .24887E-03
   2  alpha         1.9865        1.0145        .30373       -.54138E-05
   3  Normalizat    1.1650        .21364        .61376E-01    .92938E-05
   4  Prefactor     .87243        .16127        .44653E-01    .11369E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17356
  alpha      = 1.98647
  Normalizat = 1.165
  Prefactor  = 0.872429
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.200     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1736        .98976        .50980E-04   -1.5413    
   2  alpha         1.9865        .43289        .11714E-01   -.20688    
   3  Normalizat    1.1650        .24734        .27147E-03   -.87691    
   4  Prefactor     .87243        .18660        .23319E-03   -.97111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18351e-12
Minuit parameter uncertainties:
  1  0.989764
  2  0.435184
  3  0.247591
  4  0.186734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415511': 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) = 6182.19963186
delta logL = 0.0157811461995

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.174e+00  9.898e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.986e+00  4.352e-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:  8.724e-01  1.867e-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.165e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.73
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.99 +/- 0.44
Photon Flux (Free Index): 7.88e-08 +/- 4.60e-08
Energy Flux (Free Index): 4.40e-05 +/- 2.69e-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/415511/cmap_HighResolution_627868801_628128001_4FGL_J2236.5-1433_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.40e-08', energy_flux2='4.40e-05', photon_flux_error='3.81e-08', dlogl='1.58e-02', energy_flux='4.11e-05', photon_flux2='7.88e-08', job_status='DONE', time_completed='2021-09-28 17:49:00.214694', photon_index_error2='0.44', photon_index2='1.99', ts='12.71', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.69e-05', EG='1.16', time_epoch_completed='1632876540.21', return_code='0', job_id='415511', GAL2='0.87', EG2='1.17', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='4.60e-08', ts2='12.73', photon_index='2.06' WHERE bin_id='1499' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 415511: <4FGL_J2236.5-1433_daily_bin1499> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1499> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:38 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:39 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:35:39 2021
Terminated at Tue Sep 28 17:49:01 2021
Results reported at Tue Sep 28 17:49:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1499 339.144 -14.5557 627868801 628128001 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 :                                   520.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

