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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1431
RA = 339.125, Dec = -23.1552
tmin = 610243201, tmax = 610502401
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='409262', job_status='RUN', time_executed='2021-09-28 17:19:19.773887', time_epoch_executed='1632874759.77' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409262/ft1_4FGL_J2236.4-2309_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409262/ft1_4FGL_J2236.4-2309_daily_bin1431.fits outfile=/scratch/kocevski/409262/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1431.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=610243201.0 tmax=610502401.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.90
user 3.68
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.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/409262/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/409262/ltcube_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.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/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits
.....................!
real 11.87
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/409262/ltcube_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.fits outfile=/scratch/kocevski/409262/expmap_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.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/409262/ltcube_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.fits
.....................!
real 193.93
user 188.66
sys 4.95

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.4-2309 @ 339.125 -23.1552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits scfile=/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits outfile=/scratch/kocevski/409262/cmap_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.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.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits scfile=/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits outfile=/scratch/kocevski/409262/cmap_HighResolution_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.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.125 yref=-23.1552 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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409262/Model_4FGL_J2236.4-2309_daily_bin1431.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/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits.....................!
real 45.76
user 44.38
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits', '/scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits', expMap='/scratch/kocevski/409262/expmap_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.fits', expCube='/scratch/kocevski/409262/ltcube_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/409262/Model_4FGL_J2236.4-2309_daily_bin1431.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.4-2309'

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.382e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/409262/ft1_filtered_4FGL_J2236.4-2309_daily_bin1431.fits
Spacecraft file(s): /scratch/kocevski/409262/ft2_4FGL_J2236.4-2309_daily_bin1431.fits
Exposure map: /scratch/kocevski/409262/expmap_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.fits
Exposure cube: /scratch/kocevski/409262/ltcube_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/409262/Model_4FGL_J2236.4-2309_daily_bin1431.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) = 5043.6315844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.840       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.695       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.584       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8559       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.566       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .68595E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5393       1.0000         .10000E-03   10000.    
    16 'norm      '    .14368E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.395       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.414       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3511       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0127       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5042.708     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2822 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.845        16.506       -.19934E-06   -.42980E-04
   2  Prefactor     .10000E-03    30.561        .94017E-06** at limit **
   3  norm          .13265        .19951        .22258E-08   -.40893E-04
   4  Prefactor     27.931        15.642        .42027E-07    .43991E-04
   5  Prefactor     10.779        16.808        .42782E-06    .50419E-04
   6  Prefactor     20.677        20.885        .54351E-07    .28439E-04
   7  Prefactor     .10000E-03    14.496       -.47014E-07** at limit **
   8  norm          .10000E-03    30.167        .14383E-05** at limit **
   9  Prefactor     22.574        17.488        .27877E-06    .13634E-03
  10  norm          1.8558        1.1907        .74890E-07   -.37444E-03
  11  norm          .10000E-03    2.2284        .29402E-07** at limit **
  12  Prefactor     .10000E-03    93.932       -.18877E-05** at limit **
  13  Prefactor     26.565        18.411       -.16332E-06    .84040E-04
  14  Prefactor     .10045E-03    20.304       -.50390E-06** at limit **
  15  norm          3.5386        1.9536        .65247E-06   -.10558E-02
  16  norm          .10013E-03    5.2158       -.97311E-06** at limit **
  17  Prefactor     87.385        53.230       -.15708E-05   -.42185E-03
  18  Prefactor     .10000E-03    41.125        .11856E-06** at limit **
  19  Prefactor     17.408        18.146       -.16696E-06    .52250E-03
  20  norm          1.3508        1.0907        .45040E-07    .16914E-02
  21  Prefactor     .10000E-03    2.7692        .20559E-08** at limit **
  22  Prefactor     .10000E-03    8.8466        .12471E-07** at limit **
  23  Normalizat    1.0129        .24335        .61475E-06    .96975E-04
  24  Prefactor     .90995        .19151       -.26953E-06    .12437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8446
  Prefactor  = 0.0001
  norm       = 0.132649
  Prefactor  = 27.9308
  Prefactor  = 10.7786
  Prefactor  = 20.6771
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 22.574
  norm       = 1.85584
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 26.5646
  Prefactor  = 0.000100447
  norm       = 3.53855
  norm       = 0.000100134
  Prefactor  = 87.3849
  Prefactor  = 0.0001
  Prefactor  = 17.4082
  norm       = 1.35082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01293
  Prefactor  = 0.909947
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.708     FROM HESSE     STATUS=OK           403 CALLS     3225 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.845        16.508        .10063E-03   -1.4912    
   2  Prefactor     .10000E-03    30.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .13265        .17361        .37876E-03   -1.5635    
   4  Prefactor     27.931        15.653        .75805E-04   -1.4650    
   5  Prefactor     10.779        16.805        .12199E-03   -1.5051    
   6  Prefactor     20.677        20.888        .88045E-04   -1.4798    
   7  Prefactor     .10000E-03    14.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.574        17.579        .84287E-04   -1.4757    
  10  norm          1.8558        1.1805        .58771E-04   -1.5436    
  11  norm          .10000E-03    2.2908        .20666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    94.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.565        18.486        .77723E-04   -1.4677    
  14  Prefactor     .10045E-03    99.020        .53709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5386        1.9676        .58881E-04   -1.5332    
  16  norm          .10013E-03    31.442        .25861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     87.385        54.304        .42976E-04   -1.3836    
  18  Prefactor     .10000E-03    42.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.408        17.986        .95977E-04   -1.4873    
  20  norm          1.3508        1.1163        .48639E-04   -1.5476    
  21  Prefactor     .10000E-03    2.7699        .11541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.9104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0129        .28795        .27973E-03   -.92598    
  24  Prefactor     .90995        .22544        .24796E-03   -.95794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06398e-09
