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


Performing analysis on: 4FGL_J2236.3+2828_daily_bin1037
RA = 339.096, Dec = 28.4832
tmin = 508118401, tmax = 508377601
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='399840', job_status='RUN', time_executed='2021-09-28 16:47:44.347290', time_epoch_executed='1632872864.35' WHERE source_name='4FGL J2236.3+2828' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399840

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399840/ft1_4FGL_J2236.3+2828_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399840/ft2_4FGL_J2236.3+2828_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399840/ft1_4FGL_J2236.3+2828_daily_bin1037.fits outfile=/scratch/kocevski/399840/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1037.fits ra=339.096 dec=28.4832 rad=12.0 tmin=508118401.0 tmax=508377601.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.70
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399840/ft2_4FGL_J2236.3+2828_daily_bin1037.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/399840/ft1_filteredMKT_4FGL_J2236.3+2828_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/399840/ft1_filtered_4FGL_J2236.3+2828_daily_bin1037.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399840/ft1_filtered_4FGL_J2236.3+2828_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/399840/ft2_4FGL_J2236.3+2828_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/399840/ltcube_508118401_508377601_4FGL_J2236.3+2828_daily_bin1037.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/399840/ft2_4FGL_J2236.3+2828_daily_bin1037.fits
.....................!
real 11.73
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399840/ft1_filtered_4FGL_J2236.3+2828_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/399840/ft2_4FGL_J2236.3+2828_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/399840/ltcube_508118401_508377601_4FGL_J2236.3+2828_daily_bin1037.fits outfile=/scratch/kocevski/399840/expmap_508118401_508377601_4FGL_J2236.3+2828_daily_bin1037.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/399840/ltcube_508118401_508377601_4FGL_J2236.3+2828_daily_bin1037.fits
.....................!
real 190.54
user 185.22
sys 4.96

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/399840/ft1_filtered_4FGL_J2236.3+2828_daily_bin1037.fits scfile=/scratch/kocevski/399840/ft2_4FGL_J2236.3+2828_daily_bin1037.fits outfile=/scratch/kocevski/399840/cmap_508118401_508377601_4FGL_J2236.3+2828_daily_bin1037.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399840/ft1_filtered_4FGL_J2236.3+2828_daily_bin1037.fits scfile=/scratch/kocevski/399840/ft2_4FGL_J2236.3+2828_daily_bin1037.fits outfile=/scratch/kocevski/399840/cmap_HighResolution_508118401_508377601_4FGL_J2236.3+2828_daily_bin1037.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3264       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.358       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3509       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3335       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5304       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1063       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99418       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=   9771.631     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2332 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3241        7.6741        .61237E-05   -.57973E-03
   2  norm          .10000E-03    .32973       -.24595E-06** at limit **
   3  Prefactor     16.351        27.545        .59398E-05    .51657E-03
   4  Prefactor     .10000E-03    7.2539        .33107E-06** at limit **
   5  norm          3.3524        7.9809        .63307E-06   -.50633E-04
   6  Prefactor     .10000E-03    20.241       -.11679E-05** at limit **
   7  Prefactor     .10000E-03    12.968        .65577E-06** at limit **
   8  norm          4.2277        1.3059        .17486E-07    .16886E-04
   9  Prefactor     30.834        68.984       -.28048E-05   -.95776E-04
  10  Prefactor     .10000E-03    5.8335       -.54100E-06** at limit **
  11  norm          2.3335        1.5323        .14384E-07   -.16336E-04
  12  Prefactor     .10000E-03    5.7109        .19644E-06** at limit **
  13  Prefactor     .10000E-03    20.660        .10936E-05** at limit **
  14  Prefactor     .10000E-03    5.8426        .41060E-06** at limit **
  15  Prefactor     .10000E-03    7.8527       -.86127E-06** at limit **
  16  norm          1.4197        1.1793        .10307E-06   -.80164E-04
  17  Prefactor     .10000E-03    10.251       -.80089E-06** at limit **
  18  Prefactor     .10000E-03    15.777       -.14274E-06** at limit **
  19  norm          2.5307        2.7335        .38159E-07   -.27978E-04
  20  Prefactor     .10000E-03    8.6402        .11009E-05** at limit **
  21  Normalizat    1.1061        .21036       -.57208E-06    .14102E-04
  22  Prefactor     .99430        .95083E-01   -.15832E-06    .79703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32411
  norm       = 0.0001
  Prefactor  = 16.3508
  Prefactor  = 0.0001
  norm       = 3.35238
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.22774
  Prefactor  = 30.8341
  Prefactor  = 0.0001
  norm       = 2.33349
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.53072
  Prefactor  = 0.000100001
  Normalizat = 1.10612
  Prefactor  = 0.994297
 **********
 **   18 **HESSE 
 **********

 FCN=   9771.631     FROM HESSE     STATUS=OK           336 CALLS     2668 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3241        7.8734        .96833E-03   -1.5292    
   2  norm          .10000E-03    .53039        .10993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.351        28.990        .99027E-04   -1.4899    
   4  Prefactor     .10000E-03    7.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3524        7.9757        .22109E-03   -1.5342    
   6  Prefactor     .10000E-03    20.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2277        1.3072        .60307E-04   -1.5297    
   9  Prefactor     30.834        69.488        .71876E-04   -1.4597    
  10  Prefactor     .10000E-03    5.8468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3335        1.5301        .96668E-04   -1.5402    
  12  Prefactor     .10000E-03    5.7561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4197        1.1629        .93941E-04   -1.5470    
  17  Prefactor     .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5307        2.7325        .16524E-03   -1.5390    
  20  Prefactor     .10000E-03    8.7260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1061        .24614        .37746E-03   -.89556    
  22  Prefactor     .99430        .11187        .17996E-03   -.92920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30194e-09
