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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin914
RA = 339.125, Dec = -23.1552
tmin = 476236801, tmax = 476496001
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='407545', job_status='RUN', time_executed='2021-09-28 17:10:31.661380', time_epoch_executed='1632874231.66' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407545/ft1_4FGL_J2236.4-2309_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407545/ft2_4FGL_J2236.4-2309_daily_bin914.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407545/ft1_4FGL_J2236.4-2309_daily_bin914.fits outfile=/scratch/kocevski/407545/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin914.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=476236801.0 tmax=476496001.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.51
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407545/ft1_filtered_4FGL_J2236.4-2309_daily_bin914.fits" evtable="EVENTS" scfile=/scratch/kocevski/407545/ft2_4FGL_J2236.4-2309_daily_bin914.fits sctable="SC_DATA" outfile=/scratch/kocevski/407545/ltcube_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.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/407545/ft2_4FGL_J2236.4-2309_daily_bin914.fits
.....................!
real 11.77
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407545/ft1_filtered_4FGL_J2236.4-2309_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/407545/ft2_4FGL_J2236.4-2309_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/407545/ltcube_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.fits outfile=/scratch/kocevski/407545/expmap_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.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/407545/ltcube_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.fits
.....................!
real 190.30
user 185.40
sys 4.46

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/407545/ft1_filtered_4FGL_J2236.4-2309_daily_bin914.fits scfile=/scratch/kocevski/407545/ft2_4FGL_J2236.4-2309_daily_bin914.fits outfile=/scratch/kocevski/407545/cmap_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407545/ft1_filtered_4FGL_J2236.4-2309_daily_bin914.fits scfile=/scratch/kocevski/407545/ft2_4FGL_J2236.4-2309_daily_bin914.fits outfile=/scratch/kocevski/407545/cmap_HighResolution_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.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/407545/ft1_filtered_4FGL_J2236.4-2309_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/407545/ft2_4FGL_J2236.4-2309_daily_bin914.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407545/Model_4FGL_J2236.4-2309_daily_bin914.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/407545/ft1_filtered_4FGL_J2236.4-2309_daily_bin914.fits.....................!
real 47.94
user 46.61
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.169       1.0000         .10000E-03   10000.    
     8 'norm      '    21.655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.509       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2585       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .75822       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3057       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11229E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.613       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94057       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0868       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=   5717.027     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2730 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7702       -.15376E-06** at limit **
   2  Prefactor     .10000E-03    32.333        .28945E-05** at limit **
   3  norm          1.7577        .45528       -.66366E-07    .39994E-03
   4  Prefactor     .10000E-03    3.4976       -.11177E-06** at limit **
   5  Prefactor     5.1466        16.536        .41179E-05    .27787E-04
   6  Prefactor     .10000E-03    7.4058        .60027E-06** at limit **
   7  Prefactor     10.053        78.926       -.26551E-03    .38605E-04
   8  norm          21.655        18.542       -.72014E-06    .16034E-04
   9  Prefactor     12.508        15.323        .37938E-06    .29157E-04
  10  norm          5.2586        1.4213        .12204E-05    .82083E-03
  11  norm          1.5753        1.5768       -.65027E-07    .15465E-03
  12  Prefactor     .10000E-03    19.887        .34408E-07** at limit **
  13  Prefactor     1.3688        24.517       -.77301E-05   -.32979E-03
  14  Prefactor     .10000E-03    13.052       -.42012E-05** at limit **
  15  norm          .75704        .78673       -.18892E-06   -.49717E-03
  16  norm          3.3069        3.9270       -.24672E-06   -.19022E-03
  17  Prefactor     .10000E-03    98.369        .26948E-04** at limit **
  18  Prefactor     .10000E-03    31.521       -.36788E-05** at limit **
  19  Prefactor     14.618        9.0275       -.14404E-05   -.54978E-04
  20  norm          .10000E-03    .30217        .80444E-07** at limit **
  21  Prefactor     .10000E-03    5.8614        .77124E-07** at limit **
  22  Prefactor     .10000E-03    13.157        .36969E-05** at limit **
  23  Normalizat    .94068        .21855        .22467E-05    .18780E-03
  24  Prefactor     1.0868        .18139        .59646E-05   -.23065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75772
  Prefactor  = 0.0001
  Prefactor  = 5.14656
  Prefactor  = 0.0001
  Prefactor  = 10.0535
  norm       = 21.6555
  Prefactor  = 12.5078
  norm       = 5.25857
  norm       = 1.57533
  Prefactor  = 0.0001
  Prefactor  = 1.36878
  Prefactor  = 0.0001
  norm       = 0.757037
  norm       = 3.30687
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 14.6177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.940679
  Prefactor  = 1.08678
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.027     FROM HESSE     STATUS=OK           399 CALLS     3129 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7577        .45607        .25230E-04   -1.5443    
   4  Prefactor     .10000E-03    3.5055        .13809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1466        16.513        .17723E-03   -1.5254    
   6  Prefactor     .10000E-03    7.4153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.053        79.350        .12565E-03   -1.5074    
   8  norm          21.655        18.543        .86073E-04   -1.4777    
   9  Prefactor     12.508        15.389        .11326E-03   -1.5000    
  10  norm          5.2586        1.4213        .44588E-04   -1.5249    
  11  norm          1.5753        1.5838        .92067E-04   -1.5457    
  12  Prefactor     .10000E-03    19.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3688        24.939        .37152E-03   -1.5474    
  14  Prefactor     .10000E-03    13.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .75704        .76918        .66030E-04   -1.5534    
  16  norm          3.3069        3.9061        .15338E-03   -1.5344    
  17  Prefactor     .10000E-03    99.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.618        8.5456        .10478E-03   -1.4943    
  20  norm          .10000E-03    .35195        .76063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8833        .17877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94068        .25302        .28519E-03   -.95045    
  24  Prefactor     1.0868        .21069        .23314E-03   -.89890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80379e-09
