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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1045
RA = 339.125, Dec = -23.1552
tmin = 510192001, tmax = 510451201
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='407736', job_status='RUN', time_executed='2021-09-28 17:13:01.070180', time_epoch_executed='1632874381.07' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407736/ft1_4FGL_J2236.4-2309_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407736/ft2_4FGL_J2236.4-2309_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407736/ft1_4FGL_J2236.4-2309_daily_bin1045.fits outfile=/scratch/kocevski/407736/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1045.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=510192001.0 tmax=510451201.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.32
user 4.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407736/ft1_filtered_4FGL_J2236.4-2309_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/407736/ft2_4FGL_J2236.4-2309_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/407736/ltcube_510192001_510451201_4FGL_J2236.4-2309_daily_bin1045.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/407736/ft2_4FGL_J2236.4-2309_daily_bin1045.fits
.....................!
real 12.82
user 12.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407736/ft1_filtered_4FGL_J2236.4-2309_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/407736/ft2_4FGL_J2236.4-2309_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/407736/ltcube_510192001_510451201_4FGL_J2236.4-2309_daily_bin1045.fits outfile=/scratch/kocevski/407736/expmap_510192001_510451201_4FGL_J2236.4-2309_daily_bin1045.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/407736/ltcube_510192001_510451201_4FGL_J2236.4-2309_daily_bin1045.fits
.....................!
real 192.91
user 187.58
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/407736/ft1_filtered_4FGL_J2236.4-2309_daily_bin1045.fits scfile=/scratch/kocevski/407736/ft2_4FGL_J2236.4-2309_daily_bin1045.fits outfile=/scratch/kocevski/407736/cmap_510192001_510451201_4FGL_J2236.4-2309_daily_bin1045.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407736/ft1_filtered_4FGL_J2236.4-2309_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/407736/ft2_4FGL_J2236.4-2309_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407736/Model_4FGL_J2236.4-2309_daily_bin1045.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/407736/ft1_filtered_4FGL_J2236.4-2309_daily_bin1045.fits.....................!
real 55.78
user 54.28
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.184       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.704       1.0000         .10000E-03   10000.    
     8 'norm      '    12.765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.996       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6466       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15517E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.546       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.167       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30480       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6328       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3195       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82776       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=   6409.945     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2712 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.073        .88288E-05** at limit **
   2  Prefactor     93.194        83.997        .66121E-05   -.28322E-04
   3  norm          2.3225        .60844       -.72648E-07    .61942E-04
   4  Prefactor     .10000E-03    3.3917       -.58919E-07** at limit **
   5  Prefactor     .10000E-03    23.087       -.86404E-07** at limit **
   6  Prefactor     .10000E-03    15.444       -.10456E-04** at limit **
   7  Prefactor     43.702        45.541       -.99607E-06    .63321E-05
   8  norm          12.765        14.836       -.37573E-06    .20699E-04
   9  Prefactor     13.997        13.479       -.44804E-06    .15875E-04
  10  norm          2.6465        1.1019        .81930E-07    .48412E-03
  11  norm          .10000E-03    .72321        .38943E-07** at limit **
  12  Prefactor     .10000E-03    13.374        .14558E-05** at limit **
  13  Prefactor     .10000E-03    7.7128        .11933E-06** at limit **
  14  Prefactor     .10001E-03    60.949        .50163E-06** at limit **
  15  norm          17.542        3.7675        .40624E-05   -.12283E-02
  16  norm          4.4873        3.9148        .45533E-07    .15026E-03
  17  Prefactor     22.088        84.263       -.12217E-03    .48330E-04
  18  Prefactor     .54086E-01    12.313       -.85009E-06   -.15620E-04
  19  Prefactor     .10000E-03    7.9730       -.60461E-06** at limit **
  20  norm          1.6393        .80332        .50253E-07    .99301E-03
  21  Prefactor     28.502        17.187        .29271E-05    .10584E-03
  22  Prefactor     .10000E-03    4.1757       -.64921E-07** at limit **
  23  Normalizat    1.3194        .21579        .33932E-05    .41872E-04
  24  Prefactor     .82788        .18259       -.17594E-05    .31553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 93.1935
  norm       = 2.32254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.7023
  norm       = 12.7653
  Prefactor  = 13.9971
  norm       = 2.64653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 17.5417
  norm       = 4.48735
  Prefactor  = 22.0884
  Prefactor  = 0.0540856
  Prefactor  = 0.0001
  norm       = 1.63927
  Prefactor  = 28.5025
  Prefactor  = 0.0001
  Normalizat = 1.3194
  Prefactor  = 0.827878
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.945     FROM HESSE     STATUS=OK           399 CALLS     3111 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.194        83.929        .41632E-04   -1.3774    
   3  norm          2.3225        .60897        .30692E-04   -1.5403    
   4  Prefactor     .10000E-03    3.3950        .14399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.702        45.546        .60642E-04   -1.4385    
   8  norm          12.765        14.837        .11212E-03   -1.4993    
   9  Prefactor     13.997        13.505        .10706E-03   -1.4960    
  10  norm          2.6465        1.1036        .52213E-04   -1.5383    
  11  norm          .10000E-03    .72614        .66477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    61.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.542        3.7602        .50213E-04   -1.4870    
  16  norm          4.4873        3.9213        .13835E-03   -1.5284    
  17  Prefactor     22.088        84.421        .85074E-04   -1.4768    
  18  Prefactor     .54086E-01    19.244        .80351E-01   -1.5661    
  19  Prefactor     .10000E-03    8.0273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6393        .84399        .42974E-04   -1.5452    
  21  Prefactor     28.502        17.189        .75043E-04   -1.4640    
  22  Prefactor     .10000E-03    4.1833        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3194        .26127        .28064E-03   -.82989    
  24  Prefactor     .82788        .22042        .29404E-03   -.98709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16218e-09
