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


Performing analysis on: 4FGL_J2236.4-2309_daily_bin685
RA = 339.125, Dec = -23.1552
tmin = 416880001, tmax = 417139201
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='406206', job_status='RUN', time_executed='2021-09-28 17:05:47.361733', time_epoch_executed='1632873947.36' WHERE source_name='4FGL J2236.4-2309' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406206/ft1_4FGL_J2236.4-2309_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406206/ft1_4FGL_J2236.4-2309_daily_bin685.fits outfile=/scratch/kocevski/406206/ft1_filteredMKT_4FGL_J2236.4-2309_daily_bin685.fits ra=339.125 dec=-23.1552 rad=12.0 tmin=416880001.0 tmax=417139201.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.25
user 5.00
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/406206/ltcube_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.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/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits
.....................!
real 14.57
user 14.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/406206/ltcube_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.fits outfile=/scratch/kocevski/406206/expmap_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.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/406206/ltcube_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.fits
.....................!
real 192.22
user 187.00
sys 4.91

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/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits scfile=/scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits outfile=/scratch/kocevski/406206/cmap_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits scfile=/scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits outfile=/scratch/kocevski/406206/cmap_HighResolution_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406206/Model_4FGL_J2236.4-2309_daily_bin685.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/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits....................!
real 35.64
user 34.41
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits', '/scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits', expMap='/scratch/kocevski/406206/expmap_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.fits', expCube='/scratch/kocevski/406206/ltcube_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406206/Model_4FGL_J2236.4-2309_daily_bin685.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/406206/ft1_filtered_4FGL_J2236.4-2309_daily_bin685.fits
Spacecraft file(s): /scratch/kocevski/406206/ft2_4FGL_J2236.4-2309_daily_bin685.fits
Exposure map: /scratch/kocevski/406206/expmap_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.fits
Exposure cube: /scratch/kocevski/406206/ltcube_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406206/Model_4FGL_J2236.4-2309_daily_bin685.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3400.78638377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.703       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22341E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    162.19       1.0000         .10000E-03   10000.    
     8 'norm      '    52.890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.217       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6830       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2340       1.0000         .10000E-03   10000.    
    16 'norm      '    9.5929       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.258       1.0000         .10000E-03   10000.    
    20 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.955       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .47060       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4143       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=   3400.482     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2778 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.694        30.157       -.12424E-06   -.20057E-04
   2  Prefactor     .10000E-03    94.715        .29055E-06** at limit **
   3  norm          1.0853        .54395       -.51848E-08   -.85552E-04
   4  Prefactor     12.914        13.118        .70704E-08    .24629E-04
   5  Prefactor     .10000E-03    10.119        .13117E-06** at limit **
   6  Prefactor     .10000E-03    11.092        .67954E-07** at limit **
   7  Prefactor     162.06        102.60        .15516E-05    .20262E-03
   8  norm          52.840        52.897        .20807E-05    .43704E-03
   9  Prefactor     27.182        30.948        .79947E-06    .45926E-03
  10  norm          2.6834        1.9258       -.86389E-07   -.17424E-03
  11  norm          .10000E-03    3.4117       -.29140E-06** at limit **
  12  Prefactor     20.231        262.56        .86846E-05    .94774E-04
  13  Prefactor     .10007E-03    229.04        .53639E-04** at limit **
  14  Prefactor     .10000E-03    21.309       -.74167E-07** at limit **
  15  norm          1.2341        1.3025       -.35295E-07   -.20163E-03
  16  norm          9.6021        12.108        .38698E-06    .33486E-03
  17  Prefactor     .10000E-03    17.691       -.43851E-07** at limit **
  18  Prefactor     13.800        47.044        .40558E-06    .74478E-04
  19  Prefactor     41.207        33.713       -.30479E-06   -.30930E-04
  20  norm          .10000E-03    .62888        .21387E-06** at limit **
  21  Prefactor     14.970        27.466        .13125E-07    .80072E-05
  22  Prefactor     .10000E-03    22.276        .27629E-06** at limit **
  23  Normalizat    .47059        .34255       -.35402E-05   -.23553E-04
  24  Prefactor     1.4143        .26707        .17138E-05    .24672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6938
  Prefactor  = 0.0001
  norm       = 1.08527
  Prefactor  = 12.9136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 162.061
  norm       = 52.8398
  Prefactor  = 27.1818
  norm       = 2.68339
  norm       = 0.000100001
  Prefactor  = 20.2306
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  norm       = 1.23405
  norm       = 9.60208
  Prefactor  = 0.0001
  Prefactor  = 13.7998
  Prefactor  = 41.2074
  norm       = 0.0001
  Prefactor  = 14.9699
  Prefactor  = 0.0001
  Normalizat = 0.470586
  Prefactor  = 1.41429
 **********
 **   18 **HESSE 
 **********

 FCN=   3400.482     FROM HESSE     STATUS=OK           397 CALLS     3175 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.694        30.135        .82276E-04   -1.4734    
   2  Prefactor     .10000E-03    94.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0853        .54300        .29265E-04   -1.5500    
   4  Prefactor     12.914        13.101        .11145E-03   -1.4989    
   5  Prefactor     .10000E-03    10.161        .18114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     162.06        102.78        .15833E-03   -1.3155    
   8  norm          52.840        53.306        .55150E-04   -1.4253    
   9  Prefactor     27.182        30.958        .76791E-04   -1.4665    
  10  norm          2.6834        1.9189        .63476E-04   -1.5380    
  11  norm          .10000E-03    3.4205        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.231        263.19        .45116E-03   -1.4808    
  13  Prefactor     .10007E-03    226.45        .64474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2341        1.2983        .65966E-04   -1.5486    
  16  norm          9.6021        12.098        .12939E-03   -1.5088    
  17  Prefactor     .10000E-03    17.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.800        46.900        .10781E-03   -1.4965    
  19  Prefactor     41.207        33.631        .62408E-04   -1.4423    
  20  norm          .10000E-03    .63224        .44935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.970        27.424        .10357E-03   -1.4934    
  22  Prefactor     .10000E-03    22.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .47059        .37223        .44406E-03   -1.1380    
  24  Prefactor     1.4143        .30114        .21953E-03   -.79969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31667e-09
