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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1407
RA = 339.096, Dec = 28.4832
tmin = 604022401, tmax = 604281601
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='401414', job_status='RUN', time_executed='2021-09-28 16:52:59.565662', time_epoch_executed='1632873179.57' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401414/ft1_4FGL_J2236.3+2828_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401414/ft2_4FGL_J2236.3+2828_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401414/ft1_4FGL_J2236.3+2828_daily_bin1407.fits outfile=/scratch/kocevski/401414/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1407.fits ra=339.096 dec=28.4832 rad=12.0 tmin=604022401.0 tmax=604281601.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 4.25
user 4.02
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401414/ft2_4FGL_J2236.3+2828_daily_bin1407.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/401414/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1407.fits evtable="EVENTS" outfile="/scratch/kocevski/401414/ft1_filtered_4FGL_J2236.3+2828_daily_bin1407.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401414/ft1_filtered_4FGL_J2236.3+2828_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/401414/ft2_4FGL_J2236.3+2828_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/401414/ltcube_604022401_604281601_4FGL_J2236.3+2828_daily_bin1407.fits outfile=/scratch/kocevski/401414/expmap_604022401_604281601_4FGL_J2236.3+2828_daily_bin1407.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/401414/ltcube_604022401_604281601_4FGL_J2236.3+2828_daily_bin1407.fits
.....................!
real 192.25
user 186.86
sys 5.08

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/401414/ft1_filtered_4FGL_J2236.3+2828_daily_bin1407.fits scfile=/scratch/kocevski/401414/ft2_4FGL_J2236.3+2828_daily_bin1407.fits outfile=/scratch/kocevski/401414/cmap_604022401_604281601_4FGL_J2236.3+2828_daily_bin1407.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401414/ft1_filtered_4FGL_J2236.3+2828_daily_bin1407.fits scfile=/scratch/kocevski/401414/ft2_4FGL_J2236.3+2828_daily_bin1407.fits outfile=/scratch/kocevski/401414/cmap_HighResolution_604022401_604281601_4FGL_J2236.3+2828_daily_bin1407.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6658       1.0000         .10000E-03   10000.    
     2 'norm      '    .10919E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.925       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.003       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9756       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0817       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4202       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.672       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90650       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0113       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=   8646.385     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2384 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6652        6.5723       -.11774E-06   -.41907E-04
   2  norm          .10039E-03    .33326        .18017E-06** at limit **
   3  Prefactor     36.851        53.485        .70604E-05    .14285E-04
   4  Prefactor     .10000E-03    17.470        .33731E-06** at limit **
   5  norm          .10000E-03    3.1428       -.69499E-08** at limit **
   6  Prefactor     39.686        64.431        .46867E-06   -.27187E-05
   7  Prefactor     .10000E-03    21.354       -.57548E-06** at limit **
   8  norm          2.1790        1.2174        .20492E-07   -.26719E-04
   9  Prefactor     .10000E-03    37.553        .12438E-06** at limit **
  10  Prefactor     29.006        29.377       -.81728E-07   -.75071E-05
  11  norm          1.9757        2.0531        .25057E-07    .60582E-06
  12  Prefactor     33.716        15.659        .69840E-07   -.22193E-05
  13  Prefactor     .10000E-03    7.7311        .82668E-07** at limit **
  14  Prefactor     2.0821        5.8473        .56095E-06    .81939E-05
  15  Prefactor     .10000E-03    12.626       -.31020E-06** at limit **
  16  norm          1.4202        1.5050        .68860E-07    .21074E-04
  17  Prefactor     12.555        23.506        .67417E-06   -.28792E-05
  18  Prefactor     .10000E-03    16.631        .52166E-06** at limit **
  19  norm          3.4074        4.6008        .11407E-05    .15135E-04
  20  Prefactor     13.668        16.426       -.33209E-06   -.57225E-05
  21  Normalizat    .90630        .22664       -.19976E-06   -.66483E-04
  22  Prefactor     1.0115        .99565E-01   -.33091E-06   -.10956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66516
  norm       = 0.000100389
  Prefactor  = 36.8506
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.6862
  Prefactor  = 0.0001
  norm       = 2.17904
  Prefactor  = 0.0001
  Prefactor  = 29.0061
  norm       = 1.97572
  Prefactor  = 33.7159
  Prefactor  = 0.0001
  Prefactor  = 2.0821
  Prefactor  = 0.0001
  norm       = 1.42017
  Prefactor  = 12.555
  Prefactor  = 0.0001
  norm       = 3.4074
  Prefactor  = 13.6682
  Normalizat = 0.906298
  Prefactor  = 1.01146
 **********
 **   18 **HESSE 
 **********

 FCN=   8646.385     FROM HESSE     STATUS=OK           354 CALLS     2738 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6652        6.5491        .32675E-03   -1.5450    
   2  norm          .10039E-03    .76339        .18245E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.851        53.511        .65954E-04   -1.4493    
   4  Prefactor     .10000E-03    17.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.1631        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.686        64.435        .63623E-04   -1.4447    
   7  Prefactor     .10000E-03    21.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1790        1.2123        .69462E-04   -1.5413    
   9  Prefactor     .10000E-03    37.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.006        29.328        .74394E-04   -1.4630    
  11  norm          1.9757        2.0350        .12820E-03   -1.5427    
  12  Prefactor     33.716        15.620        .69011E-04   -1.4546    
  13  Prefactor     .10000E-03    7.7649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0821        5.8138        .28621E-03   -1.5419    
  15  Prefactor     .10000E-03    12.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4202        1.4851        .11039E-03   -1.5470    
  17  Prefactor     12.555        23.542        .11302E-03   -1.4999    
  18  Prefactor     .10000E-03    16.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4074        4.6046        .10783E-02   -1.5339    
  20  Prefactor     13.668        16.446        .10833E-03   -1.4968    
  21  Normalizat    .90630        .25980        .39597E-03   -.96239    
  22  Prefactor     1.0115        .11512        .17204E-03   -.92349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91327e-10
