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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1060
RA = 339.144, Dec = -14.5557
tmin = 514080001, tmax = 514339201
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='413887', job_status='RUN', time_executed='2021-09-28 17:33:26.619123', time_epoch_executed='1632875606.62' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413887/ft1_4FGL_J2236.5-1433_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413887/ft2_4FGL_J2236.5-1433_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413887/ft1_4FGL_J2236.5-1433_daily_bin1060.fits outfile=/scratch/kocevski/413887/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1060.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=514080001.0 tmax=514339201.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.62
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413887/ft1_filtered_4FGL_J2236.5-1433_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/413887/ft2_4FGL_J2236.5-1433_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/413887/ltcube_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.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/413887/ft2_4FGL_J2236.5-1433_daily_bin1060.fits
.....................!
real 12.11
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413887/ft1_filtered_4FGL_J2236.5-1433_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/413887/ft2_4FGL_J2236.5-1433_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/413887/ltcube_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.fits outfile=/scratch/kocevski/413887/expmap_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.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/413887/ltcube_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.fits
.....................!
real 192.08
user 186.51
sys 5.15

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/413887/ft1_filtered_4FGL_J2236.5-1433_daily_bin1060.fits scfile=/scratch/kocevski/413887/ft2_4FGL_J2236.5-1433_daily_bin1060.fits outfile=/scratch/kocevski/413887/cmap_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413887/ft1_filtered_4FGL_J2236.5-1433_daily_bin1060.fits scfile=/scratch/kocevski/413887/ft2_4FGL_J2236.5-1433_daily_bin1060.fits outfile=/scratch/kocevski/413887/cmap_HighResolution_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.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/413887/ft1_filtered_4FGL_J2236.5-1433_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/413887/ft2_4FGL_J2236.5-1433_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413887/Model_4FGL_J2236.5-1433_daily_bin1060.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/413887/ft1_filtered_4FGL_J2236.5-1433_daily_bin1060.fits.....................!
real 50.46
user 49.11
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7514       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9092       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0391       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4720       1.0000         .10000E-03   10000.    
    12 'norm      '    .10437E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.717       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.004       1.0000         .10000E-03   10000.    
    15 'norm      '    8.2012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.580       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88424       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0109       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=   5292.608     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2233 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7466        6.5969        .40432E-06    .77053E-04
   2  Prefactor     7.8949        15.678        .27258E-06   -.10052E-04
   3  Prefactor     .47098        9.9609        .10516E-05   -.24137E-03
   4  Prefactor     16.376        14.012       -.12166E-07    .14202E-04
   5  Prefactor     .10000E-03    81.811       -.20990E-06** at limit **
   6  Prefactor     .10000E-03    2.7245       -.30291E-06** at limit **
   7  Prefactor     .10000E-03    23.912       -.11848E-06** at limit **
   8  norm          3.0394        3.9044        .24850E-06    .23655E-04
   9  Prefactor     .10000E-03    29.431       -.78554E-07** at limit **
  10  Prefactor     .10000E-03    6.2018        .18279E-05** at limit **
  11  norm          1.4715        1.1952        .20593E-07    .23669E-05
  12  norm          .10000E-03    1.7838        .45674E-05** at limit **
  13  Prefactor     49.837        58.402       -.37634E-06   -.10229E-04
  14  Prefactor     56.982        48.521       -.13286E-05   -.44369E-04
  15  norm          8.2060        4.1701        .30569E-06   -.34924E-04
  16  Prefactor     .10000E-03    49.565       -.13142E-05** at limit **
  17  Prefactor     22.579        16.398       -.18982E-06    .72239E-05
  18  Prefactor     .10000E-03    13.861       -.64715E-06** at limit **
  19  Prefactor     17.659        27.566        .18563E-06    .26332E-04
  20  Normalizat    .88353        .24184       -.50526E-05   -.29634E-04
  21  Prefactor     1.0111        .17801        .37883E-05   -.33291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74664
  Prefactor  = 7.89492
  Prefactor  = 0.470976
  Prefactor  = 16.3763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47145
  norm       = 0.0001
  Prefactor  = 49.8368
  Prefactor  = 56.9822
  norm       = 8.20602
  Prefactor  = 0.0001
  Prefactor  = 22.579
  Prefactor  = 0.0001
  Prefactor  = 17.6587
  Normalizat = 0.883534
  Prefactor  = 1.01111
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.608     FROM HESSE     STATUS=OK           321 CALLS     2554 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7466        6.5901        .18459E-03   -1.5272    
   2  Prefactor     7.8949        15.689        .14257E-03   -1.5146    
   3  Prefactor     .47098        104.39        .41601E-02   -1.5571    
   4  Prefactor     16.376        14.012        .98989E-04   -1.4898    
   5  Prefactor     .10000E-03    81.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7749        .11715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0394        3.8924        .15436E-03   -1.5359    
   9  Prefactor     .10000E-03    29.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2230        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4715        1.1783        .67458E-04   -1.5465    
  12  norm          .10000E-03    1.8313        .95280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.837        58.714        .28437E-03   -1.4295    
  14  Prefactor     56.982        51.789        .53133E-04   -1.4197    
  15  norm          8.2060        4.4399        .53970E-04   -1.5135    
  16  Prefactor     .10000E-03    49.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.579        16.401        .84294E-04   -1.4757    
  18  Prefactor     .10000E-03    14.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.659        27.569        .95334E-04   -1.4867    
  20  Normalizat    .88353        .28316        .30855E-03   -.97041    
  21  Prefactor     1.0111        .20672        .22040E-03   -.92360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57562e-09
