/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 183 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 = 7413
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin32
RA = 339.096, Dec = 28.4832
tmin = 247622401, tmax = 247881601
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='395151', job_status='RUN', time_executed='2021-09-28 16:34:08.553473', time_epoch_executed='1632872048.55' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395151/ft1_4FGL_J2236.3+2828_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395151/ft2_4FGL_J2236.3+2828_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395151/ft1_4FGL_J2236.3+2828_daily_bin32.fits outfile=/scratch/kocevski/395151/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin32.fits ra=339.096 dec=28.4832 rad=12.0 tmin=247622401.0 tmax=247881601.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 1.42
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395151/ft1_filtered_4FGL_J2236.3+2828_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/395151/ft2_4FGL_J2236.3+2828_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/395151/ltcube_247622401_247881601_4FGL_J2236.3+2828_daily_bin32.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/395151/ft2_4FGL_J2236.3+2828_daily_bin32.fits
.....................!
real 15.73
user 15.23
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395151/ft1_filtered_4FGL_J2236.3+2828_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/395151/ft2_4FGL_J2236.3+2828_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/395151/ltcube_247622401_247881601_4FGL_J2236.3+2828_daily_bin32.fits outfile=/scratch/kocevski/395151/expmap_247622401_247881601_4FGL_J2236.3+2828_daily_bin32.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/395151/ltcube_247622401_247881601_4FGL_J2236.3+2828_daily_bin32.fits
.....................!
real 191.83
user 186.66
sys 4.75

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/395151/ft1_filtered_4FGL_J2236.3+2828_daily_bin32.fits scfile=/scratch/kocevski/395151/ft2_4FGL_J2236.3+2828_daily_bin32.fits outfile=/scratch/kocevski/395151/cmap_247622401_247881601_4FGL_J2236.3+2828_daily_bin32.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
     2 'norm      '    .53479       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23465E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.086       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6193       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12149E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49438E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3120       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0386       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9156       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15667E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33776E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.927       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17996E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .41728       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1196       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=   8113.150     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2034 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.226        9.6870        .26424E-06    .99102E-04
   2  norm          .53517        .81501       -.35198E-06    .12187E-03
   3  Prefactor     .10000E-03    40.837       -.34242E-05** at limit **
   4  Prefactor     12.128        14.958       -.17927E-05    .20939E-03
   5  norm          3.6194        4.5483       -.21453E-06    .58335E-04
   6  Prefactor     .10000E-03    45.794       -.10582E-05** at limit **
   7  Prefactor     .10000E-03    11.977        .11785E-05** at limit **
   8  norm          3.8798        1.3343       -.15444E-07    .40987E-04
   9  Prefactor     .10000E-03    22.960        .21886E-06** at limit **
  10  Prefactor     .10000E-03    8.5304       -.37171E-07** at limit **
  11  norm          2.0442        1.9796       -.34415E-07    .27433E-03
  12  Prefactor     2.3762        13.437       -.21761E-05   -.64603E-05
  13  Prefactor     21.304        17.936        .16796E-06    .16171E-04
  14  Prefactor     .10000E-03    2.7682       -.10124E-07** at limit **
  15  Prefactor     1.2370        94.565        .13737E-04   -.35696E-04
  16  norm          3.9147        1.7301        .13073E-08   -.56108E-04
  17  Prefactor     .10000E-03    14.047       -.23310E-05** at limit **
  18  Prefactor     .10000E-03    40.694       -.34160E-06** at limit **
  19  norm          13.931        6.4823       -.47082E-07   -.24704E-03
  20  Prefactor     .10000E-03    17.006        .13611E-05** at limit **
  21  Normalizat    .41711        .25321        .26682E-05    .10709E-03
  22  Prefactor     1.1195        .11890       -.39180E-06    .69744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2262
  norm       = 0.535167
  Prefactor  = 0.000100003
  Prefactor  = 12.1283
  norm       = 3.61935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.87975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04423
  Prefactor  = 2.37616
  Prefactor  = 21.3041
  Prefactor  = 0.0001
  Prefactor  = 1.23701
  norm       = 3.91471
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 13.9308
  Prefactor  = 0.0001
  Normalizat = 0.417109
  Prefactor  = 1.11951
 **********
 **   18 **HESSE 
 **********

 FCN=   8113.150     FROM HESSE     STATUS=OK           348 CALLS     2382 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.226        9.6653        .12524E-03   -1.5068    
   2  norm          .53517        .80324        .95978E-04   -1.5562    
   3  Prefactor     .10000E-03    41.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.128        14.992        .57614E-03   -1.5011    
   5  norm          3.6194        4.5386        .20873E-03   -1.5327    
   6  Prefactor     .10000E-03    45.893        .20629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8798        1.3285        .58075E-04   -1.5314    
   9  Prefactor     .10000E-03    22.965        .21163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0442        1.9507        .11663E-03   -1.5422    
  12  Prefactor     2.3762        13.152        .26982E-03   -1.5400    
  13  Prefactor     21.304        17.955        .86782E-04   -1.4785    
  14  Prefactor     .10000E-03    2.7713        .14635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2370        94.044        .77233E-02   -1.5486    
  16  norm          3.9147        1.7161        .74051E-04   -1.5312    
  17  Prefactor     .10000E-03    14.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    41.419        .21339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.931        6.4783        .10733E-03   -1.4961    
  20  Prefactor     .10000E-03    17.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .41711        .25009        .53148E-03   -1.1643    
  22  Prefactor     1.1195        .11972        .16070E-03   -.88846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80751e-08
