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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin1399
RA = 339.125, Dec = -23.1552
tmin = 601948801, tmax = 602208001
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='409214', job_status='RUN', time_executed='2021-09-28 17:16:52.539966', time_epoch_executed='1632874612.54' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409214

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409214/ft1_4FGL_J2236.4-2309_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409214/ft2_4FGL_J2236.4-2309_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409214/ft1_4FGL_J2236.4-2309_daily_bin1399.fits outfile=/scratch/kocevski/409214/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin1399.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=601948801.0 tmax=602208001.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.81
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409214/ft1_filtered_4FGL_J2236.4-2309_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/409214/ft2_4FGL_J2236.4-2309_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/409214/ltcube_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.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/409214/ft2_4FGL_J2236.4-2309_daily_bin1399.fits
.....................!
real 11.88
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409214/ft1_filtered_4FGL_J2236.4-2309_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/409214/ft2_4FGL_J2236.4-2309_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/409214/ltcube_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.fits outfile=/scratch/kocevski/409214/expmap_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.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/409214/ltcube_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.fits
.....................!
real 190.12
user 185.04
sys 4.70

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/409214/ft1_filtered_4FGL_J2236.4-2309_daily_bin1399.fits scfile=/scratch/kocevski/409214/ft2_4FGL_J2236.4-2309_daily_bin1399.fits outfile=/scratch/kocevski/409214/cmap_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409214/ft1_filtered_4FGL_J2236.4-2309_daily_bin1399.fits scfile=/scratch/kocevski/409214/ft2_4FGL_J2236.4-2309_daily_bin1399.fits outfile=/scratch/kocevski/409214/cmap_HighResolution_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409214/ft1_filtered_4FGL_J2236.4-2309_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/409214/ft2_4FGL_J2236.4-2309_daily_bin1399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409214/Model_4FGL_J2236.4-2309_daily_bin1399.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/409214/ft1_filtered_4FGL_J2236.4-2309_daily_bin1399.fits.....................!
real 57.65
user 56.19
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10329E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .71907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.753       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.669       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.113       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1024       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7885       1.0000         .10000E-03   10000.    
    14 'Prefactor '    136.89       1.0000         .10000E-03   10000.    
    15 'norm      '    14.005       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11510E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.974       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3635       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1362       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95397       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95673       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=   6926.443     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2835 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.854        .74801E-07** at limit **
   2  Prefactor     .10000E-03    52.395       -.28930E-04** at limit **
   3  norm          .71907        .32500        .94949E-08    .29952E-03
   4  Prefactor     17.754        10.920       -.59115E-06    .43672E-04
   5  Prefactor     .10000E-03    3.9956        .32594E-07** at limit **
   6  Prefactor     18.671        19.910       -.28104E-06    .18796E-04
   7  Prefactor     .10000E-03    73.479        .57957E-04** at limit **
   8  norm          .10000E-03    15.176       -.18845E-06** at limit **
   9  Prefactor     25.110        15.676       -.28358E-06   -.16383E-04
  10  norm          .10000E-03    .25609        .43557E-09** at limit **
  11  norm          1.1025        2.0727       -.70318E-07   -.24320E-03
  12  Prefactor     .10000E-03    33.366        .33793E-05** at limit **
  13  Prefactor     9.7833        11.600        .11864E-05    .78206E-05
  14  Prefactor     136.89        57.696       -.20893E-05    .50511E-03
  15  norm          14.005        4.9767        .55984E-06    .15226E-02
  16  norm          .10000E-03    1.1919        .13061E-08** at limit **
  17  Prefactor     .10000E-03    122.97       -.46979E-04** at limit **
  18  Prefactor     .10000E-03    6.2694       -.23056E-07** at limit **
  19  Prefactor     22.972        12.621        .10303E-05   -.83475E-04
  20  norm          1.3635        .92602       -.30912E-06    .19792E-04
  21  Prefactor     .10000E-03    4.1671        .40621E-07** at limit **
  22  Prefactor     1.1295        3.1519        .99810E-06   -.10814E-02
  23  Normalizat    .95421        .20733       -.42429E-06    .43337E-04
  24  Prefactor     .95654        .17016        .10255E-06   -.34117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.719067
  Prefactor  = 17.7538
  Prefactor  = 0.0001
  Prefactor  = 18.6707
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.1099
  norm       = 0.0001
  norm       = 1.10254
  Prefactor  = 0.0001
  Prefactor  = 9.78328
  Prefactor  = 136.889
  norm       = 14.0052
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9725
  norm       = 1.36354
  Prefactor  = 0.0001
  Prefactor  = 1.12949
  Normalizat = 0.954215
  Prefactor  = 0.956538
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.443     FROM HESSE     STATUS=OK           399 CALLS     3234 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .71907        .32684        .31013E-04   -1.5538    
   4  Prefactor     17.754        10.922        .95057E-04   -1.4865    
   5  Prefactor     .10000E-03    4.0014        .16247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.671        19.948        .92696E-04   -1.4844    
   7  Prefactor     .10000E-03    73.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.110        15.724        .79936E-04   -1.4705    
  10  norm          .10000E-03    .26025        .41091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1025        1.8025        .15646E-02   -1.5498    
  12  Prefactor     .10000E-03    33.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7833        11.651        .12808E-03   -1.5082    
  14  Prefactor     136.89        60.063        .34424E-04   -1.3363    
  15  norm          14.005        5.1865        .57207E-04   -1.4959    
  16  norm          .10000E-03    1.1937        .88677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    123.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.972        14.198        .83569E-04   -1.4749    
  20  norm          1.3635        .94884        .48770E-04   -1.5474    
  21  Prefactor     .10000E-03    4.1741        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1295        38.666        .21853E-02   -1.5495    
  23  Normalizat    .95421        .25401        .29771E-03   -.94580    
  24  Prefactor     .95654        .20724        .25848E-03   -.94193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20214e-08
