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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1358
RA = 339.144, Dec = -14.5557
tmin = 591321601, tmax = 591580801
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='415298', job_status='RUN', time_executed='2021-09-28 17:35:59.393789', time_epoch_executed='1632875759.39' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415298/ft1_4FGL_J2236.5-1433_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415298/ft1_4FGL_J2236.5-1433_daily_bin1358.fits outfile=/scratch/kocevski/415298/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1358.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=591321601.0 tmax=591580801.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.92
user 2.66
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.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/415298/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1358.fits evtable="EVENTS" outfile="/scratch/kocevski/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.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/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/415298/ltcube_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.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/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits
.....................!
real 12.55
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/415298/ltcube_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.fits outfile=/scratch/kocevski/415298/expmap_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.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/415298/ltcube_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.fits
.....................!
real 191.34
user 185.98
sys 5.00

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/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits scfile=/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits outfile=/scratch/kocevski/415298/cmap_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.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/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits scfile=/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits outfile=/scratch/kocevski/415298/cmap_HighResolution_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415298/Model_4FGL_J2236.5-1433_daily_bin1358.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/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits.....................!
real 32.60
user 31.22
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits', '/scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits', expMap='/scratch/kocevski/415298/expmap_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.fits', expCube='/scratch/kocevski/415298/ltcube_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415298/Model_4FGL_J2236.5-1433_daily_bin1358.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/415298/ft1_filtered_4FGL_J2236.5-1433_daily_bin1358.fits
Spacecraft file(s): /scratch/kocevski/415298/ft2_4FGL_J2236.5-1433_daily_bin1358.fits
Exposure map: /scratch/kocevski/415298/expmap_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.fits
Exposure cube: /scratch/kocevski/415298/ltcube_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415298/Model_4FGL_J2236.5-1433_daily_bin1358.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2739.52297755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.545       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14221E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.294       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2127       1.0000         .10000E-03   10000.    
    12 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.871       1.0000         .10000E-03   10000.    
    15 'norm      '    9.7048       1.0000         .10000E-03   10000.    
    16 'Prefactor '    98.064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94622       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74217       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=   2739.452     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2584 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7201       -.37333E-07** at limit **
   2  Prefactor     16.531        25.623       -.15572E-05    .17286E-04
   3  Prefactor     10.697        25.135        .21279E-05    .24630E-04
   4  Prefactor     .10000E-03    18.991        .14192E-07** at limit **
   5  Prefactor     .10000E-03    131.62       -.39155E-04** at limit **
   6  Prefactor     5.1517        8.5132        .82228E-06    .29050E-04
   7  Prefactor     .10000E-03    67.725       -.59654E-05** at limit **
   8  norm          .10000E-03    6.8664        .10674E-05** at limit **
   9  Prefactor     .10000E-03    93.343        .28991E-04** at limit **
  10  Prefactor     27.294        20.951        .16913E-05   -.54664E-04
  11  norm          1.2124        1.3506        .46411E-06    .52865E-03
  12  norm          .10000E-03    1.8615        .18511E-05** at limit **
  13  Prefactor     72.883        61.856       -.57088E-05   -.15789E-03
  14  Prefactor     33.194        142.51        .55240E-04    .19474E-05
  15  norm          9.6756        10.961       -.87022E-05   -.23718E-03
  16  Prefactor     98.178        91.469       -.86360E-05   -.41255E-05
  17  Prefactor     16.248        16.411        .15490E-05    .20701E-05
  18  Prefactor     .10000E-03    14.914        .64447E-06** at limit **
  19  Prefactor     .10000E-03    343.76        .13853E-04** at limit **
  20  Normalizat    .94590        .32026       -.15971E-04    .11877E-03
  21  Prefactor     .74245        .21799        .12314E-04   -.20992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.5309
  Prefactor  = 10.6968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15171
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2938
  norm       = 1.21238
  norm       = 0.000100001
  Prefactor  = 72.883
  Prefactor  = 33.1942
  norm       = 9.67559
  Prefactor  = 98.1785
  Prefactor  = 16.2484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.945903
  Prefactor  = 0.742451
 **********
 **   18 **HESSE 
 **********

 FCN=   2739.452     FROM HESSE     STATUS=OK           315 CALLS     2899 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7219        .84298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.531        25.617        .98467E-04   -1.4895    
   3  Prefactor     10.697        25.166        .12252E-03   -1.5054    
   4  Prefactor     .10000E-03    19.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    131.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1517        8.5179        .17694E-03   -1.5254    
   7  Prefactor     .10000E-03    67.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.9245        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    93.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.294        21.085        .76682E-04   -1.4663    
  11  norm          1.2124        1.3388        .60995E-04   -1.5488    
  12  norm          .10000E-03    1.8995        .13899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     72.883        61.859        .47041E-04   -1.3998    
  14  Prefactor     33.194        141.12        .69891E-04   -1.4555    
  15  norm          9.6756        10.945        .57032E-04   -1.5086    
  16  Prefactor     98.178        91.280        .20296E-03   -1.3723    
  17  Prefactor     16.248        16.411        .99373E-04   -1.4902    
  18  Prefactor     .10000E-03    14.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    350.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .94590        .35785        .28480E-03   -.94865    
  21  Prefactor     .74245        .24372        .23112E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60701e-09
