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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1079
RA = 339.096, Dec = 28.4832
tmin = 519004801, tmax = 519264001
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='399900', job_status='RUN', time_executed='2021-09-28 16:47:59.486539', time_epoch_executed='1632872879.49' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399900/ft1_4FGL_J2236.3+2828_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399900/ft2_4FGL_J2236.3+2828_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399900/ft1_4FGL_J2236.3+2828_daily_bin1079.fits outfile=/scratch/kocevski/399900/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1079.fits ra=339.096 dec=28.4832 rad=12.0 tmin=519004801.0 tmax=519264001.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.55
user 3.35
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399900/ft2_4FGL_J2236.3+2828_daily_bin1079.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/399900/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1079.fits evtable="EVENTS" outfile="/scratch/kocevski/399900/ft1_filtered_4FGL_J2236.3+2828_daily_bin1079.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/399900/ft1_filtered_4FGL_J2236.3+2828_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/399900/ft2_4FGL_J2236.3+2828_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/399900/ltcube_519004801_519264001_4FGL_J2236.3+2828_daily_bin1079.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/399900/ft2_4FGL_J2236.3+2828_daily_bin1079.fits
.....................!
real 11.70
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399900/ft1_filtered_4FGL_J2236.3+2828_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/399900/ft2_4FGL_J2236.3+2828_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/399900/ltcube_519004801_519264001_4FGL_J2236.3+2828_daily_bin1079.fits outfile=/scratch/kocevski/399900/expmap_519004801_519264001_4FGL_J2236.3+2828_daily_bin1079.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/399900/ltcube_519004801_519264001_4FGL_J2236.3+2828_daily_bin1079.fits
.....................!
real 191.55
user 186.11
sys 5.04

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/399900/ft1_filtered_4FGL_J2236.3+2828_daily_bin1079.fits scfile=/scratch/kocevski/399900/ft2_4FGL_J2236.3+2828_daily_bin1079.fits outfile=/scratch/kocevski/399900/cmap_519004801_519264001_4FGL_J2236.3+2828_daily_bin1079.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399900/ft1_filtered_4FGL_J2236.3+2828_daily_bin1079.fits scfile=/scratch/kocevski/399900/ft2_4FGL_J2236.3+2828_daily_bin1079.fits outfile=/scratch/kocevski/399900/cmap_HighResolution_519004801_519264001_4FGL_J2236.3+2828_daily_bin1079.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8192       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .30837       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.430       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0320       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4870       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1786       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.271       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7071       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51350       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2002       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=   9776.342     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2034 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8175        6.7275        .37775E-06    .13432E-04
   2  norm          .10000E-03    .25023        .37180E-07** at limit **
   3  Prefactor     .10000E-03    39.028       -.85302E-06** at limit **
   4  Prefactor     .10000E-03    7.9982        .29538E-06** at limit **
   5  norm          .30257        3.8455       -.73459E-06    .22459E-05
   6  Prefactor     .10000E-03    43.416        .60714E-06** at limit **
   7  Prefactor     24.432        14.095        .27136E-06   -.52312E-04
   8  norm          2.0317        1.0509       -.51319E-08   -.91494E-03
   9  Prefactor     .10000E-03    29.733       -.99264E-06** at limit **
  10  Prefactor     .10000E-03    24.435        .73625E-06** at limit **
  11  norm          2.4864        1.4376        .26827E-07    .90251E-04
  12  Prefactor     .10000E-03    10.304        .72365E-08** at limit **
  13  Prefactor     .10000E-03    5.4904        .29727E-07** at limit **
  14  Prefactor     .10000E-03    2.7697       -.30605E-07** at limit **
  15  Prefactor     .10000E-03    7.5475       -.18640E-06** at limit **
  16  norm          2.1786        1.2480       -.49000E-07    .66973E-04
  17  Prefactor     3.3110        22.133        .26331E-05   -.62799E-04
  18  Prefactor     17.278        18.662       -.75700E-06    .10448E-04
  19  norm          3.7072        4.9173        .32916E-05   -.29269E-05
  20  Prefactor     .10000E-03    4.3504        .76610E-07** at limit **
  21  Normalizat    .51355        .22581       -.19287E-05   -.15002E-03
  22  Prefactor     1.2002        .10407        .51193E-08   -.24778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81747
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.302567
  Prefactor  = 0.0001
  Prefactor  = 24.4321
  norm       = 2.03166
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.4864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17856
  Prefactor  = 3.311
  Prefactor  = 17.2783
  norm       = 3.70725
  Prefactor  = 0.0001
  Normalizat = 0.513552
  Prefactor  = 1.20017
 **********
 **   18 **HESSE 
 **********

 FCN=   9776.342     FROM HESSE     STATUS=OK           342 CALLS     2376 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8175        6.7205        .24224E-03   -1.5372    
   2  norm          .10000E-03    .25914        .96482E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30257        20.736        .36556E-02   -1.5598    
   6  Prefactor     .10000E-03    43.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.432        14.002        .81044E-04   -1.4719    
   8  norm          2.0317        1.0500        .14510E-03   -1.5423    
   9  Prefactor     .10000E-03    29.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4864        1.4356        .87837E-04   -1.5393    
  12  Prefactor     .10000E-03    10.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7813        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1786        1.2448        .79859E-04   -1.5413    
  17  Prefactor     3.3110        22.228        .22038E-03   -1.5344    
  18  Prefactor     17.278        18.658        .96373E-04   -1.4876    
  19  norm          3.7072        4.9328        .10487E-02   -1.5323    
  20  Prefactor     .10000E-03    4.3599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .51355        .23320        .49130E-03   -1.1179    
  22  Prefactor     1.2002        .10910        .15980E-03   -.86326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36333e-10
