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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1096
RA = 339.125, Dec = -23.1552
tmin = 523411201, tmax = 523670401
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='407811', job_status='RUN', time_executed='2021-09-28 17:12:38.369662', time_epoch_executed='1632874358.37' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407811/ft1_4FGL_J2236.4-2309_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407811/ft2_4FGL_J2236.4-2309_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407811/ft1_4FGL_J2236.4-2309_daily_bin1096.fits outfile=/scratch/kocevski/407811/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1096.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=523411201.0 tmax=523670401.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.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407811/ft1_filtered_4FGL_J2236.4-2309_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/407811/ft2_4FGL_J2236.4-2309_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/407811/ltcube_523411201_523670401_4FGL_J2236.4-2309_daily_bin1096.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/407811/ft2_4FGL_J2236.4-2309_daily_bin1096.fits
.....................!
real 12.08
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407811/ft1_filtered_4FGL_J2236.4-2309_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/407811/ft2_4FGL_J2236.4-2309_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/407811/ltcube_523411201_523670401_4FGL_J2236.4-2309_daily_bin1096.fits outfile=/scratch/kocevski/407811/expmap_523411201_523670401_4FGL_J2236.4-2309_daily_bin1096.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/407811/ltcube_523411201_523670401_4FGL_J2236.4-2309_daily_bin1096.fits
.....................!
real 190.32
user 185.10
sys 4.87

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/407811/ft1_filtered_4FGL_J2236.4-2309_daily_bin1096.fits scfile=/scratch/kocevski/407811/ft2_4FGL_J2236.4-2309_daily_bin1096.fits outfile=/scratch/kocevski/407811/cmap_523411201_523670401_4FGL_J2236.4-2309_daily_bin1096.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7916       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    86.685       1.0000         .10000E-03   10000.    
     8 'norm      '    8.2653       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10967E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11474E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10302E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.187       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.584       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3305       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81290       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=   4954.335     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2800 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3676       -.29857E-07** at limit **
   2  Prefactor     .10000E-03    27.531        .46483E-06** at limit **
   3  norm          1.7916        .53901        .39961E-08   -.93919E-04
   4  Prefactor     8.6261        12.977        .40418E-06   -.93621E-05
   5  Prefactor     .10000E-03    8.3432        .16371E-06** at limit **
   6  Prefactor     .10000E-03    8.2432        .15413E-06** at limit **
   7  Prefactor     86.696        65.271        .66029E-06   -.36135E-05
   8  norm          8.2534        22.910        .36208E-07    .24036E-04
   9  Prefactor     .10000E-03    10.224        .53830E-06** at limit **
  10  norm          .10000E-03    .41320        .14399E-06** at limit **
  11  norm          .10000E-03    3.0797        .10995E-06** at limit **
  12  Prefactor     .10000E-03    157.11       -.77087E-05** at limit **
  13  Prefactor     .10000E-03    59.064       -.12446E-05** at limit **
  14  Prefactor     .10000E-03    106.26        .41395E-05** at limit **
  15  norm          .10000E-03    2.8076        .23384E-05** at limit **
  16  norm          11.136        6.3467        .37582E-06    .12706E-03
  17  Prefactor     64.176        39.762        .65595E-06   -.23696E-05
  18  Prefactor     .10000E-03    12.676        .49886E-06** at limit **
  19  Prefactor     .10000E-03    10.965       -.53294E-08** at limit **
  20  norm          1.4722        .79065       -.69565E-07    .42644E-03
  21  Prefactor     40.584        18.478        .59327E-07   -.21671E-04
  22  Prefactor     .10000E-03    17.717        .42860E-06** at limit **
  23  Normalizat    1.3304        .23276       -.30107E-06    .38355E-04
  24  Prefactor     .81305        .19154       -.12448E-05   -.73684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79159
  Prefactor  = 8.62614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.6963
  norm       = 8.25341
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.136
  Prefactor  = 64.1764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47221
  Prefactor  = 40.584
  Prefactor  = 0.0001
  Normalizat = 1.33042
  Prefactor  = 0.813046
 **********
 **   18 **HESSE 
 **********

 FCN=   4954.335     FROM HESSE     STATUS=OK           397 CALLS     3197 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7916        .54038        .27591E-04   -1.5440    
   4  Prefactor     8.6261        12.988        .13648E-03   -1.5120    
   5  Prefactor     .10000E-03    8.3908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.696        65.122        .43150E-04   -1.3843    
   8  norm          8.2534        22.886        .13945E-03   -1.5133    
   9  Prefactor     .10000E-03    10.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .63990        .87275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2061        .24066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    159.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    105.20        .51265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8265        .11834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.136        6.3861        .60020E-03   -1.5040    
  17  Prefactor     64.176        40.073        .50090E-04   -1.4104    
  18  Prefactor     .10000E-03    12.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4722        .78896        .42924E-04   -1.5465    
  21  Prefactor     40.584        18.481        .62922E-04   -1.4433    
  22  Prefactor     .10000E-03    18.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3304        .27444        .26048E-03   -.82663    
  24  Prefactor     .81305        .22860        .26936E-03   -.99249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04707e-10
