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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1033
RA = 339.096, Dec = 28.4832
tmin = 507081601, tmax = 507340801
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='399834', job_status='RUN', time_executed='2021-09-28 16:49:42.118733', time_epoch_executed='1632872982.12' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399834/ft1_4FGL_J2236.3+2828_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399834/ft2_4FGL_J2236.3+2828_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399834/ft1_4FGL_J2236.3+2828_daily_bin1033.fits outfile=/scratch/kocevski/399834/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1033.fits ra=339.096 dec=28.4832 rad=12.0 tmin=507081601.0 tmax=507340801.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 5.44
user 4.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399834/ft2_4FGL_J2236.3+2828_daily_bin1033.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/399834/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1033.fits evtable="EVENTS" outfile="/scratch/kocevski/399834/ft1_filtered_4FGL_J2236.3+2828_daily_bin1033.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.51
user 0.32
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399834/ft1_filtered_4FGL_J2236.3+2828_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/399834/ft2_4FGL_J2236.3+2828_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/399834/ltcube_507081601_507340801_4FGL_J2236.3+2828_daily_bin1033.fits outfile=/scratch/kocevski/399834/expmap_507081601_507340801_4FGL_J2236.3+2828_daily_bin1033.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/399834/ltcube_507081601_507340801_4FGL_J2236.3+2828_daily_bin1033.fits
.....................!
real 192.51
user 186.95
sys 5.09

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/399834/ft1_filtered_4FGL_J2236.3+2828_daily_bin1033.fits scfile=/scratch/kocevski/399834/ft2_4FGL_J2236.3+2828_daily_bin1033.fits outfile=/scratch/kocevski/399834/cmap_507081601_507340801_4FGL_J2236.3+2828_daily_bin1033.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399834/ft1_filtered_4FGL_J2236.3+2828_daily_bin1033.fits scfile=/scratch/kocevski/399834/ft2_4FGL_J2236.3+2828_daily_bin1033.fits outfile=/scratch/kocevski/399834/cmap_HighResolution_507081601_507340801_4FGL_J2236.3+2828_daily_bin1033.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.60
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.649       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.617       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21390E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    7.1128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    95.401       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2840       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86089       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=   9467.097     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2328 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.649        10.136        .26921E-07   -.29822E-04
   2  norm          .10000E-03    .28078        .93484E-07** at limit **
   3  Prefactor     23.613        38.085       -.11048E-06   -.99402E-05
   4  Prefactor     .10003E-03    7.6671       -.13828E-05** at limit **
   5  norm          7.1135        6.5359        .26686E-05    .15642E-03
   6  Prefactor     95.297        133.87       -.63519E-06   -.77316E-04
   7  Prefactor     .10000E-03    5.3809       -.15864E-06** at limit **
   8  norm          3.4190        1.4531        .11440E-07    .99998E-04
   9  Prefactor     .10000E-03    36.477        .25043E-07** at limit **
  10  Prefactor     .10000E-03    9.4980        .19457E-06** at limit **
  11  norm          .10000E-03    .52982        .24912E-07** at limit **
  12  Prefactor     .10000E-03    12.940       -.84849E-07** at limit **
  13  Prefactor     .10000E-03    4.7245        .42132E-07** at limit **
  14  Prefactor     .10000E-03    3.8167        .92517E-07** at limit **
  15  Prefactor     .10000E-03    8.9479       -.55062E-07** at limit **
  16  norm          4.7405        1.8769        .16870E-07    .22246E-05
  17  Prefactor     .10000E-03    12.074        .26571E-06** at limit **
  18  Prefactor     .10000E-03    23.107        .41739E-06** at limit **
  19  norm          2.8778        2.8209       -.76182E-07   -.10739E-04
  20  Prefactor     .10000E-03    12.195        .24995E-06** at limit **
  21  Normalizat    1.2837        .22374        .68589E-06    .44646E-04
  22  Prefactor     .86097        .95792E-01   -.47929E-06    .16195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6487
  norm       = 0.0001
  Prefactor  = 23.6127
  Prefactor  = 0.000100028
  norm       = 7.11346
  Prefactor  = 95.2971
  Prefactor  = 0.0001
  norm       = 3.419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.7405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87775
  Prefactor  = 0.0001
  Normalizat = 1.28373
  Prefactor  = 0.860974
 **********
 **   18 **HESSE 
 **********

 FCN=   9467.097     FROM HESSE     STATUS=OK           340 CALLS     2668 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.649        10.107        .10842E-03   -1.4969    
   2  norm          .10000E-03    .42572        .99442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.613        38.089        .82426E-04   -1.4736    
   4  Prefactor     .10003E-03    26.539        .50196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.1135        6.5976        .75205E-03   -1.5174    
   6  Prefactor     95.297        132.94        .20575E-03   -1.3752    
   7  Prefactor     .10000E-03    5.4015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4190        1.4505        .71586E-04   -1.5338    
   9  Prefactor     .10000E-03    36.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .53589        .69153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7405        1.8758        .79944E-04   -1.5272    
  17  Prefactor     .10000E-03    12.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8778        2.8291        .15749E-03   -1.5369    
  20  Prefactor     .10000E-03    12.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2837        .26271        .36323E-03   -.84053    
  22  Prefactor     .86097        .11263        .18877E-03   -.97518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21304e-09
