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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1629
RA = 339.096, Dec = 28.4832
tmin = 661564801, tmax = 661824001
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='447509', job_status='RUN', time_executed='2021-12-22 02:49:35.208989', time_epoch_executed='1640170175.21' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447509/ft1_4FGL_J2236.3+2828_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447509/ft2_4FGL_J2236.3+2828_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447509/ft1_4FGL_J2236.3+2828_daily_bin1629.fits outfile=/scratch/kocevski/447509/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1629.fits ra=339.096 dec=28.4832 rad=12.0 tmin=661564801.0 tmax=661824001.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.56
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447509/ft1_filtered_4FGL_J2236.3+2828_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447509/ft2_4FGL_J2236.3+2828_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/447509/ltcube_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.fits outfile=/scratch/kocevski/447509/expmap_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.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/447509/ltcube_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.fits
.....................!
real 191.57
user 186.29
sys 4.85

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/447509/ft1_filtered_4FGL_J2236.3+2828_daily_bin1629.fits scfile=/scratch/kocevski/447509/ft2_4FGL_J2236.3+2828_daily_bin1629.fits outfile=/scratch/kocevski/447509/cmap_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447509/ft1_filtered_4FGL_J2236.3+2828_daily_bin1629.fits scfile=/scratch/kocevski/447509/ft2_4FGL_J2236.3+2828_daily_bin1629.fits outfile=/scratch/kocevski/447509/cmap_HighResolution_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447509/ft1_filtered_4FGL_J2236.3+2828_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/447509/ft2_4FGL_J2236.3+2828_daily_bin1629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447509/Model_4FGL_J2236.3+2828_daily_bin1629.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/447509/ft1_filtered_4FGL_J2236.3+2828_daily_bin1629.fits.....................!
real 104.05
user 102.68
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447509/ft1_filtered_4FGL_J2236.3+2828_daily_bin1629.fits', '/scratch/kocevski/447509/ft2_4FGL_J2236.3+2828_daily_bin1629.fits', expMap='/scratch/kocevski/447509/expmap_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.fits', expCube='/scratch/kocevski/447509/ltcube_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447509/Model_4FGL_J2236.3+2828_daily_bin1629.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/447509/ft1_filtered_4FGL_J2236.3+2828_daily_bin1629.fits
Spacecraft file(s): /scratch/kocevski/447509/ft2_4FGL_J2236.3+2828_daily_bin1629.fits
Exposure map: /scratch/kocevski/447509/expmap_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.fits
Exposure cube: /scratch/kocevski/447509/ltcube_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447509/Model_4FGL_J2236.3+2828_daily_bin1629.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) = 9749.46533778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1923       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.36       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.896       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2751       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5594       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .96572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6252       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.951       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.852       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1505       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0243       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.

 FCN=   9749.464     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2352 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1923        7.6382        .34830E-06   -.11636E-02
   2  norm          .10000E-03    .31252       -.27057E-07** at limit **
   3  Prefactor     107.36        73.151        .22646E-06    .18378E-05
   4  Prefactor     21.895        15.158        .16127E-06    .42978E-05
   5  norm          2.2746        2.6383        .92808E-06   -.39803E-02
   6  Prefactor     .10000E-03    58.865       -.38589E-05** at limit **
   7  Prefactor     7.5597        10.935        .91161E-07   -.11751E-04
   8  norm          1.9714        1.1878       -.21069E-07   -.60010E-03
   9  Prefactor     52.032        67.108       -.18541E-05   -.10765E-04
  10  Prefactor     .10000E-03    15.219        .16580E-04** at limit **
  11  norm          .96573        .94393       -.21011E-08    .51030E-04
  12  Prefactor     .10000E-03    2.8313        .12292E-08** at limit **
  13  Prefactor     6.6237        14.826        .59749E-06   -.24641E-05
  14  Prefactor     12.950        11.414        .11923E-06    .28054E-04
  15  Prefactor     39.852        35.519       -.85769E-07   -.37273E-05
  16  norm          2.7805        1.4159        .81816E-08   -.28086E-04
  17  Prefactor     .10000E-03    14.315       -.16498E-04** at limit **
  18  Prefactor     .10000E-03    6.6223       -.91322E-07** at limit **
  19  norm          .10000E-03    1.7799        .10528E-07** at limit **
  20  Prefactor     .10000E-03    9.7724        .11586E-05** at limit **
  21  Normalizat    1.1504        .22847       -.30828E-06    .52679E-05
  22  Prefactor     1.0243        .10034        .17150E-07   -.72355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19226
  norm       = 0.0001
  Prefactor  = 107.363
  Prefactor  = 21.8953
  norm       = 2.27462
  Prefactor  = 0.0001
  Prefactor  = 7.55972
  norm       = 1.97135
  Prefactor  = 52.0319
  Prefactor  = 0.000100001
  norm       = 0.965728
  Prefactor  = 0.0001
  Prefactor  = 6.6237
  Prefactor  = 12.9502
  Prefactor  = 39.852
  norm       = 2.78054
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15039
  Prefactor  = 1.02433
 **********
 **   18 **HESSE 
 **********

 FCN=   9749.464     FROM HESSE     STATUS=OK           346 CALLS     2698 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1923        8.1485        .11339E-02   -1.5351    
   2  norm          .10000E-03    .46818        .10600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     107.36        73.162        .38813E-04   -1.3632    
   4  Prefactor     21.895        15.165        .85599E-04   -1.4772    
   5  norm          2.2746        4.7719        .13612E-02   -1.5406    
   6  Prefactor     .10000E-03    58.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5597        10.951        .14586E-03   -1.5158    
   8  norm          1.9714        1.1814        .79961E-04   -1.5427    
   9  Prefactor     52.032        67.226        .55599E-04   -1.4264    
  10  Prefactor     .10000E-03    15.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .96573        .95727        .92532E-04   -1.5511    
  12  Prefactor     .10000E-03    2.8353        .16225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6237        14.834        .15590E-03   -1.5193    
  14  Prefactor     12.950        11.417        .11131E-03   -1.4988    
  15  Prefactor     39.852        35.529        .63494E-04   -1.4445    
  16  norm          2.7805        1.4167        .80312E-04   -1.5374    
  17  Prefactor     .10000E-03    14.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7905        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1504        .26448        .39268E-03   -.88150    
  22  Prefactor     1.0243        .11681        .18449E-03   -.91923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88117e-08
