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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin163
RA = 339.125, Dec = -23.1552
tmin = 281577601, tmax = 281836801
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='403126', job_status='RUN', time_executed='2021-09-28 16:57:26.878513', time_epoch_executed='1632873446.88' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403126

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403126/ft1_4FGL_J2236.4-2309_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403126/ft2_4FGL_J2236.4-2309_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403126/ft1_4FGL_J2236.4-2309_daily_bin163.fits outfile=/scratch/kocevski/403126/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin163.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=281577601.0 tmax=281836801.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.58
user 3.36
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403126/ft1_filtered_4FGL_J2236.4-2309_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/403126/ft2_4FGL_J2236.4-2309_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/403126/ltcube_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.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/403126/ft2_4FGL_J2236.4-2309_daily_bin163.fits
.....................!
real 11.66
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403126/ft1_filtered_4FGL_J2236.4-2309_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/403126/ft2_4FGL_J2236.4-2309_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/403126/ltcube_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.fits outfile=/scratch/kocevski/403126/expmap_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.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/403126/ltcube_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.fits
.....................!
real 189.76
user 185.16
sys 4.24

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/403126/ft1_filtered_4FGL_J2236.4-2309_daily_bin163.fits scfile=/scratch/kocevski/403126/ft2_4FGL_J2236.4-2309_daily_bin163.fits outfile=/scratch/kocevski/403126/cmap_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.125 yref=-23.1552 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403126/ft1_filtered_4FGL_J2236.4-2309_daily_bin163.fits scfile=/scratch/kocevski/403126/ft2_4FGL_J2236.4-2309_daily_bin163.fits outfile=/scratch/kocevski/403126/cmap_HighResolution_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.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/403126/ft1_filtered_4FGL_J2236.4-2309_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/403126/ft2_4FGL_J2236.4-2309_daily_bin163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403126/Model_4FGL_J2236.4-2309_daily_bin163.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/403126/ft1_filtered_4FGL_J2236.4-2309_daily_bin163.fits.....................!
real 59.37
user 58.08
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9066       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67783E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4336       1.0000         .10000E-03   10000.    
    10 'norm      '    .97711       1.0000         .10000E-03   10000.    
    11 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0337       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .76326       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9828       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5431       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6026       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0783       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1787       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82938       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=   7912.655     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2794 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4599        11.856        .29018E-09    .35453E-04
   2  Prefactor     .10000E-03    74.456       -.96340E-06** at limit **
   3  norm          1.5837        .37624       -.45962E-08   -.27613E-04
   4  Prefactor     4.9061        5.6189        .52482E-06    .63786E-03
   5  Prefactor     14.125        11.402        .13621E-07    .15812E-04
   6  Prefactor     .10010E-03    25.946       -.94547E-05** at limit **
   7  Prefactor     .10000E-03    13.556       -.13376E-06** at limit **
   8  norm          .10000E-03    26.178        .19602E-06** at limit **
   9  Prefactor     7.4344        9.6297        .27664E-06   -.25157E-03
  10  norm          .97711        .62674        .12670E-07    .27910E-03
  11  norm          .10000E-03    .81308        .72386E-06** at limit **
  12  Prefactor     1.9969        105.18       -.48848E-05   -.70798E-04
  13  Prefactor     .10000E-03    3.9450       -.71510E-07** at limit **
  14  Prefactor     .10000E-03    5.0503       -.80306E-07** at limit **
  15  norm          .76327        .67961        .15743E-06    .23914E-02
  16  norm          3.9833        3.2545       -.50352E-07   -.16601E-03
  17  Prefactor     .10000E-03    4.5981       -.72867E-07** at limit **
  18  Prefactor     1.5271        37.201        .13240E-04    .57369E-05
  19  Prefactor     6.6127        11.085       -.22917E-05   -.88705E-04
  20  norm          2.0784        .85194       -.60941E-07   -.13881E-03
  21  Prefactor     .10000E-03    5.7953        .69822E-07** at limit **
  22  Prefactor     5.1782        9.1886        .94619E-06    .11749E-04
  23  Normalizat    1.0103        .16139        .11192E-05    .95109E-04
  24  Prefactor     .82933        .13766       -.11286E-05   -.48752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.45987
  Prefactor  = 0.000100001
  norm       = 1.58372
  Prefactor  = 4.90611
  Prefactor  = 14.1254
  Prefactor  = 0.000100102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.43442
  norm       = 0.977111
  norm       = 0.0001
  Prefactor  = 1.99691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.763266
  norm       = 3.98329
  Prefactor  = 0.0001
  Prefactor  = 1.52707
  Prefactor  = 6.61267
  norm       = 2.0784
  Prefactor  = 0.0001
  Prefactor  = 5.17818
  Normalizat = 1.01028
  Prefactor  = 0.829331
 **********
 **   18 **HESSE 
 **********

 FCN=   7912.655     FROM HESSE     STATUS=OK           411 CALLS     3205 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4599        11.838        .14686E-03   -1.5162    
   2  Prefactor     .10000E-03    74.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5837        .37702        .25767E-04   -1.5456    
   4  Prefactor     4.9061        5.6268        .18158E-03   -1.5265    
   5  Prefactor     14.125        11.402        .10656E-03   -1.4956    
   6  Prefactor     .10010E-03    113.37        .54752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    26.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4344        9.5907        .14710E-03   -1.5163    
  10  norm          .97711        .62105        .53953E-04   -1.5510    
  11  norm          .10000E-03    .80779        .77244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9969        109.42        .29005E-03   -1.5425    
  13  Prefactor     .10000E-03    3.9902        .17251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.796        .33850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .76327        .57784        .59679E-03   -1.5533    
  16  norm          3.9833        3.2303        .66163E-03   -1.5309    
  17  Prefactor     .10000E-03    4.6012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5271        43.895        .17157E-02   -1.5461    
  19  Prefactor     6.6127        11.923        .15617E-03   -1.5194    
  20  norm          2.0784        .90643        .37172E-04   -1.5420    
  21  Prefactor     .10000E-03    5.9646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.1782        9.0674        .88326E-03   -1.5253    
  23  Normalizat    1.0103        .19263        .23994E-03   -.92687    
  24  Prefactor     .82933        .16507        .23192E-03   -.98656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78682e-09
