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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1283
RA = 339.125, Dec = -23.1552
tmin = 571881601, tmax = 572140801
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='408085', job_status='RUN', time_executed='2021-09-28 17:13:39.044295', time_epoch_executed='1632874419.04' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408085/ft1_4FGL_J2236.4-2309_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408085/ft2_4FGL_J2236.4-2309_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408085/ft1_4FGL_J2236.4-2309_daily_bin1283.fits outfile=/scratch/kocevski/408085/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1283.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.54
user 2.34
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408085/ft1_filtered_4FGL_J2236.4-2309_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/408085/ft2_4FGL_J2236.4-2309_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/408085/ltcube_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.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/408085/ft2_4FGL_J2236.4-2309_daily_bin1283.fits
.....................!
real 12.19
user 11.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408085/ft1_filtered_4FGL_J2236.4-2309_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/408085/ft2_4FGL_J2236.4-2309_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/408085/ltcube_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.fits outfile=/scratch/kocevski/408085/expmap_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.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/408085/ltcube_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.fits
.....................!
real 190.85
user 186.46
sys 4.01

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/408085/ft1_filtered_4FGL_J2236.4-2309_daily_bin1283.fits scfile=/scratch/kocevski/408085/ft2_4FGL_J2236.4-2309_daily_bin1283.fits outfile=/scratch/kocevski/408085/cmap_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408085/ft1_filtered_4FGL_J2236.4-2309_daily_bin1283.fits scfile=/scratch/kocevski/408085/ft2_4FGL_J2236.4-2309_daily_bin1283.fits outfile=/scratch/kocevski/408085/cmap_HighResolution_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.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/408085/ft1_filtered_4FGL_J2236.4-2309_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/408085/ft2_4FGL_J2236.4-2309_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408085/Model_4FGL_J2236.4-2309_daily_bin1283.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/408085/ft1_filtered_4FGL_J2236.4-2309_daily_bin1283.fits.....................!
real 26.70
user 25.41
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41557E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3304.3       1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.750       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60692E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14269E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4684       1.0000         .10000E-03   10000.    
    10 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46159E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    149.81       1.0000         .10000E-03   10000.    
    15 'norm      '    .34702       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    122.91       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.749       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.971       1.0000         .10000E-03   10000.    
    20 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .45651       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1378       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1743.362     FROM MIGRAD    STATUS=FAILED       947 CALLS     3292 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2211.3        .19447E-02** at limit **
   2  Prefactor     3310.9        6295.2        .42520E-04    .53475E-07
   3  norm          .10000E-03    3.7017        .78461E-03** at limit **
   4  Prefactor     .10000E-03    65.251        .18142E-02** at limit **
   5  Prefactor     51.713        44.549        .55751E-04   -.38123E-04
   6  Prefactor     .10000E-03    249.64        .21058E-02** at limit **
   7  Prefactor     .10000E-03    167.48        .18142E-02** at limit **
   8  norm          .10000E-03    150.09        .18142E-02** at limit **
   9  Prefactor     7.4136        100.64        .14675E-03    .12317E-04
  10  norm          .10000E-03    1.4848        .86601E-03** at limit **
  11  norm          9.0960        8.7977        .11208E-03   -.10529E-03
  12  Prefactor     .10000E-03    342.90        .21196E-02** at limit **
  13  Prefactor     49.923        56.869        .56774E-04   -.29036E-05
  14  Prefactor     150.01        125.44        .16464E-03   -.21855E-04
  15  norm          .33139        41.977        .14862E-02    .14257E-02
  16  norm          .10000E-03    10.796        .13341E-02** at limit **
  17  Prefactor     122.79        131.65        .36303E-04   -.30235E-04
  18  Prefactor     23.733        49.894        .82195E-04    .32607E-04
  19  Prefactor     42.995        45.716        .61155E-04    .19705E-04
  20  norm          .10000E-03    1.1552        .86132E-04** at limit **
  21  Prefactor     .10000E-03    88.029        .36285E-03** at limit **
  22  Prefactor     .10000E-03    13.386        .14915E-02** at limit **
  23  Normalizat    .45589        .60857        .47196E-03   -.27057E-04
  24  Prefactor     1.1379        .44903        .24540E-03   -.13347E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1743.362     FROM SIMPLEX   STATUS=UNCHANGED   1197 CALLS     4489 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2211.3        .68729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3310.9        6295.2        .25564E-06   -.34461    
   3  norm          .10000E-03    3.7017        .22776E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.251        .95018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.713        44.549        .10229E-05   -1.4268    
   6  Prefactor     .10000E-03    249.64        .46870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    167.48        .10848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    150.09        .17872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4136        100.64        .10914E-05   -1.5163    
  10  norm          .10000E-03    1.4848        .23767E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0960        8.7977        .10830E-05   -1.5105    
  12  Prefactor     .10000E-03    342.90        .16486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.923        56.869        .10255E-05   -1.4294    
  14  Prefactor     150.01        125.44        .95016E-06   -1.3252    
  15  norm          .33139        41.977        .11286E-05   -1.5593    
  16  norm          .10000E-03    10.796        .46026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     122.79        131.65        .97363E-06   -1.3487    
  18  Prefactor     23.733        49.894        .10677E-05   -1.4733    
  19  Prefactor     42.995        45.716        .10376E-05   -1.4396    
  20  norm          .10000E-03    1.1552        .86568E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    88.029        .83641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.386        .34197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .45589        .60857        .82070E-06   -1.1451    
  24  Prefactor     1.1379        .44903        .63259E-06   -.88265    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1743.362     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     4867 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2211.3        .38893E-03** at limit **
   2  Prefactor     3310.9        6311.4        .85040E-05     .0000    
   3  norm          .10000E-03    3.7017        .15692E-03** at limit **
   4  Prefactor     .10000E-03    65.251        .36285E-03** at limit **
   5  Prefactor     51.713        44.547        .11150E-04    .30588E-06
   6  Prefactor     .10000E-03    249.64        .42116E-03** at limit **
   7  Prefactor     .10000E-03    167.49        .36285E-03** at limit **
   8  norm          .10000E-03    150.10        .36285E-03** at limit **
   9  Prefactor     7.4134        100.52        .58702E-05    .58101E-07
  10  norm          .10000E-03    1.4855        .17320E-03** at limit **
  11  norm          9.0960        8.7965        .44831E-05    .38038E-06
  12  Prefactor     .10000E-03    342.91        .42393E-03** at limit **
  13  Prefactor     49.923        56.835        .22709E-05     .0000    
  14  Prefactor     150.01        106.99        .65856E-05   -.17263E-05
  15  norm          .33140        28.824        .29723E-03    .35380E-05
  16  norm          .10000E-03    10.797        .26682E-03** at limit **
  17  Prefactor     122.79        131.21        .72607E-05   -.62632E-06
  18  Prefactor     23.733        49.873        .32878E-05    .34578E-07
  19  Prefactor     42.996        45.666        .24462E-05    .23237E-06
  20  norm          .10000E-03    1.1552        .17226E-04** at limit **
  21  Prefactor     .10000E-03    88.032        .72569E-04** at limit **
  22  Prefactor     .10000E-03    13.386        .29829E-03** at limit **
  23  Normalizat    .45588        .60284        .18878E-04    .30111E-06
  24  Prefactor     1.1379        .44656        .49081E-04    .70648E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3310.86
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.7133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.41335
  norm       = 0.0001
  norm       = 9.096
  Prefactor  = 0.0001
  Prefactor  = 49.9232
  Prefactor  = 150.005
  norm       = 0.331401
  norm       = 0.0001
  Prefactor  = 122.794
  Prefactor  = 23.7325
  Prefactor  = 42.9955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.455883
  Prefactor  = 1.13787
 **********
 **   18 **HESSE 
 **********

 FCN=   1743.362     FROM HESSE     STATUS=OK           375 CALLS     5242 TOTAL
                     EDM=   .73E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2211.3        .38893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3310.9        6314.7        .85040E-05   -.34461    
   3  norm          .10000E-03    3.7017        .15692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.251        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.713        44.543        .22300E-05   -1.4268    
   6  Prefactor     .10000E-03    249.64        .84232E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    167.49        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    150.10        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4134        100.49        .58702E-05   -1.5163    
  10  norm          .10000E-03    1.4855        .34641E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0960        8.7942        .89662E-06   -1.5105    
  12  Prefactor     .10000E-03    342.91        .84786E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.923        56.806        .22709E-05   -1.4294    
  14  Prefactor     150.01        103.64        .13171E-05   -1.3252    
  15  norm          .33140        26.725        .11889E-04   -1.5593    
  16  norm          .10000E-03    10.797        .53365E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     122.79        130.94        .14521E-05   -1.3487    
  18  Prefactor     23.733        49.801        .32878E-05   -1.4733    
  19  Prefactor     42.996        45.545        .48924E-06   -1.4396    
  20  norm          .10000E-03    1.1552        .17226E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    88.029        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.386        .59658E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .45588        .60096        .37757E-05   -1.1451    
  24  Prefactor     1.1379        .44566        .98162E-05   -.88265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32855e-14
