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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin673
RA = 339.144, Dec = -14.5557
tmin = 413769601, tmax = 414028801
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='412495', job_status='RUN', time_executed='2021-09-28 17:25:46.210201', time_epoch_executed='1632875146.21' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412495

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412495/ft1_4FGL_J2236.5-1433_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412495/ft2_4FGL_J2236.5-1433_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412495/ft1_4FGL_J2236.5-1433_daily_bin673.fits outfile=/scratch/kocevski/412495/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin673.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.23
user 5.93
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412495/ft2_4FGL_J2236.5-1433_daily_bin673.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/412495/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin673.fits evtable="EVENTS" outfile="/scratch/kocevski/412495/ft1_filtered_4FGL_J2236.5-1433_daily_bin673.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/412495/ft1_filtered_4FGL_J2236.5-1433_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/412495/ft2_4FGL_J2236.5-1433_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/412495/ltcube_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.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/412495/ft2_4FGL_J2236.5-1433_daily_bin673.fits
.....................!
real 13.14
user 12.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412495/ft1_filtered_4FGL_J2236.5-1433_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/412495/ft2_4FGL_J2236.5-1433_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/412495/ltcube_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.fits outfile=/scratch/kocevski/412495/expmap_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.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/412495/ltcube_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.fits
.....................!
real 191.52
user 186.31
sys 4.80

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/412495/ft1_filtered_4FGL_J2236.5-1433_daily_bin673.fits scfile=/scratch/kocevski/412495/ft2_4FGL_J2236.5-1433_daily_bin673.fits outfile=/scratch/kocevski/412495/cmap_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412495/ft1_filtered_4FGL_J2236.5-1433_daily_bin673.fits scfile=/scratch/kocevski/412495/ft2_4FGL_J2236.5-1433_daily_bin673.fits outfile=/scratch/kocevski/412495/cmap_HighResolution_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412495/ft1_filtered_4FGL_J2236.5-1433_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/412495/ft2_4FGL_J2236.5-1433_daily_bin673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412495/Model_4FGL_J2236.5-1433_daily_bin673.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/412495/ft1_filtered_4FGL_J2236.5-1433_daily_bin673.fits.....................!
real 37.95
user 36.65
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.219       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    164.12       1.0000         .10000E-03   10000.    
     8 'norm      '    9.7125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.311       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1714       1.0000         .10000E-03   10000.    
    12 'norm      '    .10979E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12589E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.883       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.583       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .36208       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4786       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=   3196.175     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2247 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.224        13.207       -.18115E-06   -.10284E-03
   2  Prefactor     .10000E-03    30.578       -.54976E-06** at limit **
   3  Prefactor     .10000E-03    44.044       -.11148E-05** at limit **
   4  Prefactor     5.8330        19.450        .26871E-07   -.22118E-04
   5  Prefactor     .10000E-03    81.152        .13388E-05** at limit **
   6  Prefactor     .10000E-03    3.5498        .18178E-06** at limit **
   7  Prefactor     164.13        119.80       -.74517E-06   -.18478E-04
   8  norm          9.7139        9.4102       -.75856E-07   -.43629E-04
   9  Prefactor     .10000E-03    125.64        .29468E-06** at limit **
  10  Prefactor     20.289        28.092       -.10231E-05   -.39536E-05
  11  norm          1.1716        1.1889        .13761E-07   -.24936E-03
  12  norm          .10000E-03    2.8437       -.55961E-06** at limit **
  13  Prefactor     .10000E-03    126.49       -.13233E-05** at limit **
  14  Prefactor     .10000E-03    44.612        .56001E-05** at limit **
  15  norm          .10000E-03    1.0124        .10270E-05** at limit **
  16  Prefactor     23.918        49.786       -.43844E-05   -.78106E-04
  17  Prefactor     .10000E-03    7.7720        .22151E-06** at limit **
  18  Prefactor     31.310        29.253       -.33658E-06   -.77755E-04
  19  Prefactor     14.576        36.380       -.84305E-06   -.11005E-04
  20  Normalizat    .36220        .39345        .10231E-04   -.12305E-04
  21  Prefactor     1.4786        .28138       -.34085E-05   -.23647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.83303
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 164.132
  norm       = 9.71388
  Prefactor  = 0.000100001
  Prefactor  = 20.2886
  norm       = 1.17162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9182
  Prefactor  = 0.0001
  Prefactor  = 31.3104
  Prefactor  = 14.5762
  Normalizat = 0.3622
  Prefactor  = 1.47856
 **********
 **   18 **HESSE 
 **********

 FCN=   3196.175     FROM HESSE     STATUS=OK           313 CALLS     2560 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.224        13.213        .69525E-04   -1.4555    
   2  Prefactor     .10000E-03    30.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8330        19.455        .16630E-03   -1.5225    
   5  Prefactor     .10000E-03    80.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5550        .10397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     164.13        119.69        .31483E-04   -1.3139    
   8  norm          9.7139        9.4032        .12858E-03   -1.5085    
   9  Prefactor     .10000E-03    125.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.289        27.568        .88873E-04   -1.4807    
  11  norm          1.1716        1.1915        .59661E-04   -1.5491    
  12  norm          .10000E-03    4.5194        .18206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    126.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0288        .11053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.918        51.581        .81965E-04   -1.4729    
  17  Prefactor     .10000E-03    7.7733        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.310        29.250        .71608E-04   -1.4588    
  19  Prefactor     14.576        36.331        .10488E-03   -1.4944    
  20  Normalizat    .36220        .38846        .50454E-03   -1.1930    
  21  Prefactor     1.4786        .28722        .19981E-03   -.78142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96285e-10
