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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1359
RA = 339.096, Dec = 28.4832
tmin = 591580801, tmax = 591840001
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='401347', job_status='RUN', time_executed='2021-09-28 16:54:26.701198', time_epoch_executed='1632873266.7' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401347/ft1_4FGL_J2236.3+2828_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401347/ft2_4FGL_J2236.3+2828_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401347/ft1_4FGL_J2236.3+2828_daily_bin1359.fits outfile=/scratch/kocevski/401347/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1359.fits ra=339.096 dec=28.4832 rad=12.0 tmin=591580801.0 tmax=591840001.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.85
user 3.61
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401347/ft1_filtered_4FGL_J2236.3+2828_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/401347/ft2_4FGL_J2236.3+2828_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/401347/ltcube_591580801_591840001_4FGL_J2236.3+2828_daily_bin1359.fits outfile=/scratch/kocevski/401347/expmap_591580801_591840001_4FGL_J2236.3+2828_daily_bin1359.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/401347/ltcube_591580801_591840001_4FGL_J2236.3+2828_daily_bin1359.fits
.....................!
real 190.60
user 185.43
sys 4.80

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/401347/ft1_filtered_4FGL_J2236.3+2828_daily_bin1359.fits scfile=/scratch/kocevski/401347/ft2_4FGL_J2236.3+2828_daily_bin1359.fits outfile=/scratch/kocevski/401347/cmap_591580801_591840001_4FGL_J2236.3+2828_daily_bin1359.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401347/ft1_filtered_4FGL_J2236.3+2828_daily_bin1359.fits scfile=/scratch/kocevski/401347/ft2_4FGL_J2236.3+2828_daily_bin1359.fits outfile=/scratch/kocevski/401347/cmap_HighResolution_591580801_591840001_4FGL_J2236.3+2828_daily_bin1359.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.322       1.0000         .10000E-03   10000.    
     2 'norm      '    .49460       1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.6027       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.091       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.912       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50491E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.671       1.0000         .10000E-03   10000.    
    19 'norm      '    8.2266       1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.076       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92802       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86414       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=   3686.973     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2394 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.319        13.459       -.12146E-05    .12705E-03
   2  norm          .49562        1.1735       -.14326E-05   -.16195E-02
   3  Prefactor     66.478        78.080       -.37558E-05    .17127E-04
   4  Prefactor     .10000E-03    12.682        .42891E-05** at limit **
   5  norm          2.5137        4.8787       -.65267E-06   -.18811E-03
   6  Prefactor     .10000E-03    46.831       -.23143E-05** at limit **
   7  Prefactor     .10000E-03    7.3955        .60618E-08** at limit **
   8  norm          9.6016        2.8260       -.39426E-06    .30922E-03
   9  Prefactor     36.997        85.862       -.14313E-03    .89823E-05
  10  Prefactor     .10000E-03    10.466       -.91116E-06** at limit **
  11  norm          .10000E-03    2.2317       -.32485E-06** at limit **
  12  Prefactor     18.911        13.486       -.70911E-06    .42881E-04
  13  Prefactor     25.256        46.273       -.63393E-04    .34459E-04
  14  Prefactor     .10000E-03    13.146       -.32285E-05** at limit **
  15  Prefactor     .10000E-03    44.549        .10513E-04** at limit **
  16  norm          .10008E-03    1.2259       -.32391E-06** at limit **
  17  Prefactor     25.103        40.149       -.24989E-04    .32507E-04
  18  Prefactor     41.675        47.316        .57139E-05    .28757E-04
  19  norm          8.2255        10.559        .46866E-05    .46578E-04
  20  Prefactor     60.054        38.760       -.18441E-04    .54111E-04
  21  Normalizat    .92869        .33270        .13191E-04    .18882E-03
  22  Prefactor     .86387        .14725        .60187E-05    .32613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3187
  norm       = 0.495619
  Prefactor  = 66.4783
  Prefactor  = 0.0001
  norm       = 2.5137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.60164
  Prefactor  = 36.9971
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9107
  Prefactor  = 25.2558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100078
  Prefactor  = 25.1027
  Prefactor  = 41.6753
  norm       = 8.2255
  Prefactor  = 60.0543
  Normalizat = 0.928688
  Prefactor  = 0.863873
 **********
 **   18 **HESSE 
 **********

 FCN=   3686.973     FROM HESSE     STATUS=OK           342 CALLS     2736 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.319        13.407        .96233E-04   -1.4875    
   2  norm          .49562        1.1387        .94790E-04   -1.5567    
   3  Prefactor     66.478        78.070        .49223E-04   -1.4075    
   4  Prefactor     .10000E-03    12.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5137        4.8565        .18203E-03   -1.5391    
   6  Prefactor     .10000E-03    46.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4136        .16127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.6016        2.8307        .52890E-04   -1.5088    
   9  Prefactor     36.997        85.960        .32903E-03   -1.4491    
  10  Prefactor     .10000E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2835        .88558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.911        13.485        .92100E-04   -1.4838    
  13  Prefactor     25.256        46.323        .79644E-04   -1.4702    
  14  Prefactor     .10000E-03    13.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10008E-03    30.059        .12844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.103        40.298        .79926E-04   -1.4705    
  18  Prefactor     41.675        47.304        .62098E-04   -1.4416    
  19  norm          8.2255        10.528        .13978E-03   -1.5134    
  20  Prefactor     60.054        38.766        .51765E-04   -1.4157    
  21  Normalizat    .92869        .38381        .37975E-03   -.95459    
  22  Prefactor     .86387        .17200        .17760E-03   -.97415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77799e-09
