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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1289
RA = 339.125, Dec = -23.1552
tmin = 573436801, tmax = 573696001
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='408094', job_status='RUN', time_executed='2021-09-28 17:12:18.704650', time_epoch_executed='1632874338.7' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/408094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/408094/ft1_4FGL_J2236.4-2309_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/408094/ft2_4FGL_J2236.4-2309_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/408094/ft1_4FGL_J2236.4-2309_daily_bin1289.fits outfile=/scratch/kocevski/408094/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1289.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=573436801.0 tmax=573696001.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 5.34
user 5.07
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/408094/ft1_filtered_4FGL_J2236.4-2309_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/408094/ft2_4FGL_J2236.4-2309_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/408094/ltcube_573436801_573696001_4FGL_J2236.4-2309_daily_bin1289.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/408094/ft2_4FGL_J2236.4-2309_daily_bin1289.fits
.....................!
real 12.70
user 12.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/408094/ft1_filtered_4FGL_J2236.4-2309_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/408094/ft2_4FGL_J2236.4-2309_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/408094/ltcube_573436801_573696001_4FGL_J2236.4-2309_daily_bin1289.fits outfile=/scratch/kocevski/408094/expmap_573436801_573696001_4FGL_J2236.4-2309_daily_bin1289.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/408094/ltcube_573436801_573696001_4FGL_J2236.4-2309_daily_bin1289.fits
.....................!
real 190.39
user 184.69
sys 5.39

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/408094/ft1_filtered_4FGL_J2236.4-2309_daily_bin1289.fits scfile=/scratch/kocevski/408094/ft2_4FGL_J2236.4-2309_daily_bin1289.fits outfile=/scratch/kocevski/408094/cmap_HighResolution_573436801_573696001_4FGL_J2236.4-2309_daily_bin1289.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/408094/ft1_filtered_4FGL_J2236.4-2309_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/408094/ft2_4FGL_J2236.4-2309_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/408094/Model_4FGL_J2236.4-2309_daily_bin1289.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/408094/ft1_filtered_4FGL_J2236.4-2309_daily_bin1289.fits.....................!
real 52.11
user 50.83
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.185       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    115.79       1.0000         .10000E-03   10000.    
     8 'norm      '    114.52       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.844       1.0000         .10000E-03   10000.    
    10 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10612E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.185       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15801E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    74.892       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20181E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1548       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90360       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0322       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=   5448.318     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2711 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.771       -.33992E-07** at limit **
   2  Prefactor     .10000E-03    48.701        .43375E-07** at limit **
   3  norm          1.8301        .64148       -.34675E-08    .19872E-04
   4  Prefactor     .10000E-03    8.3196        .27233E-07** at limit **
   5  Prefactor     36.182        27.995        .61470E-07    .10204E-04
   6  Prefactor     .10000E-03    12.671        .68514E-07** at limit **
   7  Prefactor     115.73        113.54       -.12526E-06   -.19912E-04
   8  norm          114.52        51.240       -.11963E-06   -.44810E-04
   9  Prefactor     14.839        17.535        .10684E-06   -.23707E-04
  10  norm          .10000E-03    .84645       -.31504E-06** at limit **
  11  norm          .10000E-03    2.3516        .19440E-05** at limit **
  12  Prefactor     24.260        59.871       -.11917E-05   -.20885E-04
  13  Prefactor     .10000E-03    58.452       -.68435E-06** at limit **
  14  Prefactor     .10000E-03    63.976       -.25162E-07** at limit **
  15  norm          74.892        5.9523        .70043E-07    .80691E-04
  16  norm          .10000E-03    3.1524        .19265E-07** at limit **
  17  Prefactor     .10000E-03    241.54        .48854E-06** at limit **
  18  Prefactor     .10000E-03    17.965       -.21251E-07** at limit **
  19  Prefactor     13.545        22.973       -.27019E-06   -.27172E-04
  20  norm          3.1550        1.6435        .96033E-07   -.17872E-03
  21  Prefactor     .10000E-03    14.674        .34993E-08** at limit **
  22  Prefactor     .10000E-03    11.177       -.18931E-07** at limit **
  23  Normalizat    .90319        .29703       -.11023E-05    .82969E-05
  24  Prefactor     1.0325        .23906        .78842E-06   -.45699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.83014
  Prefactor  = 0.0001
  Prefactor  = 36.1817
  Prefactor  = 0.0001
  Prefactor  = 115.728
  norm       = 114.515
  Prefactor  = 14.8394
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.2596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 74.8919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5452
  norm       = 3.15504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.903186
  Prefactor  = 1.03255
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.318     FROM HESSE     STATUS=OK           393 CALLS     3104 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8301        .64222        .33985E-04   -1.5437    
   4  Prefactor     .10000E-03    8.3381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.182        28.006        .66623E-04   -1.4504    
   6  Prefactor     .10000E-03    12.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     115.73        113.44        .18695E-03   -1.3552    
   8  norm          114.52        51.259        .37594E-04   -1.3564    
   9  Prefactor     14.839        17.544        .10396E-03   -1.4937    
  10  norm          .10000E-03    .87988        .13211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3764        .11041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.260        60.191        .81452E-04   -1.4722    
  13  Prefactor     .10000E-03    60.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    64.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          74.892        5.9386        .46397E-04   -1.3975    
  16  norm          .10000E-03    3.1583        .12788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    242.07        .20221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.545        24.374        .10883E-03   -1.4972    
  20  norm          3.1550        1.7210        .49784E-04   -1.5353    
  21  Prefactor     .10000E-03    14.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90319        .37001        .40045E-03   -.96348    
  24  Prefactor     1.0325        .29877        .31397E-03   -.91652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06787e-11
