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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1402
RA = 339.125, Dec = -23.1552
tmin = 602726401, tmax = 602985601
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='409219', job_status='RUN', time_executed='2021-09-28 17:16:24.258721', time_epoch_executed='1632874584.26' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409219

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409219/ft1_4FGL_J2236.4-2309_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409219/ft2_4FGL_J2236.4-2309_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409219/ft1_4FGL_J2236.4-2309_daily_bin1402.fits outfile=/scratch/kocevski/409219/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1402.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=602726401.0 tmax=602985601.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 3.08
user 2.88
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409219/ft1_filtered_4FGL_J2236.4-2309_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/409219/ft2_4FGL_J2236.4-2309_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/409219/ltcube_602726401_602985601_4FGL_J2236.4-2309_daily_bin1402.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/409219/ft2_4FGL_J2236.4-2309_daily_bin1402.fits
.....................!
real 12.29
user 11.91
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409219/ft1_filtered_4FGL_J2236.4-2309_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/409219/ft2_4FGL_J2236.4-2309_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/409219/ltcube_602726401_602985601_4FGL_J2236.4-2309_daily_bin1402.fits outfile=/scratch/kocevski/409219/expmap_602726401_602985601_4FGL_J2236.4-2309_daily_bin1402.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/409219/ltcube_602726401_602985601_4FGL_J2236.4-2309_daily_bin1402.fits
.....................!
real 190.76
user 186.06
sys 4.38

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/409219/ft1_filtered_4FGL_J2236.4-2309_daily_bin1402.fits scfile=/scratch/kocevski/409219/ft2_4FGL_J2236.4-2309_daily_bin1402.fits outfile=/scratch/kocevski/409219/cmap_602726401_602985601_4FGL_J2236.4-2309_daily_bin1402.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409219/ft1_filtered_4FGL_J2236.4-2309_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/409219/ft2_4FGL_J2236.4-2309_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409219/Model_4FGL_J2236.4-2309_daily_bin1402.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/409219/ft1_filtered_4FGL_J2236.4-2309_daily_bin1402.fits.......................!
real 23.85
user 22.63
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    .10573E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    89.001       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12558E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.568       1.0000         .10000E-03   10000.    
     8 'norm      '    47.898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .41460E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.574       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.645       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8075       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1003       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98768       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1569.212     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     3173 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        1382.9        .88348E-04** at limit **
   2  Prefactor     10000.        1760.3        .11680E-02** at limit **
   3  norm          .10000E-03    36.216        .14630E-04** at limit **
   4  Prefactor     .10000E-03    231.22        .51411E-04** at limit **
   5  Prefactor     88.958        82.804       -.22823E-04    .32980E-07
   6  Prefactor     .10000E-03    461.52        .10319E-03** at limit **
   7  Prefactor     22.668        220.15        .16976E-03    .85462E-05
   8  norm          47.916        69.263        .96262E-05    .62738E-05
   9  Prefactor     .10000E-03    11.738       -.89107E-07** at limit **
  10  norm          .41266E-01    1.7459       -.84303E-06   -.18054E-03
  11  norm          .10000E-03    3.0659       -.53175E-07** at limit **
  12  Prefactor     .10000E-03    98.795       -.51812E-04** at limit **
  13  Prefactor     .10000E-03    44.145       -.99293E-05** at limit **
  14  Prefactor     .10000E-03    118.83        .36729E-04** at limit **
  15  norm          11.575        3.4603       -.95069E-07   -.19493E-02
  16  norm          .10000E-03    3.6253       -.50094E-07** at limit **
  17  Prefactor     .10000E-03    55.279        .24214E-04** at limit **
  18  Prefactor     .10000E-03    30.300       -.24565E-05** at limit **
  19  Prefactor     15.616        28.854        .11143E-04    .74490E-04
  20  norm          1.8090        2.1819       -.14047E-05    .16786E-02
  21  Prefactor     .10000E-03    10.404        .81337E-07** at limit **
  22  Prefactor     .10000E-03    40.101       -.15539E-04** at limit **
  23  Normalizat    1.1013        .43554       -.20771E-05    .33175E-04
  24  Prefactor     .98710        .37985       -.61011E-05    .81113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.9583
  Prefactor  = 0.0001
  Prefactor  = 22.6679
  norm       = 47.9156
  Prefactor  = 0.0001
  norm       = 0.0412656
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5748
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.6162
  norm       = 1.80901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10131
  Prefactor  = 0.9871
 **********
 **   18 **HESSE 
 **********

 FCN=   1569.212     FROM HESSE     STATUS=OK           385 CALLS     3558 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        1383.0        .21453E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10000.        1759.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    36.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    231.25        .21263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     88.958        82.792        .21295E-03   -1.3819    
   6  Prefactor     .10000E-03    462.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.668        220.01        .84316E-04   -1.4755    
   8  norm          47.916        69.280        .57939E-04   -1.4322    
   9  Prefactor     .10000E-03    11.741        .13258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .41266E-01    16.376        .98489E-03   -1.5667    
  11  norm          .10000E-03    3.0772        .67733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    98.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    119.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.575        3.4394        .38228E-04   -1.5027    
  16  norm          .10000E-03    3.6263        .73659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.616        31.694        .10126E-03   -1.4917    
  20  norm          1.8090        2.3573        .44372E-04   -1.5439    
  21  Prefactor     .10000E-03    10.438        .12480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1013        .52271        .30800E-03   -.89710    
  24  Prefactor     .98710        .46158        .27835E-03   -.93161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19919e-09