Minuit parameter uncertainties:
  1  6.55196
  2  0.00108943
  3  53.5808
  4  9.22031e-06
  5  2.7537e-07
  6  64.548
  7  5.25589e-06
  8  1.21231
  9  8.71922e-06
  10  29.3427
  11  2.03504
  12  15.6216
  13  2.47291e-06
  14  5.81537
  15  3.38285e-07
  16  1.4851
  17  23.559
  18  1.92129e-06
  19  4.60507
  20  16.4514
  21  0.260164
  22  0.115146
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.179e+00  1.212e+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.011e+00  1.151e-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:  9.063e-01  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.06
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.99e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 1.58e-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) = 8646.2350015
delta logL = 0.15014735459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8646.22846222
delta logL = 0.156686634529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0805       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8610       1.0000          .0000       5.0000    
     3 'Normalizat'    .92743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0059       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=   8646.228     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0805        1.3251        .71576E-02    .22357E-02
   2  alpha         1.8609        .46860        .39634       -.37878E-04
   3  Normalizat    .92743        .21547        .88496E-01   -.18912E-03
   4  Prefactor     1.0059        .98212E-01    .44013E-01   -.54710E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08047
  alpha      = 1.86093
  Normalizat = 0.927427
  Prefactor  = 1.00588
 **********
 **   18 **HESSE 
 **********

 FCN=   8646.228     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0805        1.1913        .70734E-04   -1.5419    
   2  alpha         1.8609        .49170        .14932E-01   -.25850    
   3  Normalizat    .92743        .24861        .39189E-03   -.95503    
   4  Prefactor     1.0059        .11346        .17248E-03   -.92534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57558e-10
Minuit parameter uncertainties:
  1  1.19136
  2  0.495154
  3  0.248922
  4  0.113484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401414': 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) = 8646.22846222
delta logL = 0.156686637805

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.080e+00  1.191e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.861e+00  4.952e-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.006e+00  1.135e-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:  9.274e-01  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.32
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.86 +/- 0.50
Photon Flux (Free Index): 5.39e-08 +/- 3.96e-08
Energy Flux (Free Index): 3.34e-05 +/- 2.19e-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/401414/cmap_HighResolution_604022401_604281601_4FGL_J2236.3+2828_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.99e-08', energy_flux2='3.34e-05', photon_flux_error='3.89e-08', dlogl='1.57e-01', energy_flux='2.83e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-28 17:04:15.957145', photon_index_error2='0.50', photon_index2='1.86', ts='10.06', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.91', time_epoch_completed='1632873855.96', return_code='0', job_id='401414', GAL2='1.01', EG2='0.93', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='3.96e-08', ts2='10.32', photon_index='2.15' WHERE bin_id='1407' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 401414: <4FGL_J2236.3+2828_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1407> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 16:50:42 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:50:44 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:50:44 2021
Terminated at Tue Sep 28 17:04:16 2021
Results reported at Tue Sep 28 17:04:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1407 339.096 28.4832 604022401 604281601 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

