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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin67
RA = 339.096, Dec = 28.4832
tmin = 256694401, tmax = 256953601
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='395199', job_status='RUN', time_executed='2021-09-28 16:34:37.852101', time_epoch_executed='1632872077.85' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='67'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395199/ft1_4FGL_J2236.3+2828_daily_bin67.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395199/ft2_4FGL_J2236.3+2828_daily_bin67.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395199/ft1_4FGL_J2236.3+2828_daily_bin67.fits outfile=/scratch/kocevski/395199/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin67.fits ra=339.096 dec=28.4832 rad=12.0 tmin=256694401.0 tmax=256953601.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.43
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395199/ft1_filtered_4FGL_J2236.3+2828_daily_bin67.fits" evtable="EVENTS" scfile=/scratch/kocevski/395199/ft2_4FGL_J2236.3+2828_daily_bin67.fits sctable="SC_DATA" outfile=/scratch/kocevski/395199/ltcube_256694401_256953601_4FGL_J2236.3+2828_daily_bin67.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/395199/ft2_4FGL_J2236.3+2828_daily_bin67.fits
.....................!
real 12.92
user 12.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395199/ft1_filtered_4FGL_J2236.3+2828_daily_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/395199/ft2_4FGL_J2236.3+2828_daily_bin67.fits sctable="SC_DATA" expcube=/scratch/kocevski/395199/ltcube_256694401_256953601_4FGL_J2236.3+2828_daily_bin67.fits outfile=/scratch/kocevski/395199/expmap_256694401_256953601_4FGL_J2236.3+2828_daily_bin67.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/395199/ltcube_256694401_256953601_4FGL_J2236.3+2828_daily_bin67.fits
.....................!
real 190.53
user 185.76
sys 4.40

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/395199/ft1_filtered_4FGL_J2236.3+2828_daily_bin67.fits scfile=/scratch/kocevski/395199/ft2_4FGL_J2236.3+2828_daily_bin67.fits outfile=/scratch/kocevski/395199/cmap_256694401_256953601_4FGL_J2236.3+2828_daily_bin67.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395199/ft1_filtered_4FGL_J2236.3+2828_daily_bin67.fits scfile=/scratch/kocevski/395199/ft2_4FGL_J2236.3+2828_daily_bin67.fits outfile=/scratch/kocevski/395199/cmap_HighResolution_256694401_256953601_4FGL_J2236.3+2828_daily_bin67.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.272       1.0000         .10000E-03   10000.    
     5 'norm      '    .57876       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.635       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5413       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53672E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1367       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4697       1.0000         .10000E-03   10000.    
    19 'norm      '    10.363       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.253       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86821       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91631       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=   7422.263     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2974 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4423        .38521E-07** at limit **
   2  norm          .10000E-03    .39194        .11594E-06** at limit **
   3  Prefactor     .10000E-03    17.785        .16501E-06** at limit **
   4  Prefactor     38.271        20.840       -.48167E-06   -.53233E-04
   5  norm          .57840        3.3179        .15042E-05   -.31773E-03
   6  Prefactor     55.629        78.233       -.71390E-06   -.50438E-04
   7  Prefactor     4.5393        10.528        .69902E-05   -.56965E-03
   8  norm          2.5006        1.2833        .68982E-07   -.95499E-04
   9  Prefactor     .10102E-03    506.93       -.48380E-04** at limit **
  10  Prefactor     .10000E-03    79.086        .10403E-05** at limit **
  11  norm          2.3336        1.4372       -.16468E-07   -.25114E-05
  12  Prefactor     .10000E-03    3.7404        .15051E-07** at limit **
  13  Prefactor     .10000E-03    6.3136        .13392E-07** at limit **
  14  Prefactor     .10000E-03    3.2916        .28212E-07** at limit **
  15  Prefactor     .10000E-03    20.266       -.16191E-06** at limit **
  16  norm          1.1365        1.5951        .32972E-06   -.38566E-04
  17  Prefactor     .10000E-03    9.6688        .74676E-07** at limit **
  18  Prefactor     8.4679        14.755        .35244E-06    .18419E-04
  19  norm          10.363        7.2138        .25493E-07   -.52142E-04
  20  Prefactor     17.252        21.973        .18747E-06   -.29491E-04
  21  Normalizat    .86828        .22792       -.20111E-05   -.46761E-05
  22  Prefactor     .91631        .99982E-01   -.15381E-06    .57621E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2709
  norm       = 0.578402
  Prefactor  = 55.6287
  Prefactor  = 4.5393
  norm       = 2.50057
  Prefactor  = 0.000101025
  Prefactor  = 0.0001
  norm       = 2.33355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13648
  Prefactor  = 0.0001
  Prefactor  = 8.46791
  norm       = 10.3628
  Prefactor  = 17.2519
  Normalizat = 0.868278
  Prefactor  = 0.916309
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.263     FROM HESSE     STATUS=OK           342 CALLS     3316 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4509        .15610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .73959        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.271        20.857        .64787E-04   -1.4470    
   5  norm          .57840        3.2430        .30497E-03   -1.5556    
   6  Prefactor     55.629        78.329        .53779E-04   -1.4215    
   7  Prefactor     4.5393        10.863        .94455E-03   -1.5282    
   8  norm          2.5006        1.2793        .66535E-04   -1.5392    
   9  Prefactor     .10102E-03    590.98        .21122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    80.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3336        1.4405        .79036E-04   -1.5402    
  12  Prefactor     .10000E-03    3.7516        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2983        .15265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1365        1.5600        .12017E-03   -1.5495    
  17  Prefactor     .10000E-03    9.7043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4679        14.745        .13774E-03   -1.5126    
  19  norm          10.363        7.1905        .12447E-03   -1.5064    
  20  Prefactor     17.252        21.986        .96424E-04   -1.4877    
  21  Normalizat    .86828        .26761        .36991E-03   -.97584    
  22  Prefactor     .91631        .11833        .16702E-03   -.95574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66964e-09
