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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1184
RA = 339.125, Dec = -23.1552
tmin = 546220801, tmax = 546480001
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='407941', job_status='RUN', time_executed='2021-09-28 17:11:42.037650', time_epoch_executed='1632874302.04' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407941/ft1_4FGL_J2236.4-2309_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407941/ft2_4FGL_J2236.4-2309_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407941/ft1_4FGL_J2236.4-2309_daily_bin1184.fits outfile=/scratch/kocevski/407941/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1184.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=546220801.0 tmax=546480001.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.97
user 3.72
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407941/ft2_4FGL_J2236.4-2309_daily_bin1184.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/407941/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1184.fits evtable="EVENTS" outfile="/scratch/kocevski/407941/ft1_filtered_4FGL_J2236.4-2309_daily_bin1184.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.55
user 0.31
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407941/ft1_filtered_4FGL_J2236.4-2309_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/407941/ft2_4FGL_J2236.4-2309_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/407941/ltcube_546220801_546480001_4FGL_J2236.4-2309_daily_bin1184.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/407941/ft2_4FGL_J2236.4-2309_daily_bin1184.fits
.....................!
real 11.86
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407941/ft1_filtered_4FGL_J2236.4-2309_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/407941/ft2_4FGL_J2236.4-2309_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/407941/ltcube_546220801_546480001_4FGL_J2236.4-2309_daily_bin1184.fits outfile=/scratch/kocevski/407941/expmap_546220801_546480001_4FGL_J2236.4-2309_daily_bin1184.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/407941/ltcube_546220801_546480001_4FGL_J2236.4-2309_daily_bin1184.fits
.....................!
real 190.53
user 185.32
sys 4.75

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/407941/ft1_filtered_4FGL_J2236.4-2309_daily_bin1184.fits scfile=/scratch/kocevski/407941/ft2_4FGL_J2236.4-2309_daily_bin1184.fits outfile=/scratch/kocevski/407941/cmap_546220801_546480001_4FGL_J2236.4-2309_daily_bin1184.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.727       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6507       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.452       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11819E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0904       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3339       1.0000         .10000E-03   10000.    
    17 'Prefactor '    194.67       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35988E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3953       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10352E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66174       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74949       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0819       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=   4486.404     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2825 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.390       -.73017E-06** at limit **
   2  Prefactor     .10000E-03    133.42       -.12033E-05** at limit **
   3  norm          1.1077        .43412        .34585E-07    .89339E-04
   4  Prefactor     16.322        14.493        .76632E-06   -.14014E-04
   5  Prefactor     17.894        24.195        .19499E-06   -.66309E-05
   6  Prefactor     .10000E-03    7.1853        .66358E-07** at limit **
   7  Prefactor     .10000E-03    44.534       -.22773E-06** at limit **
   8  norm          .10000E-03    11.861       -.24666E-07** at limit **
   9  Prefactor     33.698        21.136       -.10745E-05   -.85569E-04
  10  norm          2.6509        1.5665        .51389E-07   -.11389E-03
  11  norm          1.7939        3.6794        .12538E-05    .54488E-04
  12  Prefactor     73.609        91.908        .50589E-06    .10625E-04
  13  Prefactor     12.760        9.8995       -.78808E-08   -.14924E-04
  14  Prefactor     .10000E-03    32.745        .33917E-06** at limit **
  15  norm          1.0890        1.5321        .22917E-06    .43426E-05
  16  norm          4.3352        4.8825       -.85486E-07    .79550E-04
  17  Prefactor     194.71        84.611        .68854E-06   -.20710E-04
  18  Prefactor     .10000E-03    11.496       -.89734E-06** at limit **
  19  Prefactor     .10000E-03    119.94        .11252E-04** at limit **
  20  norm          1.3945        .84580        .25743E-07   -.16743E-03
  21  Prefactor     .10000E-03    11.664        .47879E-06** at limit **
  22  Prefactor     .71215        18.291        .36067E-05   -.25580E-03
  23  Normalizat    .74937        .27973        .52694E-05   -.94820E-04
  24  Prefactor     1.0819        .23880       -.57075E-05   -.21697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10769
  Prefactor  = 16.3217
  Prefactor  = 17.8938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.6978
  norm       = 2.65087
  norm       = 1.79387
  Prefactor  = 73.6093
  Prefactor  = 12.7598
  Prefactor  = 0.0001
  norm       = 1.089
  norm       = 4.33517
  Prefactor  = 194.712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39445
  Prefactor  = 0.0001
  Prefactor  = 0.712146
  Normalizat = 0.749369
  Prefactor  = 1.0819
 **********
 **   18 **HESSE 
 **********

 FCN=   4486.404     FROM HESSE     STATUS=OK           409 CALLS     3234 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    134.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1077        .43475        .26708E-04   -1.5497    
   4  Prefactor     16.322        14.498        .49572E-03   -1.4900    
   5  Prefactor     17.894        24.193        .94688E-04   -1.4862    
   6  Prefactor     .10000E-03    7.1885        .17536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.698        21.230        .69001E-04   -1.4546    
  10  norm          2.6509        1.5638        .62104E-04   -1.5382    
  11  norm          1.7939        3.6789        .14644E-03   -1.5440    
  12  Prefactor     73.609        92.301        .23423E-03   -1.3990    
  13  Prefactor     12.760        9.8941        .11215E-03   -1.4993    
  14  Prefactor     .10000E-03    32.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0890        1.4815        .90716E-04   -1.5499    
  16  norm          4.3352        4.8731        .14030E-03   -1.5292    
  17  Prefactor     194.71        83.159        .14476E-03   -1.2908    
  18  Prefactor     .10000E-03    11.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    117.90        .39656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3945        .91178        .40509E-04   -1.5472    
  21  Prefactor     .10000E-03    53.807        .43912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .71215        43.049        .40474E-02   -1.5539    
  23  Normalizat    .74937        .28647        .31039E-03   -1.0198    
  24  Prefactor     1.0819        .24510        .23316E-03   -.90047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4306e-10
