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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1055
RA = 339.125, Dec = -23.1552
tmin = 512784001, tmax = 513043201
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='407751', job_status='RUN', time_executed='2021-09-28 17:11:56.129966', time_epoch_executed='1632874316.13' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407751/ft1_4FGL_J2236.4-2309_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407751/ft2_4FGL_J2236.4-2309_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407751/ft1_4FGL_J2236.4-2309_daily_bin1055.fits outfile=/scratch/kocevski/407751/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1055.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=512784001.0 tmax=513043201.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.41
user 4.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407751/ft1_filtered_4FGL_J2236.4-2309_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/407751/ft2_4FGL_J2236.4-2309_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/407751/ltcube_512784001_513043201_4FGL_J2236.4-2309_daily_bin1055.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/407751/ft2_4FGL_J2236.4-2309_daily_bin1055.fits
.....................!
real 12.75
user 12.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407751/ft1_filtered_4FGL_J2236.4-2309_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/407751/ft2_4FGL_J2236.4-2309_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/407751/ltcube_512784001_513043201_4FGL_J2236.4-2309_daily_bin1055.fits outfile=/scratch/kocevski/407751/expmap_512784001_513043201_4FGL_J2236.4-2309_daily_bin1055.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/407751/ltcube_512784001_513043201_4FGL_J2236.4-2309_daily_bin1055.fits
.....................!
real 189.74
user 184.88
sys 4.53

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/407751/ft1_filtered_4FGL_J2236.4-2309_daily_bin1055.fits scfile=/scratch/kocevski/407751/ft2_4FGL_J2236.4-2309_daily_bin1055.fits outfile=/scratch/kocevski/407751/cmap_512784001_513043201_4FGL_J2236.4-2309_daily_bin1055.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407751/ft1_filtered_4FGL_J2236.4-2309_daily_bin1055.fits scfile=/scratch/kocevski/407751/ft2_4FGL_J2236.4-2309_daily_bin1055.fits outfile=/scratch/kocevski/407751/cmap_HighResolution_512784001_513043201_4FGL_J2236.4-2309_daily_bin1055.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.55
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407751/ft1_filtered_4FGL_J2236.4-2309_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/407751/ft2_4FGL_J2236.4-2309_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407751/Model_4FGL_J2236.4-2309_daily_bin1055.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/407751/ft1_filtered_4FGL_J2236.4-2309_daily_bin1055.fits.....................!
real 50.56
user 49.29
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.311       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.020       1.0000         .10000E-03   10000.    
     7 'Prefactor '    60.997       1.0000         .10000E-03   10000.    
     8 'norm      '    33.414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.477       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7370       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4357       1.0000         .10000E-03   10000.    
    15 'norm      '    13.352       1.0000         .10000E-03   10000.    
    16 'norm      '    .76203       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .60821       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9763       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3505       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0687       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90231       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=   5875.703     FROM MIGRAD    STATUS=FAILED       940 CALLS     3107 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9457        .18142E-02** at limit **
   2  Prefactor     .10000E-03    27.374        .18142E-02** at limit **
   3  norm          1.8092        .49440        .27265E-04   -.15428E-04
   4  Prefactor     20.309        12.324        .88874E-04    .11513E-05
   5  Prefactor     17.398        18.903        .96026E-04    .17759E-05
   6  Prefactor     24.024        20.468        .81732E-04    .25038E-05
   7  Prefactor     61.016        48.007        .25687E-03    .25227E-05
   8  norm          33.407        23.671        .69322E-04   -.25912E-05
   9  Prefactor     15.477        12.409        .10181E-03    .22333E-05
  10  norm          .10000E-03    .19823        .18142E-03** at limit **
  11  norm          .10000E-03    1.1012        .78004E-03** at limit **
  12  Prefactor     .10000E-03    39.384        .18142E-02** at limit **
  13  Prefactor     7.7371        8.8995        .14416E-03   -.16560E-05
  14  Prefactor     1.3105        2051.4        .36028E-02    .24597E-03
  15  norm          13.357        9.6651        .45246E-04    .43971E-04
  16  norm          .76226        4.5882        .30505E-03    .11814E-04
  17  Prefactor     .10000E-03    17.920        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.8969        .18142E-02** at limit **
  19  Prefactor     .10000E-03    8.2916        .18142E-02** at limit **
  20  norm          .60823        .49381        .45208E-04   -.20998E-03
  21  Prefactor     6.9782        9.5328        .75944E-03   -.70657E-05
  22  Prefactor     4.3536        9.1576        .19311E-03   -.90660E-05
  23  Normalizat    1.0687        .25446        .27847E-03   -.53890E-04
  24  Prefactor     .90229        .20609        .25681E-03    .45022E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5875.703     FROM SIMPLEX   STATUS=UNCHANGED   1393 CALLS     4500 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9457        .44491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.374        .62669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8092        .49440        .11045E-05   -1.5439    
   4  Prefactor     20.309        12.324        .10593E-05   -1.4806    
   5  Prefactor     17.398        18.903        .10640E-05   -1.4874    
   6  Prefactor     24.024        20.468        .10536E-05   -1.4727    
   7  Prefactor     61.016        48.007        .10118E-05   -1.4144    
   8  norm          33.407        23.671        .10410E-05   -1.4551    
   9  Prefactor     15.477        12.409        .10674E-05   -1.4921    
  10  norm          .10000E-03    .19823        .65824E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1012        .26431E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.384        .61677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7371        8.8995        .10839E-05   -1.5152    
  14  Prefactor     1.3105        2051.4        .11514E-05   -1.5479    
  15  norm          13.357        9.6651        .10714E-05   -1.4977    
  16  norm          .76226        4.5882        .11115E-05   -1.5533    
  17  Prefactor     .10000E-03    17.920        .40483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8969        .20610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2916        .35423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .60823        .49381        .11126E-05   -1.5552    
  21  Prefactor     6.9782        9.5328        .10863E-05   -1.5180    
  22  Prefactor     4.3536        9.1576        .10943E-05   -1.5291    
  23  Normalizat    1.0687        .25446        .64915E-06   -.90762    
  24  Prefactor     .90229        .20609        .68711E-06   -.96061    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5875.703     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     4880 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9458        .36285E-03** at limit **
   2  Prefactor     .10000E-03    27.375        .36285E-03** at limit **
   3  norm          1.8092        .49431        .10906E-05   -.12354E-05
   4  Prefactor     20.309        12.319        .35550E-05     .0000    
   5  Prefactor     17.398        18.904        .38410E-05     .0000    
   6  Prefactor     24.024        20.458        .32693E-05     .0000    
   7  Prefactor     61.016        47.994        .10275E-04     .0000    
   8  norm          33.407        23.666        .13864E-04   -.16400E-06
   9  Prefactor     15.477        12.407        .40723E-05   -.55834E-06
  10  norm          .10000E-03    .19823        .36285E-04** at limit **
  11  norm          .10000E-03    1.1013        .15601E-03** at limit **
  12  Prefactor     .10000E-03    39.387        .36285E-03** at limit **
  13  Prefactor     7.7371        8.8956        .57666E-05     .0000    
  14  Prefactor     1.3105        741.48        .72055E-03    .98264E-05
  15  norm          13.357        5.6682        .18098E-05    .12563E-05
  16  norm          .76226        4.5794        .12202E-04   -.74536E-06
  17  Prefactor     .10000E-03    17.920        .36285E-03** at limit **
  18  Prefactor     .10000E-03    6.8970        .36285E-03** at limit **
  19  Prefactor     .10000E-03    8.2945        .36285E-03** at limit **
  20  norm          .60823        .49365        .18083E-05   -.36793E-05
  21  Prefactor     6.9782        9.5165        .30378E-04    .74849E-07
  22  Prefactor     4.3536        9.1537        .77246E-05   -.58870E-06
  23  Normalizat    1.0687        .25100        .11139E-04   -.40825E-06
  24  Prefactor     .90229        .20548        .10272E-04   -.22135E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80921
  Prefactor  = 20.3088
  Prefactor  = 17.3982
  Prefactor  = 24.0235
  Prefactor  = 61.0164
  norm       = 33.4067
  Prefactor  = 15.4767
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.73707
  Prefactor  = 1.31048
  norm       = 13.3572
  norm       = 0.762257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.608235
  Prefactor  = 6.97824
  Prefactor  = 4.35358
  Normalizat = 1.06875
  Prefactor  = 0.902286
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.703     FROM HESSE     STATUS=OK           375 CALLS     5255 TOTAL
                     EDM=   .44E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9458        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.375        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8092        .49434        .36809E-06   -1.5439    
   4  Prefactor     20.309        12.319        .35550E-05   -1.4806    
   5  Prefactor     17.398        18.903        .38410E-05   -1.4874    
   6  Prefactor     24.024        20.456        .32693E-05   -1.4727    
   7  Prefactor     61.016        47.992        .10275E-04   -1.4144    
   8  norm          33.407        23.666        .27729E-05   -1.4551    
   9  Prefactor     15.477        12.403        .81447E-06   -1.4921    
  10  norm          .10000E-03    .19823        .36285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1013        .31202E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.387        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7371        8.8953        .57666E-05   -1.5152    
  14  Prefactor     1.3105        655.54        .14411E-03   -1.5479    
  15  norm          13.357        5.3231        .36197E-06   -1.4977    
  16  norm          .76226        4.5785        .24404E-05   -1.5533    
  17  Prefactor     .10000E-03    17.920        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8970        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2946        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .60823        .49368        .37079E-06   -1.5552    
  21  Prefactor     6.9782        9.5156        .60756E-05   -1.5180    
  22  Prefactor     4.3536        9.1544        .15449E-05   -1.5291    
  23  Normalizat    1.0687        .25071        .22278E-05   -.90762    
  24  Prefactor     .90229        .20538        .20545E-05   -.96061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44694e-14