Minuit parameter uncertainties:
  1  1.33752e-05
  2  9.32052e-05
  3  0.456075
  4  1.76592e-05
  5  16.5278
  6  2.65193e-05
  7  56.5922
  8  18.5475
  9  15.3942
  10  1.42132
  11  1.5838
  12  1.82304e-05
  13  11.6905
  14  5.13727e-05
  15  0.769188
  16  3.90636
  17  0.00100194
  18  0.000223846
  19  8.5463
  20  2.73975e-06
  21  2.94609e-05
  22  4.29135e-05
  23  0.253338
  24  0.210852
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.251e+01  1.539e+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.087e+00  2.109e-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.407e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/407545/likelihoodResults_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.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) = 5716.3225075
delta logL = 0.704949762421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5716.31279666
delta logL = 0.714660608374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4520       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2381       1.0000          .0000       10.000    
     3 'Normalizat'    .87188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1274       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=   5716.313     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      246 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4221        83.541        .43022E-02    .22861E-03
   2  Index         4.2419        6.9395        .19576        .80860E-04
   3  Normalizat    .87216        .65218E-01    .66698E-01   -.37866E-03
   4  Prefactor     1.1272        .56918E-01    .36628E-01   -.39098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.4221
  Index      = 4.24185
  Normalizat = 0.872156
  Prefactor  = 1.12725
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.313     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4221        21.049        .12570E-03   -1.5242    
   2  Index         4.2419        2.8675        .71030E-02   -.15222    
   3  Normalizat    .87216        .24563        .29506E-03   -.97446    
   4  Prefactor     1.1272        .20918        .22941E-03   -.88600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62345e-08
Minuit parameter uncertainties:
  1  21.0777
  2  3.05918
  3  0.24594
  4  0.209335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407545': 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) = 5716.31279243
delta logL = 0.714664831636

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  5.422e+00  2.108e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.242e+00  3.059e+00  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.127e+00  2.093e-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:  8.722e-01  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 4.24 +/- 3.06
Photon Flux (Free Index): 9.76e-08 +/- 7.77e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.37e-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/407545/cmap_HighResolution_476236801_476496001_4FGL_J2236.4-2309_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='7.15e-01', photon_flux2='9.76e-08', job_status='DONE', time_completed='2021-09-28 17:20:33.663535', photon_index_error2='3.06', photon_index2='4.24', ts='0.88', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.37e-05', EG='0.94', time_epoch_completed='1632874833.66', return_code='0', job_id='407545', GAL2='1.13', EG2='0.87', return_code2='0', photon_flux_error2='7.77e-08', ts2='2.46', photon_index='2.74' WHERE bin_id='914' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:20:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 407545: <4FGL_J2236.4-2309_daily_bin914> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin914 339.125 -23.1552 476236801 476496001 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 :                                   601.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             393.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            618 sec.

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

