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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1455
RA = 339.144, Dec = -14.5557
tmin = 616464001, tmax = 616723201
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='415443', job_status='RUN', time_executed='2021-09-28 17:36:24.934065', time_epoch_executed='1632875784.93' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415443

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415443/ft1_4FGL_J2236.5-1433_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415443/ft2_4FGL_J2236.5-1433_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415443/ft1_4FGL_J2236.5-1433_daily_bin1455.fits outfile=/scratch/kocevski/415443/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1455.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=616464001.0 tmax=616723201.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.87
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415443/ft1_filtered_4FGL_J2236.5-1433_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/415443/ft2_4FGL_J2236.5-1433_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/415443/ltcube_616464001_616723201_4FGL_J2236.5-1433_daily_bin1455.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/415443/ft2_4FGL_J2236.5-1433_daily_bin1455.fits
.....................!
real 12.18
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415443/ft1_filtered_4FGL_J2236.5-1433_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/415443/ft2_4FGL_J2236.5-1433_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/415443/ltcube_616464001_616723201_4FGL_J2236.5-1433_daily_bin1455.fits outfile=/scratch/kocevski/415443/expmap_616464001_616723201_4FGL_J2236.5-1433_daily_bin1455.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/415443/ltcube_616464001_616723201_4FGL_J2236.5-1433_daily_bin1455.fits
.....................!
real 189.95
user 185.20
sys 4.35

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/415443/ft1_filtered_4FGL_J2236.5-1433_daily_bin1455.fits scfile=/scratch/kocevski/415443/ft2_4FGL_J2236.5-1433_daily_bin1455.fits outfile=/scratch/kocevski/415443/cmap_616464001_616723201_4FGL_J2236.5-1433_daily_bin1455.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/415443/ft1_filtered_4FGL_J2236.5-1433_daily_bin1455.fits scfile=/scratch/kocevski/415443/ft2_4FGL_J2236.5-1433_daily_bin1455.fits outfile=/scratch/kocevski/415443/cmap_HighResolution_616464001_616723201_4FGL_J2236.5-1433_daily_bin1455.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/415443/ft1_filtered_4FGL_J2236.5-1433_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/415443/ft2_4FGL_J2236.5-1433_daily_bin1455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415443/Model_4FGL_J2236.5-1433_daily_bin1455.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/415443/ft1_filtered_4FGL_J2236.5-1433_daily_bin1455.fits.....................!
real 29.53
user 28.18
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11614E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.200       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21967E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.5225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0245       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.986       1.0000         .10000E-03   10000.    
    15 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.026       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.676       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91897       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0420       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=   2353.961     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2217 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    97.465       -.20079E-04** at limit **
   2  Prefactor     .10000E-03    118.11        .37272E-04** at limit **
   3  Prefactor     54.162        43.620       -.10283E-04    .51624E-04
   4  Prefactor     9.1819        20.619       -.56422E-06   -.51265E-05
   5  Prefactor     .10000E-03    262.37       -.78118E-04** at limit **
   6  Prefactor     .10000E-03    2.3160        .89840E-08** at limit **
   7  Prefactor     .10000E-03    63.134        .23525E-04** at limit **
   8  norm          7.5141        6.8573        .76676E-07    .14006E-03
   9  Prefactor     .10000E-03    81.833       -.54678E-04** at limit **
  10  Prefactor     .10000E-03    33.871       -.88543E-06** at limit **
  11  norm          3.0239        1.9511        .31108E-07   -.37047E-05
  12  norm          .10000E-03    2.1744        .22352E-08** at limit **
  13  Prefactor     .10000E-03    131.19        .65648E-04** at limit **
  14  Prefactor     11.950        26.656        .33907E-05   -.56157E-04
  15  norm          .10000E-03    2.9807        .13131E-06** at limit **
  16  Prefactor     34.003        55.079       -.11306E-04   -.18145E-04
  17  Prefactor     .10000E-03    15.705        .20933E-06** at limit **
  18  Prefactor     20.676        14.263        .45435E-06    .31502E-05
  19  Prefactor     .10000E-03    21.575        .10700E-06** at limit **
  20  Normalizat    .91965        .33398        .37773E-05   -.29034E-04
  21  Prefactor     1.0414        .25292        .44799E-06    .55079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 54.1616
  Prefactor  = 9.18187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.51406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.02394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9503
  norm       = 0.0001
  Prefactor  = 34.0031
  Prefactor  = 0.0001
  Prefactor  = 20.6764
  Prefactor  = 0.0001
  Normalizat = 0.919645
  Prefactor  = 1.04143
 **********
 **   18 **HESSE 
 **********

 FCN=   2353.961     FROM HESSE     STATUS=OK           311 CALLS     2528 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    98.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    118.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.162        43.550        .54483E-04   -1.4235    
   4  Prefactor     9.1819        20.634        .13226E-03   -1.5102    
   5  Prefactor     .10000E-03    262.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3186        .72091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5141        6.8559        .11630E-03   -1.5160    
   9  Prefactor     .10000E-03    81.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0239        1.9474        .51830E-04   -1.5360    
  12  norm          .10000E-03    2.1772        .69871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    131.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.950        21.992        .11571E-03   -1.5016    
  15  norm          .10000E-03    4.6665        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.003        55.192        .68698E-04   -1.4541    
  17  Prefactor     .10000E-03    15.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.676        14.265        .88085E-04   -1.4798    
  19  Prefactor     .10000E-03    21.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91965        .39198        .30307E-03   -.95773    
  21  Prefactor     1.0414        .29765        .21992E-03   -.91361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88924e-10
