/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 113 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 = 7498
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin160
RA = 339.125, Dec = -23.1552
tmin = 280800001, tmax = 281059201
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='403122', job_status='RUN', time_executed='2021-09-28 16:57:44.507025', time_epoch_executed='1632873464.51' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403122/ft1_4FGL_J2236.4-2309_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403122/ft2_4FGL_J2236.4-2309_daily_bin160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403122/ft1_4FGL_J2236.4-2309_daily_bin160.fits outfile=/scratch/kocevski/403122/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin160.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=280800001.0 tmax=281059201.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.81
user 3.56
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403122/ft2_4FGL_J2236.4-2309_daily_bin160.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/403122/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin160.fits evtable="EVENTS" outfile="/scratch/kocevski/403122/ft1_filtered_4FGL_J2236.4-2309_daily_bin160.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403122/ft1_filtered_4FGL_J2236.4-2309_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/403122/ft2_4FGL_J2236.4-2309_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/403122/ltcube_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.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/403122/ft2_4FGL_J2236.4-2309_daily_bin160.fits
.....................!
real 12.04
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403122/ft1_filtered_4FGL_J2236.4-2309_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/403122/ft2_4FGL_J2236.4-2309_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/403122/ltcube_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.fits outfile=/scratch/kocevski/403122/expmap_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.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/403122/ltcube_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.fits
.....................!
real 192.11
user 187.43
sys 4.34

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/403122/ft1_filtered_4FGL_J2236.4-2309_daily_bin160.fits scfile=/scratch/kocevski/403122/ft2_4FGL_J2236.4-2309_daily_bin160.fits outfile=/scratch/kocevski/403122/cmap_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.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.50
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403122/ft1_filtered_4FGL_J2236.4-2309_daily_bin160.fits scfile=/scratch/kocevski/403122/ft2_4FGL_J2236.4-2309_daily_bin160.fits outfile=/scratch/kocevski/403122/cmap_HighResolution_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403122/ft1_filtered_4FGL_J2236.4-2309_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/403122/ft2_4FGL_J2236.4-2309_daily_bin160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403122/Model_4FGL_J2236.4-2309_daily_bin160.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/403122/ft1_filtered_4FGL_J2236.4-2309_daily_bin160.fits.....................!
real 52.26
user 50.92
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    147.57       1.0000         .10000E-03   10000.    
     3 'norm      '    .49858       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19498E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    72.020       1.0000         .10000E-03   10000.    
     8 'norm      '    .22326       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0500       1.0000         .10000E-03   10000.    
    10 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7607       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0668       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2953       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96389       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6408.693     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     2319 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.187       -.23525E-05** at limit **
   2  Prefactor     147.57        1.6139        .67376E-09    .18258E-02
   3  norm          .49856        .30734       -.27922E-06   -.34228E-02
   4  Prefactor     18.394        2.3827       -.62010E-07   -.24266E-02
   5  Prefactor     .10330E-02    467.02        .36634E-05** at limit **
   6  Prefactor     .10000E-03    20.569       -.21888E-05** at limit **
   7  Prefactor     72.026        1.6427       -.19764E-07    .37993E-03
   8  norm          .15470        268.23        .52642E-05   -.23785E-02
   9  Prefactor     8.0477        11.135       -.45671E-06   -.67976E-02
  10  norm          .10000E-03    .32620        .80568E-07** at limit **
  11  norm          3.1915        2.5334        .23219E-06    .44000E-03
  12  Prefactor     42.185        20.494       -.29177E-06   -.34777E-02
  13  Prefactor     4.7611        2.0500       -.61861E-07   -.19505E-02
  14  Prefactor     .10000E-03    3.4344       -.38681E-06** at limit **
  15  norm          .10000E-03    .24569       -.93332E-07** at limit **
  16  norm          .10000E-03    .96234        .47359E-06** at limit **
  17  Prefactor     .10000E-03    7.2916       -.86695E-06** at limit **
  18  Prefactor     .10000E-03    4.5863        .25460E-06** at limit **
  19  Prefactor     8.0734        2.2436        .13779E-06    .29553E-02
  20  norm          1.2949        .60752        .14292E-06    .15523E-02
  21  Prefactor     .10000E-03    7.3089       -.79636E-06** at limit **
  22  Prefactor     .10000E-03    4.0513        .17553E-06** at limit **
  23  Normalizat    .96326        .22517        .82165E-06    .14957E-03
  24  Prefactor     1.0527        .19670       -.76108E-07    .14937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 147.565
  norm       = 0.498563
  Prefactor  = 18.394
  Prefactor  = 0.00103298
  Prefactor  = 0.000100002
  Prefactor  = 72.026
  norm       = 0.154699
  Prefactor  = 8.04769
  norm       = 0.0001
  norm       = 3.19151
  Prefactor  = 42.1847
  Prefactor  = 4.76114
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.07336
  norm       = 1.29492
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.963264
  Prefactor  = 1.05274
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.693     FROM HESSE     STATUS=OK           457 CALLS     2776 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     147.57        79.320        .82934E-03   -1.3272    
   3  norm          .49856        .30813        .76685E-02   -1.5567    
   4  Prefactor     18.394        11.069        .23346E-02   -1.4850    
   5  Prefactor     .10330E-02    10.464        .91201E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     72.026        56.924        .11826E-02   -1.4009    
   8  norm          .15470        11.582        .15285       -1.5629    
   9  Prefactor     8.0477        12.194        .35328E-02   -1.5141    
  10  norm          .10000E-03    .21159        .18384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1915        2.9582        .56690E-02   -1.5351    
  12  Prefactor     42.185        56.808        .15449E-02   -1.4408    
  13  Prefactor     4.7611        8.5563        .46101E-02   -1.5272    
  14  Prefactor     .10000E-03    3.4234        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .24017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .96182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2856        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0734        9.5190        .35291E-02   -1.5140    
  20  norm          1.2949        .72329        .91522E-02   -1.5480    
  21  Prefactor     .10000E-03    7.2399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96326        .20156        .45713E-01   -.94271    
  24  Prefactor     1.0527        .16968        .39786E-01   -.90992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06179e-07