Minuit parameter uncertainties:
  1  13.2137
  2  2.02648e-05
  3  7.86259e-05
  4  19.4764
  5  0.000783006
  6  2.3394e-06
  7  119.864
  8  9.40464
  9  0.000545579
  10  27.585
  11  1.19148
  12  7.78664e-05
  13  0.000468421
  14  9.56701e-05
  15  4.85649e-09
  16  51.6772
  17  1.88014e-07
  18  29.2632
  19  36.3861
  20  0.391398
  21  0.287531
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.172e+00  1.191e+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.479e+00  2.875e-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:  3.622e-01  3.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.55e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 2.26e-05

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

Saving results to:
/scratch/kocevski/412495/likelihoodResults_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.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) = 3196.15361297
delta logL = 0.0216110998708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3196.1477194
delta logL = 0.0275046732509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0298       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8276       1.0000          .0000       5.0000    
     3 'Normalizat'    .36986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4772       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=   3196.148     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0290        1.0827        .12523E-01   -.73573E-04
   2  alpha         1.8274        .69168        .42816       -.14271E-04
   3  Normalizat    .36986        .35262        .11274        .29796E-04
   4  Prefactor     1.4772        .26932        .45233E-01   -.29194E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02905
  alpha      = 1.82736
  Normalizat = 0.36986
  Prefactor  = 1.47717
 **********
 **   18 **HESSE 
 **********

 FCN=   3196.148     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0290        1.2737        .57248E-04   -1.5505    
   2  alpha         1.8274        .96154        .15589E-01   -.27241    
   3  Normalizat    .36986        .35830        .49957E-03   -1.1889    
   4  Prefactor     1.4772        .27495        .19992E-03   -.78181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55016e-10
Minuit parameter uncertainties:
  1  1.27378
  2  0.98913
  3  0.360552
  4  0.275226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412495': 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) = 3196.14771911
delta logL = 0.0275049635807

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.029e+00  1.274e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.827e+00  9.891e-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.477e+00  2.752e-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:  3.699e-01  3.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.13
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.83 +/- 0.99
Photon Flux (Free Index): 3.30e-08 +/- 5.65e-08
Energy Flux (Free Index): 2.51e-05 +/- 3.19e-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/412495/cmap_HighResolution_413769601_414028801_4FGL_J2236.5-1433_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-05', comment='SUCCESS', photon_flux='4.55e-08', energy_flux2='2.51e-05', photon_flux_error='4.62e-08', dlogl='2.75e-02', energy_flux='2.22e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-28 17:33:24.106774', photon_index_error2='0.99', photon_index2='1.83', ts='3.07', fit_tolerance='1e-08', GAL='1.48', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='3.19e-05', EG='0.36', time_epoch_completed='1632875604.11', return_code='0', job_id='412495', GAL2='1.48', EG2='0.37', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='5.65e-08', ts2='3.13', photon_index='2.06' WHERE bin_id='673' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:33:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 412495: <4FGL_J2236.5-1433_daily_bin673> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin673> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:25:36 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:25:37 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:25:37 2021
Terminated at Tue Sep 28 17:33:24 2021
Results reported at Tue Sep 28 17:33:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin673 339.144 -14.5557 413769601 414028801 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 :                                   456.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            468 sec.

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

