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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin98
RA = 339.096, Dec = 28.4832
tmin = 264729601, tmax = 264988801
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='395241', job_status='RUN', time_executed='2021-09-28 16:35:09.726557', time_epoch_executed='1632872109.73' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395241/ft1_4FGL_J2236.3+2828_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395241/ft2_4FGL_J2236.3+2828_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395241/ft1_4FGL_J2236.3+2828_daily_bin98.fits outfile=/scratch/kocevski/395241/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin98.fits ra=339.096 dec=28.4832 rad=12.0 tmin=264729601.0 tmax=264988801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.45
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395241/ft1_filtered_4FGL_J2236.3+2828_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/395241/ft2_4FGL_J2236.3+2828_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/395241/ltcube_264729601_264988801_4FGL_J2236.3+2828_daily_bin98.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/395241/ft2_4FGL_J2236.3+2828_daily_bin98.fits
.....................!
real 12.65
user 12.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395241/ft1_filtered_4FGL_J2236.3+2828_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/395241/ft2_4FGL_J2236.3+2828_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/395241/ltcube_264729601_264988801_4FGL_J2236.3+2828_daily_bin98.fits outfile=/scratch/kocevski/395241/expmap_264729601_264988801_4FGL_J2236.3+2828_daily_bin98.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/395241/ltcube_264729601_264988801_4FGL_J2236.3+2828_daily_bin98.fits
.....................!
real 190.81
user 185.08
sys 5.39

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/395241/ft1_filtered_4FGL_J2236.3+2828_daily_bin98.fits scfile=/scratch/kocevski/395241/ft2_4FGL_J2236.3+2828_daily_bin98.fits outfile=/scratch/kocevski/395241/cmap_264729601_264988801_4FGL_J2236.3+2828_daily_bin98.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395241/ft1_filtered_4FGL_J2236.3+2828_daily_bin98.fits scfile=/scratch/kocevski/395241/ft2_4FGL_J2236.3+2828_daily_bin98.fits outfile=/scratch/kocevski/395241/cmap_HighResolution_264729601_264988801_4FGL_J2236.3+2828_daily_bin98.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/395241/ft1_filtered_4FGL_J2236.3+2828_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/395241/ft2_4FGL_J2236.3+2828_daily_bin98.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395241/Model_4FGL_J2236.3+2828_daily_bin98.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/395241/ft1_filtered_4FGL_J2236.3+2828_daily_bin98.fits.....................!
real 103.03
user 101.60
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0266       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7255       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.826       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11847E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6674       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4461       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60610       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98079       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9419.799     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2063 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0262        5.5228         .0000        .15663E-01
   2  norm          1.7255        .88221         .0000        .72290E-03
   3  Prefactor     35.568        31.863         .0000        .14103E-04
   4  Prefactor     13.825        12.868         .0000        .15168E-02
   5  norm          .10000E-03    1.8021         .0000    ** at limit **
   6  Prefactor     .10000E-03    213.74         .0000    ** at limit **
   7  Prefactor     .10000E-03    4.0502         .0000    ** at limit **
   8  norm          5.5506        1.4879         .0000        .11309E-02
   9  Prefactor     .10000E-03    21.592         .0000    ** at limit **
  10  Prefactor     .10000E-03    89.079         .0000    ** at limit **
  11  norm          1.6674        1.0889         .0000       -.14289E-03
  12  Prefactor     .10000E-03    6.3390         .0000    ** at limit **
  13  Prefactor     .10000E-03    12.705         .0000    ** at limit **
  14  Prefactor     8.4460        12.226         .0000        .18748E-03
  15  Prefactor     .10000E-03    12.147         .0000    ** at limit **
  16  norm          2.0919        1.2804         .0000        .50988E-03
  17  Prefactor     .10000E-03    9.1538         .0000    ** at limit **
  18  Prefactor     .10000E-03    5.3656         .0000    ** at limit **
  19  norm          5.0300        3.6806         .0000        .24732E-02
  20  Prefactor     .10000E-03    3.3092         .0000    ** at limit **
  21  Normalizat    .60613        .20359         .0000        .33459E-04
  22  Prefactor     .98079        .91431E-01     .0000       -.83881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02622
  norm       = 1.72552
  Prefactor  = 35.5683
  Prefactor  = 13.8253
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.55062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.44598
  Prefactor  = 0.0001
  norm       = 2.09191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.02997
  Prefactor  = 0.0001
  Normalizat = 0.606134
  Prefactor  = 0.98079
 **********
 **   18 **HESSE 
 **********

 FCN=   9419.799     FROM HESSE     STATUS=OK           338 CALLS     2401 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0262        5.4922        .14532E-02   -1.5423    
   2  norm          1.7255        .87463        .61834E-04   -1.5445    
   3  Prefactor     35.568        31.860        .67196E-04   -1.4514    
   4  Prefactor     13.825        12.863        .10772E-03   -1.4964    
   5  norm          .10000E-03    1.8224        .12722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    215.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5506        1.4821        .57969E-04   -1.5237    
   9  Prefactor     .10000E-03    21.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    91.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6674        1.0965        .79805E-04   -1.5450    
  12  Prefactor     .10000E-03    6.4508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4460        12.208        .13794E-03   -1.5127    
  15  Prefactor     .10000E-03    12.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0919        1.2745        .82304E-04   -1.5419    
  17  Prefactor     .10000E-03    9.1786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0300        3.6792        .77364E-03   -1.5259    
  20  Prefactor     .10000E-03    3.3120        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .60613        .22716        .43326E-03   -1.0772    
  22  Prefactor     .98079        .10369        .16171E-03   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30285e-09
