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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1241
RA = 339.096, Dec = 28.4832
tmin = 560995201, tmax = 561254401
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='401175', job_status='RUN', time_executed='2021-09-28 16:53:03.727141', time_epoch_executed='1632873183.73' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401175/ft1_4FGL_J2236.3+2828_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401175/ft2_4FGL_J2236.3+2828_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401175/ft1_4FGL_J2236.3+2828_daily_bin1241.fits outfile=/scratch/kocevski/401175/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1241.fits ra=339.096 dec=28.4832 rad=12.0 tmin=560995201.0 tmax=561254401.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.73
user 3.53
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401175/ft2_4FGL_J2236.3+2828_daily_bin1241.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/401175/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1241.fits evtable="EVENTS" outfile="/scratch/kocevski/401175/ft1_filtered_4FGL_J2236.3+2828_daily_bin1241.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.48
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401175/ft1_filtered_4FGL_J2236.3+2828_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/401175/ft2_4FGL_J2236.3+2828_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/401175/ltcube_560995201_561254401_4FGL_J2236.3+2828_daily_bin1241.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/401175/ft2_4FGL_J2236.3+2828_daily_bin1241.fits
.....................!
real 11.70
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401175/ft1_filtered_4FGL_J2236.3+2828_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/401175/ft2_4FGL_J2236.3+2828_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/401175/ltcube_560995201_561254401_4FGL_J2236.3+2828_daily_bin1241.fits outfile=/scratch/kocevski/401175/expmap_560995201_561254401_4FGL_J2236.3+2828_daily_bin1241.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/401175/ltcube_560995201_561254401_4FGL_J2236.3+2828_daily_bin1241.fits
.....................!
real 189.59
user 184.98
sys 4.23

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/401175/ft1_filtered_4FGL_J2236.3+2828_daily_bin1241.fits scfile=/scratch/kocevski/401175/ft2_4FGL_J2236.3+2828_daily_bin1241.fits outfile=/scratch/kocevski/401175/cmap_560995201_561254401_4FGL_J2236.3+2828_daily_bin1241.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.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77485E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6475       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17896E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.804       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.314       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.2288       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0144       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.

 FCN=   2878.480     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     3059 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.092        .18142E-02** at limit **
   2  norm          .10000E-03    2.4936        .82212E-03** at limit **
   3  Prefactor     .10000E-03    167.16        .19045    ** at limit **
   4  Prefactor     .10000E-03    8.3089        .15105E-02** at limit **
   5  norm          4.7071        7.4464        .17628E-03    .51528E-04
   6  Prefactor     .10000E-03    70.257        .18142E-02** at limit **
   7  Prefactor     .10000E-03    10.420        .16892E-02** at limit **
   8  norm          7.6461        3.3668        .62192E-04   -.32154E-03
   9  Prefactor     .10001E-03    207.04        .18142E-02** at limit **
  10  Prefactor     .10000E-03    90.931        .18142E-02** at limit **
  11  norm          1.2460        1.4650        .34259E-03   -.17088E-03
  12  Prefactor     15.802        14.250        .10075E-03    .12870E-03
  13  Prefactor     .10001E-03    66.172        .18142E-02** at limit **
  14  Prefactor     52.311        23.833        .55451E-04    .28313E-04
  15  Prefactor     .10000E-03    67.853        .18142E-02** at limit **
  16  norm          .10000E-03    1.6884        .67654E-03** at limit **
  17  Prefactor     .10000E-03    51.604        .18142E-02** at limit **
  18  Prefactor     .10000E-03    18.462        .18142E-02** at limit **
  19  norm          4.2299        6.0435        .15371E-03   -.68675E-04
  20  Prefactor     .10000E-03    48.175        .18142E-02** at limit **
  21  Normalizat    .10000E-01    .82885        .13055E-01** at limit **
  22  Prefactor     1.0142        .11322        .17415E-03    .16226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.70707
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 7.64611
  Prefactor  = 0.00010001
  Prefactor  = 0.000100001
  norm       = 1.24598
  Prefactor  = 15.8017
  Prefactor  = 0.000100006
  Prefactor  = 52.3108
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.22988
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 1.01419
 **********
 **   18 **HESSE 
 **********

 FCN=   2878.480     FROM HESSE     STATUS=OK           330 CALLS     3389 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4939        .16442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    185.98        .17813       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3090        .30210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7071        7.4460        .70513E-05   -1.5274    
   6  Prefactor     .10000E-03    70.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.421        .33785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6461        3.3668        .24877E-05   -1.5155    
   9  Prefactor     .10001E-03    207.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2460        1.4650        .13704E-04   -1.5485    
  12  Prefactor     15.802        14.250        .40300E-05   -1.4913    
  13  Prefactor     .10001E-03    66.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.311        23.833        .11090E-04   -1.4260    
  15  Prefactor     .10000E-03    67.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6885        .13531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2299        6.0435        .61483E-05   -1.5297    
  20  Prefactor     .10000E-03    48.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .83001        .26110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0142        .11305        .34829E-04   -.92258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63558e-10
