/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin928
RA = 339.096, Dec = 28.4832
tmin = 479865601, tmax = 480124801
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='399678', job_status='RUN', time_executed='2021-09-28 16:45:52.487593', time_epoch_executed='1632872752.49' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399678/ft1_4FGL_J2236.3+2828_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399678/ft2_4FGL_J2236.3+2828_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399678/ft1_4FGL_J2236.3+2828_daily_bin928.fits outfile=/scratch/kocevski/399678/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin928.fits ra=339.096 dec=28.4832 rad=12.0 tmin=479865601.0 tmax=480124801.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.44
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399678/ft1_filtered_4FGL_J2236.3+2828_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/399678/ft2_4FGL_J2236.3+2828_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/399678/ltcube_479865601_480124801_4FGL_J2236.3+2828_daily_bin928.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/399678/ft2_4FGL_J2236.3+2828_daily_bin928.fits
.....................!
real 11.76
user 11.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399678/ft1_filtered_4FGL_J2236.3+2828_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/399678/ft2_4FGL_J2236.3+2828_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/399678/ltcube_479865601_480124801_4FGL_J2236.3+2828_daily_bin928.fits outfile=/scratch/kocevski/399678/expmap_479865601_480124801_4FGL_J2236.3+2828_daily_bin928.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/399678/ltcube_479865601_480124801_4FGL_J2236.3+2828_daily_bin928.fits
.....................!
real 191.56
user 185.51
sys 5.70

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/399678/ft1_filtered_4FGL_J2236.3+2828_daily_bin928.fits scfile=/scratch/kocevski/399678/ft2_4FGL_J2236.3+2828_daily_bin928.fits outfile=/scratch/kocevski/399678/cmap_479865601_480124801_4FGL_J2236.3+2828_daily_bin928.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399678/ft1_filtered_4FGL_J2236.3+2828_daily_bin928.fits scfile=/scratch/kocevski/399678/ft2_4FGL_J2236.3+2828_daily_bin928.fits outfile=/scratch/kocevski/399678/cmap_HighResolution_479865601_480124801_4FGL_J2236.3+2828_daily_bin928.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0481       1.0000         .10000E-03   10000.    
     2 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0649       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.423       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.870       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.792       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.586       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      '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14437E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.930       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1808       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88497       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=   10244.89     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2512 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0478        7.8968        .21986E-06   -.79772E-05
   2  norm          .10000E-03    .33192        .24973E-07** at limit **
   3  Prefactor     .10000E-03    12.822       -.69671E-07** at limit **
   4  Prefactor     2.0645        35.503        .20079E-05   -.10691E-04
   5  norm          .10000E-03    1.7201       -.11442E-07** at limit **
   6  Prefactor     52.477        98.554        .51878E-05    .46186E-04
   7  Prefactor     26.875        16.605        .26351E-06   -.96457E-05
   8  norm          1.8995        1.3993        .76682E-07   -.97793E-04
   9  Prefactor     .10000E-03    26.212        .13343E-06** at limit **
  10  Prefactor     42.795        32.186        .25241E-06   -.56621E-05
  11  norm          3.8753        1.8614       -.41336E-07   -.73795E-05
  12  Prefactor     12.068        10.980        .88802E-06   -.26134E-04
  13  Prefactor     12.583        22.048       -.24324E-06   -.20960E-04
  14  Prefactor     .10000E-03    8.5180       -.92651E-07** at limit **
  15  Prefactor     .10000E-03    15.720       -.17688E-06** at limit **
  16  norm          .10000E-03    .73623        .11335E-06** at limit **
  17  Prefactor     16.215        23.605        .67970E-06   -.18320E-04
  18  Prefactor     .10000E-03    12.465        .29646E-06** at limit **
  19  norm          .10001E-03    3.5047        .12713E-05** at limit **
  20  Prefactor     36.942        21.226       -.13886E-05   -.36054E-03
  21  Normalizat    1.1805        .24233       -.28009E-05   -.88382E-04
  22  Prefactor     .88509        .95381E-01    .68568E-06   -.48952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.04782
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06448
  norm       = 0.0001
  Prefactor  = 52.4765
  Prefactor  = 26.8746
  norm       = 1.89947
  Prefactor  = 0.0001
  Prefactor  = 42.7952
  norm       = 3.87534
  Prefactor  = 12.068
  Prefactor  = 12.5828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2147
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 36.9418
  Normalizat = 1.18054
  Prefactor  = 0.88509
 **********
 **   18 **HESSE 
 **********

 FCN=   10244.89     FROM HESSE     STATUS=OK           346 CALLS     2858 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0478        7.8340        .15111E-03   -1.5177    
   2  norm          .10000E-03    4.2073        .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0645        35.157        .28753E-03   -1.5421    
   5  norm          .10000E-03    1.7312        .12962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.477        99.641        .55394E-04   -1.4258    
   7  Prefactor     26.875        16.658        .77284E-04   -1.4671    
   8  norm          1.8995        1.3881        .88780E-04   -1.5432    
   9  Prefactor     .10000E-03    26.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.795        32.035        .61283E-04   -1.4399    
  11  norm          3.8753        1.8610        .91704E-04   -1.5314    
  12  Prefactor     12.068        10.911        .57660E-03   -1.5013    
  13  Prefactor     12.583        22.079        .11291E-03   -1.4998    
  14  Prefactor     .10000E-03    8.5652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5014        .16795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.215        23.619        .99471E-04   -1.4902    
  18  Prefactor     .10000E-03    12.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    15.584        .32707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.942        21.400        .65950E-04   -1.4492    
  21  Normalizat    1.1805        .27185        .37804E-03   -.87206    
  22  Prefactor     .88509        .10995        .18561E-03   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19535e-09