Minuit parameter uncertainties:
  1  1.40737e-05
  2  1.85847e-05
  3  0.642226
  4  1.04487e-06
  5  28.0161
  6  1.46716e-05
  7  113.651
  8  51.2789
  9  17.5503
  10  1.23428e-06
  11  5.17406e-06
  12  60.3418
  13  3.16389e-05
  14  2.65291e-05
  15  5.93867
  16  1.13737e-06
  17  0.000353015
  18  3.65189e-06
  19  24.392
  20  1.72105
  21  9.6527e-06
  22  7.38355e-06
  23  0.371056
  24  0.299254
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.484e+01  1.755e+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.033e+00  2.993e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.032e-01  3.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 6.17e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/408094/likelihoodResults_573436801_573696001_4FGL_J2236.4-2309_daily_bin1289.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) = 5448.2931706
delta logL = 0.0248707370847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5448.29171566
delta logL = 0.0263256806402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5235       1.0000          .0000       10.000    
     3 'Normalizat'    .91097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       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=   5448.292     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      264 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.648        18.525        .10125E-03   -.40042E-03
   2  Index         2.5235        .92970        .13021E-01   -.10411E-03
   3  Normalizat    .91076        .34764        .39896E-03    .28439E-04
   4  Prefactor     1.0280        .28947        .31458E-03    .33103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6477
  Index      = 2.52347
  Normalizat = 0.910761
  Prefactor  = 1.02797
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.292     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.648        18.478        .20250E-04   -1.4917    
   2  Index         2.5235        .92749        .52086E-03   -.51819    
   3  Normalizat    .91076        .34815        .15958E-04   -.96083    
   4  Prefactor     1.0280        .28984        .12583E-04   -.91803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46972e-10
Minuit parameter uncertainties:
  1  18.4845
  2  0.934683
  3  0.34901
  4  0.29028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/408094': 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) = 5448.29171545
delta logL = 0.0263258859068

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.565e+01  1.848e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.523e+00  9.347e-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.028e+00  2.903e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.108e-01  3.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 2.52 +/- 0.93
Photon Flux (Free Index): 4.53e-08 +/- 6.32e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.55e-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/408094/cmap_HighResolution_573436801_573696001_4FGL_J2236.4-2309_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='1.28e-05', photon_flux_error='6.17e-08', dlogl='2.63e-02', energy_flux='1.22e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-09-28 17:22:29.473747', photon_index_error2='0.93', photon_index2='2.52', ts='1.31', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.11e-07', energy_flux_error2='1.55e-05', EG='0.90', time_epoch_completed='1632874949.47', return_code='0', job_id='408094', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.32e-08', ts2='1.34', photon_index='2.74' WHERE bin_id='1289' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:22:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 408094: <4FGL_J2236.4-2309_daily_bin1289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1289 339.125 -23.1552 573436801 573696001 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

