/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 160 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.4-2309_daily_bin241
RA = 339.125, Dec = -23.1552
tmin = 301795201, tmax = 302054401
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='403244', job_status='RUN', time_executed='2021-09-28 16:58:41.834180', time_epoch_executed='1632873521.83' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403244/ft1_4FGL_J2236.4-2309_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403244/ft1_4FGL_J2236.4-2309_daily_bin241.fits outfile=/scratch/kocevski/403244/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin241.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=301795201.0 tmax=302054401.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.05
user 3.80
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403244/ft1_filtered_4FGL_J2236.4-2309_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/403244/ltcube_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.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/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits
.....................!
real 12.95
user 12.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403244/ft1_filtered_4FGL_J2236.4-2309_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/403244/ltcube_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.fits outfile=/scratch/kocevski/403244/expmap_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.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/403244/ltcube_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.fits
.....................!
real 191.83
user 186.41
sys 5.03

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/403244/ft1_filtered_4FGL_J2236.4-2309_daily_bin241.fits scfile=/scratch/kocevski/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits outfile=/scratch/kocevski/403244/cmap_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.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.55
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403244/ft1_filtered_4FGL_J2236.4-2309_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403244/Model_4FGL_J2236.4-2309_daily_bin241.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/403244/ft1_filtered_4FGL_J2236.4-2309_daily_bin241.fits.....................!
real 46.01
user 44.64
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/403244/ft1_filtered_4FGL_J2236.4-2309_daily_bin241.fits', '/scratch/kocevski/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits', expMap='/scratch/kocevski/403244/expmap_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.fits', expCube='/scratch/kocevski/403244/ltcube_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/403244/Model_4FGL_J2236.4-2309_daily_bin241.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/403244/ft1_filtered_4FGL_J2236.4-2309_daily_bin241.fits
Spacecraft file(s): /scratch/kocevski/403244/ft2_4FGL_J2236.4-2309_daily_bin241.fits
Exposure map: /scratch/kocevski/403244/expmap_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.fits
Exposure cube: /scratch/kocevski/403244/ltcube_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/403244/Model_4FGL_J2236.4-2309_daily_bin241.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5074.4112409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .64476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0947       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0918       1.0000         .10000E-03   10000.    
    10 'norm      '    .41550       1.0000         .10000E-03   10000.    
    11 'norm      '    .15499E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20080E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4469       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4228       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81310       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=   5074.213     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2389 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4913       -.25625E-06** at limit **
   2  Prefactor     .10000E-03    26.763        .18378E-05** at limit **
   3  norm          .64476        .30962       -.54328E-09   -.71608E-04
   4  Prefactor     9.0900        8.5388        .24438E-07   -.20120E-04
   5  Prefactor     .10000E-03    8.3478        .53511E-06** at limit **
   6  Prefactor     .10000E-03    10.792        .24681E-06** at limit **
   7  Prefactor     .10000E-03    23.038       -.17071E-05** at limit **
   8  norm          .10000E-03    7.3780       -.43229E-06** at limit **
   9  Prefactor     3.0937        14.509        .49048E-05   -.86440E-04
  10  norm          .41549        .95260        .91844E-07   -.40367E-04
  11  norm          .10000E-03    2.1046        .10996E-05** at limit **
  12  Prefactor     12.026        37.705       -.41497E-05   -.19292E-03
  13  Prefactor     .10000E-03    6.7520        .16420E-06** at limit **
  14  Prefactor     .10000E-03    41.438       -.53403E-06** at limit **
  15  norm          .10000E-03    .52330        .24782E-07** at limit **
  16  norm          3.4469        3.3063       -.18007E-07   -.11115E-03
  17  Prefactor     .10002E-03    30.775        .77070E-06** at limit **
  18  Prefactor     .10000E-03    5.0131        .23623E-08** at limit **
  19  Prefactor     .10000E-03    16.721        .29985E-06** at limit **
  20  norm          1.0809        .70559       -.42048E-08   -.42524E-03
  21  Prefactor     .10000E-03    9.7348       -.35797E-06** at limit **
  22  Prefactor     .10000E-03    3.2679        .10103E-08** at limit **
  23  Normalizat    1.4226        .21551       -.74799E-06   -.93716E-04
  24  Prefactor     .81328        .17643        .38061E-06   -.98441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.644759
  Prefactor  = 9.09001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.09366
  norm       = 0.415488
  norm       = 0.0001
  Prefactor  = 12.0264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.44687
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42264
  Prefactor  = 0.813282
 **********
 **   18 **HESSE 
 **********

 FCN=   5074.213     FROM HESSE     STATUS=OK           395 CALLS     2784 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .64476        .31220        .26752E-04   -1.5547    
   4  Prefactor     9.0900        8.5379        .13290E-03   -1.5105    
   5  Prefactor     .10000E-03    8.3463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.3645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0937        14.163        .11532E-02   -1.5356    
  10  norm          .41549        .91986        .98804E-04   -1.5579    
  11  norm          .10000E-03    5.9107        .16998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.026        35.765        .11586E-03   -1.5014    
  13  Prefactor     .10000E-03    6.7708        .18071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .80294        .95881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4469        3.3126        .12173E-03   -1.5337    
  17  Prefactor     .10002E-03    226.76        .72235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0152        .15575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0809        .69305        .45652E-04   -1.5500    
  21  Prefactor     .10000E-03    9.7870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2702        .12574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4226        .25065        .24052E-03   -.79976    
  24  Prefactor     .81328        .20625        .25607E-03   -.99241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3602e-10
