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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1287
RA = 339.125, Dec = -23.1552
tmin = 572918401, tmax = 573177601
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='408092', job_status='RUN', time_executed='2021-09-28 17:11:53.677676', time_epoch_executed='1632874313.68' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408092/ft1_4FGL_J2236.4-2309_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408092/ft1_4FGL_J2236.4-2309_daily_bin1287.fits outfile=/scratch/kocevski/408092/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1287.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=572918401.0 tmax=573177601.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.87
user 4.62
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.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/408092/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1287.fits evtable="EVENTS" outfile="/scratch/kocevski/408092/ft1_filtered_4FGL_J2236.4-2309_daily_bin1287.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408092/ft1_filtered_4FGL_J2236.4-2309_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/408092/ltcube_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.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/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.fits
.....................!
real 11.84
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408092/ft1_filtered_4FGL_J2236.4-2309_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/408092/ltcube_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.fits outfile=/scratch/kocevski/408092/expmap_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.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/408092/ltcube_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.fits
.....................!
real 190.18
user 185.02
sys 4.86

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/408092/ft1_filtered_4FGL_J2236.4-2309_daily_bin1287.fits scfile=/scratch/kocevski/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.fits outfile=/scratch/kocevski/408092/cmap_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408092/ft1_filtered_4FGL_J2236.4-2309_daily_bin1287.fits scfile=/scratch/kocevski/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.fits outfile=/scratch/kocevski/408092/cmap_HighResolution_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/408092/ft1_filtered_4FGL_J2236.4-2309_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/408092/ft2_4FGL_J2236.4-2309_daily_bin1287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408092/Model_4FGL_J2236.4-2309_daily_bin1287.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/408092/ft1_filtered_4FGL_J2236.4-2309_daily_bin1287.fits.....................!
real 41.84
user 40.61
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.254       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8857       1.0000         .10000E-03   10000.    
    11 'norm      '    .10326E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49968E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.900       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.930       1.0000         .10000E-03   10000.    
    15 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    147.55       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.755       1.0000         .10000E-03   10000.    
    20 'norm      '    .10849E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3794       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89962       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=   4431.343     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2473 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.142       -.38305E-05** at limit **
   2  Prefactor     .10003E-03    36.484        .20448E-04** at limit **
   3  norm          2.6638        .71198        .11107E-06   -.84056E-03
   4  Prefactor     3.5371        1.9473       -.41546E-05   -.18814E-03
   5  Prefactor     2.8512        2.3631        .53589E-06    .32859E-03
   6  Prefactor     34.110        3.6439        .21020E-05   -.39744E-02
   7  Prefactor     .10006E-03    29.554       -.46665E-04** at limit **
   8  norm          .10003E-03    27.763        .37476E-04** at limit **
   9  Prefactor     10.261        4.6165        .94804E-05    .10638E-02
  10  norm          1.8857        1.3187        .84089E-06   -.11855E-02
  11  norm          .10000E-03    7.1828        .91555E-07** at limit **
  12  Prefactor     .11015E-03    2148.6       -.27146E-03** at limit **
  13  Prefactor     14.895        7.6274        .15624E-04   -.56447E-02
  14  Prefactor     47.875        27.080        .44186E-05   -.93243E-03
  15  norm          .10000E-03    4.8877        .20447E-05** at limit **
  16  norm          .10000E-03    2.7949        .81088E-06** at limit **
  17  Prefactor     147.50        11.331       -.48317E-06    .25506E-03
  18  Prefactor     .10000E-03    7.8849       -.56994E-06** at limit **
  19  Prefactor     31.718        14.690       -.18020E-04   -.40014E-02
  20  norm          .10000E-03    1.8815        .19664E-06** at limit **
  21  Prefactor     .10000E-03    16.976       -.11954E-05** at limit **
  22  Prefactor     .10000E-03    8.7638       -.13756E-05** at limit **
  23  Normalizat    1.3792        .33037       -.12273E-04   -.46572E-04
  24  Prefactor     .89995        .26184        .18920E-05   -.37769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  norm       = 2.66384
  Prefactor  = 3.53714
  Prefactor  = 2.8512
  Prefactor  = 34.11
  Prefactor  = 0.000100061
  norm       = 0.00010003
  Prefactor  = 10.261
  norm       = 1.88566
  norm       = 0.0001
  Prefactor  = 0.000110155
  Prefactor  = 14.895
  Prefactor  = 47.8748
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 147.503
  Prefactor  = 0.0001
  Prefactor  = 31.7184
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37918
  Prefactor  = 0.899948
 **********
 **   18 **HESSE 
 **********

 FCN=   4431.343     FROM HESSE     STATUS=OK           471 CALLS     2944 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    36.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6638        .71115        .62431E-02   -1.5382    
   4  Prefactor     3.5371        13.291        .53708E-02   -1.5332    
   5  Prefactor     2.8512        43.132        .60169E-02   -1.5370    
   6  Prefactor     34.110        30.311        .17152E-02   -1.4539    
   7  Prefactor     .10006E-03    29.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10003E-03    27.910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.261        15.882        .31283E-02   -1.5067    
  10  norm          1.8857        1.3270        .75771E-02   -1.5433    
  11  norm          .10000E-03    3.8074        .36978E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11015E-03    183.88        .14132       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.895        19.435        .25940E-02   -1.4936    
  14  Prefactor     47.875        55.867        .14480E-02   -1.4323    
  15  norm          .10000E-03    2.0684        .41601E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     147.50        115.62        .82939E-03   -1.3273    
  18  Prefactor     .10000E-03    7.8835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.718        18.619        .17776E-02   -1.4581    
  20  norm          .10000E-03    .79447        .17722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3792        .29486        .65748E-01   -.81233    
  24  Prefactor     .89995        .22249        .45000E-01   -.96143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86137e-07