Minuit parameter uncertainties:
  1  1.74364e-07
  2  25.6342
  3  25.1914
  4  2.69844e-05
  5  4.55033e-05
  6  8.5199
  7  1.03344e-05
  8  1.57516e-05
  9  2.20343e-05
  10  21.0907
  11  1.33888
  12  6.22808e-05
  13  61.9141
  14  137.442
  15  10.9476
  16  91.4112
  17  16.4156
  18  5.4228e-05
  19  0.000134728
  20  0.358753
  21  0.244073
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.212e+00  1.339e+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:  7.425e-01  2.441e-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.459e-01  3.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.70e-08 +/- 5.19e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 2.54e-05

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

Saving results to:
/scratch/kocevski/415298/likelihoodResults_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.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) = 2739.25356759
delta logL = 0.198725424506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2739.1668394
delta logL = 0.285453605305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64646       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3472       1.0000          .0000       5.0000    
     3 'Normalizat'    .96128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74149       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=   2739.167     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      194 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64636        .80244        .10246E-01   -.24296E-04
   2  alpha         1.3465        .58493        .29865       -.23678E-04
   3  Normalizat    .96114        .28184        .45680E-01    .52833E-05
   4  Prefactor     .74152        .20615        .42951E-01    .10185E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.646362
  alpha      = 1.34645
  Normalizat = 0.96114
  Prefactor  = 0.741522
 **********
 **   18 **HESSE 
 **********

 FCN=   2739.167     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64636        1.0594        .45220E-04   -1.5547    
   2  alpha         1.3465        .83123        .12118E-01   -.47959    
   3  Normalizat    .96114        .32222        .28301E-03   -.94344    
   4  Prefactor     .74152        .23589        .23138E-03   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73965e-12
Minuit parameter uncertainties:
  1  1.0594
  2  0.852027
  3  0.322877
  4  0.236212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415298': 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) = 2739.16683843
delta logL = 0.285454583718

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  6.464e-01  1.059e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.346e+00  8.520e-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:  7.415e-01  2.362e-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.611e-01  3.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 1.35 +/- 0.85
Photon Flux (Free Index): 1.73e-08 +/- 2.81e-08
Energy Flux (Free Index): 4.45e-05 +/- 7.27e-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/415298/cmap_HighResolution_591321601_591580801_4FGL_J2236.5-1433_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-05', comment='SUCCESS', photon_flux='4.70e-08', energy_flux2='4.45e-05', photon_flux_error='5.19e-08', dlogl='2.85e-01', energy_flux='2.30e-05', photon_flux2='1.73e-08', job_status='DONE', time_completed='2021-09-28 17:43:10.670575', photon_index_error2='0.85', photon_index2='1.35', ts='2.05', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='7.27e-05', EG='0.95', time_epoch_completed='1632876190.67', return_code='0', job_id='415298', GAL2='0.74', EG2='0.96', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='2.81e-08', ts2='2.63', photon_index='2.06' WHERE bin_id='1358' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:43:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 415298: <4FGL_J2236.5-1433_daily_bin1358> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1358> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:22 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:24 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:24 2021
Terminated at Tue Sep 28 17:43:11 2021
Results reported at Tue Sep 28 17:43:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1358 339.144 -14.5557 591321601 591580801 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 :                                   428.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             342.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            469 sec.

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

