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


Performing analysis on: 4FGL_J2236.5-1433_daily_bin1298
RA = 339.144, Dec = -14.5557
tmin = 575769601, tmax = 576028801
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='415210', job_status='RUN', time_executed='2021-09-28 17:36:54.942234', time_epoch_executed='1632875814.94' WHERE source_name='4FGL J2236.5-1433' and cadence='daily' and bin_id='1298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415210/ft1_4FGL_J2236.5-1433_daily_bin1298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415210/ft1_4FGL_J2236.5-1433_daily_bin1298.fits outfile=/scratch/kocevski/415210/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1298.fits ra=339.144 dec=-14.5557 rad=12.0 tmin=575769601.0 tmax=576028801.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.85
user 3.62
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.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/415210/ft1_filteredMKT_4FGL_J2236.5-1433_daily_bin1298.fits evtable="EVENTS" outfile="/scratch/kocevski/415210/ft1_filtered_4FGL_J2236.5-1433_daily_bin1298.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/415210/ft1_filtered_4FGL_J2236.5-1433_daily_bin1298.fits" evtable="EVENTS" scfile=/scratch/kocevski/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.fits sctable="SC_DATA" outfile=/scratch/kocevski/415210/ltcube_575769601_576028801_4FGL_J2236.5-1433_daily_bin1298.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/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.fits
.....................!
real 12.03
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415210/ft1_filtered_4FGL_J2236.5-1433_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.fits sctable="SC_DATA" expcube=/scratch/kocevski/415210/ltcube_575769601_576028801_4FGL_J2236.5-1433_daily_bin1298.fits outfile=/scratch/kocevski/415210/expmap_575769601_576028801_4FGL_J2236.5-1433_daily_bin1298.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/415210/ltcube_575769601_576028801_4FGL_J2236.5-1433_daily_bin1298.fits
.....................!
real 192.24
user 186.42
sys 5.44

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/415210/ft1_filtered_4FGL_J2236.5-1433_daily_bin1298.fits scfile=/scratch/kocevski/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.fits outfile=/scratch/kocevski/415210/cmap_575769601_576028801_4FGL_J2236.5-1433_daily_bin1298.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 1.50
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415210/ft1_filtered_4FGL_J2236.5-1433_daily_bin1298.fits scfile=/scratch/kocevski/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.fits outfile=/scratch/kocevski/415210/cmap_HighResolution_575769601_576028801_4FGL_J2236.5-1433_daily_bin1298.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415210/ft1_filtered_4FGL_J2236.5-1433_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/415210/ft2_4FGL_J2236.5-1433_daily_bin1298.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415210/Model_4FGL_J2236.5-1433_daily_bin1298.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/415210/ft1_filtered_4FGL_J2236.5-1433_daily_bin1298.fits.....................!
real 67.31
user 65.84
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7814       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.158       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.789       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5759       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7151       1.0000         .10000E-03   10000.    
    12 'norm      '    .83438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.667       1.0000         .10000E-03   10000.    
    15 'norm      '    .70619E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.528       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.223       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .79720E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76068       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=   8102.427     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2337 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7806        4.2779       -.33991E-07   -.88619E-04
   2  Prefactor     .10000E-03    8.5418       -.97267E-07** at limit **
   3  Prefactor     31.546        12.759        .12813E-06    .20105E-04
   4  Prefactor     16.161        12.704       -.34453E-06   -.24555E-03
   5  Prefactor     48.183        74.847       -.12808E-05   -.64734E-04
   6  Prefactor     .10000E-03    2.2369       -.23799E-06** at limit **
   7  Prefactor     64.784        44.263       -.13278E-05   -.21457E-03
   8  norm          4.1972        3.1166        .88039E-07   -.81821E-04
   9  Prefactor     11.394        32.976       -.50286E-06   -.30209E-04
  10  Prefactor     1.5743        2.6718        .51013E-06   -.96483E-03
  11  norm          1.7149        .77792       -.15505E-07   -.83025E-03
  12  norm          .83509        1.4093        .43553E-07    .13371E-03
  13  Prefactor     .10000E-03    15.847       -.69522E-06** at limit **
  14  Prefactor     59.636        17.867       -.27809E-06   -.12476E-02
  15  norm          .10064E-03    .57335        .70908E-06** at limit **
  16  Prefactor     32.507        31.891       -.27863E-05   -.68098E-03
  17  Prefactor     13.220        10.594        .20183E-06   -.14909E-03
  18  Prefactor     .10094E-03    6.8059       -.17483E-05** at limit **
  19  Prefactor     .10000E-03    9.8598        .22127E-06** at limit **
  20  Normalizat    1.1809        .17079       -.14643E-07   -.22174E-03
  21  Prefactor     .76043        .12723       -.13151E-07   -.21550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78056
  Prefactor  = 0.0001
  Prefactor  = 31.5458
  Prefactor  = 16.1612
  Prefactor  = 48.1827
  Prefactor  = 0.000100001
  Prefactor  = 64.7838
  norm       = 4.19722
  Prefactor  = 11.3937
  Prefactor  = 1.57429
  norm       = 1.71491
  norm       = 0.835094
  Prefactor  = 0.0001
  Prefactor  = 59.6364
  norm       = 0.000100645
  Prefactor  = 32.5072
  Prefactor  = 13.2204
  Prefactor  = 0.000100937
  Prefactor  = 0.0001
  Normalizat = 1.18092
  Prefactor  = 0.760434
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.427     FROM HESSE     STATUS=OK           339 CALLS     2676 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7806        4.2708        .22162E-03   -1.5374    
   2  Prefactor     .10000E-03    8.5966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.546        12.820        .71335E-04   -1.4584    
   4  Prefactor     16.161        12.201        .99640E-04   -1.4904    
   5  Prefactor     48.183        74.902        .57765E-04   -1.4319    
   6  Prefactor     .10000E-03    4.5905        .24562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.784        44.269        .49858E-04   -1.4096    
   8  norm          4.1972        3.1051        .12818E-03   -1.5298    
   9  Prefactor     11.394        32.987        .11868E-03   -1.5033    
  10  Prefactor     1.5743        11.106        .16924E-02   -1.5457    
  11  norm          1.7149        .77658        .51023E-04   -1.5446    
  12  norm          .83509        1.0911        .13509E-02   -1.5525    
  13  Prefactor     .10000E-03    15.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.636        25.326        .51941E-04   -1.4162    
  15  norm          .10064E-03    3.9415        .17786E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.507        32.110        .70257E-04   -1.4567    
  17  Prefactor     13.220        10.593        .11015E-03   -1.4981    
  18  Prefactor     .10094E-03    6.7528        .66129E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.8846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1809        .20587        .25524E-03   -.87195    
  21  Prefactor     .76043        .15024        .23711E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51751e-09
