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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1268
RA = 339.096, Dec = 28.4832
tmin = 567993601, tmax = 568252801
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='401215', job_status='RUN', time_executed='2021-09-28 16:50:43.686999', time_epoch_executed='1632873043.69' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401215/ft1_4FGL_J2236.3+2828_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401215/ft2_4FGL_J2236.3+2828_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401215/ft1_4FGL_J2236.3+2828_daily_bin1268.fits outfile=/scratch/kocevski/401215/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1268.fits ra=339.096 dec=28.4832 rad=12.0 tmin=567993601.0 tmax=568252801.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 2.38
user 2.15
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401215/ft1_filtered_4FGL_J2236.3+2828_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/401215/ft2_4FGL_J2236.3+2828_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/401215/ltcube_567993601_568252801_4FGL_J2236.3+2828_daily_bin1268.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/401215/ft2_4FGL_J2236.3+2828_daily_bin1268.fits
.....................!
real 12.46
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401215/ft1_filtered_4FGL_J2236.3+2828_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/401215/ft2_4FGL_J2236.3+2828_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/401215/ltcube_567993601_568252801_4FGL_J2236.3+2828_daily_bin1268.fits outfile=/scratch/kocevski/401215/expmap_567993601_568252801_4FGL_J2236.3+2828_daily_bin1268.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/401215/ltcube_567993601_568252801_4FGL_J2236.3+2828_daily_bin1268.fits
.....................!
real 190.81
user 185.38
sys 5.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/401215/ft1_filtered_4FGL_J2236.3+2828_daily_bin1268.fits scfile=/scratch/kocevski/401215/ft2_4FGL_J2236.3+2828_daily_bin1268.fits outfile=/scratch/kocevski/401215/cmap_567993601_568252801_4FGL_J2236.3+2828_daily_bin1268.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3503       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7933       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11094E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2629       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8707       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8427       1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.517       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5655       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .65401E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2254       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .58686       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0413       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=   15126.59     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2036 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8440       -.30160E-07** at limit **
   2  norm          1.4374        .65325        .52962E-07    .58629E-04
   3  Prefactor     56.149        34.587        .12463E-05    .48014E-03
   4  Prefactor     3.3515        4.5169        .71884E-07   -.18204E-04
   5  norm          4.7932        2.9028        .38347E-07   -.29729E-04
   6  Prefactor     .10001E-03    568.60       -.65759E-05** at limit **
   7  Prefactor     3.2642        6.5039        .93540E-06    .18277E-03
   8  norm          1.8709        .77994        .20967E-07    .11523E-03
   9  Prefactor     .10000E-03    15.402        .33018E-06** at limit **
  10  Prefactor     .10000E-03    4.1020       -.94414E-08** at limit **
  11  norm          1.8426        1.1097        .23291E-08    .16196E-04
  12  Prefactor     57.517        11.064        .19841E-07   -.86706E-04
  13  Prefactor     .10000E-03    13.221       -.17924E-06** at limit **
  14  Prefactor     10.674        6.7760        .66772E-07   -.57700E-05
  15  Prefactor     2.5638        51.388        .11983E-05    .13922E-04
  16  norm          1.7808        1.0659        .13019E-06   -.35173E-03
  17  Prefactor     .10000E-03    17.212       -.50345E-06** at limit **
  18  Prefactor     .10000E-03    9.5974       -.21496E-06** at limit **
  19  norm          .57923E-01    1.3606       -.15009E-06   -.10931E-02
  20  Prefactor     6.2689        11.036        .52349E-05   -.27202E-03
  21  Normalizat    .58672        .16368       -.14101E-05    .15647E-06
  22  Prefactor     1.0413        .75193E-01   -.27931E-07    .58273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.43736
  Prefactor  = 56.1489
  Prefactor  = 3.35152
  norm       = 4.79325
  Prefactor  = 0.000100014
  Prefactor  = 3.26424
  norm       = 1.87092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84264
  Prefactor  = 57.5166
  Prefactor  = 0.0001
  Prefactor  = 10.6741
  Prefactor  = 2.56376
  norm       = 1.78078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0579229
  Prefactor  = 6.26892
  Normalizat = 0.586722
  Prefactor  = 1.0413
 **********
 **   18 **HESSE 
 **********

 FCN=   15126.59     FROM HESSE     STATUS=OK           354 CALLS     2390 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4374        .64606        .63857E-04   -1.5468    
   3  Prefactor     56.149        35.255        .53523E-04   -1.4208    
   4  Prefactor     3.3515        4.5076        .22111E-03   -1.5342    
   5  norm          4.7932        2.9007        .15858E-03   -1.5270    
   6  Prefactor     .10001E-03    592.87        .36314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2642        6.4934        .22419E-03   -1.5347    
   8  norm          1.8709        .77714        .66969E-04   -1.5434    
   9  Prefactor     .10000E-03    15.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8426        1.1098        .96902E-04   -1.5436    
  12  Prefactor     57.517        11.043        .52897E-04   -1.4190    
  13  Prefactor     .10000E-03    13.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.674        6.7725        .12262E-03   -1.5054    
  15  Prefactor     2.5638        51.414        .25486E-03   -1.5388    
  16  norm          1.7808        1.0635        .15682E-03   -1.5441    
  17  Prefactor     .10000E-03    17.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .57923E-01    1.3764        .50489E-01   -1.5660    
  20  Prefactor     6.2689        11.504        .80445E-03   -1.5207    
  21  Normalizat    .58672        .17925        .43831E-03   -1.0855    
  22  Prefactor     1.0413        .83897E-01    .16029E-03   -.91365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14999e-10
