/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 130 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin95
RA = 339.096, Dec = 28.4832
tmin = 263952001, tmax = 264211201
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='395236', job_status='RUN', time_executed='2021-09-28 16:33:27.351840', time_epoch_executed='1632872007.35' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395236

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395236/ft1_4FGL_J2236.3+2828_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395236/ft1_4FGL_J2236.3+2828_daily_bin95.fits outfile=/scratch/kocevski/395236/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin95.fits ra=339.096 dec=28.4832 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.72
user 1.51
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.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/395236/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/395236/ltcube_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.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/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits
.....................!
real 13.20
user 12.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/395236/ltcube_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.fits outfile=/scratch/kocevski/395236/expmap_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.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/395236/ltcube_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.fits
.....................!
real 193.68
user 187.86
sys 5.42

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.3+2828 @ 339.096 28.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits scfile=/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits outfile=/scratch/kocevski/395236/cmap_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.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.096 yref=28.4832 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/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits scfile=/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits outfile=/scratch/kocevski/395236/cmap_HighResolution_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.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.096 yref=28.4832 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/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395236/Model_4FGL_J2236.3+2828_daily_bin95.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/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits.....................!
real 133.95
user 132.49
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits', '/scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits', expMap='/scratch/kocevski/395236/expmap_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.fits', expCube='/scratch/kocevski/395236/ltcube_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395236/Model_4FGL_J2236.3+2828_daily_bin95.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.3+2828'

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.238e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/395236/ft1_filtered_4FGL_J2236.3+2828_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/395236/ft2_4FGL_J2236.3+2828_daily_bin95.fits
Exposure map: /scratch/kocevski/395236/expmap_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.fits
Exposure cube: /scratch/kocevski/395236/ltcube_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395236/Model_4FGL_J2236.3+2828_daily_bin95.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) = 12575.0898209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .44996       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9115       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23100       1.0000         .10000E-03   10000.    
     8 'norm      '    9.1608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9792       1.0000         .10000E-03   10000.    
    11 'norm      '    .21822       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27489E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.706       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2121       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95915       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   12575.02     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     2405 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1793        .18142E-02** at limit **
   2  norm          .45006        .79180        .12430E-03   -.57784E-03
   3  Prefactor     9.7074        15.746        .12861E-03   -.12906E-04
   4  Prefactor     7.9033        12.241        .14255E-03   -.13207E-03
   5  norm          .10000E-03    1.1430        .11692E-02** at limit **
   6  Prefactor     .10000E-03    48.606        .18142E-02** at limit **
   7  Prefactor     .30010        87.146        .49436E-02   -.16104E-03
   8  norm          9.1608        1.5886        .55589E-04   -.47652E-03
   9  Prefactor     .10000E-03    23.399        .18142E-02** at limit **
  10  Prefactor     6.9792        10.595        .75928E-03   -.31928E-03
  11  norm          .21692        1.4092        .18253E-02    .18868E-02
  12  Prefactor     .10002E-03    32.649        .40581E-02** at limit **
  13  Prefactor     .10000E-03    9.8467        .18142E-02** at limit **
  14  Prefactor     .10000E-03    2.7793        .18142E-02** at limit **
  15  Prefactor     17.708        16.834        .95183E-04    .12900E-04
  16  norm          2.2123        1.1930        .86233E-04    .19696E-03
  17  Prefactor     .10000E-03    5.6735        .18142E-02** at limit **
  18  Prefactor     .10000E-03    13.606        .18142E-02** at limit **
  19  norm          10.554        5.4596        .12334E-03    .67081E-03
  20  Prefactor     .10000E-03    26.981        .18142E-02** at limit **
  21  Normalizat    .95904        .22724        .39972E-03   -.22469E-03
  22  Prefactor     .98822        .99847E-01    .17867E-03   -.51008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.450056
  Prefactor  = 9.70738
  Prefactor  = 7.90328
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.300105
  norm       = 9.16083
  Prefactor  = 0.000100001
  Prefactor  = 6.97915
  norm       = 0.216916
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7076
  norm       = 2.2123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5543
  Prefactor  = 0.0001
  Normalizat = 0.959039
  Prefactor  = 0.988219
 **********
 **   18 **HESSE 
 **********

 FCN=   12575.02     FROM HESSE     STATUS=OK           324 CALLS     2729 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .45006        .79133        .49721E-05   -1.5574    
   3  Prefactor     9.7074        15.745        .51445E-05   -1.5085    
   4  Prefactor     7.9033        12.213        .57021E-05   -1.5146    
   5  norm          .10000E-03    1.1431        .23383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .30010        87.428        .19774E-03   -1.5598    
   8  norm          9.1608        1.5881        .22235E-05   -1.5103    
   9  Prefactor     .10000E-03    23.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9792        10.594        .30371E-04   -1.5180    
  11  norm          .21692        1.4071        .73011E-04   -1.5615    
  12  Prefactor     .10002E-03    33.446        .16233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.708        16.832        .38073E-05   -1.4866    
  16  norm          2.2123        1.1925        .34493E-05   -1.5410    
  17  Prefactor     .10000E-03    5.6739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.554        5.4576        .49338E-05   -1.5058    
  20  Prefactor     .10000E-03    26.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95904        .22471        .15989E-04   -.94416    
  22  Prefactor     .98822        .99629E-01    .35734E-04   -.93123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93062e-09