Minuit parameter uncertainties:
  1  1.16335e-05
  2  2.83349e-05
  3  0.326844
  4  10.9228
  5  6.59558e-07
  6  19.9549
  7  7.07088e-05
  8  9.98222e-07
  9  15.7263
  10  1.92961e-07
  11  1.80258
  12  2.609e-06
  13  11.6533
  14  60.09
  15  5.18662
  16  1.96224e-06
  17  0.000263579
  18  1.07064e-05
  19  14.1999
  20  0.948846
  21  3.26566e-06
  22  13.2258
  23  0.254332
  24  0.207414
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.511e+01  1.573e+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:  9.565e-01  2.074e-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.542e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.84e-08 +/- 5.53e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/409214/likelihoodResults_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.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) = 6926.05656642
delta logL = 0.386392989137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6926.04190192
delta logL = 0.401057490791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.879       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3698       1.0000          .0000       10.000    
     3 'Normalizat'    .91780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98070       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.

 FCN=   6926.042     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.862        175.20        .24372E-02    .13130E-03
   2  Index         3.3688        6.6232        .17929        .12861E-03
   3  Normalizat    .91842        .76827E-01    .68427E-01    .17421E-04
   4  Prefactor     .98086        .68657E-01    .46025E-01    .30013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8623
  Index      = 3.36878
  Normalizat = 0.918419
  Prefactor  = 0.980858
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.042     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.862        17.611        .97488E-04   -1.4886    
   2  Index         3.3688        .88669        .68594E-02   -.33233    
   3  Normalizat    .91842        .24043        .30272E-03   -.95816    
   4  Prefactor     .98086        .20542        .25564E-03   -.93370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05251e-11
Minuit parameter uncertainties:
  1  17.6168
  2  0.891979
  3  0.240714
  4  0.205581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409214': 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) = 6926.04187512
delta logL = 0.401084286602

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.686e+01  1.762e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.369e+00  8.920e-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:  9.809e-01  2.056e-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.184e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.37 +/- 0.89
Photon Flux (Free Index): 1.12e-07 +/- 6.42e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.16e-05

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/409214/cmap_HighResolution_601948801_602208001_4FGL_J2236.4-2309_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', photon_flux='8.84e-08', energy_flux2='1.93e-05', photon_flux_error='5.53e-08', dlogl='4.01e-01', energy_flux='2.06e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-28 17:28:27.601230', photon_index_error2='0.89', photon_index2='3.37', ts='3.90', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='1.16e-05', EG='0.95', time_epoch_completed='1632875307.6', return_code='0', job_id='409214', GAL2='0.98', EG2='0.92', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.42e-08', ts2='4.74', photon_index='2.74' WHERE bin_id='1399' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:28:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 409214: <4FGL_J2236.4-2309_daily_bin1399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin1399 339.125 -23.1552 601948801 602208001 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