Minuit parameter uncertainties:
  1  6.59108
  2  15.6976
  3  14.0468
  4  14.0147
  5  0.000176695
  6  6.19928e-06
  7  1.15032e-05
  8  3.89269
  9  3.07449e-05
  10  2.80508e-05
  11  1.17834
  12  2.54158e-05
  13  58.7825
  14  51.8297
  15  4.44004
  16  0.000158607
  17  16.404
  18  5.94862e-07
  19  27.5892
  20  0.283632
  21  0.20688
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.471e+00  1.178e+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.011e+00  2.069e-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:  8.835e-01  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.71e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 2.23e-05

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

Saving results to:
/scratch/kocevski/413887/likelihoodResults_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.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) = 5292.53630134
delta logL = 0.0721281071428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5292.53490737
delta logL = 0.073522081846

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4998       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3080       1.0000          .0000       5.0000    
     3 'Normalizat'    .86844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0167       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5292.535     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      235 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5008        1.1428        .34968E-04   -.87488E-03
   2  alpha         2.3079        .63413        .14049E-01   -.41669E-04
   3  Normalizat    .86827        .26490        .31082E-03    .63277E-05
   4  Prefactor     1.0168        .20083        .21977E-03    .37091E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50083
  alpha      = 2.30789
  Normalizat = 0.868271
  Prefactor  = 1.01682
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.535     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5008        1.1348        .13987E-05   -1.5463    
   2  alpha         2.3079        .62945        .56195E-03   -.76920E-01
   3  Normalizat    .86827        .26509        .12433E-04   -.97584    
   4  Prefactor     1.0168        .20096        .87907E-05   -.92171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62207e-10
Minuit parameter uncertainties:
  1  1.13484
  2  0.636336
  3  0.265484
  4  0.201107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413887': 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) = 5292.53490665
delta logL = 0.0735228000176

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.501e+00  1.135e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.308e+00  6.363e-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.017e+00  2.011e-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:  8.683e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.31 +/- 0.64
Photon Flux (Free Index): 7.41e-08 +/- 6.86e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.99e-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/413887/cmap_HighResolution_514080001_514339201_4FGL_J2236.5-1433_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-05', comment='SUCCESS', photon_flux='5.71e-08', energy_flux2='2.58e-05', photon_flux_error='4.57e-08', dlogl='7.35e-02', energy_flux='2.79e-05', photon_flux2='7.41e-08', job_status='DONE', time_completed='2021-09-28 17:42:25.558098', photon_index_error2='0.64', photon_index2='2.31', ts='2.49', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.99e-05', EG='0.88', time_epoch_completed='1632876145.56', return_code='0', job_id='413887', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='6.86e-08', ts2='2.65', photon_index='2.06' WHERE bin_id='1060' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 413887: <4FGL_J2236.5-1433_daily_bin1060> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1060 339.144 -14.5557 514080001 514339201 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 :                                   537.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