Minuit parameter uncertainties:
  1  9.23629e-05
  2  84.0356
  3  0.608976
  4  5.45279e-06
  5  8.49788e-06
  6  1.92678e-05
  7  45.5826
  8  14.8412
  9  13.5077
  10  1.10357
  11  6.49691e-07
  12  3.27315e-06
  13  2.02429e-05
  14  0.00150281
  15  3.76025
  16  3.92152
  17  84.8828
  18  2.03916
  19  1.99068e-05
  20  0.844
  21  17.1917
  22  5.40595e-06
  23  0.261536
  24  0.220658
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.400e+01  1.351e+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:  8.279e-01  2.207e-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.319e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/407736/likelihoodResults_510192001_510451201_4FGL_J2236.4-2309_daily_bin1045.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) = 6409.90923507
delta logL = 0.0357993845519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6409.90674615
delta logL = 0.0382883002658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.649       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5267       1.0000          .0000       10.000    
     3 'Normalizat'    1.3259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82280       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=   6409.907     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.648        15.519        .10125E-03    .50019E-03
   2  Index         2.5267        .74601        .10770E-01    .13294E-03
   3  Normalizat    1.3259        .25803        .28004E-03   -.71165E-04
   4  Prefactor     .82280        .21924        .29483E-03   -.74537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6481
  Index      = 2.52667
  Normalizat = 1.32589
  Prefactor  = 0.822801
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.907     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.648        15.341        .20250E-04   -1.4917    
   2  Index         2.5267        .73747        .43079E-03   -.51745    
   3  Normalizat    1.3259        .25832        .11202E-04   -.82797    
   4  Prefactor     .82280        .21943        .11793E-04   -.98893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95658e-10
Minuit parameter uncertainties:
  1  15.345
  2  0.741059
  3  0.25857
  4  0.219662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407736': 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) = 6409.90674615
delta logL = 0.0382883027514

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.565e+01  1.535e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.527e+00  7.411e-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:  8.228e-01  2.197e-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.326e+00  2.586e-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.53 +/- 0.74
Photon Flux (Free Index): 4.55e-08 +/- 4.66e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.32e-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/407736/cmap_HighResolution_510192001_510451201_4FGL_J2236.4-2309_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.28e-05', photon_flux_error='4.75e-08', dlogl='3.83e-02', energy_flux='1.15e-05', photon_flux2='4.55e-08', job_status='DONE', time_completed='2021-09-28 17:24:05.247214', photon_index_error2='0.74', photon_index2='2.53', ts='1.54', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.32e-05', EG='1.32', time_epoch_completed='1632875045.25', return_code='0', job_id='407736', GAL2='0.82', EG2='1.33', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.66e-08', ts2='1.59', photon_index='2.74' WHERE bin_id='1045' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:24:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 407736: <4FGL_J2236.4-2309_daily_bin1045> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1045> 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) <bullet0055>, 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:24:05 2021
Results reported at Tue Sep 28 17:24:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1045 339.125 -23.1552 510192001 510451201 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