Minuit parameter uncertainties:
  1  30.1546
  2  0.00021574
  3  0.543007
  4  13.1043
  5  1.03424e-05
  6  1.47214e-05
  7  102.891
  8  53.3545
  9  30.976
  10  1.91899
  11  9.10337e-05
  12  146.736
  13  0.00822894
  14  3.48709e-05
  15  1.29832
  16  12.1006
  17  1.80206e-05
  18  47.0252
  19  33.6466
  20  8.82466e-06
  21  27.4466
  22  0.000110276
  23  0.374216
  24  0.30152
Done.

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

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  2.718e+01  3.098e+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.414e+00  3.015e-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:  4.706e-01  3.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 339.125 -23.155
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 9.57e-08 +/- 1.09e-07
Energy Flux (Fixed Index): 2.23e-05 +/- 2.54e-05

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

Saving results to:
/scratch/kocevski/406206/likelihoodResults_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.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) = 3399.90035822
delta logL = 0.581731589152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3399.88291159
delta logL = 0.599178224908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.987       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9727       1.0000          .0000       10.000    
     3 'Normalizat'    .38663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4624       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=   3399.883     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      304 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.994        25.032        .10346E-03   -.28493E-03
   2  Index         3.9729        1.4277        .65289E-02   -.38158E-04
   3  Normalizat    .38604        .36211        .48755E-03    .32528E-05
   4  Prefactor     1.4629        .29303        .21622E-03   -.12145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9936
  Index      = 3.97294
  Normalizat = 0.386043
  Prefactor  = 1.46289
 **********
 **   18 **HESSE 
 **********

 FCN=   3399.883     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.994        21.699        .41384E-05   -1.4933    
   2  Index         3.9729        1.2408        .26116E-03   -.20688    
   3  Normalizat    .38604        .36218        .19502E-04   -1.1803    
   4  Prefactor     1.4629        .29292        .43244E-04   -.78584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15866e-10
Minuit parameter uncertainties:
  1  21.7104
  2  1.25447
  3  0.364408
  4  0.293253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406206': 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) = 3399.88290964
delta logL = 0.599180171129

Extracting fit parameters...

4FGL J2236.4-2309
   Spectrum: PowerLaw
247    Prefactor:  1.499e+01  2.171e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.973e+00  1.254e+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.463e+00  2.933e-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:  3.860e-01  3.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 339.125 -23.155
Photon Index (Free Index): 3.97 +/- 1.25
Photon Flux (Free Index): 1.96e-07 +/- 1.59e-07
Energy Flux (Free Index): 2.95e-05 +/- 2.29e-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/406206/cmap_HighResolution_416880001_417139201_4FGL_J2236.4-2309_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-02', comment='SUCCESS', photon_flux='9.57e-08', energy_flux2='2.95e-05', photon_flux_error='1.09e-07', dlogl='5.99e-01', energy_flux='2.23e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-28 17:14:00.336695', photon_index_error2='1.25', photon_index2='3.97', ts='1.42', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', photon_flux_upper_limit='3.22e-07', energy_flux_error2='2.29e-05', EG='0.47', time_epoch_completed='1632874440.34', return_code='0', job_id='406206', GAL2='1.46', EG2='0.39', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='1.59e-07', ts2='2.78', photon_index='2.74' WHERE bin_id='685' AND source_name='4FGL J2236.4-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:14:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 406206: <4FGL_J2236.4-2309_daily_bin685> in cluster <slac> Done

Job <4FGL_J2236.4-2309_daily_bin685> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 17:05:32 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 17:05:33 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:05:33 2021
Terminated at Tue Sep 28 17:14:01 2021
Results reported at Tue Sep 28 17:14:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.4-2309_daily_bin685 339.125 -23.1552 416880001 417139201 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 :                                   491.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             374.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   507 sec.
    Turnaround time :                            509 sec.

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

