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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1421
RA = 339.096, Dec = 28.4832
tmin = 607651201, tmax = 607910401
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='401434', job_status='RUN', time_executed='2021-09-28 16:52:51.315962', time_epoch_executed='1632873171.32' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401434

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401434/ft1_4FGL_J2236.3+2828_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401434/ft2_4FGL_J2236.3+2828_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401434/ft1_4FGL_J2236.3+2828_daily_bin1421.fits outfile=/scratch/kocevski/401434/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1421.fits ra=339.096 dec=28.4832 rad=12.0 tmin=607651201.0 tmax=607910401.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.81
user 3.59
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401434/ft1_filtered_4FGL_J2236.3+2828_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/401434/ft2_4FGL_J2236.3+2828_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/401434/ltcube_607651201_607910401_4FGL_J2236.3+2828_daily_bin1421.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/401434/ft2_4FGL_J2236.3+2828_daily_bin1421.fits
.....................!
real 11.56
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401434/ft1_filtered_4FGL_J2236.3+2828_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/401434/ft2_4FGL_J2236.3+2828_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/401434/ltcube_607651201_607910401_4FGL_J2236.3+2828_daily_bin1421.fits outfile=/scratch/kocevski/401434/expmap_607651201_607910401_4FGL_J2236.3+2828_daily_bin1421.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/401434/ltcube_607651201_607910401_4FGL_J2236.3+2828_daily_bin1421.fits
.....................!
real 189.32
user 185.03
sys 3.97

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/401434/ft1_filtered_4FGL_J2236.3+2828_daily_bin1421.fits scfile=/scratch/kocevski/401434/ft2_4FGL_J2236.3+2828_daily_bin1421.fits outfile=/scratch/kocevski/401434/cmap_607651201_607910401_4FGL_J2236.3+2828_daily_bin1421.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401434/ft1_filtered_4FGL_J2236.3+2828_daily_bin1421.fits scfile=/scratch/kocevski/401434/ft2_4FGL_J2236.3+2828_daily_bin1421.fits outfile=/scratch/kocevski/401434/cmap_HighResolution_607651201_607910401_4FGL_J2236.3+2828_daily_bin1421.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/401434/ft1_filtered_4FGL_J2236.3+2828_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/401434/ft2_4FGL_J2236.3+2828_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401434/Model_4FGL_J2236.3+2828_daily_bin1421.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/401434/ft1_filtered_4FGL_J2236.3+2828_daily_bin1421.fits.....................!
real 112.27
user 110.89
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2818       1.0000         .10000E-03   10000.    
     2 'norm      '    .73829E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.1279       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2927       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0638       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3659       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.325       1.0000         .10000E-03   10000.    
    16 'norm      '    .75294       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12784E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11167E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.965       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60181       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1832       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=   10147.15     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2092 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2832        9.7579       -.82596E-06   -.26223E-05
   2  norm          .73866E-01    .36847       -.40186E-06   -.37700E-03
   3  Prefactor     11.457        26.083       -.25901E-05    .36592E-04
   4  Prefactor     .10000E-03    16.540       -.50229E-06** at limit **
   5  norm          9.1274        6.0297       -.61328E-06    .87104E-05
   6  Prefactor     .10000E-03    93.479       -.33868E-06** at limit **
   7  Prefactor     .10000E-03    3.9662        .20003E-06** at limit **
   8  norm          2.2927        1.1473       -.98016E-07   -.21162E-03
   9  Prefactor     2.0522        516.78       -.65662E-04    .33856E-04
  10  Prefactor     .10000E-03    6.5012       -.16582E-06** at limit **
  11  norm          .10000E-03    .47068       -.82710E-07** at limit **
  12  Prefactor     9.3654        9.8180       -.46538E-06   -.74838E-05
  13  Prefactor     .10000E-03    7.0159       -.46637E-06** at limit **
  14  Prefactor     .10000E-03    9.5028       -.48029E-06** at limit **
  15  Prefactor     12.322        20.077       -.36329E-06    .32826E-04
  16  norm          .75266        1.4490       -.92915E-06   -.19457E-02
  17  Prefactor     10.888        27.297       -.15736E-04    .28737E-03
  18  Prefactor     .10000E-03    40.478       -.31779E-05** at limit **
  19  norm          .10008E-03    3.9709       -.12640E-05** at limit **
  20  Prefactor     17.909        19.335        .55224E-05    .73921E-04
  21  Normalizat    .60190        .23781        .27607E-05    .30354E-03
  22  Prefactor     1.1832        .10477        .74773E-06    .75653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28324
  norm       = 0.0738664
  Prefactor  = 11.4568
  Prefactor  = 0.0001
  norm       = 9.12743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.29266
  Prefactor  = 2.05219
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.36539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3223
  norm       = 0.752656
  Prefactor  = 10.8877
  Prefactor  = 0.000100001
  norm       = 0.000100077
  Prefactor  = 17.9093
  Normalizat = 0.601903
  Prefactor  = 1.18318
 **********
 **   18 **HESSE 
 **********

 FCN=   10147.15     FROM HESSE     STATUS=OK           356 CALLS     2448 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2832        9.7131        .17489E-03   -1.5248    
   2  norm          .73866E-01    1.4779        .11480E-02   -1.5654    
   3  Prefactor     11.457        26.090        .11834E-03   -1.5031    
   4  Prefactor     .10000E-03    16.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1274        6.0321        .13266E-03   -1.5104    
   6  Prefactor     .10000E-03    93.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2927        1.1430        .72759E-04   -1.5405    
   9  Prefactor     2.0522        521.50        .28762E-03   -1.5421    
  10  Prefactor     .10000E-03    6.5057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .47443        .67444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3654        9.8008        .13095E-03   -1.5096    
  13  Prefactor     .10000E-03    7.0293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.322        20.042        .11410E-03   -1.5006    
  16  norm          .75266        1.4636        .15935E-03   -1.5534    
  17  Prefactor     10.888        27.002        .12120E-03   -1.5048    
  18  Prefactor     .10000E-03    41.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10008E-03    4.3002        .57135E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.909        19.795        .94494E-04   -1.4861    
  21  Normalizat    .60190        .25135        .49219E-03   -1.0790    
  22  Prefactor     1.1832        .11360        .16521E-03   -.86851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45938e-08
