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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1043
RA = 339.125, Dec = -23.1552
tmin = 509673601, tmax = 509932801
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='407734', job_status='RUN', time_executed='2021-09-28 17:11:23.740577', time_epoch_executed='1632874283.74' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407734

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407734/ft1_4FGL_J2236.4-2309_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407734/ft1_4FGL_J2236.4-2309_daily_bin1043.fits outfile=/scratch/kocevski/407734/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1043.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=509673601.0 tmax=509932801.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.56
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.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/407734/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.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/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/407734/ltcube_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.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/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits
.....................!
real 12.09
user 11.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/407734/ltcube_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.fits outfile=/scratch/kocevski/407734/expmap_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.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/407734/ltcube_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.fits
.....................!
real 191.39
user 185.63
sys 5.40

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/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits scfile=/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits outfile=/scratch/kocevski/407734/cmap_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits scfile=/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits outfile=/scratch/kocevski/407734/cmap_HighResolution_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407734/Model_4FGL_J2236.4-2309_daily_bin1043.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/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits.....................!
real 46.29
user 44.95
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits', '/scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits', expMap='/scratch/kocevski/407734/expmap_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.fits', expCube='/scratch/kocevski/407734/ltcube_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/407734/Model_4FGL_J2236.4-2309_daily_bin1043.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/407734/ft1_filtered_4FGL_J2236.4-2309_daily_bin1043.fits
Spacecraft file(s): /scratch/kocevski/407734/ft2_4FGL_J2236.4-2309_daily_bin1043.fits
Exposure map: /scratch/kocevski/407734/expmap_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.fits
Exposure cube: /scratch/kocevski/407734/ltcube_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/407734/Model_4FGL_J2236.4-2309_daily_bin1043.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) = 5466.55776748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5618       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35551E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.759       1.0000         .10000E-03   10000.    
     8 'norm      '    31.323       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5115       1.0000         .10000E-03   10000.    
    10 'norm      '    .79173       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1991       1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.984       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0844       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1418       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1839       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22959E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1679       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3396       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=   5466.550     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2726 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.272       -.29928E-05** at limit **
   2  Prefactor     .10000E-03    109.38        .35440E-05** at limit **
   3  norm          2.4638        .71316       -.24752E-08    .17846E-03
   4  Prefactor     .10000E-03    15.024       -.63975E-07** at limit **
   5  Prefactor     1.5711        55.988       -.50732E-05   -.22732E-05
   6  Prefactor     .10000E-03    111.71       -.47688E-05** at limit **
   7  Prefactor     93.696        94.859        .35390E-05   -.51646E-04
   8  norm          31.321        36.323        .72762E-06    .11925E-04
   9  Prefactor     6.5151        16.255       -.85331E-06    .15745E-04
  10  norm          .79368        1.0656        .11644E-05    .11445E-02
  11  norm          2.1989        4.6599       -.10868E-05    .14542E-03
  12  Prefactor     54.387        109.54        .33795E-05   -.32953E-05
  13  Prefactor     .10000E-03    27.592        .33490E-05** at limit **
  14  Prefactor     10.966        31.112        .28727E-05   -.18233E-03
  15  norm          7.0865        2.8899       -.31732E-06   -.17562E-03
  16  norm          4.1420        4.5124       -.46874E-07    .55923E-04
  17  Prefactor     .10000E-03    32.892        .37852E-05** at limit **
  18  Prefactor     .10000E-03    7.1322        .10007E-06** at limit **
  19  Prefactor     .10000E-03    7.0181       -.47593E-06** at limit **
  20  norm          1.1843        .78902       -.31923E-07    .11047E-03
  21  Prefactor     .10000E-03    45.470        .16282E-04** at limit **
  22  Prefactor     .10000E-03    8.7914       -.34277E-06** at limit **
  23  Normalizat    1.1675        .25651        .24774E-06   -.58878E-04
  24  Prefactor     1.3398        .21376       -.65657E-07    .13817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46383
  Prefactor  = 0.0001
  Prefactor  = 1.57113
  Prefactor  = 0.000100001
  Prefactor  = 93.6959
  norm       = 31.3212
  Prefactor  = 6.51515
  norm       = 0.793676
  norm       = 2.19887
  Prefactor  = 54.387
  Prefactor  = 0.0001
  Prefactor  = 10.966
  norm       = 7.08651
  norm       = 4.14195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16752
  Prefactor  = 1.33977
 **********
 **   18 **HESSE 
 **********

 FCN=   5466.550     FROM HESSE     STATUS=OK           401 CALLS     3127 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    109.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4638        .71366        .32488E-04   -1.5394    
   4  Prefactor     .10000E-03    15.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5711        56.700        .34045E-03   -1.5457    
   6  Prefactor     .10000E-03    114.90        .42633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     93.696        94.603        .20753E-03   -1.3769    
   8  norm          31.321        36.264        .71592E-04   -1.4588    
   9  Prefactor     6.5151        16.204        .15727E-03   -1.5197    
  10  norm          .79368        1.0370        .88804E-03   -1.5530    
  11  norm          2.1989        4.6798        .16008E-03   -1.5411    
  12  Prefactor     54.387        111.28        .54393E-04   -1.4232    
  13  Prefactor     .10000E-03    28.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.966        32.167        .12088E-03   -1.5046    
  15  norm          7.0865        3.0103        .53368E-04   -1.5175    
  16  norm          4.1420        4.5022        .15569E-03   -1.5301    
  17  Prefactor     .10000E-03    32.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1843        .77162        .50510E-04   -1.5490    
  21  Prefactor     .10000E-03    44.544        .38265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.8257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1675        .30797        .32547E-03   -.87613    
  24  Prefactor     1.3398        .25719        .26262E-03   -.82132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32929e-10
