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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1297
RA = 339.144, Dec = -14.5557
tmin = 575510401, tmax = 575769601
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='415209', job_status='RUN', time_executed='2021-09-28 17:36:34.685176', time_epoch_executed='1632875794.69' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415209/ft1_4FGL_J2236.5-1433_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415209/ft2_4FGL_J2236.5-1433_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415209/ft1_4FGL_J2236.5-1433_daily_bin1297.fits outfile=/scratch/kocevski/415209/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1297.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=575510401.0 tmax=575769601.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 5.29
user 4.99
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415209/ft1_filtered_4FGL_J2236.5-1433_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/415209/ft2_4FGL_J2236.5-1433_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/415209/ltcube_575510401_575769601_4FGL_J2236.5-1433_daily_bin1297.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/415209/ft2_4FGL_J2236.5-1433_daily_bin1297.fits
.....................!
real 11.94
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415209/ft1_filtered_4FGL_J2236.5-1433_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/415209/ft2_4FGL_J2236.5-1433_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/415209/ltcube_575510401_575769601_4FGL_J2236.5-1433_daily_bin1297.fits outfile=/scratch/kocevski/415209/expmap_575510401_575769601_4FGL_J2236.5-1433_daily_bin1297.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/415209/ltcube_575510401_575769601_4FGL_J2236.5-1433_daily_bin1297.fits
.....................!
real 190.10
user 184.70
sys 5.02

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/415209/ft1_filtered_4FGL_J2236.5-1433_daily_bin1297.fits scfile=/scratch/kocevski/415209/ft2_4FGL_J2236.5-1433_daily_bin1297.fits outfile=/scratch/kocevski/415209/cmap_575510401_575769601_4FGL_J2236.5-1433_daily_bin1297.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415209/ft1_filtered_4FGL_J2236.5-1433_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/415209/ft2_4FGL_J2236.5-1433_daily_bin1297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415209/Model_4FGL_J2236.5-1433_daily_bin1297.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/415209/ft1_filtered_4FGL_J2236.5-1433_daily_bin1297.fits.....................!
real 63.97
user 62.58
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1700       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5390       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .79242E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1479       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81872       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=   7771.562     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2220 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1681        5.4956        .89925E-06    .88320E-05
   2  Prefactor     .10000E-03    10.647       -.11023E-06** at limit **
   3  Prefactor     18.389        10.647       -.20061E-06   -.11421E-04
   4  Prefactor     .10000E-03    6.2954        .24384E-07** at limit **
   5  Prefactor     7.4942        124.43        .14710E-04   -.91874E-06
   6  Prefactor     3.2979        3.4768        .10533E-05    .21757E-04
   7  Prefactor     .10000E-03    16.111        .30825E-07** at limit **
   8  norm          .79515E-01    1.1089       -.61235E-07   -.38328E-03
   9  Prefactor     44.372        43.460        .59107E-06    .60212E-05
  10  Prefactor     .10000E-03    2.8850        .23729E-07** at limit **
  11  norm          .10000E-03    .22589       -.90833E-07** at limit **
  12  norm          .10000E-03    .65364        .80810E-07** at limit **
  13  Prefactor     .10000E-03    9.8331        .10953E-06** at limit **
  14  Prefactor     .10000E-03    10.141       -.13301E-06** at limit **
  15  norm          2.8268        1.1342       -.13957E-07    .13575E-03
  16  Prefactor     31.386        24.405        .45423E-06    .93811E-05
  17  Prefactor     .10000E-03    4.1411       -.34544E-07** at limit **
  18  Prefactor     .10000E-03    5.0944        .11899E-06** at limit **
  19  Prefactor     .10000E-03    8.3508        .30888E-06** at limit **
  20  Normalizat    1.1480        .15855       -.57898E-07    .33266E-04
  21  Prefactor     .81865        .12181       -.57956E-06    .65625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16806
  Prefactor  = 0.0001
  Prefactor  = 18.3894
  Prefactor  = 0.0001
  Prefactor  = 7.49416
  Prefactor  = 3.29793
  Prefactor  = 0.0001
  norm       = 0.0795147
  Prefactor  = 44.372
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82677
  Prefactor  = 31.3864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.148
  Prefactor  = 0.818651
 **********
 **   18 **HESSE 
 **********

 FCN=   7771.562     FROM HESSE     STATUS=OK           319 CALLS     2539 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1681        5.5476        .38835E-03   -1.5492    
   2  Prefactor     .10000E-03    10.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.389        10.641        .93404E-04   -1.4850    
   4  Prefactor     .10000E-03    6.3573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4942        125.31        .14606E-03   -1.5160    
   6  Prefactor     3.2979        3.4889        .80910E-03   -1.5345    
   7  Prefactor     .10000E-03    16.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .79515E-01    9.0172        .17553E-02   -1.5652    
   9  Prefactor     44.372        43.447        .60183E-04   -1.4375    
  10  Prefactor     .10000E-03    2.8928        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35629        .81037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2268        .13888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8268        1.1396        .50482E-04   -1.5372    
  16  Prefactor     31.386        24.643        .71515E-04   -1.4587    
  17  Prefactor     .10000E-03    4.1683        .17518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.3630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1480        .18789        .24145E-03   -.88225    
  21  Prefactor     .81865        .14406        .21735E-03   -.99044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.685e-10