Minuit parameter uncertainties:
  1  11.8417
  2  0.000525646
  3  0.377018
  4  5.62741
  5  11.404
  6  0.00683036
  7  2.55881e-05
  8  0.000114858
  9  9.59264
  10  0.621051
  11  8.1831e-06
  12  29.6194
  13  4.85213e-06
  14  0.00021182
  15  0.577844
  16  3.2304
  17  9.3747e-06
  18  16.3872
  19  11.9272
  20  0.906433
  21  1.59129e-05
  22  9.06976
  23  0.192766
  24  0.165165
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  7.434e+00  9.593e+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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.293e-01  1.652e-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.010e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.92
Ra Dec: 339.125 -23.155
Photon Flux Upper Limit: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403126/likelihoodResults_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.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) = 7912.56787999
delta logL = 0.0872549012001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7912.56279169
delta logL = 0.0923431985002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3942       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3607       1.0000          .0000       10.000    
     3 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82288       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7912.563     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      253 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3862        10.180        .69183E-03   -.27936E-04
   2  Index         2.3606        .82154        .13549E-01    .17363E-04
   3  Normalizat    1.0196        .18286        .23892E-03    .37876E-04
   4  Prefactor     .82291        .16089        .23270E-03    .11383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.38625
  Index      = 2.36061
  Normalizat = 1.01959
  Prefactor  = 0.82291
 **********
 **   18 **HESSE 
 **********

 FCN=   7912.563     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3862        10.222        .27673E-04   -1.5129    
   2  Index         2.3606        .82516        .54197E-03   -.55610    
   3  Normalizat    1.0196        .18311        .95570E-05   -.92377    
   4  Prefactor     .82291        .16104        .93080E-05   -.98889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88832e-11
Minuit parameter uncertainties:
  1  10.2246
  2  0.830445
  3  0.183221
  4  0.161135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403126': 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) = 7912.56279128
delta logL = 0.0923436055036

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  8.386e+00  1.022e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.361e+00  8.304e-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.229e-01  1.611e-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.020e+00  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.36 +/- 0.83
Photon Flux (Free Index): 2.13e-08 +/- 3.05e-08
Energy Flux (Free Index): 7.37e-06 +/- 9.42e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/403126/cmap_HighResolution_281577601_281836801_4FGL_J2236.4-2309_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', comment='SUCCESS', energy_flux2='7.37e-06', dlogl='9.23e-02', photon_flux2='2.13e-08', job_status='DONE', time_completed='2021-09-28 17:09:37.184761', photon_index_error2='0.83', photon_index2='2.36', ts='0.92', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.94e-08', energy_flux_error2='9.42e-06', EG='1.01', time_epoch_completed='1632874177.18', return_code='0', job_id='403126', GAL2='0.82', EG2='1.02', return_code2='0', photon_flux_error2='3.05e-08', ts2='1.09', photon_index='2.74' WHERE bin_id='163' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 403126: <4FGL_J2236.4-2309_daily_bin163> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin163> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:55:42 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:55:43 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:43 2021
Terminated at Tue Sep 28 17:09:37 2021
Results reported at Tue Sep 28 17:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin163 339.125 -23.1552 281577601 281836801 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 :                                   730.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