Minuit parameter uncertainties:
  1  9.66679
  2  0.803258
  3  0.000686003
  4  14.9966
  5  4.53904
  6  0.000237706
  7  6.50095e-05
  8  1.32847
  9  2.63993e-05
  10  8.4283e-06
  11  1.95075
  12  11.1839
  13  17.9598
  14  3.94783e-07
  15  21.606
  16  1.71608
  17  0.000236139
  18  0.000115469
  19  6.47865
  20  0.000168049
  21  0.250759
  22  0.119745
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.880e+00  1.328e+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.120e+00  1.197e-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.171e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.57
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.26e-08
Energy Flux (Fixed Index): 5.05e-05 +/- 1.73e-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) = 8112.54323858
delta logL = 0.606743415454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8112.52202667
delta logL = 0.627955330715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5369       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7498       1.0000          .0000       5.0000    
     3 'Normalizat'    .46782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1075       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=   8112.522     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5367        1.3188        .53734E-02    .21887E-03
   2  alpha         1.7498        .29542        .26005       -.36681E-04
   3  Normalizat    .46783        .23544        .11350        .75285E-04
   4  Prefactor     1.1075        .11222        .37310E-01   -.11368E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53665
  alpha      = 1.74981
  Normalizat = 0.467834
  Prefactor  = 1.10745
 **********
 **   18 **HESSE 
 **********

 FCN=   8112.522     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5367        1.5053        .60876E-04   -1.5332    
   2  alpha         1.7498        .35903        .10735E-01   -.30477    
   3  Normalizat    .46783        .24482        .50310E-03   -1.1393    
   4  Prefactor     1.1075        .11671        .16153E-03   -.89229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60378e-12
Minuit parameter uncertainties:
  1  1.50532
  2  0.360402
  3  0.245382
  4  0.116736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395151': 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) = 8112.52202665
delta logL = 0.627955352531

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.537e+00  1.505e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.750e+00  3.604e-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.107e+00  1.167e-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.678e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.72
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.75 +/- 0.36
Photon Flux (Free Index): 8.58e-08 +/- 4.67e-08
Energy Flux (Free Index): 6.53e-05 +/- 3.12e-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/395151/cmap_HighResolution_247622401_247881601_4FGL_J2236.3+2828_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='6.53e-05', photon_flux_error='4.26e-08', dlogl='6.28e-01', energy_flux='5.05e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-28 16:44:15.661311', photon_index_error2='0.36', photon_index2='1.75', ts='27.57', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='3.12e-05', EG='0.42', time_epoch_completed='1632872655.66', return_code='0', job_id='395151', GAL2='1.11', EG2='0.47', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='4.67e-08', ts2='28.72', photon_index='2.15' WHERE bin_id='32' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:44:15 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin32 339.096 28.4832 247622401 247881601 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 :                                   606.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