Minuit parameter uncertainties:
  1  8.15133
  2  1.32796e-06
  3  73.2235
  4  15.1682
  5  4.77274
  6  0.00013061
  7  10.9539
  8  1.18141
  9  67.3245
  10  0.000257253
  11  0.957288
  12  4.48232e-08
  13  14.8425
  14  11.4186
  15  35.5478
  16  1.41671
  17  0.000247727
  18  2.13878e-07
  19  4.44231e-08
  20  1.63111e-05
  21  0.264791
  22  0.116843
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.971e+00  1.181e+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:  1.024e+00  1.168e-01  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:  1.150e+00  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.54e-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) = 9748.36464454
delta logL = 1.09947095845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9748.35673615
delta logL = 1.10737934652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96131       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1657       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       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=   9748.357     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95979        .71208        .13028E-01   -.36903E-03
   2  alpha         1.1657        .33594        .33635       -.64217E-04
   3  Normalizat    1.1935        .21930        .87213E-01    .77350E-04
   4  Prefactor     1.0170        .98396E-01    .42444E-01    .89998E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.959793
  alpha      = 1.16572
  Normalizat = 1.19345
  Prefactor  = 1.017
 **********
 **   18 **HESSE 
 **********

 FCN=   9748.357     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95979        1.0376        .60828E-04   -1.5512    
   2  alpha         1.1657        .54698        .13389E-01   -.56299    
   3  Normalizat    1.1935        .25452        .38621E-03   -.86805    
   4  Prefactor     1.0170        .11451        .18507E-03   -.92165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94079e-09
Minuit parameter uncertainties:
  1  1.03759
  2  0.553273
  3  0.254782
  4  0.114536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447509': 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) = 9748.35673234
delta logL = 1.10738315332

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  9.598e-01  1.038e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.166e+00  5.533e-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:  1.017e+00  1.145e-01  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:  1.193e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.17
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.17 +/- 0.55
Photon Flux (Free Index): 2.15e-08 +/- 1.99e-08
Energy Flux (Free Index): 6.43e-05 +/- 6.38e-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/447509/cmap_HighResolution_661564801_661824001_4FGL_J2236.3+2828_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='6.43e-05', photon_flux_error='3.79e-08', dlogl='1.11e+00', energy_flux='2.56e-05', photon_flux2='2.15e-08', job_status='DONE', time_completed='2021-12-22 03:01:35.307871', photon_index_error2='0.55', photon_index2='1.17', ts='5.09', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='6.38e-05', EG='1.15', time_epoch_completed='1640170895.31', return_code='0', job_id='447509', GAL2='1.02', EG2='1.19', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='1.99e-08', ts2='7.17', photon_index='2.15' WHERE bin_id='1629' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 03:01:35 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 447509: <4FGL_J2236.3+2828_daily_bin1629> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1629> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec 22 02:45:22 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 02:46:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 02:46:02 2021
Terminated at Wed Dec 22 03:01:36 2021
Results reported at Wed Dec 22 03:01:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1629 339.096 28.4832 661564801 661824001 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            974 sec.

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