Minuit parameter uncertainties:
  1  2.40254e-06
  2  4.85308e-05
  3  0.54038
  4  12.9924
  5  1.89723e-05
  6  1.59219e-05
  7  65.1759
  8  22.91
  9  6.49849e-05
  10  2.06697e-06
  11  3.23604e-05
  12  0.000444919
  13  0.00053638
  14  5.44798e-06
  15  1.63344e-05
  16  6.38653
  17  40.0901
  18  6.09092e-05
  19  8.68246e-05
  20  0.788961
  21  18.484
  22  0.000165058
  23  0.274741
  24  0.228866
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.498e-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:  8.130e-01  2.289e-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.330e+00  2.747e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407811/likelihoodResults_523411201_523670401_4FGL_J2236.4-2309_daily_bin1096.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) = 4954.33515752
delta logL = -0.000461635710053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4954.33469618
delta logL = -2.94259734801e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7574       1.0000          .0000       10.000    
     3 'Normalizat'    1.3302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81320       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=   4953.780     FROM MIGRAD    STATUS=CONVERGED    268 CALLS      406 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15109E-02    .98294E-01    .79607E-03** at limit **
   2  Index        10.0000        8.8272        .50000    ** at limit **
   3  Normalizat    1.2619        .10084        .26048E-03   -.19553E-04
   4  Prefactor     .85352        .80977E-01    .26936E-03   -.11818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00151094
  Index      = 10
  Normalizat = 1.26194
  Prefactor  = 0.853524
 **********
 **   18 **HESSE 
 **********

 FCN=   4953.780     FROM HESSE     STATUS=OK            33 CALLS      439 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15109E-02    .20116E-02    .34323E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.2371        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2619        .28175        .10419E-04   -.84710    
   4  Prefactor     .85352        .23233        .10774E-04   -.97785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88192e-12
Minuit parameter uncertainties:
  1  0.00201158
  2  3.5228e-06
  3  0.282093
  4  0.232602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407811': 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) = 4953.77958737
delta logL = 0.555108517145

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.511e-03  2.012e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.000e+01  3.523e-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:  8.535e-01  2.326e-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.262e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.69e-08 +/- 7.34e-08
Energy Flux (Free Index): 6.36e-06 +/- 8.26e-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/407811/cmap_HighResolution_523411201_523670401_4FGL_J2236.4-2309_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-03', comment='SUCCESS', energy_flux2='6.36e-06', dlogl='5.55e-01', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-09-28 17:22:09.606185', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='8.26e-06', EG='1.33', time_epoch_completed='1632874929.61', return_code='0', job_id='407811', GAL2='0.85', EG2='1.26', return_code2='0', photon_flux_error2='7.34e-08', ts2='1.16', photon_index='2.74' WHERE bin_id='1096' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 407811: <4FGL_J2236.4-2309_daily_bin1096> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1096 339.125 -23.1552 523411201 523670401 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 :                                   564.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