Minuit parameter uncertainties:
  1  2.69528e-05
  2  7.26855e-06
  3  0.000835442
  4  4.91182e-06
  5  7.44747
  6  0.000816382
  7  1.94106e-05
  8  3.36693
  9  0.00293991
  10  0.000694774
  11  1.46502
  12  14.253
  13  0.00125506
  14  23.8375
  15  0.00102881
  16  1.09842e-06
  17  3.05036e-05
  18  2.01166e-05
  19  6.04434
  20  0.000520586
  21  1.26572e-07
  22  0.113081
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  7.646e+00  3.367e+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.014e+00  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.000e-02  1.266e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.06
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.45e-07 +/- 1.08e-07
Energy Flux (Fixed Index): 9.94e-05 +/- 4.38e-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) = 2878.05749324
delta logL = 0.422585579609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2877.97621518
delta logL = 0.503863638097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5094       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6996       1.0000          .0000       5.0000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0318       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=   2877.976     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5052        3.3109        .39325E-02   -.11730E-03
   2  alpha         1.6992        .38030        .18812       -.20473E-04
   3  Normalizat    .10000E-01    .41728        .32095    ** at limit **
   4  Prefactor     1.0320        .15696        .41119E-01    .25720E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50523
  alpha      = 1.69917
  Normalizat = 0.01
  Prefactor  = 1.03203
 **********
 **   18 **HESSE 
 **********

 FCN=   2877.976     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5052        3.9248        .63916E-04   -1.5198    
   2  alpha         1.6992        .46435        .80394E-02   -.32608    
   3  Normalizat    .10000E-01    2.0858        .13762E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0320        .10603        .17336E-03   -.91669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39392e-10
Minuit parameter uncertainties:
  1  3.92496
  2  0.467375
  3  5.11213e-05
  4  0.106055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401175': 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) = 2877.97621067
delta logL = 0.503868152314

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  6.505e+00  3.925e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.699e+00  4.674e-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.032e+00  1.061e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.000e-02  5.112e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.94
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.70 +/- 0.47
Photon Flux (Free Index): 1.54e-07 +/- 1.16e-07
Energy Flux (Free Index): 1.29e-04 +/- 7.90e-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/401175/cmap_HighResolution_560995201_561254401_4FGL_J2236.3+2828_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-07', energy_flux2='1.29e-04', photon_flux_error='1.08e-07', dlogl='5.04e-01', energy_flux='9.94e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-28 17:00:26.274904', photon_index_error2='0.47', photon_index2='1.70', ts='18.06', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='7.90e-05', EG='0.01', time_epoch_completed='1632873626.27', return_code='0', job_id='401175', GAL2='1.03', EG2='0.01', return_code2='0', energy_flux_error='4.38e-05', photon_flux_error2='1.16e-07', ts2='18.94', photon_index='2.15' WHERE bin_id='1241' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 401175: <4FGL_J2236.3+2828_daily_bin1241> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1241 339.096 28.4832 560995201 561254401 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 :                                   440.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            601 sec.

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