Minuit parameter uncertainties:
  1  4.1444e-05
  2  6.2875e-05
  3  1.85069e-05
  4  2.61712e-05
  5  82.9
  6  0.000403503
  7  141.926
  8  69.3963
  9  1.93723e-05
  10  1.64256
  11  1.15834e-05
  12  0.000310189
  13  6.46566e-05
  14  8.98456e-05
  15  3.43944
  16  1.11432e-05
  17  7.67116e-06
  18  0.000248875
  19  31.7282
  20  2.35744
  21  2.2674e-05
  22  1.80486e-05
  23  0.525195
  24  0.463438
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.937e-05  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.871e-01  4.634e-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.101e+00  5.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/409219/likelihoodResults_602726401_602985601_4FGL_J2236.4-2309_daily_bin1402.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) = 1569.21213226
delta logL = -0.000372752774865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1569.21175952
delta logL = -8.3887243818e-09

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 'Index     '    2.7394       1.0000          .0000       10.000    
     3 'Normalizat'    1.1012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98714       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=   1568.479     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      292 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48829E-02    .35036        .73640E-03    .26064E-02
   2  Index        10.0000        7.5805        .50000    ** at limit **
   3  Normalizat    .97737        .46004        .30800E-02    .37831E-04
   4  Prefactor     1.0599        .39944        .27835E-02    .60998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00488288
  Index      = 10
  Normalizat = 0.977373
  Prefactor  = 1.05985
 **********
 **   18 **HESSE 
 **********

 FCN=   1568.479     FROM HESSE     STATUS=OK            29 CALLS      321 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48829E-02    .53106E-02    .30026E-04   -1.5694    
   2  Index        10.0000        6.5284        .27800E-01   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97737        .49501        .12320E-03   -.93792    
   4  Prefactor     1.0599        .42960        .11134E-03   -.90760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09021e-11
Minuit parameter uncertainties:
  1  0.00531059
  2  6.95439e-06
  3  0.497357
  4  0.431006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409219': 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) = 1568.47863918
delta logL = 0.733120326594

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  4.883e-03  5.311e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  6.954e-06  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.060e+00  4.310e-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:  9.774e-01  4.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.84e-07 +/- 1.94e-07
Energy Flux (Free Index): 2.06e-05 +/- 2.18e-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/409219/cmap_HighResolution_602726401_602985601_4FGL_J2236.4-2309_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', comment='SUCCESS', energy_flux2='2.06e-05', dlogl='7.33e-01', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-28 17:23:07.347834', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.20e-07', energy_flux_error2='2.18e-05', EG='1.10', time_epoch_completed='1632874987.35', return_code='0', job_id='409219', GAL2='1.06', EG2='0.98', return_code2='0', photon_flux_error2='1.94e-07', ts2='1.54', photon_index='2.74' WHERE bin_id='1402' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:23:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 409219: <4FGL_J2236.4-2309_daily_bin1402> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin1402> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 17:15:18 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:15:19 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:15:19 2021
Terminated at Tue Sep 28 17:23:08 2021
Results reported at Tue Sep 28 17:23:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1402 339.125 -23.1552 602726401 602985601 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 :                                   401.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   468 sec.
    Turnaround time :                            470 sec.

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

