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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1475
RA = 339.096, Dec = 28.4832
tmin = 621648001, tmax = 621907201
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='401514', job_status='RUN', time_executed='2021-09-28 16:54:41.134665', time_epoch_executed='1632873281.13' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401514/ft1_4FGL_J2236.3+2828_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401514/ft2_4FGL_J2236.3+2828_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401514/ft1_4FGL_J2236.3+2828_daily_bin1475.fits outfile=/scratch/kocevski/401514/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1475.fits ra=339.096 dec=28.4832 rad=12.0 tmin=621648001.0 tmax=621907201.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.34
user 5.09
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401514/ft1_filtered_4FGL_J2236.3+2828_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/401514/ft2_4FGL_J2236.3+2828_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/401514/ltcube_621648001_621907201_4FGL_J2236.3+2828_daily_bin1475.fits outfile=/scratch/kocevski/401514/expmap_621648001_621907201_4FGL_J2236.3+2828_daily_bin1475.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/401514/ltcube_621648001_621907201_4FGL_J2236.3+2828_daily_bin1475.fits
.....................!
real 193.21
user 186.92
sys 5.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/401514/ft1_filtered_4FGL_J2236.3+2828_daily_bin1475.fits scfile=/scratch/kocevski/401514/ft2_4FGL_J2236.3+2828_daily_bin1475.fits outfile=/scratch/kocevski/401514/cmap_621648001_621907201_4FGL_J2236.3+2828_daily_bin1475.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401514/ft1_filtered_4FGL_J2236.3+2828_daily_bin1475.fits scfile=/scratch/kocevski/401514/ft2_4FGL_J2236.3+2828_daily_bin1475.fits outfile=/scratch/kocevski/401514/cmap_HighResolution_621648001_621907201_4FGL_J2236.3+2828_daily_bin1475.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .33541       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7544       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9850       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1391       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .86323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12394E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    84.483       1.0000         .10000E-03   10000.    
    16 'norm      '    .10631E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.042       1.0000         .10000E-03   10000.    
    19 'norm      '    8.4585       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4082       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .50718       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1322       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=   7649.152     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2097 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2596        .49789E-08** at limit **
   2  norm          .33610        .98365        .15293E-06   -.56226E-04
   3  Prefactor     .10000E-03    43.078        .11521E-05** at limit **
   4  Prefactor     5.7571        16.368       -.63516E-06   -.14165E-05
   5  norm          .10000E-03    1.6622        .16179E-07** at limit **
   6  Prefactor     .10000E-03    48.764       -.11972E-05** at limit **
   7  Prefactor     3.0023        24.485        .60245E-05    .35217E-04
   8  norm          3.1398        1.5598       -.16884E-07   -.11528E-03
   9  Prefactor     .10000E-03    60.954       -.11104E-05** at limit **
  10  Prefactor     .10000E-03    13.054        .99835E-06** at limit **
  11  norm          .86345        1.7350        .40726E-07    .64115E-04
  12  Prefactor     .10002E-03    6.1016       -.13052E-05** at limit **
  13  Prefactor     13.016        26.893        .30671E-05    .24567E-04
  14  Prefactor     .10000E-03    26.281       -.79449E-06** at limit **
  15  Prefactor     84.481        40.963        .65445E-07   -.17756E-05
  16  norm          .10000E-03    .50045       -.15937E-08** at limit **
  17  Prefactor     .10000E-03    13.159       -.94396E-06** at limit **
  18  Prefactor     56.056        36.391       -.86557E-06   -.21329E-04
  19  norm          8.4582        8.1697        .55617E-06    .46550E-04
  20  Prefactor     8.4251        29.067       -.19596E-05   -.17708E-04
  21  Normalizat    .50611        .30307       -.12336E-05    .58435E-04
  22  Prefactor     1.1327        .12784        .12963E-06    .21219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.3361
  Prefactor  = 0.0001
  Prefactor  = 5.75709
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0023
  norm       = 3.1398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.863453
  Prefactor  = 0.000100021
  Prefactor  = 13.0157
  Prefactor  = 0.0001
  Prefactor  = 84.4808
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.0557
  norm       = 8.45817
  Prefactor  = 8.42507
  Normalizat = 0.506114
  Prefactor  = 1.13266
 **********
 **   18 **HESSE 
 **********

 FCN=   7649.152     FROM HESSE     STATUS=OK           344 CALLS     2441 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2622        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33610        .98783        .13949E-03   -1.5592    
   3  Prefactor     .10000E-03    43.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7571        16.301        .16744E-03   -1.5228    
   5  norm          .10000E-03    1.6645        .11012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0023        24.984        .11749E-02   -1.5361    
   8  norm          3.1398        1.5514        .72869E-04   -1.5354    
   9  Prefactor     .10000E-03    61.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .86345        1.5454        .15686E-02   -1.5522    
  12  Prefactor     .10002E-03    27.238        .38686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.016        26.758        .11089E-03   -1.4986    
  14  Prefactor     .10000E-03    26.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     84.481        40.905        .43704E-04   -1.3867    
  16  norm          .10000E-03    .76480        .11958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     56.056        36.313        .53585E-04   -1.4209    
  19  norm          8.4582        8.1204        .13784E-03   -1.5126    
  20  Prefactor     8.4251        28.786        .13825E-03   -1.5127    
  21  Normalizat    .50611        .30930        .53377E-03   -1.1213    
  22  Prefactor     1.1327        .13367        .16443E-03   -.88430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12361e-10
