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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1297
RA = 339.125, Dec = -23.1552
tmin = 575510401, tmax = 575769601
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='408102', job_status='RUN', time_executed='2021-09-28 17:12:01.342408', time_epoch_executed='1632874321.34' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408102/ft1_4FGL_J2236.4-2309_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408102/ft1_4FGL_J2236.4-2309_daily_bin1297.fits outfile=/scratch/kocevski/408102/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1297.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=575510401.0 tmax=575769601.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.15
user 3.93
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.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/408102/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1297.fits evtable="EVENTS" outfile="/scratch/kocevski/408102/ft1_filtered_4FGL_J2236.4-2309_daily_bin1297.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.43
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408102/ft1_filtered_4FGL_J2236.4-2309_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/408102/ltcube_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.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/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.fits
.....................!
real 9.39
user 9.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408102/ft1_filtered_4FGL_J2236.4-2309_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/408102/ltcube_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.fits outfile=/scratch/kocevski/408102/expmap_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.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/408102/ltcube_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.fits
.....................!
real 149.98
user 146.12
sys 3.62

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/408102/ft1_filtered_4FGL_J2236.4-2309_daily_bin1297.fits scfile=/scratch/kocevski/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.fits outfile=/scratch/kocevski/408102/cmap_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.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.46
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408102/ft1_filtered_4FGL_J2236.4-2309_daily_bin1297.fits scfile=/scratch/kocevski/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.fits outfile=/scratch/kocevski/408102/cmap_HighResolution_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408102/ft1_filtered_4FGL_J2236.4-2309_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/408102/ft2_4FGL_J2236.4-2309_daily_bin1297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408102/Model_4FGL_J2236.4-2309_daily_bin1297.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/408102/ft1_filtered_4FGL_J2236.4-2309_daily_bin1297.fits.....................!
real 49.84
user 48.75
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .82757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.671       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81465E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7540       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.895       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.923       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4829       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75373       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=   8181.689     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2717 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0020        .54374E-05** at limit **
   2  Prefactor     .10000E-03    24.944        .25803E-05** at limit **
   3  norm          .82757        .29574       -.27955E-09   -.38441E-03
   4  Prefactor     8.7074        8.5702       -.12966E-06   -.14864E-03
   5  Prefactor     16.670        10.960        .50344E-06   -.31033E-04
   6  Prefactor     .10002E-03    9.8800        .20340E-07** at limit **
   7  Prefactor     .10000E-03    15.587       -.41310E-05** at limit **
   8  norm          .10000E-03    8.4841        .71483E-05** at limit **
   9  Prefactor     .10000E-03    2.8389       -.12908E-06** at limit **
  10  norm          .10000E-03    .21983        .33958E-08** at limit **
  11  norm          .10000E-03    .59872        .41628E-07** at limit **
  12  Prefactor     .10000E-03    9.5575       -.91632E-05** at limit **
  13  Prefactor     .10000E-03    6.8575       -.51064E-05** at limit **
  14  Prefactor     .10000E-03    10.756        .10725E-04** at limit **
  15  norm          2.7551        1.1326        .14020E-07   -.23934E-02
  16  norm          .10000E-03    .89864        .55529E-07** at limit **
  17  Prefactor     34.886        27.857       -.16960E-05   -.24349E-03
  18  Prefactor     .10000E-03    9.0411       -.61876E-05** at limit **
  19  Prefactor     10.916        8.1160        .65906E-08    .32462E-03
  20  norm          1.4838        .65421        .54681E-08    .10829E-02
  21  Prefactor     .10000E-03    5.1952       -.16130E-06** at limit **
  22  Prefactor     .10000E-03    2.4500       -.73157E-07** at limit **
  23  Normalizat    1.2250        .15325        .30059E-07   -.13567E-04
  24  Prefactor     .75355        .13232       -.33944E-06   -.52118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.827566
  Prefactor  = 8.70745
  Prefactor  = 16.6696
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.75505
  norm       = 0.0001
  Prefactor  = 34.8859
  Prefactor  = 0.0001
  Prefactor  = 10.916
  norm       = 1.48376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22495
  Prefactor  = 0.753546
 **********
 **   18 **HESSE 
 **********

 FCN=   8181.689     FROM HESSE     STATUS=OK           401 CALLS     3118 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .82757        .29548        .28545E-04   -1.5526    
   4  Prefactor     8.7074        8.5641        .13584E-03   -1.5118    
   5  Prefactor     16.670        10.959        .98094E-04   -1.4891    
   6  Prefactor     .10002E-03    11.847        .82667E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.4960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8463        .14882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .35613        .82190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0841        .13626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.5511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.9290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7551        1.1314        .24529E-04   -1.5376    
  16  norm          .10000E-03    .90109        .83665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.886        27.932        .67839E-04   -1.4526    
  18  Prefactor     .10000E-03    9.0489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.916        8.5903        .12122E-03   -1.5047    
  20  norm          1.4838        .68560        .38169E-04   -1.5464    
  21  Prefactor     .10000E-03    5.2390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4555        .13819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2250        .18206        .22950E-03   -.85835    
  24  Prefactor     .75355        .15615        .24929E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01108e-10
Minuit parameter uncertainties:
  1  4.36322e-06
  2  1.49111e-05
  3  0.295476
  4  8.56527
  5  10.9605
  6  0.000971006
  7  1.61639e-06
  8  1.84705e-06
  9  1.36649e-06
  10  9.13595e-07
  11  1.42774e-06
  12  4.43938e-06
  13  2.23306e-05
  14  1.61011e-05
  15  1.13138
  16  1.16959e-06
  17  27.9421
  18  1.64985e-05
  19  8.59131
  20  0.685608
  21  5.71895e-06
  22  2.09703e-06
  23  0.18215
  24  0.156239
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.366e-06  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:  7.535e-01  1.562e-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.225e+00  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 4.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/408102/likelihoodResults_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.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): 102
logL (Free Index) = 8181.69032107
delta logL = -0.0016695852355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8181.68865144
delta logL = 4.19504431193e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7350       1.0000          .0000       10.000    
     3 'Normalizat'    1.2250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75355       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=   8181.689     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      256 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.403        .14917E-01** at limit **
   2  Index         2.3638        6.3443        .50000       -.42337E-07
   3  Normalizat    1.2250        .10407E-01    .22950E-03    .81984E-04
   4  Prefactor     .75355        .91387E-02    .24929E-03    .84138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36377
  Normalizat = 1.22495
  Prefactor  = 0.753546
 **********
 **   18 **HESSE 
 **********

 FCN=   8181.689     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    211.00        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3638        8.4752        .50000       -.55536    
   3  Normalizat    1.2250        .34557E-01    .91800E-05   -.85835    
   4  Prefactor     .75355        .30345E-01    .99718E-05   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24589e-09
Minuit parameter uncertainties:
  1  0.000154927
  2  976.412
  3  0.034558
  4  0.0303454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408102': 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) = 8181.68865042
delta logL = 1.0644307622e-06

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.549e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.364e+00  9.764e+02  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:  7.535e-01  3.035e-02  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.225e+00  3.456e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/408102/cmap_HighResolution_575510401_575769601_4FGL_J2236.4-2309_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-28 17:21:53.799786', job_id='408102', GAL2='0.75', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632874913.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1297' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:21:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 408102: <4FGL_J2236.4-2309_daily_bin1297> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1297 339.125 -23.1552 575510401 575769601 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 :                                   590.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            656 sec.

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