Minuit parameter uncertainties:
  1  1.66236e-06
  2  0.791351
  3  15.7522
  4  12.2168
  5  1.18229e-06
  6  0.000602185
  7  10.258
  8  1.58807
  9  0.000235361
  10  10.5968
  11  1.10473
  12  0.00180149
  13  1.17203e-05
  14  4.11692e-06
  15  16.8369
  16  1.19256
  17  9.40018e-06
  18  2.06303e-05
  19  5.45783
  20  0.000184272
  21  0.224933
  22  0.0996471
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  9.161e+00  1.588e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.882e-01  9.965e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  9.590e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 98.79
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.94e-07 +/- 5.09e-08
Energy Flux (Fixed Index): 1.19e-04 +/- 2.07e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12574.982675
delta logL = 0.0332966746355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12574.9791425
delta logL = 0.036829227558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0560       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1936       1.0000          .0000       5.0000    
     3 'Normalizat'    .94753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12574.98     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0556        2.1507        .33296E-02    .67170E-04
   2  alpha         2.1936        .23111        .16432        .44625E-04
   3  Normalizat    .94760        .18909        .90725E-01    .45954E-04
   4  Prefactor     .99159        .84676E-01    .46162E-01   -.30079E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 9.0556
  alpha      = 2.19361
  Normalizat = 0.947604
  Prefactor  = 0.991594
 **********
 **   18 **HESSE 
 **********

 FCN=   12574.98     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0556        1.6133        .54919E-04   -1.5106    
   2  alpha         2.1936        .17775        .70792E-02   -.12287    
   3  Normalizat    .94760        .22074        .40181E-03   -.94807    
   4  Prefactor     .99159        .98917E-01    .17840E-03   -.93010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51758e-13
Minuit parameter uncertainties:
  1  1.61335
  2  0.177907
  3  0.22095
  4  0.0989351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395236': 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) = 12574.9791424
delta logL = 0.0368293252559

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  9.056e+00  1.613e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.194e+00  1.779e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.916e-01  9.894e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  9.476e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 98.86
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.19 +/- 0.18
Photon Flux (Free Index): 3.03e-07 +/- 6.08e-08
Energy Flux (Free Index): 1.16e-04 +/- 2.33e-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/395236/cmap_HighResolution_263952001_264211201_4FGL_J2236.3+2828_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-07', energy_flux2='1.16e-04', photon_flux_error='5.09e-08', dlogl='3.68e-02', energy_flux='1.19e-04', photon_flux2='3.03e-07', job_status='DONE', time_completed='2021-09-28 16:47:12.287053', photon_index_error2='0.18', photon_index2='2.19', ts='98.79', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='0.96', time_epoch_completed='1632872832.29', return_code='0', job_id='395236', GAL2='0.99', EG2='0.95', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='6.08e-08', ts2='98.86', photon_index='2.15' WHERE bin_id='95' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:47:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 395236: <4FGL_J2236.3+2828_daily_bin95> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin95> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:31:04 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:31:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 16:31:06 2021
Terminated at Tue Sep 28 16:47:13 2021
Results reported at Tue Sep 28 16:47:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin95 339.096 28.4832 263952001 264211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2236.3+2828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   824.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

