/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 8 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin269
RA = 339.096, Dec = 28.4832
tmin = 309052801, tmax = 309312001
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='396481', job_status='RUN', time_executed='2021-09-28 16:35:35.360545', time_epoch_executed='1632872135.36' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396481/ft1_4FGL_J2236.3+2828_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396481/ft2_4FGL_J2236.3+2828_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396481/ft1_4FGL_J2236.3+2828_daily_bin269.fits outfile=/scratch/kocevski/396481/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin269.fits ra=339.096 dec=28.4832 rad=12.0 tmin=309052801.0 tmax=309312001.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.37
user 3.18
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396481/ft1_filtered_4FGL_J2236.3+2828_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/396481/ft2_4FGL_J2236.3+2828_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/396481/ltcube_309052801_309312001_4FGL_J2236.3+2828_daily_bin269.fits outfile=/scratch/kocevski/396481/expmap_309052801_309312001_4FGL_J2236.3+2828_daily_bin269.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/396481/ltcube_309052801_309312001_4FGL_J2236.3+2828_daily_bin269.fits
.....................!
real 189.79
user 184.85
sys 4.61

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/396481/ft1_filtered_4FGL_J2236.3+2828_daily_bin269.fits scfile=/scratch/kocevski/396481/ft2_4FGL_J2236.3+2828_daily_bin269.fits outfile=/scratch/kocevski/396481/cmap_309052801_309312001_4FGL_J2236.3+2828_daily_bin269.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.71
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396481/ft1_filtered_4FGL_J2236.3+2828_daily_bin269.fits scfile=/scratch/kocevski/396481/ft2_4FGL_J2236.3+2828_daily_bin269.fits outfile=/scratch/kocevski/396481/cmap_HighResolution_309052801_309312001_4FGL_J2236.3+2828_daily_bin269.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 1.21
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3542       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2204       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.9537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1551       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10871E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7869       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14983E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.457       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1583       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.132       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6443       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73101       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=   11825.49     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     3078 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3533        9.8274        .15923E-03   -.91246E-04
   2  norm          2.3121        .93657        .63371E-04   -.38391E-04
   3  Prefactor     .10000E-03    43.141        .18142E-02** at limit **
   4  Prefactor     7.2242        13.578        .14928E-03   -.72351E-04
   5  norm          .10000E-03    2.0957        .15315E-02** at limit **
   6  Prefactor     .10000E-03    24.723        .18142E-02** at limit **
   7  Prefactor     .10000E-03    19.213        .36285E-03** at limit **
   8  norm          5.9555        1.5239        .64451E-04    .30692E-03
   9  Prefactor     .10000E-03    19.993        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.807        .18142E-02** at limit **
  11  norm          2.1563        1.5176        .10932E-03    .88666E-03
  12  Prefactor     .10000E-03    22.612        .18142E-02** at limit **
  13  Prefactor     43.302        22.205        .60921E-04    .21647E-04
  14  Prefactor     .10011E-03    27.448        .44645E-02** at limit **
  15  Prefactor     .10000E-03    5.5129        .18142E-02** at limit **
  16  norm          5.7868        1.6106        .70271E-04    .90598E-05
  17  Prefactor     .10000E-03    17.958        .11727    ** at limit **
  18  Prefactor     24.445        29.186        .80999E-04   -.71862E-04
  19  norm          6.1570        5.1579        .16177E-03   -.14280E-03
  20  Prefactor     15.135        19.125        .10296E-03   -.21421E-04
  21  Normalizat    1.6442        .24690        .35346E-03    .23400E-03
  22  Prefactor     .73108        .10370        .21520E-03   -.11199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35332
  norm       = 2.31215
  Prefactor  = 0.000100001
  Prefactor  = 7.22423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.95546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15626
  Prefactor  = 0.0001
  Prefactor  = 43.3019
  Prefactor  = 0.000100106
  Prefactor  = 0.0001
  norm       = 5.78676
  Prefactor  = 0.000100001
  Prefactor  = 24.4445
  norm       = 6.15703
  Prefactor  = 15.135
  Normalizat = 1.64424
  Prefactor  = 0.731077
 **********
 **   18 **HESSE 
 **********

 FCN=   11825.49     FROM HESSE     STATUS=OK           330 CALLS     3408 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3533        9.8274        .63692E-05   -1.5204    
   2  norm          2.3121        .93653        .25348E-05   -1.5404    
   3  Prefactor     .10000E-03    43.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2242        13.577        .59710E-05   -1.5170    
   5  norm          .10000E-03    2.0962        .30631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.214        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.9555        1.5239        .25780E-05   -1.5220    
   9  Prefactor     .10000E-03    19.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1563        1.5176        .43728E-05   -1.5414    
  12  Prefactor     .10000E-03    22.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.302        22.203        .24368E-05   -1.4391    
  14  Prefactor     .10011E-03    28.017        .89290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7868        1.6106        .28109E-05   -1.5227    
  17  Prefactor     .10000E-03    17.194        .12082       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.445        29.186        .32399E-05   -1.4719    
  19  norm          6.1570        5.1575        .64710E-05   -1.5212    
  20  Prefactor     15.135        19.127        .41185E-05   -1.4930    
  21  Normalizat    1.6442        .24709        .70691E-04   -.73802    
  22  Prefactor     .73108        .10379        .86081E-05   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33219e-09