Minuit parameter uncertainties:
  1  7.87527
  2  5.30081e-06
  3  29.0154
  4  3.13162e-05
  5  7.97818
  6  0.000238808
  7  8.19508e-05
  8  1.30722
  9  69.6713
  10  5.78578e-05
  11  1.53015
  12  2.068e-05
  13  0.000245174
  14  4.29179e-05
  15  0.000107418
  16  1.16291
  17  0.000108831
  18  2.20602e-05
  19  2.73266
  20  0.000143994
  21  0.246399
  22  0.111899
Done.

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

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  4.228e+00  1.307e+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.943e-01  1.119e-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.106e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.00
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 4.19e-08
Energy Flux (Fixed Index): 5.50e-05 +/- 1.70e-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) = 9770.02353521
delta logL = 1.60783444959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9769.93533087
delta logL = 1.69603879519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6390       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5626       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97433       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=   9769.935     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6376        1.2415        .52944E-02   -.78118E-04
   2  alpha         1.5623        .24546        .23965       -.59093E-04
   3  Normalizat    1.1824        .20614        .82811E-01    .23851E-04
   4  Prefactor     .97423        .93649E-01    .45945E-01    .18929E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.63763
  alpha      = 1.5623
  Normalizat = 1.18239
  Prefactor  = 0.974229
 **********
 **   18 **HESSE 
 **********

 FCN=   9769.935     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6376        1.4407        .61322E-04   -1.5326    
   2  alpha         1.5623        .30123        .10005E-01   -.38448    
   3  Normalizat    1.1824        .24283        .36663E-03   -.87149    
   4  Prefactor     .97423        .11030        .18162E-03   -.93594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54807e-10
Minuit parameter uncertainties:
  1  1.44076
  2  0.302084
  3  0.24306
  4  0.110325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399840': 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) = 9769.93532892
delta logL = 1.69604074468

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  3.638e+00  1.441e+00  1.000e-04  1.000e+04 ( 1.000e-11)
287        alpha:  1.562e+00  3.021e-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.742e-01  1.103e-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.182e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.31
Ra Dec: 339.096 28.483
Photon Index (Free Index): 1.56 +/- 0.30
Photon Flux (Free Index): 8.15e-08 +/- 3.69e-08
Energy Flux (Free Index): 9.18e-05 +/- 4.61e-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/399840/cmap_HighResolution_508118401_508377601_4FGL_J2236.3+2828_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='9.18e-05', photon_flux_error='4.19e-08', dlogl='1.70e+00', energy_flux='5.50e-05', photon_flux2='8.15e-08', job_status='DONE', time_completed='2021-09-28 16:59:37.140640', photon_index_error2='0.30', photon_index2='1.56', ts='38.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.61e-05', EG='1.11', time_epoch_completed='1632873577.14', return_code='0', job_id='399840', GAL2='0.97', EG2='1.18', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.69e-08', ts2='41.31', photon_index='2.15' WHERE bin_id='1037' AND source_name='4FGL J2236.3+2828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 16:59:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 399840: <4FGL_J2236.3+2828_daily_bin1037> in cluster <slac> Done

Job <4FGL_J2236.3+2828_daily_bin1037> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 16:45:44 2021
Job was executed on host(s) <bullet0244>, 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 16:59:37 2021
Results reported at Tue Sep 28 16:59:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2236.3+2828_daily_bin1037 339.096 28.4832 508118401 508377601 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