Minuit parameter uncertainties:
  1  7.85039e-05
  2  0.00210799
  3  0.711153
  4  13.3017
  5  22.1979
  6  30.3251
  7  0.00270528
  8  0.00182442
  9  15.8885
  10  1.32705
  11  2.74937e-05
  12  0.0866912
  13  19.4432
  14  55.9279
  15  1.56524e-05
  16  2.33229e-05
  17  115.799
  18  1.0815e-05
  19  18.6223
  20  5.81001e-06
  21  0.000102536
  22  3.36328e-05
  23  0.295227
  24  0.222716
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.026e+01  1.589e+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.999e-01  2.227e-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.379e+00  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/408092/likelihoodResults_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.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) = 4431.33603863
delta logL = 0.00741634602127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4431.33552932
delta logL = 0.00792565681149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.719       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5984       1.0000          .0000       10.000    
     3 'Normalizat'    1.3828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89774       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=   4431.336     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      262 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.719        16.319        .12237E-03   -.15338E-03
   2  Index         2.5984        1.1106        .14286E-01   -.28922E-04
   3  Normalizat    1.3825        .32359        .29054E-03    .10722E-04
   4  Prefactor     .89793        .25977        .28240E-03    .87358E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7191
  Index      = 2.59841
  Normalizat = 1.3825
  Prefactor  = 0.897929
 **********
 **   18 **HESSE 
 **********

 FCN=   4431.336     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.719        16.203        .48950E-05   -1.5053    
   2  Index         2.5984        1.1030        .57145E-03   -.50102    
   3  Normalizat    1.3825        .32398        .11621E-04   -.81136    
   4  Prefactor     .89793        .26004        .11296E-04   -.96214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90063e-11
Minuit parameter uncertainties:
  1  16.2095
  2  1.11493
  3  0.32446
  4  0.260397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408092': 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) = 4431.335529
delta logL = 0.00792597558302

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.072e+01  1.621e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.598e+00  1.115e+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:  8.979e-01  2.604e-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.382e+00  3.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
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/408092/cmap_HighResolution_572918401_573177601_4FGL_J2236.4-2309_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-09-28 17:20:54.485759', job_id='408092', GAL2='0.90', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632874854.49', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.93e-03', ts2='0.65', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1287' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 408092: <4FGL_J2236.4-2309_daily_bin1287> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1287> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:57 2021
Job was executed on host(s) <bullet0274>, 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:20:55 2021
Results reported at Tue Sep 28 17:20:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1287 339.125 -23.1552 572918401 573177601 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 :                                   537.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            598 sec.

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