Minuit parameter uncertainties:
  1  1.00373e-05
  2  0.000192178
  3  0.312198
  4  8.53907
  5  3.88093e-05
  6  2.10554e-05
  7  0.000153919
  8  2.34664e-05
  9  13.2435
  10  0.919894
  11  0.00010849
  12  35.829
  13  1.13931e-05
  14  7.22165e-05
  15  2.02474e-06
  16  3.31276
  17  0.00378659
  18  2.48186e-07
  19  1.68534e-05
  20  0.693051
  21  1.96996e-05
  22  1.19194e-07
  23  0.250869
  24  0.206451
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.133e-01  2.065e-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.423e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/403244/likelihoodResults_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5073.98938495
delta logL = 0.22340489097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5073.20109032
delta logL = 1.01169951807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23831E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.3340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86627       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=   5073.201     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      397 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23819E-02    .24437E-02    .29505E-04** at limit **
   2  Index        10.0000        1.5361        .41718    ** at limit **
   3  Normalizat    1.3341        .25524        .24673E-03    .56630E-04
   4  Prefactor     .86606        .20960        .24907E-03    .64495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00238186
  Index      = 10
  Normalizat = 1.33406
  Prefactor  = 0.866062
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.201     FROM HESSE     STATUS=OK            31 CALLS      428 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23819E-02    .23109E-02    .11802E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.3201        .44450        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3341        .25606        .98690E-05   -.82555    
   4  Prefactor     .86606        .21004        .99629E-05   -.97337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01297e-11
Minuit parameter uncertainties:
  1  0.00231089
  2  2.47663e-05
  3  0.256308
  4  0.210232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403244': 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) = 5073.20108738
delta logL = 1.01170246007

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.382e-03  2.311e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  2.477e-05  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.661e-01  2.102e-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.334e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.97e-08 +/- 8.43e-08
Energy Flux (Free Index): 1.00e-05 +/- 9.49e-06

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/403244/cmap_HighResolution_301795201_302054401_4FGL_J2236.4-2309_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='1.01e+00', photon_flux2='8.97e-08', job_status='DONE', time_completed='2021-09-28 17:08:13.903356', photon_index_error2='0.00', photon_index2='10.00', ts='0.06', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.49e-06', EG='1.42', time_epoch_completed='1632874093.9', return_code='0', job_id='403244', GAL2='0.87', EG2='1.33', return_code2='0', photon_flux_error2='8.43e-08', ts2='2.20', photon_index='2.74' WHERE bin_id='241' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:08:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 403244: <4FGL_J2236.4-2309_daily_bin241> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin241> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:55:51 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:55:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:55:52 2021
Terminated at Tue Sep 28 17:08:14 2021
Results reported at Tue Sep 28 17:08:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin241 339.125 -23.1552 301795201 302054401 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 :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

