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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1019
RA = 339.144, Dec = -14.5557
tmin = 503452801, tmax = 503712001
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='413827', job_status='RUN', time_executed='2021-09-28 17:31:39.323455', time_epoch_executed='1632875499.32' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413827/ft1_4FGL_J2236.5-1433_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413827/ft2_4FGL_J2236.5-1433_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413827/ft1_4FGL_J2236.5-1433_daily_bin1019.fits outfile=/scratch/kocevski/413827/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1019.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.77
user 7.46
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413827/ft1_filtered_4FGL_J2236.5-1433_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/413827/ft2_4FGL_J2236.5-1433_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/413827/ltcube_503452801_503712001_4FGL_J2236.5-1433_daily_bin1019.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/413827/ft2_4FGL_J2236.5-1433_daily_bin1019.fits
.....................!
real 11.65
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413827/ft1_filtered_4FGL_J2236.5-1433_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/413827/ft2_4FGL_J2236.5-1433_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/413827/ltcube_503452801_503712001_4FGL_J2236.5-1433_daily_bin1019.fits outfile=/scratch/kocevski/413827/expmap_503452801_503712001_4FGL_J2236.5-1433_daily_bin1019.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/413827/ltcube_503452801_503712001_4FGL_J2236.5-1433_daily_bin1019.fits
.....................!
real 191.39
user 185.92
sys 5.09

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/413827/ft1_filtered_4FGL_J2236.5-1433_daily_bin1019.fits scfile=/scratch/kocevski/413827/ft2_4FGL_J2236.5-1433_daily_bin1019.fits outfile=/scratch/kocevski/413827/cmap_503452801_503712001_4FGL_J2236.5-1433_daily_bin1019.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413827/ft1_filtered_4FGL_J2236.5-1433_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/413827/ft2_4FGL_J2236.5-1433_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413827/Model_4FGL_J2236.5-1433_daily_bin1019.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/413827/ft1_filtered_4FGL_J2236.5-1433_daily_bin1019.fits.....................!
real 117.17
user 115.73
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1013       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4946       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5705       1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0274       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1015       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5943       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    70.227       1.0000         .10000E-03   10000.    
    15 'norm      '    18.173       1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7320       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8578       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.872       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1787       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81817       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=   14666.60     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2292 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72538        2.2534       -.22884E-07   -.14750E-03
   2  Prefactor     7.1011        7.0151       -.52794E-06   -.33123E-04
   3  Prefactor     8.4940        7.1412       -.23039E-05   -.24855E-03
   4  Prefactor     3.5707        6.2478        .10832E-05    .97877E-05
   5  Prefactor     46.363        42.535       -.15423E-05   -.23387E-04
   6  Prefactor     4.0273        1.5488        .35393E-06   -.47571E-02
   7  Prefactor     .10000E-03    61.899       -.93521E-06** at limit **
   8  norm          3.1655        2.3288       -.94913E-07   -.19888E-03
   9  Prefactor     8.6266        39.798        .81991E-06    .48937E-05
  10  Prefactor     7.1009        9.3098       -.29638E-05   -.16376E-03
  11  norm          1.5942        .59278        .26067E-07    .17273E-03
  12  norm          1.2171        1.3453        .74181E-07   -.92044E-04
  13  Prefactor     .10000E-03    20.654        .30348E-06** at limit **
  14  Prefactor     70.224        41.134       -.17123E-05   -.11859E-04
  15  norm          18.173        3.6384        .20894E-06   -.28552E-03
  16  Prefactor     77.428        46.028        .18388E-06    .15207E-04
  17  Prefactor     2.7319        2.8858        .74476E-08    .88642E-04
  18  Prefactor     4.8579        6.3890        .24604E-05    .16195E-03
  19  Prefactor     29.872        19.291       -.20656E-07    .88713E-05
  20  Normalizat    1.1788        .14912        .14301E-05   -.11319E-03
  21  Prefactor     .81814        .10666       -.56144E-06    .17186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.725376
  Prefactor  = 7.10113
  Prefactor  = 8.494
  Prefactor  = 3.57067
  Prefactor  = 46.3632
  Prefactor  = 4.02732
  Prefactor  = 0.0001
  norm       = 3.16547
  Prefactor  = 8.62657
  Prefactor  = 7.10093
  norm       = 1.59421
  norm       = 1.21712
  Prefactor  = 0.0001
  Prefactor  = 70.2244
  norm       = 18.1733
  Prefactor  = 77.4285
  Prefactor  = 2.73192
  Prefactor  = 4.85791
  Prefactor  = 29.8722
  Normalizat = 1.17876
  Prefactor  = 0.818144
 **********
 **   18 **HESSE 
 **********

 FCN=   14666.60     FROM HESSE     STATUS=OK           333 CALLS     2625 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72538        3.4625        .30546E-02   -1.5538    
   2  Prefactor     7.1011        7.0081        .15053E-03   -1.5175    
   3  Prefactor     8.4940        7.1703        .13754E-03   -1.5125    
   4  Prefactor     3.5707        6.3951        .21388E-03   -1.5330    
   5  Prefactor     46.363        42.522        .58884E-04   -1.4345    
   6  Prefactor     4.0273        2.9173        .80042E-03   -1.5307    
   7  Prefactor     .10000E-03    62.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1655        2.3204        .14731E-03   -1.5352    
   9  Prefactor     8.6266        39.950        .13649E-03   -1.5120    
  10  Prefactor     7.1009        9.3932        .15053E-03   -1.5175    
  11  norm          1.5942        .59173        .54640E-04   -1.5455    
  12  norm          1.2171        1.3156        .14343E-03   -1.5487    
  13  Prefactor     .10000E-03    20.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     70.224        42.686        .47902E-04   -1.4030    
  15  norm          18.173        3.8244        .48710E-04   -1.4855    
  16  Prefactor     77.428        46.122        .45636E-04   -1.3946    
  17  Prefactor     2.7319        2.8914        .20624E-03   -1.5377    
  18  Prefactor     4.8579        6.3990        .18251E-03   -1.5267    
  19  Prefactor     29.872        19.299        .73305E-04   -1.4614    
  20  Normalizat    1.1788        .17903        .28755E-03   -.87262    
  21  Prefactor     .81814        .12853        .25421E-03   -.99063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61622e-08