Minuit parameter uncertainties:
  1  9.82989
  2  0.93654
  3  0.000407215
  4  13.5827
  5  6.25769e-06
  6  6.01998e-05
  7  0.000218392
  8  1.52393
  9  2.38674e-05
  10  1.83902e-05
  11  1.51761
  12  8.57362e-06
  13  22.2068
  14  0.00344657
  15  4.04126e-06
  16  1.61062
  17  0.000270842
  18  29.2027
  19  5.15782
  20  19.1345
  21  0.247278
  22  0.103814
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.955e+00  1.524e+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:  7.311e-01  1.038e-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.644e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.53
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.91e-07 +/- 4.89e-08
Energy Flux (Fixed Index): 7.75e-05 +/- 1.98e-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) = 11824.8042485
delta logL = 0.683399911257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11824.7987239
delta logL = 0.688924535261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6962       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4752       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75206       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=   11824.80     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6962        1.4816        .58140E-04   -.87681E-03
   2  alpha         2.4751        .28516        .97245E-02   -.83612E-04
   3  Normalizat    1.5653        .25094        .36027E-03    .28350E-03
   4  Prefactor     .75206        .10413        .21244E-03    .53159E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.69618
  alpha      = 2.47515
  Normalizat = 1.56534
  Prefactor  = 0.752058
 **********
 **   18 **HESSE 
 **********

 FCN=   11824.80     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6962        1.4647        .23256E-05   -1.5231    
   2  alpha         2.4751        .28163        .38898E-03   -.99403E-02
   3  Normalizat    1.5653        .25108        .14411E-04   -.75958    
   4  Prefactor     .75206        .10418        .42489E-04   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62992e-10
Minuit parameter uncertainties:
  1  1.46467
  2  0.28223
  3  0.251286
  4  0.104212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396481': 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) = 11824.7987239
delta logL = 0.688924538383

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.696e+00  1.465e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.475e+00  2.822e-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:  7.521e-01  1.042e-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.565e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.87
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.48 +/- 0.28
Photon Flux (Free Index): 2.50e-07 +/- 7.62e-08
Energy Flux (Free Index): 7.19e-05 +/- 1.74e-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/396481/cmap_HighResolution_309052801_309312001_4FGL_J2236.3+2828_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.91e-07', energy_flux2='7.19e-05', photon_flux_error='4.89e-08', dlogl='6.89e-01', energy_flux='7.75e-05', photon_flux2='2.50e-07', job_status='DONE', time_completed='2021-09-28 16:50:40.658641', photon_index_error2='0.28', photon_index2='2.48', ts='46.53', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.64', time_epoch_completed='1632873040.66', return_code='0', job_id='396481', GAL2='0.75', EG2='1.57', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='7.62e-08', ts2='47.87', photon_index='2.15' WHERE bin_id='269' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:50:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 396481: <4FGL_J2236.3+2828_daily_bin269> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin269> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 16:35:17 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:35:18 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:35:18 2021
Terminated at Tue Sep 28 16:51:05 2021
Results reported at Tue Sep 28 16:51:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin269 339.096 28.4832 309052801 309312001 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 :                                   897.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             371.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            948 sec.

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