Minuit parameter uncertainties:
  1  13.4093
  2  1.13874
  3  78.1906
  4  0.000103415
  5  4.85722
  6  7.60034e-05
  7  5.7991e-05
  8  2.83078
  9  86.2502
  10  6.36846e-06
  11  3.33053e-05
  12  13.4874
  13  46.3886
  14  6.42025e-05
  15  0.000166198
  16  0.00306635
  17  40.3415
  18  47.3466
  19  10.5306
  20  38.7821
  21  0.384946
  22  0.172106
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  9.602e+00  2.831e+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.639e-01  1.721e-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.287e-01  3.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.75
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.08e-07 +/- 9.08e-08
Energy Flux (Fixed Index): 1.25e-04 +/- 3.68e-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) = 3686.89338358
delta logL = 0.0800808092117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3686.86894439
delta logL = 0.104520001975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1215       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3014       1.0000          .0000       5.0000    
     3 'Normalizat'    .88629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87722       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=   3686.869     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1251        6.1035        .33176E-02   -.99110E-04
   2  alpha         2.3010        .68798        .15775        .43839E-05
   3  Normalizat    .88667        .33810        .87497E-01    .13427E-04
   4  Prefactor     .87712        .14945        .44714E-01   -.80799E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.1251
  alpha      = 2.30098
  Normalizat = 0.886666
  Prefactor  = 0.877116
 **********
 **   18 **HESSE 
 **********

 FCN=   3686.869     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1251        2.9736        .50460E-04   -1.5104    
   2  alpha         2.3010        .34759        .68002E-02   -.79693E-01
   3  Normalizat    .88667        .38197        .38748E-03   -.96930    
   4  Prefactor     .87712        .17047        .17640E-03   -.96945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86984e-11
Minuit parameter uncertainties:
  1  2.97362
  2  0.348732
  3  0.38314
  4  0.170574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401347': 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) = 3686.86894288
delta logL = 0.104521513748

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  9.125e+00  2.974e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.301e+00  3.487e-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:  8.771e-01  1.706e-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:  8.867e-01  3.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.97
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.30 +/- 0.35
Photon Flux (Free Index): 3.37e-07 +/- 1.14e-07
Energy Flux (Free Index): 1.14e-04 +/- 3.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/401347/cmap_HighResolution_591580801_591840001_4FGL_J2236.3+2828_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.08e-07', energy_flux2='1.14e-04', photon_flux_error='9.08e-08', dlogl='1.05e-01', energy_flux='1.25e-04', photon_flux2='3.37e-07', job_status='DONE', time_completed='2021-09-28 17:02:25.866692', photon_index_error2='0.35', photon_index2='2.30', ts='34.75', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.92e-05', EG='0.93', time_epoch_completed='1632873745.87', return_code='0', job_id='401347', GAL2='0.88', EG2='0.89', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='1.14e-07', ts2='34.97', photon_index='2.15' WHERE bin_id='1359' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:02:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 401347: <4FGL_J2236.3+2828_daily_bin1359> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1359> 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) <bullet0232>, 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:02:26 2021
Results reported at Tue Sep 28 17:02:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1359 339.096 28.4832 591580801 591840001 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 :                                   464.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

