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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1376
RA = 337.166, Dec = -16.6073
tmin = 595987201, tmax = 596246401
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='307910', job_status='RUN', time_executed='2021-09-28 11:46:06.825514', time_epoch_executed='1632854766.83' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307910/ft1_4FGL_J2228.6-1636_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307910/ft1_4FGL_J2228.6-1636_daily_bin1376.fits outfile=/scratch/kocevski/307910/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1376.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=595987201.0 tmax=596246401.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.13
user 2.92
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.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/307910/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1376.fits evtable="EVENTS" outfile="/scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/307910/ltcube_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.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/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits
.....................!
real 12.25
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/307910/ltcube_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.fits outfile=/scratch/kocevski/307910/expmap_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.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/307910/ltcube_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.fits
.....................!
real 190.52
user 185.37
sys 4.84

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J2228.6-1636 @ 337.166 -16.6073

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits scfile=/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits outfile=/scratch/kocevski/307910/cmap_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.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=337.166 yref=-16.6073 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits scfile=/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits outfile=/scratch/kocevski/307910/cmap_HighResolution_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.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=337.166 yref=-16.6073 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307910/Model_4FGL_J2228.6-1636_daily_bin1376.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/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits.....................!
real 48.83
user 47.58
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits', '/scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits', expMap='/scratch/kocevski/307910/expmap_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.fits', expCube='/scratch/kocevski/307910/ltcube_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307910/Model_4FGL_J2228.6-1636_daily_bin1376.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/307910/ft1_filtered_4FGL_J2228.6-1636_daily_bin1376.fits
Spacecraft file(s): /scratch/kocevski/307910/ft2_4FGL_J2228.6-1636_daily_bin1376.fits
Exposure map: /scratch/kocevski/307910/expmap_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.fits
Exposure cube: /scratch/kocevski/307910/ltcube_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307910/Model_4FGL_J2228.6-1636_daily_bin1376.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) = 5498.22604262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1929       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.383       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    72.315       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3499       1.0000         .10000E-03   10000.    
    12 'norm      '    12.285       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .44534       1.0000         .10000E-03   10000.    
    17 'Prefactor '    121.99       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.8963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.112       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.511       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81150       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5498.192     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2738 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.305       -.54268E-07** at limit **
   2  norm          4.1196        4.1014       -.52795E-07    .95553E-05
   3  Prefactor     4.1917        6.7641        .23717E-05   -.47121E-03
   4  Prefactor     4.8075        7.2829       -.62545E-07   -.18865E-05
   5  Prefactor     17.384        12.353        .93824E-07    .45797E-05
   6  Prefactor     .10000E-03    2.7387       -.17876E-07** at limit **
   7  Prefactor     1.6384        57.249        .12635E-05   -.59114E-05
   8  Prefactor     .10000E-03    29.482        .81136E-06** at limit **
   9  Prefactor     .10000E-03    5.8533       -.15054E-06** at limit **
  10  Prefactor     72.317        61.764        .98297E-07    .17054E-04
  11  norm          3.3498        2.9254        .47770E-07    .20188E-04
  12  norm          12.293        20.521       -.15921E-06   -.16426E-04
  13  Prefactor     .10000E-03    31.644       -.20370E-06** at limit **
  14  Prefactor     .10000E-03    20.495        .76274E-06** at limit **
  15  norm          .10000E-03    .32540       -.81453E-08** at limit **
  16  norm          .44493        2.2607        .15494E-05    .51165E-03
  17  Prefactor     122.00        66.609       -.23228E-05   -.51951E-04
  18  Prefactor     .10000E-03    45.445       -.24391E-05** at limit **
  19  norm          8.8962        1.9044        .13853E-06    .17879E-02
  20  Prefactor     .10000E-03    57.041        .17752E-05** at limit **
  21  Prefactor     11.112        15.054        .38054E-06   -.26210E-04
  22  Prefactor     10.512        12.630        .57768E-06   -.25591E-04
  23  Normalizat    .81126        .20893       -.12305E-05   -.19550E-05
  24  Prefactor     1.0226        .15452        .25574E-06    .11092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.11962
  Prefactor  = 4.19169
  Prefactor  = 4.8075
  Prefactor  = 17.3836
  Prefactor  = 0.0001
  Prefactor  = 1.63843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.3168
  norm       = 3.3498
  norm       = 12.293
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.444933
  Prefactor  = 122.005
  Prefactor  = 0.0001
  norm       = 8.89622
  Prefactor  = 0.000100001
  Prefactor  = 11.1119
  Prefactor  = 10.5119
  Normalizat = 0.811262
  Prefactor  = 1.02261
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.192     FROM HESSE     STATUS=OK           395 CALLS     3133 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1196        4.1089        .14628E-03   -1.5302    
   3  Prefactor     4.1917        6.8494        .98407E-03   -1.5298    
   4  Prefactor     4.8075        7.2747        .18348E-03   -1.5269    
   5  Prefactor     17.384        12.323        .96063E-04   -1.4874    
   6  Prefactor     .10000E-03    2.7418        .11984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6384        57.269        .33007E-03   -1.5452    
   8  Prefactor     .10000E-03    29.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0188        .35002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     72.317        61.739        .47210E-04   -1.4005    
  11  norm          3.3498        2.9238        .11374E-03   -1.5342    
  12  norm          12.293        20.517        .11429E-03   -1.5007    
  13  Prefactor     .10000E-03    31.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .33837        .82470E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44493        2.2037        .19588E-03   -1.5575    
  17  Prefactor     122.00        66.597        .36439E-04   -1.3494    
  18  Prefactor     .10000E-03    45.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8962        1.9065        .44544E-04   -1.5111    
  20  Prefactor     .10000E-03    56.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.112        15.076        .60091E-03   -1.5041    
  22  Prefactor     10.512        12.631        .61792E-03   -1.5059    
  23  Normalizat    .81126        .24097        .30239E-03   -.99652    
  24  Prefactor     1.0226        .18099        .21015E-03   -.91980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55316e-10