Minuit parameter uncertainties:
  1  7.3176e-06
  2  0.646068
  3  35.2678
  4  4.50808
  5  2.90079
  6  0.0057996
  7  6.49479
  8  0.777147
  9  0.000137018
  10  2.93768e-06
  11  1.10982
  12  11.0432
  13  4.38082e-05
  14  6.77294
  15  22.9842
  16  1.06348
  17  7.11962e-05
  18  1.92312e-05
  19  0.564242
  20  11.5085
  21  0.179424
  22  0.0839072
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.871e+00  7.771e-01  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.041e+00  8.391e-02  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.867e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.23
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.01e-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) = 15126.3175514
delta logL = 0.273973281821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15126.307041
delta logL = 0.284483739524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8216       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4527       1.0000          .0000       5.0000    
     3 'Normalizat'    .55995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0486       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=   15126.31     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      237 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8217        9.3549        .77343E-02    .48501E-03
   2  alpha         2.4527        3.7245        .40466        .57127E-04
   3  Normalizat    .55994        .74499E-01    .10111        .99169E-04
   4  Prefactor     1.0486        .28854E-01    .39990E-01   -.11903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82166
  alpha      = 2.45274
  Normalizat = 0.559941
  Prefactor  = 1.04865
 **********
 **   18 **HESSE 
 **********

 FCN=   15126.31     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8217        .75118        .61123E-04   -1.5438    
   2  alpha         2.4527        .41325        .14886E-01   -.18904E-01
   3  Normalizat    .55994        .17734        .44814E-03   -1.0971    
   4  Prefactor     1.0486        .83389E-01    .15977E-03   -.91125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43908e-09
Minuit parameter uncertainties:
  1  0.751187
  2  0.415152
  3  0.177518
  4  0.0833997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401215': 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) = 15126.307041
delta logL = 0.284483756492

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  1.822e+00  7.512e-01  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.453e+00  4.152e-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.049e+00  8.340e-02  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.599e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.03
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.45 +/- 0.42
Photon Flux (Free Index): 7.80e-08 +/- 3.71e-08
Energy Flux (Free Index): 2.29e-05 +/- 9.04e-06

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/401215/cmap_HighResolution_567993601_568252801_4FGL_J2236.3+2828_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='2.29e-05', photon_flux_error='2.49e-08', dlogl='2.84e-01', energy_flux='2.43e-05', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-28 17:05:23.549992', photon_index_error2='0.42', photon_index2='2.45', ts='16.23', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='9.04e-06', EG='0.59', time_epoch_completed='1632873923.55', return_code='0', job_id='401215', GAL2='1.05', EG2='0.56', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='3.71e-08', ts2='17.03', photon_index='2.15' WHERE bin_id='1268' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 401215: <4FGL_J2236.3+2828_daily_bin1268> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1268 339.096 28.4832 567993601 568252801 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 :                                   876.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             392.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