Minuit parameter uncertainties:
  1  0.000117621
  2  79.3771
  3  0.308127
  4  11.0703
  5  0.197649
  6  0.000402362
  7  56.9672
  8  2.67675
  9  12.1979
  10  8.80653e-07
  11  2.95829
  12  56.8811
  13  8.55853
  14  1.74622e-05
  15  1.0882e-06
  16  1.09877e-05
  17  0.000166417
  18  1.20034e-05
  19  9.5208
  20  0.723298
  21  0.000276663
  22  7.76682e-06
  23  0.201714
  24  0.169771
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.048e+00  1.220e+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.053e+00  1.698e-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:  9.633e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403122/likelihoodResults_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.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) = 6408.52553578
delta logL = 0.167835498227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6408.5224895
delta logL = 0.170881773039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0018       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4292       1.0000          .0000       10.000    
     3 'Normalizat'    .94381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0644       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6408.522     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      292 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0053        12.168        .81949E-03   -.30176E-03
   2  Index         3.4297        1.5500        .11532E-01   -.34674E-04
   3  Normalizat    .94366        .22808        .27369E-03   -.16619E-03
   4  Prefactor     1.0644        .19815        .22849E-03   -.63392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.00531
  Index      = 3.42975
  Normalizat = 0.943659
  Prefactor  = 1.06443
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.522     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0053        10.048        .32780E-04   -1.5218    
   2  Index         3.4297        1.2866        .46128E-03   -.31946    
   3  Normalizat    .94366        .22851        .10948E-04   -.94943    
   4  Prefactor     1.0644        .19837        .45698E-04   -.90612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03188e-09
Minuit parameter uncertainties:
  1  10.0511
  2  1.30289
  3  0.228745
  4  0.198503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403122': 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) = 6408.52248802
delta logL = 0.170883255881

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  6.005e+00  1.005e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.430e+00  1.303e+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:  1.064e+00  1.985e-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:  9.437e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
Ra Dec: 339.125 -23.155

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/403122/cmap_HighResolution_280800001_281059201_4FGL_J2236.4-2309_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 17:08:13.517593', job_id='403122', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1632874093.52', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.71e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='160' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:08:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 403122: <4FGL_J2236.4-2309_daily_bin160> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:55:41 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:55:43 2021
Terminated at Tue Sep 28 17:08:14 2021
Results reported at Tue Sep 28 17:08:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin160 339.125 -23.1552 280800001 281059201 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 :                                   628.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

