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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1022
RA = 339.096, Dec = 28.4832
tmin = 504230401, tmax = 504489601
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='399814', job_status='RUN', time_executed='2021-09-28 16:48:37.283101', time_epoch_executed='1632872917.28' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399814/ft1_4FGL_J2236.3+2828_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399814/ft2_4FGL_J2236.3+2828_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399814/ft1_4FGL_J2236.3+2828_daily_bin1022.fits outfile=/scratch/kocevski/399814/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1022.fits ra=339.096 dec=28.4832 rad=12.0 tmin=504230401.0 tmax=504489601.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.57
user 3.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399814/ft1_filtered_4FGL_J2236.3+2828_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/399814/ft2_4FGL_J2236.3+2828_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/399814/ltcube_504230401_504489601_4FGL_J2236.3+2828_daily_bin1022.fits outfile=/scratch/kocevski/399814/expmap_504230401_504489601_4FGL_J2236.3+2828_daily_bin1022.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/399814/ltcube_504230401_504489601_4FGL_J2236.3+2828_daily_bin1022.fits
.....................!
real 191.09
user 185.71
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/399814/ft1_filtered_4FGL_J2236.3+2828_daily_bin1022.fits scfile=/scratch/kocevski/399814/ft2_4FGL_J2236.3+2828_daily_bin1022.fits outfile=/scratch/kocevski/399814/cmap_504230401_504489601_4FGL_J2236.3+2828_daily_bin1022.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399814/ft1_filtered_4FGL_J2236.3+2828_daily_bin1022.fits scfile=/scratch/kocevski/399814/ft2_4FGL_J2236.3+2828_daily_bin1022.fits outfile=/scratch/kocevski/399814/cmap_HighResolution_504230401_504489601_4FGL_J2236.3+2828_daily_bin1022.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .82595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
     5 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11565E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12176E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43459E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.424       1.0000         .10000E-03   10000.    
    16 'norm      '    .30045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34383E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6442       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80935       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=   9723.056     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     2515 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2724        .17390E-02** at limit **
   2  norm          .10000E-03    .47568        .10377E-02** at limit **
   3  Prefactor     .64789        45.948        .18723        .11774E-03
   4  Prefactor     11.861        16.138        .11650E-03   -.71432E-04
   5  norm          .10000E-03    12.520        .31916E-02** at limit **
   6  Prefactor     .10000E-03    63.272        .18142E-02** at limit **
   7  Prefactor     .10000E-03    19.931        .43086E-02** at limit **
   8  norm          1.9209        1.1034        .75208E-04   -.36340E-03
   9  Prefactor     .10000E-03    16.614        .18142E-02** at limit **
  10  Prefactor     .10001E-03    76.216        .66923E-02** at limit **
  11  norm          3.3543        1.7794        .92723E-04   -.55419E-04
  12  Prefactor     5.6143        7.0466        .16955E-03    .56591E-04
  13  Prefactor     12.151        11.251        .11480E-03   -.19013E-04
  14  Prefactor     11.149        8.1518        .12003E-03    .15723E-04
  15  Prefactor     10.402        11.370        .12410E-03   -.45804E-05
  16  norm          .30059        1.0977        .18579E-03    .22640E-04
  17  Prefactor     10.069        15.024        .12622E-03    .14411E-04
  18  Prefactor     .10003E-03    12.144        .11285    ** at limit **
  19  norm          .10000E-03    2.5204        .15182E-02** at limit **
  20  Prefactor     .10000E-03    10.588        .18142E-02** at limit **
  21  Normalizat    1.6441        .25046        .32345E-03   -.20289E-03
  22  Prefactor     .80930        .10938        .19671E-03   -.29827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.647885
  Prefactor  = 11.8612
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.92094
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 3.35427
  Prefactor  = 5.6143
  Prefactor  = 12.1513
  Prefactor  = 11.1494
  Prefactor  = 10.4023
  norm       = 0.300586
  Prefactor  = 10.0686
  Prefactor  = 0.000100031
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.64415
  Prefactor  = 0.809298
 **********
 **   18 **HESSE 
 **********

 FCN=   9723.056     FROM HESSE     STATUS=OK           340 CALLS     2855 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2728        .34781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .47612        .20753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .64789        46.059        .18691       -1.5547    
   4  Prefactor     11.861        16.135        .46600E-05   -1.5019    
   5  norm          .10000E-03    12.600        .63832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    63.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.171        .86171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9209        1.1028        .30083E-05   -1.5431    
   9  Prefactor     .10000E-03    16.614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    77.775        .13385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3543        1.7793        .37089E-05   -1.5342    
  12  Prefactor     5.6143        7.0464        .67821E-05   -1.5234    
  13  Prefactor     12.151        11.251        .45921E-05   -1.5011    
  14  Prefactor     11.149        8.1515        .48010E-05   -1.5040    
  15  Prefactor     10.402        11.370        .49640E-05   -1.5063    
  16  norm          .30059        1.0975        .74317E-05   -1.5598    
  17  Prefactor     10.069        15.022        .50488E-05   -1.5073    
  18  Prefactor     .10003E-03    11.982        .11430       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.5213        .30364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6441        .25058        .64691E-04   -.73805    
  22  Prefactor     .80930        .10946        .39342E-04   -.99387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63998e-10