Minuit parameter uncertainties:
  1  1.13981e-07
  2  0.987878
  3  3.06488e-05
  4  16.314
  5  6.85587e-07
  6  5.605e-05
  7  17.3311
  8  1.55138
  9  8.9979e-05
  10  1.96716e-05
  11  1.5455
  12  0.00152417
  13  26.7825
  14  5.18375e-06
  15  40.9186
  16  1.28858e-06
  17  5.26733e-06
  18  36.3277
  19  8.1215
  20  28.8333
  21  0.310357
  22  0.133711
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.140e+00  1.551e+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.133e+00  1.337e-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.061e-01  3.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.67
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 4.98e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 2.02e-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) = 7648.91240121
delta logL = 0.239248583821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7648.9083431
delta logL = 0.243306685453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8204       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4881       1.0000          .0000       5.0000    
     3 'Normalizat'    .47165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1437       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=   7648.908     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8203        25.497        .60546E-02    .32251E-03
   2  alpha         2.4881        3.6203        .33001        .36915E-04
   3  Normalizat    .47165        .13027        .12453        .61133E-04
   4  Prefactor     1.1437        .59564E-01    .36120E-01   -.89658E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82029
  alpha      = 2.48815
  Normalizat = 0.471648
  Prefactor  = 1.14372
 **********
 **   18 **HESSE 
 **********

 FCN=   7648.908     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8203        1.5998        .66447E-04   -1.5372    
   2  alpha         2.4881        .52171        .13229E-01   -.47420E-02
   3  Normalizat    .47165        .28828        .55208E-03   -1.1375    
   4  Prefactor     1.1437        .12858        .16372E-03   -.88081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64393e-10
Minuit parameter uncertainties:
  1  1.59985
  2  0.525575
  3  0.289197
  4  0.128617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401514': 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) = 7648.90834303
delta logL = 0.243306760333

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.820e+00  1.600e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.488e+00  5.256e-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.144e+00  1.286e-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:  4.716e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.29
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.49 +/- 0.53
Photon Flux (Free Index): 1.25e-07 +/- 6.66e-08
Energy Flux (Free Index): 3.57e-05 +/- 1.84e-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/401514/cmap_HighResolution_621648001_621907201_4FGL_J2236.3+2828_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='3.57e-05', photon_flux_error='4.98e-08', dlogl='2.43e-01', energy_flux='4.08e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-28 17:05:00.079415', photon_index_error2='0.53', photon_index2='2.49', ts='7.67', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='0.51', time_epoch_completed='1632873900.08', return_code='0', job_id='401514', GAL2='1.14', EG2='0.47', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='6.66e-08', ts2='8.29', photon_index='2.15' WHERE bin_id='1475' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:05:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 401514: <4FGL_J2236.3+2828_daily_bin1475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1475 339.096 28.4832 621648001 621907201 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 :                                   599.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

