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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1008
RA = 339.096, Dec = 28.4832
tmin = 500601601, tmax = 500860801
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='399794', job_status='RUN', time_executed='2021-09-28 16:48:24.972466', time_epoch_executed='1632872904.97' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399794/ft1_4FGL_J2236.3+2828_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399794/ft2_4FGL_J2236.3+2828_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399794/ft1_4FGL_J2236.3+2828_daily_bin1008.fits outfile=/scratch/kocevski/399794/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1008.fits ra=339.096 dec=28.4832 rad=12.0 tmin=500601601.0 tmax=500860801.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.10
user 4.83
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399794/ft1_filtered_4FGL_J2236.3+2828_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/399794/ft2_4FGL_J2236.3+2828_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/399794/ltcube_500601601_500860801_4FGL_J2236.3+2828_daily_bin1008.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/399794/ft2_4FGL_J2236.3+2828_daily_bin1008.fits
.....................!
real 11.94
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399794/ft1_filtered_4FGL_J2236.3+2828_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/399794/ft2_4FGL_J2236.3+2828_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/399794/ltcube_500601601_500860801_4FGL_J2236.3+2828_daily_bin1008.fits outfile=/scratch/kocevski/399794/expmap_500601601_500860801_4FGL_J2236.3+2828_daily_bin1008.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/399794/ltcube_500601601_500860801_4FGL_J2236.3+2828_daily_bin1008.fits
.....................!
real 190.27
user 185.26
sys 4.69

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/399794/ft1_filtered_4FGL_J2236.3+2828_daily_bin1008.fits scfile=/scratch/kocevski/399794/ft2_4FGL_J2236.3+2828_daily_bin1008.fits outfile=/scratch/kocevski/399794/cmap_500601601_500860801_4FGL_J2236.3+2828_daily_bin1008.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399794/ft1_filtered_4FGL_J2236.3+2828_daily_bin1008.fits scfile=/scratch/kocevski/399794/ft2_4FGL_J2236.3+2828_daily_bin1008.fits outfile=/scratch/kocevski/399794/cmap_HighResolution_500601601_500860801_4FGL_J2236.3+2828_daily_bin1008.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.055       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8099       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13454       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8161       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .44253       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9353       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91260       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87359       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=   4945.553     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2430 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7858        .67372E-08** at limit **
   2  norm          .10000E-03    .43044        .81543E-08** at limit **
   3  Prefactor     .10000E-03    84.841        .72693E-06** at limit **
   4  Prefactor     .10000E-03    8.2064       -.35739E-08** at limit **
   5  norm          .10000E-03    7.8206        .58564E-08** at limit **
   6  Prefactor     31.442        72.178       -.36967E-05   -.89889E-04
   7  Prefactor     17.058        18.553        .58401E-07   -.20447E-04
   8  norm          6.3322        2.0542        .23569E-07   -.65857E-04
   9  Prefactor     .10000E-03    63.316       -.74718E-06** at limit **
  10  Prefactor     .10000E-03    42.916        .32930E-06** at limit **
  11  norm          5.7587        3.1537       -.87381E-10    .18536E-05
  12  Prefactor     .10000E-03    14.847        .76130E-07** at limit **
  13  Prefactor     13.078        12.864       -.23438E-06   -.70889E-04
  14  Prefactor     5.8136        12.686        .15187E-05    .18995E-03
  15  Prefactor     .10000E-03    19.855       -.55294E-08** at limit **
  16  norm          2.8162        1.4840       -.37543E-08    .39178E-04
  17  Prefactor     9.6048        20.402        .30004E-07    .54522E-05
  18  Prefactor     .10000E-03    13.161       -.59329E-07** at limit **
  19  norm          .45560        5.8351       -.74666E-06   -.20368E-03
  20  Prefactor     6.9252        15.961        .32406E-05   -.24548E-03
  21  Normalizat    .91224        .27113       -.66549E-06    .13216E-04
  22  Prefactor     .87377        .11800        .70732E-07    .14032E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.4423
  Prefactor  = 17.0577
  norm       = 6.33221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75872
  Prefactor  = 0.0001
  Prefactor  = 13.0777
  Prefactor  = 5.81358
  Prefactor  = 0.000100003
  norm       = 2.81619
  Prefactor  = 9.6048
  Prefactor  = 0.0001
  norm       = 0.455603
  Prefactor  = 6.92515
  Normalizat = 0.912244
  Prefactor  = 0.873773
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.553     FROM HESSE     STATUS=OK           356 CALLS     2786 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7978        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .59972        .89693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    85.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.9144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.442        75.461        .71437E-04   -1.4586    
   7  Prefactor     17.058        18.625        .96983E-04   -1.4882    
   8  norm          6.3322        2.0549        .54680E-04   -1.5205    
   9  Prefactor     .10000E-03    63.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7587        3.1532        .89831E-04   -1.5228    
  12  Prefactor     .10000E-03    14.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.078        12.892        .11076E-03   -1.4985    
  14  Prefactor     5.8136        13.002        .16662E-03   -1.5226    
  15  Prefactor     .10000E-03    23.372        .10425       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8162        1.4808        .59860E-04   -1.5372    
  17  Prefactor     9.6048        20.437        .12933E-03   -1.5088    
  18  Prefactor     .10000E-03    13.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .45560        12.789        .28820E-02   -1.5573    
  20  Prefactor     6.9252        17.123        .76171E-03   -1.5182    
  21  Normalizat    .91224        .31190        .36784E-03   -.96031    
  22  Prefactor     .87377        .13631        .17136E-03   -.97064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63275e-08