Minuit parameter uncertainties:
  1  5.09171
  2  9.67363e-06
  3  10.6417
  4  3.03225e-06
  5  61.4414
  6  3.48908
  7  9.44268e-07
  8  1.69272
  9  43.4785
  10  1.46612e-06
  11  5.77992e-07
  12  1.52993e-06
  13  1.29367e-06
  14  1.31469e-05
  15  1.13957
  16  24.6509
  17  2.88221e-07
  18  2.42314e-07
  19  9.1662e-08
  20  0.187997
  21  0.144124
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  5.780e-07  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.187e-01  1.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:  1.148e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.144 -14.556
Photon Flux Upper Limit: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415209/likelihoodResults_575510401_575769601_4FGL_J2236.5-1433_daily_bin1297.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): 102
logL (Free Index) = 7771.56275578
delta logL = -0.000884613429662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7771.56187072
delta logL = 4.42206328444e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0523       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81865       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=   7771.562     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      260 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    64.334        .81182E-03** at limit **
   2  alpha         1.9056        3.5860        .50000       -.25548E-06
   3  Normalizat    1.1480        .74815E-01    .24145E-03    .15982E-02
   4  Prefactor     .81865        .58237E-01    .21735E-03    .17990E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90563
  Normalizat = 1.148
  Prefactor  = 0.818652
 **********
 **   18 **HESSE 
 **********

 FCN=   7771.562     FROM HESSE     STATUS=OK            29 CALLS      289 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .42068        .16236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9056        2.6007        .50000       -.24005    
   3  Normalizat    1.1480        .18298        .48290E-04   -.88225    
   4  Prefactor     .81865        .14232        .43469E-04   -.99044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21474e-09
Minuit parameter uncertainties:
  1  1.6767e-06
  2  52.4353
  3  0.183085
  4  0.142387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415209': 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) = 7771.56186808
delta logL = 3.08454036713e-06

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.000e-04  1.677e-06  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.906e+00  5.244e+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.187e-01  1.424e-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.148e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 339.144 -14.556

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/415209/cmap_HighResolution_575510401_575769601_4FGL_J2236.5-1433_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-05', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-28 17:47:23.005167', job_id='415209', GAL2='0.82', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632876443.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1297' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:47:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 415209: <4FGL_J2236.5-1433_daily_bin1297> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1297> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:16 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:18 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:18 2021
Terminated at Tue Sep 28 17:47:23 2021
Results reported at Tue Sep 28 17:47:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1297 339.144 -14.5557 575510401 575769601 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