Minuit parameter uncertainties:
  1  1.08879e-07
  2  8256.26
  3  1.00292e-09
  4  2.85683e-07
  5  44.5714
  6  3.85436e-06
  7  6.62141e-06
  8  3.00086e-06
  9  54.7008
  10  2.56534e-07
  11  8.79541
  12  1.85331e-06
  13  56.868
  14  103.762
  15  5.95389
  16  3.39996e-08
  17  131.248
  18  49.8881
  19  45.5824
  20  8.10036e-10
  21  4.30501e-06
  22  1.56548e-08
  23  0.609799
  24  0.447134
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  7.413e+00  5.470e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.743e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.138e+00  4.471e-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:  4.559e-01  6.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/408085/likelihoodResults_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.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) = 1743.33566074
delta logL = 0.0265327788784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1743.3207679
delta logL = 0.0414256150609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.609       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0217       1.0000          .0000       10.000    
     3 'Normalizat'    .47089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1176       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=   1743.321     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      266 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.547        54.915        .98277E-04   -.47429E-05
   2  Index         2.0218        1.5307        .10591E-01   -.31547E-05
   3  Normalizat    .47094        .52654        .46449E-03   -.64108E-04
   4  Prefactor     1.1176        .42890        .24715E-03   -.64239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5472
  Index      = 2.02183
  Normalizat = 0.470938
  Prefactor  = 1.11764
 **********
 **   18 **HESSE 
 **********

 FCN=   1743.321     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.547        55.637        .39311E-05   -1.4894    
   2  Index         2.0218        1.5514        .42366E-03   -.63805    
   3  Normalizat    .47094        .52674        .18580E-04   -1.1378    
   4  Prefactor     1.1176        .42887        .49429E-04   -.88905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71708e-11
Minuit parameter uncertainties:
  1  55.8124
  2  1.59281
  3  0.532453
  4  0.430201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408085': 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) = 1743.32076719
delta logL = 0.0414263286443

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.655e+01  5.581e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.022e+00  1.593e+00  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  4.484e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.118e+00  4.302e-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:  4.709e-01  5.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/408085/cmap_HighResolution_571881601_572140801_4FGL_J2236.4-2309_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-02', job_status='DONE', photon_flux_upper_limit='5.22e-07', time_completed='2021-09-28 17:20:59.900423', job_id='408085', GAL2='1.12', fit_tolerance='1e-08', EG2='0.47', EG='0.46', time_epoch_completed='1632874859.9', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.14e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1283' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 408085: <4FGL_J2236.4-2309_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1283 339.125 -23.1552 571881601 572140801 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 :                                   441.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            604 sec.

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

