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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin858
RA = 339.125, Dec = -23.1552
tmin = 461721601, tmax = 461980801
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='406465', job_status='RUN', time_executed='2021-09-28 17:09:52.847834', time_epoch_executed='1632874192.85' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406465/ft1_4FGL_J2236.4-2309_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406465/ft2_4FGL_J2236.4-2309_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406465/ft1_4FGL_J2236.4-2309_daily_bin858.fits outfile=/scratch/kocevski/406465/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin858.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=461721601.0 tmax=461980801.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 4.07
user 3.84
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406465/ft2_4FGL_J2236.4-2309_daily_bin858.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/406465/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin858.fits evtable="EVENTS" outfile="/scratch/kocevski/406465/ft1_filtered_4FGL_J2236.4-2309_daily_bin858.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406465/ft1_filtered_4FGL_J2236.4-2309_daily_bin858.fits" evtable="EVENTS" scfile=/scratch/kocevski/406465/ft2_4FGL_J2236.4-2309_daily_bin858.fits sctable="SC_DATA" outfile=/scratch/kocevski/406465/ltcube_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.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/406465/ft2_4FGL_J2236.4-2309_daily_bin858.fits
.....................!
real 11.77
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406465/ft1_filtered_4FGL_J2236.4-2309_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/406465/ft2_4FGL_J2236.4-2309_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/406465/ltcube_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.fits outfile=/scratch/kocevski/406465/expmap_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.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/406465/ltcube_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.fits
.....................!
real 190.68
user 185.06
sys 5.26

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/406465/ft1_filtered_4FGL_J2236.4-2309_daily_bin858.fits scfile=/scratch/kocevski/406465/ft2_4FGL_J2236.4-2309_daily_bin858.fits outfile=/scratch/kocevski/406465/cmap_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406465/ft1_filtered_4FGL_J2236.4-2309_daily_bin858.fits scfile=/scratch/kocevski/406465/ft2_4FGL_J2236.4-2309_daily_bin858.fits outfile=/scratch/kocevski/406465/cmap_HighResolution_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406465/ft1_filtered_4FGL_J2236.4-2309_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/406465/ft2_4FGL_J2236.4-2309_daily_bin858.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406465/Model_4FGL_J2236.4-2309_daily_bin858.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/406465/ft1_filtered_4FGL_J2236.4-2309_daily_bin858.fits.....................!
real 55.33
user 53.87
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14425E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.442       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.168       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11237E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1525       1.0000         .10000E-03   10000.    
    11 'norm      '    .15413E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.255       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4499       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11721E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76447       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92458       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=   6740.770     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2749 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1153       -.54791E-05** at limit **
   2  Prefactor     45.445        46.951        .35983E-05    .22899E-04
   3  norm          1.3374        .36650       -.20754E-07    .16534E-03
   4  Prefactor     11.167        8.5984       -.52779E-06    .60263E-04
   5  Prefactor     8.2136        10.557       -.62815E-07   -.88930E-04
   6  Prefactor     .10000E-03    35.526       -.15440E-05** at limit **
   7  Prefactor     .10000E-03    18.689        .11612E-05** at limit **
   8  norm          19.718        15.376        .47920E-06   -.11152E-03
   9  Prefactor     11.764        11.124       -.55030E-06   -.46609E-04
  10  norm          1.1528        .67443       -.17440E-08    .69090E-04
  11  norm          .10000E-03    1.2061        .61888E-06** at limit **
  12  Prefactor     80.250        43.626       -.32083E-05   -.35054E-03
  13  Prefactor     1.6509        1.2536        .83580E-07   -.83944E-03
  14  Prefactor     .10000E-03    6.5639       -.30871E-05** at limit **
  15  norm          .10000E-03    .28233       -.71681E-08** at limit **
  16  norm          .10001E-03    1.5159        .62354E-06** at limit **
  17  Prefactor     .10000E-03    8.1219        .43008E-05** at limit **
  18  Prefactor     .10000E-03    3.3883       -.51174E-07** at limit **
  19  Prefactor     5.4307        6.2011       -.33046E-06   -.57252E-03
  20  norm          .10000E-03    .20251        .17948E-07** at limit **
  21  Prefactor     15.876        11.673        .12101E-06   -.10854E-04
  22  Prefactor     .10000E-03    5.4393        .14373E-05** at limit **
  23  Normalizat    .76512        .16427        .71582E-06   -.20430E-03
  24  Prefactor     .92399        .13909       -.59250E-07   -.14629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.4447
  norm       = 1.33739
  Prefactor  = 11.1672
  Prefactor  = 8.21365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.7176
  Prefactor  = 11.7638
  norm       = 1.15278
  norm       = 0.000100003
  Prefactor  = 80.2496
  Prefactor  = 1.65092
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43067
  norm       = 0.0001
  Prefactor  = 15.8763
  Prefactor  = 0.0001
  Normalizat = 0.76512
  Prefactor  = 0.92399
 **********
 **   18 **HESSE 
 **********

 FCN=   6740.770     FROM HESSE     STATUS=OK           397 CALLS     3146 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.445        47.116        .59477E-04   -1.4359    
   3  norm          1.3374        .36694        .24999E-04   -1.5477    
   4  Prefactor     11.167        8.5903        .11988E-03   -1.5039    
   5  Prefactor     8.2136        10.629        .69950E-03   -1.5135    
   6  Prefactor     .10000E-03    36.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.718        15.356        .90204E-04   -1.4820    
   9  Prefactor     11.764        11.094        .11689E-03   -1.5022    
  10  norm          1.1528        .67016        .49698E-04   -1.5493    
  11  norm          .10000E-03    5.0108        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     80.250        40.515        .44831E-04   -1.3914    
  13  Prefactor     1.6509        5.6974        .16436E-02   -1.5451    
  14  Prefactor     .10000E-03    6.5652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .29393        .85082E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    8.2343        .18495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3888        .14749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4307        5.9520        .17212E-03   -1.5242    
  20  norm          .10000E-03    .20259        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.876        11.693        .10052E-03   -1.4911    
  22  Prefactor     .10000E-03    5.4889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76512        .19661        .25528E-03   -1.0138    
  24  Prefactor     .92399        .16536        .20942E-03   -.95308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89094e-09