Minuit parameter uncertainties:
  1  1.3491e-05
  2  4.10915
  3  6.8507
  4  7.27603
  5  12.325
  6  1.96885e-06
  7  19.3929
  8  0.000107761
  9  1.67536e-05
  10  61.7937
  11  2.92393
  12  20.5284
  13  9.03919e-06
  14  0.000249206
  15  3.5236e-07
  16  1.98028
  17  66.638
  18  0.000202219
  19  1.90656
  20  0.000441975
  21  15.0814
  22  12.6337
  23  0.241293
  24  0.181097
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  7.232e+01  6.179e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.023e+00  1.811e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  8.113e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 337.166 -16.607
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 2.00e-05

TS (Fixed Index): 2.33
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307910/likelihoodResults_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.txt

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) = 5498.18854738
delta logL = 0.0034562235187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5498.18608499
delta logL = 0.00591860730674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.057       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1158       1.0000          .0000       10.000    
     3 'Normalizat'    .80940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5498.186     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.048        80.422        .49013E-04    .40768E-03
   2  Index         2.1159        .57401        .59590E-02    .29249E-03
   3  Normalizat    .80913        .23038        .30275E-03   -.28104E-03
   4  Prefactor     1.0235        .17877        .21007E-03   -.45531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.0482
  Index      = 2.1159
  Normalizat = 0.809132
  Prefactor  = 1.0235
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.186     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.048        75.833        .98026E-05   -1.4068    
   2  Index         2.1159        .54120        .23836E-03   -.61483    
   3  Normalizat    .80913        .23041        .12110E-04   -.99731    
   4  Prefactor     1.0235        .17883        .42013E-04   -.91950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26094e-09
Minuit parameter uncertainties:
  1  75.943
  2  0.542796
  3  0.230689
  4  0.178938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307910': 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) = 5498.18608425
delta logL = 0.00591935424472

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.705e+01  7.594e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.116e+00  5.428e-01  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.023e+00  1.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  8.091e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 2.12 +/- 0.54
Photon Flux (Free Index): 4.08e-08 +/- 3.88e-08
Energy Flux (Free Index): 2.17e-05 +/- 2.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/307910/cmap_HighResolution_595987201_596246401_4FGL_J2228.6-1636_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='2.17e-05', photon_flux_error='3.31e-08', dlogl='5.92e-03', energy_flux='2.34e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2021-09-28 11:55:55.934475', photon_index_error2='0.54', photon_index2='2.12', ts='2.33', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='2.39e-05', EG='0.81', time_epoch_completed='1632855355.93', return_code='0', job_id='307910', GAL2='1.02', EG2='0.81', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='3.88e-08', ts2='2.33', photon_index='2.06' WHERE bin_id='1376' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 307910: <4FGL_J2228.6-1636_daily_bin1376> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1376> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:45:25 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:45:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:45:27 2021
Terminated at Tue Sep 28 11:55:56 2021
Results reported at Tue Sep 28 11:55:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1376 337.166 -16.6073 595987201 596246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2228.6-1636 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            631 sec.

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