Minuit parameter uncertainties:
  1  1.34843e-06
  2  9.80583e-07
  3  0.000295867
  4  6.11691e-06
  5  3.12264e-06
  6  75.6915
  7  18.6309
  8  2.05491
  9  0.000247566
  10  8.31514e-05
  11  3.15327
  12  1.04055e-05
  13  12.8951
  14  13.0085
  15  0.000550334
  16  1.48083
  17  20.4522
  18  9.18488e-06
  19  4.82839
  20  17.1355
  21  0.312519
  22  0.136364
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.332e+00  2.055e+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:  8.738e-01  1.364e-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.122e-01  3.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.26
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 6.59e-08
Energy Flux (Fixed Index): 8.24e-05 +/- 2.67e-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) = 4945.5467426
delta logL = 0.00602928853459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4945.54604958
delta logL = 0.00672230664713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2820       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1834       1.0000          .0000       5.0000    
     3 'Normalizat'    .90611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87535       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=   4945.546     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2816        3.1075        .40039E-02    .53879E-03
   2  alpha         2.1835        .47008        .19213        .44029E-04
   3  Normalizat    .90563        .26223        .83352E-01    .17294E-03
   4  Prefactor     .87559        .11816        .44690E-01   -.25474E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.2816
  alpha      = 2.1835
  Normalizat = 0.905627
  Prefactor  = 0.875586
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.546     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2816        2.0887        .54151E-04   -1.5207    
   2  alpha         2.1835        .32700        .81889E-02   -.12694    
   3  Normalizat    .90563        .29955        .36903E-03   -.96263    
   4  Prefactor     .87559        .13523        .17119E-03   -.96999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58232e-10
Minuit parameter uncertainties:
  1  2.08871
  2  0.327956
  3  0.300102
  4  0.135282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399794': 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) = 4945.54604799
delta logL = 0.00672389812371

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.282e+00  2.089e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.183e+00  3.280e-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:  8.756e-01  1.353e-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.056e-01  3.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.21
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.18 +/- 0.33
Photon Flux (Free Index): 2.08e-07 +/- 7.93e-08
Energy Flux (Free Index): 8.06e-05 +/- 3.02e-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/399794/cmap_HighResolution_500601601_500860801_4FGL_J2236.3+2828_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='8.06e-05', photon_flux_error='6.59e-08', dlogl='6.72e-03', energy_flux='8.24e-05', photon_flux2='2.08e-07', job_status='DONE', time_completed='2021-09-28 16:57:10.036347', photon_index_error2='0.33', photon_index2='2.18', ts='29.26', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='0.91', time_epoch_completed='1632873430.04', return_code='0', job_id='399794', GAL2='0.88', EG2='0.91', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='7.93e-08', ts2='29.21', photon_index='2.15' WHERE bin_id='1008' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:57:10 PDT 2021


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

Job <4FGL_J2236.3+2828_daily_bin1008> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:40 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:45:41 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:45:41 2021
Terminated at Tue Sep 28 16:57:10 2021
Results reported at Tue Sep 28 16:57:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1008 339.096 28.4832 500601601 500860801 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 :                                   524.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            690 sec.

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