Minuit parameter uncertainties:
  1  2.20569e-08
  2  1.83918e-07
  3  0.494345
  4  12.3206
  5  18.91
  6  20.4617
  7  48.0225
  8  23.6727
  9  12.4055
  10  2.54753e-10
  11  1.17757e-08
  12  1.28599e-06
  13  8.89685
  14  59.2817
  15  5.32331
  16  3.73648
  17  8.2885e-08
  18  4.79322e-08
  19  8.09891e-07
  20  0.49368
  21  9.51763
  22  9.15732
  23  0.25099
  24  0.205558
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.023e-01  2.056e-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.069e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.02e-05

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) = 5874.50930964
delta logL = 1.19383027411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5874.453528
delta logL = 1.24961190567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.765       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6898       1.0000          .0000       10.000    
     3 'Normalizat'    1.1128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87949       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5874.454     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.757        9.6656        .30528E-02   -.22903E-03
   2  Index         1.6897        .37740        .19258       -.67663E-04
   3  Normalizat    1.1128        .20109        .61838E-01    .84396E-05
   4  Prefactor     .87948        .17267        .44743E-01    .11496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7571
  Index      = 1.68972
  Normalizat = 1.11281
  Prefactor  = 0.879483
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.454     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.757        13.020        .61057E-03   -1.5052    
   2  Index         1.6897        .58882        .73515E-02   -.72356    
   3  Normalizat    1.1128        .23721        .27351E-03   -.89342    
   4  Prefactor     .87948        .20353        .25970E-03   -.96862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30098e-12