Minuit parameter uncertainties:
  1  2.91477e-06
  2  2.56983e-06
  3  3.26795e-05
  4  20.8607
  5  2.73915
  6  78.4745
  7  10.8679
  8  1.27928
  9  0.0497106
  10  0.00038924
  11  1.44054
  12  1.03423e-06
  13  3.23532e-06
  14  2.0122e-06
  15  3.35334e-05
  16  1.56004
  17  8.28885e-06
  18  14.751
  19  7.19109
  20  21.9958
  21  0.268016
  22  0.11836
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.501e+00  1.279e+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.163e-01  1.184e-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.683e-01  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.00
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.02e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.66e-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) = 7422.25436766
delta logL = 0.00823510102873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7422.25383995
delta logL = 0.00876280733246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4872       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2128       1.0000          .0000       5.0000    
     3 'Normalizat'    .86167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91830       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=   7422.254     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4868        27.651        .64799E-02    .83850E-03
   2  alpha         2.2125        3.2447        .37204       -.86821E-05
   3  Normalizat    .86160        .14703        .83840E-01   -.12800E-03
   4  Prefactor     .91825        .60164E-01    .45238E-01   -.39188E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48683
  alpha      = 2.21252
  Normalizat = 0.861605
  Prefactor  = 0.918249
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.254     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4868        1.2727        .65577E-04   -1.5393    
   2  alpha         2.2125        .50514        .13866E-01   -.11525    
   3  Normalizat    .86160        .25772        .37121E-03   -.97823    
   4  Prefactor     .91825        .11802        .16686E-03   -.95506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16929e-10
Minuit parameter uncertainties:
  1  1.27267
  2  0.508694
  3  0.258091
  4  0.118054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395199': 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) = 7422.25383861
delta logL = 0.00876414361755

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.487e+00  1.273e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.213e+00  5.087e-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.182e-01  1.181e-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.616e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.04
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.21 +/- 0.51
Photon Flux (Free Index): 8.46e-08 +/- 5.29e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.74e-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/395199/cmap_HighResolution_256694401_256953601_4FGL_J2236.3+2828_daily_bin67.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.02e-08', energy_flux2='3.16e-05', photon_flux_error='4.10e-08', dlogl='8.76e-03', energy_flux='3.25e-05', photon_flux2='8.46e-08', job_status='DONE', time_completed='2021-09-28 16:45:43.513854', photon_index_error2='0.51', photon_index2='2.21', ts='9.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.87', time_epoch_completed='1632872743.51', return_code='0', job_id='395199', GAL2='0.92', EG2='0.86', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.29e-08', ts2='9.04', photon_index='2.15' WHERE bin_id='67' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 395199: <4FGL_J2236.3+2828_daily_bin67> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin67 339.096 28.4832 256694401 256953601 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 :                                   665.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

