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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1360
RA = 339.096, Dec = 28.4832
tmin = 591840001, tmax = 592099201
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='401348', job_status='RUN', time_executed='2021-09-28 16:53:35.553987', time_epoch_executed='1632873215.55' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401348

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401348/ft1_4FGL_J2236.3+2828_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401348/ft2_4FGL_J2236.3+2828_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401348/ft1_4FGL_J2236.3+2828_daily_bin1360.fits outfile=/scratch/kocevski/401348/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1360.fits ra=339.096 dec=28.4832 rad=12.0 tmin=591840001.0 tmax=592099201.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.22
user 4.99
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401348/ft1_filtered_4FGL_J2236.3+2828_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/401348/ft2_4FGL_J2236.3+2828_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/401348/ltcube_591840001_592099201_4FGL_J2236.3+2828_daily_bin1360.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/401348/ft2_4FGL_J2236.3+2828_daily_bin1360.fits
.....................!
real 13.30
user 12.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401348/ft1_filtered_4FGL_J2236.3+2828_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/401348/ft2_4FGL_J2236.3+2828_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/401348/ltcube_591840001_592099201_4FGL_J2236.3+2828_daily_bin1360.fits outfile=/scratch/kocevski/401348/expmap_591840001_592099201_4FGL_J2236.3+2828_daily_bin1360.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/401348/ltcube_591840001_592099201_4FGL_J2236.3+2828_daily_bin1360.fits
.....................!
real 189.54
user 185.15
sys 4.05

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1337       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1784       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6473       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6725       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.8014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .57835       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.779       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.880       1.0000         .10000E-03   10000.    
    19 'norm      '    9.3282       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14396E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3622       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93420       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=   10337.19     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2409 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5572       -.51623E-07** at limit **
   2  norm          1.1338        .79711       -.94947E-07   -.92121E-03
   3  Prefactor     3.0546        61.090       -.10677E-04   -.26172E-04
   4  Prefactor     6.6477        11.053       -.51632E-06   -.69677E-04
   5  norm          4.6723        3.8980       -.28299E-07    .30881E-04
   6  Prefactor     .10000E-03    48.298        .22529E-04** at limit **
   7  Prefactor     .10000E-03    5.1455        .84688E-09** at limit **
   8  norm          8.8014        1.7732       -.70150E-07   -.10009E-02
   9  Prefactor     .10000E-03    37.493       -.14518E-04** at limit **
  10  Prefactor     .10000E-03    34.045        .15764E-04** at limit **
  11  norm          .58009        1.2327       -.34337E-06   -.22648E-02
  12  Prefactor     42.775        14.008       -.66932E-07    .57222E-04
  13  Prefactor     .10000E-03    10.241       -.20599E-05** at limit **
  14  Prefactor     2.8117        6.9519       -.88631E-06   -.33680E-03
  15  Prefactor     .10000E-03    10.152        .20076E-05** at limit **
  16  norm          .10000E-03    .60098       -.23325E-07** at limit **
  17  Prefactor     27.751        22.149        .13553E-06    .34862E-04
  18  Prefactor     73.868        38.097       -.53361E-05    .14247E-03
  19  norm          9.3252        5.1471        .37729E-06    .54762E-03
  20  Prefactor     .10000E-03    40.544       -.19645E-04** at limit **
  21  Normalizat    1.3619        .22353        .10781E-05    .73092E-04
  22  Prefactor     .93436        .98532E-01    .26001E-06    .15905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.13375
  Prefactor  = 3.05457
  Prefactor  = 6.64772
  norm       = 4.67234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.80138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.580087
  Prefactor  = 42.7753
  Prefactor  = 0.0001
  Prefactor  = 2.81165
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.7512
  Prefactor  = 73.8679
  norm       = 9.32519
  Prefactor  = 0.000100002
  Normalizat = 1.36187
  Prefactor  = 0.934355
 **********
 **   18 **HESSE 
 **********

 FCN=   10337.19     FROM HESSE     STATUS=OK           344 CALLS     2753 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1338        .77989        .73153E-04   -1.5495    
   3  Prefactor     3.0546        61.637        .22731E-03   -1.5358    
   4  Prefactor     6.6477        11.061        .15564E-03   -1.5192    
   5  norm          4.6723        3.9002        .17860E-03   -1.5276    
   6  Prefactor     .10000E-03    48.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.8014        1.7798        .57836E-04   -1.5115    
   9  Prefactor     .10000E-03    37.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .58009        .93312        .15969E-02   -1.5556    
  12  Prefactor     42.775        13.846        .61292E-04   -1.4399    
  13  Prefactor     .10000E-03    10.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8117        6.9604        .24259E-03   -1.5373    
  15  Prefactor     .10000E-03    10.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1506        .15207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.751        22.186        .76052E-04   -1.4654    
  18  Prefactor     73.868        37.901        .46711E-04   -1.3987    
  19  norm          9.3252        5.1405        .13122E-03   -1.5097    
  20  Prefactor     .10000E-03    40.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3619        .26216        .36691E-03   -.81738    
  22  Prefactor     .93436        .11615        .19694E-03   -.94951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14062e-09