Minuit parameter uncertainties:
  1  13.0232
  2  0.591265
  3  0.237441
  4  0.203706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407751': 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) = 5874.45352775
delta logL = 1.2496121624

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.076e+01  1.302e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.690e+00  5.913e-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.795e-01  2.037e-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.113e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 1.69 +/- 0.59
Photon Flux (Free Index): 1.95e-08 +/- 2.45e-08
Energy Flux (Free Index): 3.29e-05 +/- 4.37e-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/407751/cmap_HighResolution_512784001_513043201_4FGL_J2236.4-2309_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='3.29e-05', photon_flux_error='4.36e-08', dlogl='1.25e+00', energy_flux='1.27e-05', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-09-28 17:23:25.409378', photon_index_error2='0.59', photon_index2='1.69', ts='4.03', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='1.07', time_epoch_completed='1632875005.41', return_code='0', job_id='407751', GAL2='0.88', EG2='1.11', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.45e-08', ts2='6.51', photon_index='2.74' WHERE bin_id='1055' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 407751: <4FGL_J2236.4-2309_daily_bin1055> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1055> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:10:32 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:10:34 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:34 2021
Terminated at Tue Sep 28 17:23:26 2021
Results reported at Tue Sep 28 17:23:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1055 339.125 -23.1552 512784001 513043201 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 :                                   686.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