Minuit parameter uncertainties:
  1  0.00146057
  2  0.000434336
  3  43.5753
  4  20.6502
  5  0.000711233
  6  1.31451e-07
  7  1.4801e-05
  8  6.85659
  9  3.08727e-06
  10  9.05102e-05
  11  1.94741
  12  4.17504e-06
  13  0.000260599
  14  22.0065
  15  2.42532e-05
  16  55.275
  17  9.17362e-05
  18  14.2673
  19  2.24248e-05
  20  0.393202
  21  0.298127
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  3.024e+00  1.947e+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.041e+00  2.981e-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.196e-01  3.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.00
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 7.55e-08
Energy Flux (Fixed Index): 5.73e-05 +/- 3.69e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2353.87454562
delta logL = 0.0864864448736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2353.87244943
delta logL = 0.0885826410922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9741       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2938       1.0000          .0000       5.0000    
     3 'Normalizat'    .89961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0481       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=   2353.872     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9736        55.986        .58859E-02    .71090E-04
   2  alpha         2.2939        2.6081        .22540        .77854E-05
   3  Normalizat    .89922        .46708        .69137E-01    .62619E-05
   4  Prefactor     1.0485        .38756        .40025E-01   -.17697E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97362
  alpha      = 2.29387
  Normalizat = 0.899215
  Prefactor  = 1.04848
 **********
 **   18 **HESSE 
 **********

 FCN=   2353.872     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9736        1.8976        .49143E-04   -1.5363    
   2  alpha         2.2939        .55078        .94577E-02   -.82547E-01
   3  Normalizat    .89922        .38199        .30588E-03   -.96488    
   4  Prefactor     1.0485        .29361        .21914E-03   -.91130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21126e-12
Minuit parameter uncertainties:
  1  1.89763
  2  0.555371
  3  0.383148
  4  0.294063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415443': 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) = 2353.87244828
delta logL = 0.0885837852961

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  2.974e+00  1.898e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.294e+00  5.554e-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.048e+00  2.941e-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.992e-01  3.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.16
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.29 +/- 0.56
Photon Flux (Free Index): 1.45e-07 +/- 1.07e-07
Energy Flux (Free Index): 5.13e-05 +/- 3.40e-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/415443/cmap_HighResolution_616464001_616723201_4FGL_J2236.5-1433_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='5.13e-05', photon_flux_error='7.55e-08', dlogl='8.86e-02', energy_flux='5.73e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-28 17:42:54.096644', photon_index_error2='0.56', photon_index2='2.29', ts='5.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.40e-05', EG='0.92', time_epoch_completed='1632876174.1', return_code='0', job_id='415443', GAL2='1.05', EG2='0.90', return_code2='0', energy_flux_error='3.69e-05', photon_flux_error2='1.07e-07', ts2='5.16', photon_index='2.06' WHERE bin_id='1455' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:42:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 415443: <4FGL_J2236.5-1433_daily_bin1455> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1455> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:35:33 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:35:34 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:34 2021
Terminated at Tue Sep 28 17:42:57 2021
Results reported at Tue Sep 28 17:42:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1455 339.144 -14.5557 616464001 616723201 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 :                                   386.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   440 sec.
    Turnaround time :                            444 sec.

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