Minuit parameter uncertainties:
  1  9.71597
  2  0.660376
  3  26.1161
  4  3.81398e-05
  5  6.03248
  6  9.70979e-05
  7  1.26222e-05
  8  1.14306
  9  66.0162
  10  1.4602e-06
  11  2.92616e-07
  12  9.8025
  13  1.41362e-05
  14  4.22657e-05
  15  20.0531
  16  1.46365
  17  27.0326
  18  0.000441458
  19  0.00114787
  20  19.8023
  21  0.251827
  22  0.113624
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.293e+00  1.143e+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.183e+00  1.136e-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:  6.019e-01  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.59
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.36e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.98e-05 +/- 1.49e-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) = 10147.1433941
delta logL = 0.00265571782802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10147.1432899
delta logL = 0.00275991146918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3008       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1791       1.0000          .0000       5.0000    
     3 'Normalizat'    .59907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1838       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=   10147.14     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3008        26.546        .67638E-02    .12481E-03
   2  alpha         2.1791        3.2939        .39331        .12842E-04
   3  Normalizat    .59906        .15951        .11125        .78747E-04
   4  Prefactor     1.1838        .72207E-01    .35025E-01    .34151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30079
  alpha      = 2.17911
  Normalizat = 0.599062
  Prefactor  = 1.18383
 **********
 **   18 **HESSE 
 **********

 FCN=   10147.14     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3008        1.1329        .72132E-04   -1.5405    
   2  alpha         2.1791        .44435        .14955E-01   -.12871    
   3  Normalizat    .59906        .24286        .49328E-03   -1.0802    
   4  Prefactor     1.1838        .11048        .16517E-03   -.86830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19635e-12
Minuit parameter uncertainties:
  1  1.1329
  2  0.446767
  3  0.243291
  4  0.110505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401434': 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) = 10147.1432898
delta logL = 0.00275992866955

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.301e+00  1.133e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.179e+00  4.468e-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.184e+00  1.105e-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:  5.991e-01  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.61
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.18 +/- 0.45
Photon Flux (Free Index): 7.60e-08 +/- 4.85e-08
Energy Flux (Free Index): 2.96e-05 +/- 1.51e-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/401434/cmap_HighResolution_607651201_607910401_4FGL_J2236.3+2828_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.36e-08', energy_flux2='2.96e-05', photon_flux_error='3.67e-08', dlogl='2.76e-03', energy_flux='2.98e-05', photon_flux2='7.60e-08', job_status='DONE', time_completed='2021-09-28 17:04:30.201405', photon_index_error2='0.45', photon_index2='2.18', ts='10.59', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.60', time_epoch_completed='1632873870.2', return_code='0', job_id='401434', GAL2='1.18', EG2='0.60', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.85e-08', ts2='10.61', photon_index='2.15' WHERE bin_id='1421' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:04:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 401434: <4FGL_J2236.3+2828_daily_bin1421> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1421 339.096 28.4832 607651201 607910401 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