Minuit parameter uncertainties:
  1  3.16969
  2  7.00894
  3  7.17103
  4  6.3963
  5  42.5495
  6  2.91738
  7  1.92736e-05
  8  2.32042
  9  37.169
  10  9.39511
  11  0.591737
  12  1.31567
  13  5.52772e-05
  14  42.7047
  15  3.82441
  16  46.1428
  17  2.8915
  18  6.39994
  19  19.3035
  20  0.179123
  21  0.128576
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.594e+00  5.917e-01  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.181e-01  1.286e-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.179e+00  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.24
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 1.12e-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) = 14666.4647129
delta logL = 0.133282262816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14666.4579578
delta logL = 0.140037447423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5814       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2542       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82265       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=   14666.46     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      208 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5814        8.3704        .84428E-02   -.50792E-04
   2  alpha         2.2542        3.6251        .37567        .13258E-04
   3  Normalizat    1.1680        .79241E-01    .65224E-01   -.68900E-04
   4  Prefactor     .82265        .49572E-01    .44011E-01    .29535E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58138
  alpha      = 2.25425
  Normalizat = 1.16799
  Prefactor  = 0.822653
 **********
 **   18 **HESSE 
 **********

 FCN=   14666.46     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5814        .57697        .52555E-04   -1.5456    
   2  alpha         2.2542        .36240        .13833E-01   -.98461E-01
   3  Normalizat    1.1680        .16676        .28853E-03   -.87598    
   4  Prefactor     .82265        .12509        .25350E-03   -.98899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37431e-11
Minuit parameter uncertainties:
  1  0.576973
  2  0.363694
  3  0.166839
  4  0.125138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413827': 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) = 14666.4579578
delta logL = 0.140037447491

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.581e+00  5.770e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.254e+00  3.637e-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.227e-01  1.251e-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.168e+00  1.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.53
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.25 +/- 0.36
Photon Flux (Free Index): 7.38e-08 +/- 3.42e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.07e-05

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/413827/cmap_HighResolution_503452801_503712001_4FGL_J2236.5-1433_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='2.75e-05', photon_flux_error='2.29e-08', dlogl='1.40e-01', energy_flux='3.02e-05', photon_flux2='7.38e-08', job_status='DONE', time_completed='2021-09-28 17:46:40.361103', photon_index_error2='0.36', photon_index2='2.25', ts='21.24', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.18', time_epoch_completed='1632876400.36', return_code='0', job_id='413827', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.42e-08', ts2='21.53', photon_index='2.06' WHERE bin_id='1019' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 413827: <4FGL_J2236.5-1433_daily_bin1019> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1019> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 17:30:36 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:30:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 17:30:37 2021
Terminated at Tue Sep 28 17:46:41 2021
Results reported at Tue Sep 28 17:46:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1019 339.144 -14.5557 503452801 503712001 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 :                                   898.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