Minuit parameter uncertainties:
  1  7.83514
  2  3.05266e-05
  3  1.34392e-06
  4  17.0503
  5  8.35008e-07
  6  99.9592
  7  16.6613
  8  1.38816
  9  2.28654e-05
  10  32.0478
  11  1.86108
  12  10.9123
  13  22.0937
  14  5.6625e-06
  15  3.51262e-07
  16  1.57137e-05
  17  23.6329
  18  1.90543e-05
  19  0.000917899
  20  21.4048
  21  0.272179
  22  0.109974
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.899e+00  1.388e+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.851e-01  1.100e-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.181e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.54
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.09e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.81e-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) = 10243.3717291
delta logL = 1.52048617359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10243.365062
delta logL = 1.52715332031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7331       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2992       1.0000          .0000       5.0000    
     3 'Normalizat'    .99473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93535       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=   10243.37     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7331        7.5428        .79708E-02    .38915E-02
   2  alpha         3.2993        4.0247        .31907        .82789E-04
   3  Normalizat    .99472        .82037E-01    .91911E-01    .40478E-03
   4  Prefactor     .93533        .32320E-01    .45454E-01    .88813E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73306
  alpha      = 3.29927
  Normalizat = 0.994717
  Prefactor  = 0.935333
 **********
 **   18 **HESSE 
 **********

 FCN=   10243.37     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7331        1.3486        .49286E-04   -1.5445    
   2  alpha         3.2993        .71512        .12927E-01    .32542    
   3  Normalizat    .99472        .27095        .40705E-03   -.93208    
   4  Prefactor     .93533        .11238        .18098E-03   -.94917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08966e-09
Minuit parameter uncertainties:
  1  1.34863
  2  0.72645
  3  0.271325
  4  0.112405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399678': 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) = 10243.3650619
delta logL = 1.52715341429

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.733e+00  1.349e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  3.299e+00  7.265e-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:  9.353e-01  1.124e-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:  9.947e-01  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.58
Ra Dec: 339.096 28.483
Photon Index (Free Index): 3.30 +/- 0.73
Photon Flux (Free Index): 1.99e-07 +/- 9.62e-08
Energy Flux (Free Index): 3.67e-05 +/- 1.49e-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/399678/cmap_HighResolution_479865601_480124801_4FGL_J2236.3+2828_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.09e-08', energy_flux2='3.67e-05', photon_flux_error='4.45e-08', dlogl='1.53e+00', energy_flux='2.47e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-09-28 16:58:25.140996', photon_index_error2='0.73', photon_index2='3.30', ts='6.54', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.18', time_epoch_completed='1632873505.14', return_code='0', job_id='399678', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='9.62e-08', ts2='10.58', photon_index='2.15' WHERE bin_id='928' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:58:25 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin928 339.096 28.4832 479865601 480124801 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

