/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 99 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 = 7405
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1371
RA = 339.096, Dec = 28.4832
tmin = 594691201, tmax = 594950401
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='401364', job_status='RUN', time_executed='2021-09-28 16:52:39.964712', time_epoch_executed='1632873159.96' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401364/ft1_4FGL_J2236.3+2828_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401364/ft2_4FGL_J2236.3+2828_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401364/ft1_4FGL_J2236.3+2828_daily_bin1371.fits outfile=/scratch/kocevski/401364/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1371.fits ra=339.096 dec=28.4832 rad=12.0 tmin=594691201.0 tmax=594950401.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.95
user 2.72
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401364/ft2_4FGL_J2236.3+2828_daily_bin1371.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/401364/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1371.fits evtable="EVENTS" outfile="/scratch/kocevski/401364/ft1_filtered_4FGL_J2236.3+2828_daily_bin1371.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/401364/ft1_filtered_4FGL_J2236.3+2828_daily_bin1371.fits" evtable="EVENTS" scfile=/scratch/kocevski/401364/ft2_4FGL_J2236.3+2828_daily_bin1371.fits sctable="SC_DATA" outfile=/scratch/kocevski/401364/ltcube_594691201_594950401_4FGL_J2236.3+2828_daily_bin1371.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/401364/ft2_4FGL_J2236.3+2828_daily_bin1371.fits
.....................!
real 12.35
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401364/ft1_filtered_4FGL_J2236.3+2828_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/401364/ft2_4FGL_J2236.3+2828_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/401364/ltcube_594691201_594950401_4FGL_J2236.3+2828_daily_bin1371.fits outfile=/scratch/kocevski/401364/expmap_594691201_594950401_4FGL_J2236.3+2828_daily_bin1371.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/401364/ltcube_594691201_594950401_4FGL_J2236.3+2828_daily_bin1371.fits
.....................!
real 190.85
user 185.89
sys 4.64

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/401364/ft1_filtered_4FGL_J2236.3+2828_daily_bin1371.fits scfile=/scratch/kocevski/401364/ft2_4FGL_J2236.3+2828_daily_bin1371.fits outfile=/scratch/kocevski/401364/cmap_594691201_594950401_4FGL_J2236.3+2828_daily_bin1371.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401364/ft1_filtered_4FGL_J2236.3+2828_daily_bin1371.fits scfile=/scratch/kocevski/401364/ft2_4FGL_J2236.3+2828_daily_bin1371.fits outfile=/scratch/kocevski/401364/cmap_HighResolution_594691201_594950401_4FGL_J2236.3+2828_daily_bin1371.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .30971       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13736E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5514       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8236       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.484       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.176       1.0000         .10000E-03   10000.    
     8 'norm      '    8.1030       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.463       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.687       1.0000         .10000E-03   10000.    
    19 'norm      '    .14938       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11104E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .44312       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1726       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8816.474     FROM MIGRAD    STATUS=FAILED       887 CALLS     3127 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2114        .18142E-02** at limit **
   2  norm          .30896        .52641        .98881E-03   -.62677E-03
   3  Prefactor     .10002E-03    43.924        .17976    ** at limit **
   4  Prefactor     9.5541        18.749        .12967E-03    .22480E-03
   5  norm          3.8233        3.8978        .18162E-03    .16525E-04
   6  Prefactor     13.135        243.87        .10908E-03   -.21262E-04
   7  Prefactor     11.173        13.233        .11984E-03    .15843E-03
   8  norm          8.1035        1.8621        .57519E-04    .13160E-02
   9  Prefactor     .10000E-03    55.298        .18142E-02** at limit **
  10  Prefactor     .10000E-03    8.1883        .18142E-02** at limit **
  11  norm          1.4136        1.4684        .11235E-03    .54644E-04
  12  Prefactor     24.463        11.881        .80989E-04    .15946E-03
  13  Prefactor     .10000E-03    10.958        .18142E-02** at limit **
  14  Prefactor     .10000E-03    3.3642        .16811E-02** at limit **
  15  Prefactor     .10000E-03    13.193        .18142E-02** at limit **
  16  norm          .10000E-03    2.2423        .17289E-02** at limit **
  17  Prefactor     .10000E-03    15.230        .18142E-02** at limit **
  18  Prefactor     59.699        39.324        .51932E-04   -.68389E-04
  19  norm          .13815        37.732        .35062E-02    .19945E-02
  20  Prefactor     .10000E-03    45.910        .36285E-03** at limit **
  21  Normalizat    .44321        .28015        .55887E-03   -.10130E-04
  22  Prefactor     1.1726        .12056        .16222E-03   -.23006E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8816.474     FROM SIMPLEX   STATUS=UNCHANGED   1055 CALLS     4182 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2114        .39689E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .30896        .52641        .22666E-06   -1.5597    
   3  Prefactor     .10002E-03    43.924        .51994E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5541        18.749        .23233E-06   -1.5090    
   5  norm          3.8233        3.8978        .24282E-06   -1.5317    
   6  Prefactor     13.135        243.87        .24543E-06   -1.4983    
   7  Prefactor     11.173        13.233        .25306E-06   -1.5039    
   8  norm          8.1035        1.8621        .26247E-06   -1.5139    
   9  Prefactor     .10000E-03    55.298        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1883        .41738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4136        1.4684        .21296E-06   -1.5470    
  12  Prefactor     24.463        11.881        .20269E-06   -1.4718    
  13  Prefactor     .10000E-03    10.958        .41747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3642        .93594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.193        .72530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2423        .27526E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.230        .19473E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.699        39.324        .19449E-06   -1.4161    
  19  norm          .13815        37.732        .21498E-06   -1.5634    
  20  Prefactor     .10000E-03    45.910        .28155E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .44321        .28015        .15815E-06   -1.1512    
  22  Prefactor     1.1726        .12056        .11972E-06   -.87179    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8816.474     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     4519 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2132        .36285E-03** at limit **
   2  norm          .30896        .52571        .39552E-04    .57487E-06
   3  Prefactor     .10002E-03    46.794        .17202    ** at limit **
   4  Prefactor     9.5539        18.744        .51867E-05   -.26303E-05
   5  norm          3.8233        3.8976        .72648E-05   -.18779E-05
   6  Prefactor     13.136        243.69        .21816E-04   -.20845E-06
   7  Prefactor     11.173        13.230        .47936E-05   -.18973E-05
   8  norm          8.1035        1.8619        .11504E-04   -.79060E-06
   9  Prefactor     .10000E-03    55.301        .36285E-03** at limit **
  10  Prefactor     .10000E-03    8.1885        .36285E-03** at limit **
  11  norm          1.4136        1.4683        .44939E-05    .80955E-06
  12  Prefactor     24.463        11.880        .16198E-04    .11230E-06
  13  Prefactor     .10000E-03    10.959        .36285E-03** at limit **
  14  Prefactor     .10000E-03    3.3643        .33621E-03** at limit **
  15  Prefactor     .10000E-03    13.193        .36285E-03** at limit **
  16  norm          .10000E-03    2.2576        .34578E-03** at limit **
  17  Prefactor     .10000E-03    15.232        .36285E-03** at limit **
  18  Prefactor     59.699        39.301        .10386E-04   -.21891E-05
  19  norm          .13820        39.152        .70125E-03    .80496E-04
  20  Prefactor     .10000E-03    45.910        .72569E-04** at limit **
  21  Normalizat    .44321        .27989        .22355E-04   -.38650E-05
  22  Prefactor     1.1726        .12048        .32444E-04   -.16399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.308963
  Prefactor  = 0.000100019
  Prefactor  = 9.55387
  norm       = 3.82333
  Prefactor  = 13.136
  Prefactor  = 11.1731
  norm       = 8.1035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41356
  Prefactor  = 24.4632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.6987
  norm       = 0.138203
  Prefactor  = 0.0001
  Normalizat = 0.443206
  Prefactor  = 1.17259
 **********
 **   18 **HESSE 
 **********

 FCN=   8816.474     FROM HESSE     STATUS=OK           332 CALLS     4851 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2133        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .30896        .52569        .15821E-05   -1.5597    
   3  Prefactor     .10002E-03    45.922        .17427       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5539        18.638        .10373E-05   -1.5090    
   5  norm          3.8233        3.8970        .14530E-05   -1.5317    
   6  Prefactor     13.136        240.58        .43632E-05   -1.4983    
   7  Prefactor     11.173        13.215        .95872E-06   -1.5039    
   8  norm          8.1035        1.8617        .23008E-05   -1.5139    
   9  Prefactor     .10000E-03    55.301        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1885        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4136        1.4683        .44939E-05   -1.5470    
  12  Prefactor     24.463        11.880        .16198E-04   -1.4718    
  13  Prefactor     .10000E-03    10.959        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3643        .67243E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.193        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2582        .69155E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.232        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.699        39.315        .20773E-05   -1.4161    
  19  norm          .13820        39.167        .14025E-03   -1.5634    
  20  Prefactor     .10000E-03    45.900        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .44321        .27948        .44710E-05   -1.1512    
  22  Prefactor     1.1726        .12039        .64889E-05   -.87179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05865e-12