Minuit parameter uncertainties:
  1  1.89103e-06
  2  9.83939e-06
  3  10.9333
  4  16.1412
  5  0.000153826
  6  4.61418e-06
  7  0.000536878
  8  1.10281
  9  2.16062e-06
  10  0.00205931
  11  1.77936
  12  7.04747
  13  11.2526
  14  8.15235
  15  11.3722
  16  1.09755
  17  15.028
  18  0.00122035
  19  1.62609e-06
  20  2.8957e-06
  21  0.250774
  22  0.109487
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.921e+00  1.103e+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.093e-01  1.095e-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.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.90
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.43e-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) = 9722.81978489
delta logL = 0.235845375975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9722.72404276
delta logL = 0.33158750375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2434       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5446       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79958       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=   9722.724     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2406        .82757        .10046E-01    .31647E-03
   2  alpha         1.5423        .38369        .41436       -.80098E-04
   3  Normalizat    1.6897        .20766        .72311E-01    .49268E-04
   4  Prefactor     .79951        .92846E-01    .43712E-01   -.77108E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24058
  alpha      = 1.5423
  Normalizat = 1.68966
  Prefactor  = 0.799513
 **********
 **   18 **HESSE 
 **********

 FCN=   9722.724     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2406        1.3121        .69682E-04   -1.5485    
   2  alpha         1.5423        .69728        .15674E-01   -.39313    
   3  Normalizat    1.6897        .24532        .31992E-03   -.72580    
   4  Prefactor     .79951        .10918        .19780E-03   -.99746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8509e-11
Minuit parameter uncertainties:
  1  1.31218
  2  0.708337
  3  0.245495
  4  0.10921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399814': 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) = 9722.72403759
delta logL = 0.331592669205

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.241e+00  1.312e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.542e+00  7.083e-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.995e-01  1.092e-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.690e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.55
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.54 +/- 0.71
Photon Flux (Free Index): 2.76e-08 +/- 3.37e-08
Energy Flux (Free Index): 3.26e-05 +/- 2.86e-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/399814/cmap_HighResolution_504230401_504489601_4FGL_J2236.3+2828_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='3.26e-05', photon_flux_error='3.54e-08', dlogl='3.32e-01', energy_flux='2.50e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-09-28 17:00:55.895406', photon_index_error2='0.71', photon_index2='1.54', ts='7.90', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.64', time_epoch_completed='1632873655.9', return_code='0', job_id='399814', GAL2='0.80', EG2='1.69', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.37e-08', ts2='8.55', photon_index='2.15' WHERE bin_id='1022' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 399814: <4FGL_J2236.3+2828_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1022 339.096 28.4832 504230401 504489601 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