Minuit parameter uncertainties:
  1  6.93152e-06
  2  0.779894
  3  27.4746
  4  11.0647
  5  3.90041
  6  1.9787e-05
  7  3.84894e-06
  8  1.7798
  9  9.7113e-06
  10  0.00020037
  11  0.933147
  12  13.847
  13  4.95158e-06
  14  6.96242
  15  4.63761e-06
  16  2.42827e-06
  17  22.1922
  18  37.913
  19  5.14077
  20  0.000507974
  21  0.262414
  22  0.116182
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.801e+00  1.780e+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:  9.344e-01  1.162e-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.362e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 84.51
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.82e-07 +/- 5.71e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 2.31e-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) = 10336.9521106
delta logL = 0.237057439976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10336.9195576
delta logL = 0.269610496976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4962       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3075       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94815       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=   10336.92     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4970        4.2386        .34382E-02    .31970E-04
   2  alpha         2.3078        .50968        .17658        .57635E-04
   3  Normalizat    1.3142        .22845        .84046E-01    .20150E-04
   4  Prefactor     .94790        .10050        .45616E-01    .10712E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.49703
  alpha      = 2.30775
  Normalizat = 1.31421
  Prefactor  = 0.9479
 **********
 **   18 **HESSE 
 **********

 FCN=   10336.92     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4970        1.7773        .54649E-04   -1.5125    
   2  alpha         2.3078        .22277        .75308E-02   -.76975E-01
   3  Normalizat    1.3142        .26288        .37210E-03   -.83143    
   4  Prefactor     .94790        .11685        .19563E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68598e-10
Minuit parameter uncertainties:
  1  1.77733
  2  0.223069
  3  0.263152
  4  0.116885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401348': 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) = 10336.9195533
delta logL = 0.269614793959

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.497e+00  1.777e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.308e+00  2.231e-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.479e-01  1.169e-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.314e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 85.11
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.31 +/- 0.22
Photon Flux (Free Index): 3.16e-07 +/- 7.47e-08
Energy Flux (Free Index): 1.06e-04 +/- 2.31e-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/401348/cmap_HighResolution_591840001_592099201_4FGL_J2236.3+2828_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.82e-07', energy_flux2='1.06e-04', photon_flux_error='5.71e-08', dlogl='2.70e-01', energy_flux='1.14e-04', photon_flux2='3.16e-07', job_status='DONE', time_completed='2021-09-28 17:06:12.123634', photon_index_error2='0.22', photon_index2='2.31', ts='84.51', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='1.36', time_epoch_completed='1632873972.12', return_code='0', job_id='401348', GAL2='0.95', EG2='1.31', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='7.47e-08', ts2='85.11', photon_index='2.15' WHERE bin_id='1360' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:06:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 401348: <4FGL_J2236.3+2828_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1360 339.096 28.4832 591840001 592099201 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 :                                   753.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