Minuit parameter uncertainties:
  1  4.27129
  2  1.47389e-05
  3  12.8209
  4  12.2026
  5  75.0492
  6  0.000108176
  7  44.2919
  8  3.10526
  9  33.0399
  10  8.3648
  11  0.776589
  12  1.09117
  13  0.000124635
  14  25.3306
  15  0.00318841
  16  32.1267
  17  10.5945
  18  0.00503069
  19  3.12354e-05
  20  0.206013
  21  0.150319
Done.

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

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.715e+00  7.766e-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:  7.604e-01  1.503e-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.181e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.08
Ra Dec: 339.144 -14.556
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.65e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.47e-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) = 8102.42442657
delta logL = 0.0030328776138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8102.42400857
delta logL = 0.00345087915593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7339       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1054       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76138       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=   8102.424     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      227 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7339        .78707        .50677E-04   -.12040E-02
   2  alpha         2.1054        .48318        .13159E-01   -.36999E-04
   3  Normalizat    1.1780        .19596        .25547E-03    .92561E-05
   4  Prefactor     .76138        .14780        .23695E-03    .17560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73385
  alpha      = 2.10545
  Normalizat = 1.17796
  Prefactor  = 0.761382
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.424     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7339        .79264        .20271E-05   -1.5445    
   2  alpha         2.1054        .48633        .52637E-03   -.15848    
   3  Normalizat    1.1780        .19616        .10219E-04   -.87287    
   4  Prefactor     .76138        .14793        .94781E-05   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31107e-10
Minuit parameter uncertainties:
  1  0.792649
  2  0.48953
  3  0.196279
  4  0.148009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415210': 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) = 8102.42400855
delta logL = 0.00345089692928

Extracting fit parameters...

4FGL J2236.5-1433
   Spectrum: LogParabola
257         norm:  1.734e+00  7.926e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.105e+00  4.895e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  7.101e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  6.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  7.614e-01  1.480e-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.178e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.11
Ra Dec: 339.144 -14.556
Photon Index (Free Index): 2.11 +/- 0.49
Photon Flux (Free Index): 6.98e-08 +/- 5.04e-08
Energy Flux (Free Index): 3.20e-05 +/- 1.53e-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/415210/cmap_HighResolution_575769601_576028801_4FGL_J2236.5-1433_daily_bin1298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.65e-08', energy_flux2='3.20e-05', photon_flux_error='3.01e-08', dlogl='3.45e-03', energy_flux='3.25e-05', photon_flux2='6.98e-08', job_status='DONE', time_completed='2021-09-28 17:47:21.551182', photon_index_error2='0.49', photon_index2='2.11', ts='15.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.18', time_epoch_completed='1632876441.55', return_code='0', job_id='415210', GAL2='0.76', EG2='1.18', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='5.04e-08', ts2='15.11', photon_index='2.06' WHERE bin_id='1298' AND source_name='4FGL J2236.5-1433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:47:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 415210: <4FGL_J2236.5-1433_daily_bin1298> in cluster <slac> Done

Job <4FGL_J2236.5-1433_daily_bin1298> 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) <bullet0093>, 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:22 2021
Results reported at Tue Sep 28 17:47:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.5-1433_daily_bin1298 339.144 -14.5557 575769601 576028801 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            726 sec.

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