Minuit parameter uncertainties:
  1  16.513
  2  0.000204455
  3  0.173608
  4  15.6554
  5  16.8121
  6  20.8952
  7  8.88047e-06
  8  0.000298172
  9  17.583
  10  1.18056
  11  3.74991e-06
  12  0.000736458
  13  18.4903
  14  0.0133306
  15  1.96766
  16  0.00410405
  17  54.3352
  18  0.000145593
  19  17.9912
  20  1.11635
  21  4.5976e-07
  22  3.02723e-06
  23  0.288397
  24  0.225672
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.257e+01  1.758e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.099e-01  2.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.013e+00  2.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 7.95e-08 +/- 6.18e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.44e-05

TS (Fixed Index): 2.47
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/409262/likelihoodResults_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5042.70780459
delta logL = 0.000163404977684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5042.70765816
delta logL = 0.000309832733365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.878       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7101       1.0000          .0000       10.000    
     3 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   5042.708     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      250 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.886        22.618        .83745E-04   -.76560E-03
   2  Index         2.7101        1.3423        .10434E-01   -.18681E-03
   3  Normalizat    1.0153        .27687        .27965E-03    .10919E-02
   4  Prefactor     .90831        .22716        .24815E-03    .17586E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.886
  Index      = 2.71011
  Normalizat = 1.01527
  Prefactor  = 0.908311
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.708     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.886        21.368        .16749E-04   -1.4751    
   2  Index         2.7101        1.2668        .41736E-03   -.47572    
   3  Normalizat    1.0153        .27566        .55929E-04   -.92521    
   4  Prefactor     .90831        .22614        .49631E-04   -.95851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8943e-09
Minuit parameter uncertainties:
  1  21.3747
  2  1.28458
  3  0.276045
  4  0.226377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409262': 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) = 5042.70765779
delta logL = 0.000310206231006

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.289e+01  2.137e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.710e+00  1.285e+00  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.083e-01  2.264e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.015e+00  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.71 +/- 1.28
Photon Flux (Free Index): 7.82e-08 +/- 7.94e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.58e-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/409262/cmap_HighResolution_610243201_610502401_4FGL_J2236.4-2309_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', photon_flux='7.95e-08', energy_flux2='1.87e-05', photon_flux_error='6.18e-08', dlogl='3.10e-04', energy_flux='1.85e-05', photon_flux2='7.82e-08', job_status='DONE', time_completed='2021-09-28 17:29:04.007143', photon_index_error2='1.28', photon_index2='2.71', ts='2.47', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.05e-07', energy_flux_error2='1.58e-05', EG='1.01', time_epoch_completed='1632875344.01', return_code='0', job_id='409262', GAL2='0.91', EG2='1.02', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='7.94e-08', ts2='2.43', photon_index='2.74' WHERE bin_id='1431' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:29:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 409262: <4FGL_J2236.4-2309_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1431> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:21 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:22 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:15:22 2021
Terminated at Tue Sep 28 17:29:04 2021
Results reported at Tue Sep 28 17:29:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1431 339.125 -23.1552 610243201 610502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.4-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   580.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