Minuit parameter uncertainties:
  1  10.1085
  2  1.74084e-06
  3  38.1282
  4  0.00172918
  5  6.59827
  6  133.355
  7  1.18516e-05
  8  1.45053
  9  4.52529e-05
  10  3.43969e-05
  11  3.44756e-07
  12  5.97465e-05
  13  2.39883e-06
  14  4.33069e-06
  15  2.90141e-05
  16  1.87585
  17  1.9114e-05
  18  4.79873e-05
  19  2.82925
  20  1.1505e-05
  21  0.262987
  22  0.112655
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.419e+00  1.451e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.610e-01  1.127e-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.284e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.53
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 4.65e-08
Energy Flux (Fixed Index): 4.45e-05 +/- 1.89e-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) = 9467.02130378
delta logL = 0.0756933590255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9467.01223373
delta logL = 0.0847634142992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2601       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9592       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85429       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=   9467.012     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2600        1.6684        .56073E-02    .20249E-03
   2  alpha         1.9591        .41973        .35893       -.38576E-04
   3  Normalizat    1.3101        .22087        .81352E-01   -.23152E-03
   4  Prefactor     .85429        .95417E-01    .44420E-01   -.52389E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25998
  alpha      = 1.95913
  Normalizat = 1.31009
  Prefactor  = 0.854291
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2600        1.5202        .72847E-04   -1.5347    
   2  alpha         1.9591        .44675        .13503E-01   -.21807    
   3  Normalizat    1.3101        .26364        .36013E-03   -.83266    
   4  Prefactor     .85429        .11280        .18943E-03   -.97757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15909e-10
Minuit parameter uncertainties:
  1  1.52023
  2  0.449278
  3  0.263907
  4  0.112831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399834': 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) = 9467.0122337
delta logL = 0.0847634406709

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.260e+00  1.520e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.959e+00  4.493e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.543e-01  1.128e-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.310e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.60
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.96 +/- 0.45
Photon Flux (Free Index): 9.02e-08 +/- 5.96e-08
Energy Flux (Free Index): 4.76e-05 +/- 2.28e-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/399834/cmap_HighResolution_507081601_507340801_4FGL_J2236.3+2828_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='4.76e-05', photon_flux_error='4.65e-08', dlogl='8.48e-02', energy_flux='4.45e-05', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-09-28 17:01:25.400789', photon_index_error2='0.45', photon_index2='1.96', ts='14.53', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.28', time_epoch_completed='1632873685.4', return_code='0', job_id='399834', GAL2='0.85', EG2='1.31', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='5.96e-08', ts2='14.60', photon_index='2.15' WHERE bin_id='1033' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 17:01:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 399834: <4FGL_J2236.3+2828_daily_bin1033> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1033 339.096 28.4832 507081601 507340801 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 :                                   695.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