Minuit parameter uncertainties:
  1  5.19037e-05
  2  5.52193e-06
  3  0.713665
  4  2.72249e-05
  5  18.8956
  6  0.000805756
  7  94.7556
  8  36.2897
  9  16.215
  10  1.03706
  11  4.68055
  12  111.713
  13  0.000204271
  14  32.2177
  15  3.01037
  16  4.50253
  17  0.000189789
  18  3.14466e-06
  19  7.3732e-06
  20  0.771627
  21  0.000124243
  22  1.07496e-05
  23  0.308445
  24  0.257439
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.515e+00  1.622e+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:  1.340e+00  2.574e-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.168e+00  3.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/407734/likelihoodResults_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.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) = 5466.14709281
delta logL = 0.402745207696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5466.11656171
delta logL = 0.433276312044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0482       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6021       1.0000          .0000       10.000    
     3 'Normalizat'    1.0762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3936       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.

 FCN=   5466.117     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      260 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0450        18.503        .12119E-01    .72640E-03
   2  Index         5.6046        7.2423        .20292        .77930E-04
   3  Normalizat    1.0763        .59056E-01    .76115E-01    .23759E-04
   4  Prefactor     1.3935        .50799E-01    .58412E-01   -.58294E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04502
  Index      = 5.60461
  Normalizat = 1.07631
  Prefactor  = 1.39348
 **********
 **   18 **HESSE 
 **********

 FCN=   5466.117     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0450        52.592        .74055E-04   -1.5504    
   2  Index         5.6046        7.5109        .86863E-02    .12122    
   3  Normalizat    1.0763        .27779        .33688E-03   -.90516    
   4  Prefactor     1.3935        .23120        .25829E-03   -.80568    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.47412e-07
Minuit parameter uncertainties:
  1  14.8401
  2  10.8184
  3  0.278169
  4  0.23137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407734': 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): 102
logL (Free Index) = 5466.11656098
delta logL = 0.433277036104

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.045e+00  1.484e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  5.605e+00  1.082e+01  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:  1.393e+00  2.314e-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.076e+00  2.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 5.60 +/- 10.82
Photon Flux (Free Index): 1.03e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.31e-05 +/- 1.81e-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/407734/cmap_HighResolution_509673601_509932801_4FGL_J2236.4-2309_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='4.33e-01', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-28 17:21:03.843121', photon_index_error2='10.82', photon_index2='5.60', ts='0.22', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.81e-05', EG='1.17', time_epoch_completed='1632874863.84', return_code='0', job_id='407734', GAL2='1.39', EG2='1.08', return_code2='102', photon_flux_error2='1.09e-07', ts2='1.20', photon_index='2.74' WHERE bin_id='1043' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 407734: <4FGL_J2236.4-2309_daily_bin1043> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1043 339.125 -23.1552 509673601 509932801 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 :                                   578.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            633 sec.

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