Minuit parameter uncertainties:
  1  5.49352
  2  0.874639
  3  31.8751
  4  12.866
  5  9.3245e-06
  6  0.00109865
  7  1.57371e-05
  8  1.4821
  9  4.27275e-05
  10  4.98402e-05
  11  1.09652
  12  5.2923e-06
  13  4.23466e-05
  14  12.2113
  15  4.41984e-05
  16  1.27451
  17  2.17327e-05
  18  7.23327e-06
  19  3.67937
  20  1.58149e-05
  21  0.227506
  22  0.103708
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.551e+00  1.482e+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:  9.808e-01  1.037e-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:  6.061e-01  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.53
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 4.75e-08
Energy Flux (Fixed Index): 7.22e-05 +/- 1.93e-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) = 9419.76771707
delta logL = 0.030925827974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9419.7630749
delta logL = 0.0355679973745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4584       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2203       1.0000          .0000       5.0000    
     3 'Normalizat'    .59295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98483       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=   9419.763     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4584        23.351        .42997E-02    .39092E-03
   2  alpha         2.2203        3.5940        .22270        .34752E-04
   3  Normalizat    .59296        .42801        .98774E-01    .84712E-04
   4  Prefactor     .98482        .18492        .46077E-01    .71167E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45843
  alpha      = 2.22028
  Normalizat = 0.592963
  Prefactor  = 0.984818
 **********
 **   18 **HESSE 
 **********

 FCN=   9419.763     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4584        1.5126        .56775E-04   -1.5241    
   2  alpha         2.2203        .28285        .92807E-02   -.11212    
   3  Normalizat    .59296        .22640        .43774E-03   -1.0828    
   4  Prefactor     .98482        .10418        .16141E-03   -.93237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38365e-10
Minuit parameter uncertainties:
  1  1.51261
  2  0.283465
  3  0.226753
  4  0.1042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395241': 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) = 9419.76307489
delta logL = 0.0355680061493

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  5.458e+00  1.513e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.220e+00  2.835e-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:  9.848e-01  1.042e-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:  5.930e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.62
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.22 +/- 0.28
Photon Flux (Free Index): 1.87e-07 +/- 5.87e-08
Energy Flux (Free Index): 6.93e-05 +/- 2.13e-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/395241/cmap_HighResolution_264729601_264988801_4FGL_J2236.3+2828_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='6.93e-05', photon_flux_error='4.75e-08', dlogl='3.56e-02', energy_flux='7.22e-05', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-28 16:46:06.376206', photon_index_error2='0.28', photon_index2='2.22', ts='37.53', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.61', time_epoch_completed='1632872766.38', return_code='0', job_id='395241', GAL2='0.98', EG2='0.59', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='5.87e-08', ts2='37.62', photon_index='2.15' WHERE bin_id='98' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:46:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 395241: <4FGL_J2236.3+2828_daily_bin98> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin98> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 16:31:04 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 16:31:06 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:31:06 2021
Terminated at Tue Sep 28 16:46:07 2021
Results reported at Tue Sep 28 16:46:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin98 339.096 28.4832 264729601 264988801 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