Minuit parameter uncertainties:
  1  6.72226
  2  1.23544e-06
  3  0.000274984
  4  2.71448e-05
  5  5.01062
  6  0.000103318
  7  14.0037
  8  1.04997
  9  0.000219283
  10  0.000230287
  11  1.43564
  12  5.12169e-05
  13  3.63233e-06
  14  2.47158e-06
  15  2.56702e-05
  16  1.24484
  17  17.1667
  18  18.6647
  19  4.93329
  20  3.04929e-06
  21  0.233648
  22  0.109119
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.032e+00  1.050e+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.200e+00  1.091e-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.136e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.94
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.52e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.37e-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) = 9776.11359802
delta logL = 0.228437355565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9776.10625182
delta logL = 0.235783560063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0264       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8488       1.0000          .0000       5.0000    
     3 'Normalizat'    .53301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1946       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=   9776.106     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0251        1.2643        .72663E-03    .14300E-03
   2  alpha         1.8488        .42775        .36879       -.26501E-04
   3  Normalizat    .53295        .21201        .10887        .13180E-03
   4  Prefactor     1.1946        .10205        .34759E-01    .19368E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02511
  alpha      = 1.84879
  Normalizat = 0.532948
  Prefactor  = 1.19464
 **********
 **   18 **HESSE 
 **********

 FCN=   9776.106     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0251        1.0914        .29065E-04   -1.5423    
   2  alpha         1.8488        .41841        .14294E-01   -.26352    
   3  Normalizat    .53295        .22232        .48260E-03   -1.1091    
   4  Prefactor     1.1946        .10734        .16011E-03   -.86496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82789e-10
Minuit parameter uncertainties:
  1  1.09138
  2  0.420531
  3  0.222695
  4  0.107357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399900': 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) = 9776.10625101
delta logL = 0.235784370907

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.025e+00  1.091e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.849e+00  4.205e-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.195e+00  1.074e-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.329e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.35
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.85 +/- 0.42
Photon Flux (Free Index): 5.20e-08 +/- 3.37e-08
Energy Flux (Free Index): 3.30e-05 +/- 2.11e-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/399900/cmap_HighResolution_519004801_519264001_4FGL_J2236.3+2828_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.52e-08', energy_flux2='3.30e-05', photon_flux_error='3.37e-08', dlogl='2.36e-01', energy_flux='2.64e-05', photon_flux2='5.20e-08', job_status='DONE', time_completed='2021-09-28 16:59:14.522789', photon_index_error2='0.42', photon_index2='1.85', ts='6.94', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='0.51', time_epoch_completed='1632873554.52', return_code='0', job_id='399900', GAL2='1.19', EG2='0.53', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.37e-08', ts2='7.35', photon_index='2.15' WHERE bin_id='1079' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 399900: <4FGL_J2236.3+2828_daily_bin1079> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1079 339.096 28.4832 519004801 519264001 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 :                                   672.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