Minuit parameter uncertainties:
  1  0.000156868
  2  0.00033707
  3  0.434753
  4  14.5016
  5  24.2059
  6  8.74848e-06
  7  2.33329e-05
  8  1.52725e-05
  9  21.235
  10  1.5638
  11  3.67941
  12  92.4811
  13  9.8954
  14  0.000191908
  15  1.48153
  16  4.87354
  17  83.2094
  18  2.00897e-05
  19  0.000348765
  20  0.911788
  21  3.62636e-05
  22  11.0814
  23  0.28705
  24  0.245356
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  3.370e+01  2.123e+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:  1.082e+00  2.454e-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:  7.494e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 7.47e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.74e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4485.72874156
delta logL = 0.675453151472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4485.72768924
delta logL = 0.67650547118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.229       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5566       1.0000          .0000       10.000    
     3 'Normalizat'    .68738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1217       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=   4485.728     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.233        20.891        .86932E-04   -.14073E-02
   2  Index         3.5569        .87718        .55214E-02   -.38052E-03
   3  Normalizat    .68771        .27841        .32249E-03    .34287E-03
   4  Prefactor     1.1213        .24339        .22950E-03    .55318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2328
  Index      = 3.5569
  Normalizat = 0.687713
  Prefactor  = 1.12132
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.728     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.233        19.102        .17386E-04   -1.4786    
   2  Index         3.5569        .80207        .22086E-03   -.29278    
   3  Normalizat    .68771        .27865        .12900E-04   -1.0438    
   4  Prefactor     1.1213        .24345        .45900E-04   -.88788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10183e-09
Minuit parameter uncertainties:
  1  19.1071
  2  0.805868
  3  0.279221
  4  0.243696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407941': 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) = 4485.72768737
delta logL = 0.676507348447

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.123e+01  1.911e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.557e+00  8.059e-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:  1.121e+00  2.437e-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:  6.877e-01  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.03
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.56 +/- 0.81
Photon Flux (Free Index): 1.73e-07 +/- 9.31e-08
Energy Flux (Free Index): 2.84e-05 +/- 1.47e-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/407941/cmap_HighResolution_546220801_546480001_4FGL_J2236.4-2309_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='2.84e-05', photon_flux_error='7.47e-08', dlogl='6.77e-01', energy_flux='2.76e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-28 17:20:07.856442', photon_index_error2='0.81', photon_index2='3.56', ts='4.47', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.75', time_epoch_completed='1632874807.86', return_code='0', job_id='407941', GAL2='1.12', EG2='0.69', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='9.31e-08', ts2='6.03', photon_index='2.74' WHERE bin_id='1184' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 407941: <4FGL_J2236.4-2309_daily_bin1184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1184 339.125 -23.1552 546220801 546480001 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 :                                   504.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             253.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            562 sec.

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