Minuit parameter uncertainties:
  1  6.21067e-05
  2  47.1545
  3  0.366945
  4  8.59123
  5  10.6313
  6  6.24354e-05
  7  3.58861e-05
  8  15.3588
  9  11.096
  10  0.670167
  11  0.000233875
  12  40.5291
  13  5.69925
  14  5.32894e-05
  15  1.31652e-07
  16  0.0006987
  17  7.98594e-05
  18  2.91992e-06
  19  5.95267
  20  2.86615e-08
  21  11.6948
  22  1.29602e-05
  23  0.196796
  24  0.16545
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.176e+01  1.110e+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.240e-01  1.654e-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:  7.651e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 9.65e-06 +/- 9.10e-06

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

Saving results to:
/scratch/kocevski/406465/likelihoodResults_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.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) = 6740.76955171
delta logL = 0.00094345735215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6740.76921195
delta logL = 0.00128321469492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.030       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6781       1.0000          .0000       10.000    
     3 'Normalizat'    .76747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92245       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=   6740.769     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      194 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.042        13.648        .28874E-02    .14808E-02
   2  Index         2.6827        1.2972        .22955E-01    .26343E-04
   3  Normalizat    .76731        .15763        .43184E-01    .18906E-04
   4  Prefactor     .92250        .13877        .45291E-01    .54596E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0415
  Index      = 2.68266
  Normalizat = 0.767307
  Prefactor  = 0.922496
 **********
 **   18 **HESSE 
 **********

 FCN=   6740.769     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.042        12.146        .57749E-03   -1.5014    
   2  Index         2.6827        1.1659        .91821E-03   -.48190    
   3  Normalizat    .76731        .18681        .25496E-03   -1.0129    
   4  Prefactor     .92250        .16417        .20957E-03   -.95359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25505e-12
Minuit parameter uncertainties:
  1  12.149
  2  1.17983
  3  0.186964
  4  0.164261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406465': 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) = 6740.76920023
delta logL = 0.00129493303939

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.204e+01  1.215e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.683e+00  1.180e+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.225e-01  1.643e-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:  7.673e-01  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.68 +/- 1.18
Photon Flux (Free Index): 4.01e-08 +/- 4.48e-08
Energy Flux (Free Index): 9.79e-06 +/- 9.45e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/406465/cmap_HighResolution_461721601_461980801_4FGL_J2236.4-2309_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='9.79e-06', photon_flux_error='3.90e-08', dlogl='1.29e-03', energy_flux='9.65e-06', photon_flux2='4.01e-08', job_status='DONE', time_completed='2021-09-28 17:20:51.034764', photon_index_error2='1.18', photon_index2='2.68', ts='1.58', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='9.45e-06', EG='0.77', time_epoch_completed='1632874851.03', return_code='0', job_id='406465', GAL2='0.92', EG2='0.77', return_code2='0', energy_flux_error='9.10e-06', photon_flux_error2='4.48e-08', ts2='1.59', photon_index='2.74' WHERE bin_id='858' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 406465: <4FGL_J2236.4-2309_daily_bin858> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin858> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:51 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:53 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:05:53 2021
Terminated at Tue Sep 28 17:20:51 2021
Results reported at Tue Sep 28 17:20:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin858 339.125 -23.1552 461721601 461980801 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 :                                   657.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