Minuit parameter uncertainties:
  1  4.72914e-07
  2  0.525696
  3  0.00186385
  4  18.6494
  5  3.89724
  6  112.963
  7  13.2181
  8  1.86169
  9  7.17519e-07
  10  3.50426e-07
  11  1.46835
  12  11.8809
  13  1.81112e-07
  14  3.96153e-08
  15  1.01634e-07
  16  2.09306e-07
  17  1.91092e-07
  18  39.3318
  19  4.65456
  20  4.38316e-06
  21  0.280367
  22  0.120418
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.103e+00  1.862e+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.173e+00  1.204e-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.432e-01  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 65.79
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.60e-07 +/- 5.97e-08
Energy Flux (Fixed Index): 1.05e-04 +/- 2.42e-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) = 8816.46827961
delta logL = 0.00560390653845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8816.46773359
delta logL = 0.00614992371811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0828       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1714       1.0000          .0000       5.0000    
     3 'Normalizat'    .43690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1743       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=   8816.468     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      196 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0825        2.2855        .35256E-02    .59117E-04
   2  alpha         2.1716        .28464        .18555        .90738E-05
   3  Normalizat    .43665        .27294        .12700        .83598E-04
   4  Prefactor     1.1744        .12195        .35269E-01   -.25550E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.08249
  alpha      = 2.17158
  Normalizat = 0.436654
  Prefactor  = 1.1744
 **********
 **   18 **HESSE 
 **********

 FCN=   8816.468     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0825        1.8395        .57169E-04   -1.5139    
   2  alpha         2.1716        .23323        .79214E-02   -.13175    
   3  Normalizat    .43665        .26500        .56278E-03   -1.1545    
   4  Prefactor     1.1744        .11909        .16210E-03   -.87123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48386e-12
Minuit parameter uncertainties:
  1  1.83953
  2  0.233572
  3  0.265762
  4  0.119114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401364': 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) = 8816.46773299
delta logL = 0.00615052243484

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.082e+00  1.840e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.172e+00  2.336e-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.174e+00  1.191e-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.367e-01  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.80
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.17 +/- 0.23
Photon Flux (Free Index): 2.65e-07 +/- 7.52e-08
Energy Flux (Free Index): 1.04e-04 +/- 2.63e-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/401364/cmap_HighResolution_594691201_594950401_4FGL_J2236.3+2828_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-07', energy_flux2='1.04e-04', photon_flux_error='5.97e-08', dlogl='6.15e-03', energy_flux='1.05e-04', photon_flux2='2.65e-07', job_status='DONE', time_completed='2021-09-28 17:07:08.084288', photon_index_error2='0.23', photon_index2='2.17', ts='65.79', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='0.44', time_epoch_completed='1632874028.08', return_code='0', job_id='401364', GAL2='1.17', EG2='0.44', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='7.52e-08', ts2='65.80', photon_index='2.15' WHERE bin_id='1371' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:07:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 401364: <4FGL_J2236.3+2828_daily_bin1371> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1371 339.096 28.4832 594691201 594950401 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 :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

