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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1076
RA = 337.166, Dec = -16.6073
tmin = 518227201, tmax = 518486401
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='306416', job_status='RUN', time_executed='2021-09-28 11:44:13.569819', time_epoch_executed='1632854653.57' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306416/ft1_4FGL_J2228.6-1636_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306416/ft1_4FGL_J2228.6-1636_daily_bin1076.fits outfile=/scratch/kocevski/306416/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1076.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=518227201.0 tmax=518486401.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.60
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/306416/ltcube_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.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/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits
.....................!
real 11.79
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/306416/ltcube_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.fits outfile=/scratch/kocevski/306416/expmap_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.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/306416/ltcube_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.fits
.....................!
real 190.58
user 185.03
sys 5.20

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/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits scfile=/scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits outfile=/scratch/kocevski/306416/cmap_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits scfile=/scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits outfile=/scratch/kocevski/306416/cmap_HighResolution_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.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.58
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306416/Model_4FGL_J2228.6-1636_daily_bin1076.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/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits.....................!
real 47.25
user 45.81
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits', '/scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits', expMap='/scratch/kocevski/306416/expmap_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.fits', expCube='/scratch/kocevski/306416/ltcube_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/306416/Model_4FGL_J2228.6-1636_daily_bin1076.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/306416/ft1_filtered_4FGL_J2228.6-1636_daily_bin1076.fits
Spacecraft file(s): /scratch/kocevski/306416/ft2_4FGL_J2228.6-1636_daily_bin1076.fits
Exposure map: /scratch/kocevski/306416/expmap_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.fits
Exposure cube: /scratch/kocevski/306416/ltcube_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/306416/Model_4FGL_J2228.6-1636_daily_bin1076.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) = 5089.97958949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.265       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9900       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4775       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12893E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19832E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67734E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20228E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    13.247       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9450       1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.109       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0987       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8335       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.249       1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.355       1.0000         .10000E-03   10000.    
    19 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32699E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84193       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91274       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5089.331     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     2014 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.049        18.481        .82502E-05   -.41216E-02
   2  norm          3.9545        3.9538        .21664E-07    .17049E-04
   3  Prefactor     9.6045        7.8706       -.78183E-06   -.52725E-04
   4  Prefactor     15.139        18.674       -.19955E-05   -.15082E-02
   5  Prefactor     .10016E-03    21.023        .69039E-04** at limit **
   6  Prefactor     24.521        13.032       -.21174E-05   -.89879E-02
   7  Prefactor     .10000E-03    12.352        .79560E-06** at limit **
   8  Prefactor     .10000E-03    22.777       -.93815E-06** at limit **
   9  Prefactor     3.7577        4.8415        .21448E-06   -.47792E-04
  10  Prefactor     .10010E-03    20.319       -.54948E-04** at limit **
  11  norm          13.340        5.2466        .36024E-06   -.64175E-04
  12  norm          6.9378        19.443        .49270E-04   -.35102E-02
  13  Prefactor     81.022        77.105       -.23291E-05    .24607E-03
  14  Prefactor     2.0571        9.4531       -.79390E-05   -.27084E-03
  15  norm          1.8335        .98320        .81362E-07   -.20818E-03
  16  norm          .10000E-03    .88318       -.32120E-06** at limit **
  17  Prefactor     44.931        43.414       -.12839E-05    .26237E-03
  18  Prefactor     61.367        3.7564       -.18670E-05   -.41980E-02
  19  norm          .10000E-03    3.2989       -.89930E-06** at limit **
  20  Prefactor     .10000E-03    9.6975       -.27731E-07** at limit **
  21  Prefactor     .10000E-03    4.7465       -.10331E-06** at limit **
  22  Prefactor     14.879        10.590       -.71345E-05   -.96669E-02
  23  Normalizat    .83945        .26509        .47627E-05   -.35863E-04
  24  Prefactor     .91439        .19812       -.43626E-05   -.53381E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0488
  norm       = 3.95451
  Prefactor  = 9.60453
  Prefactor  = 15.1393
  Prefactor  = 0.000100164
  Prefactor  = 24.5212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.75768
  Prefactor  = 0.000100098
  norm       = 13.3399
  norm       = 6.93783
  Prefactor  = 81.0216
  Prefactor  = 2.05707
  norm       = 1.83351
  norm       = 0.0001
  Prefactor  = 44.9306
  Prefactor  = 61.3672
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8788
  Normalizat = 0.839447
  Prefactor  = 0.914391
 **********
 **   18 **HESSE 
 **********

 FCN=   5089.331     FROM HESSE     STATUS=OK           457 CALLS     2471 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.049        19.443        .20761E-02   -1.4747    
   2  norm          3.9545        3.9464        .50477E-02   -1.5310    
   3  Prefactor     9.6045        7.8830        .32544E-02   -1.5088    
   4  Prefactor     15.139        18.803        .26068E-02   -1.4930    
   5  Prefactor     .10016E-03    20.974        .10293E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.521        14.861        .20177E-02   -1.4717    
   7  Prefactor     .10000E-03    12.303        .10118E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.742        .93762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7577        4.8549        .52291E-02   -1.5320    
  10  Prefactor     .10010E-03    20.561        .10109E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.340        5.2572        .27514E-02   -1.4977    
  12  norm          6.9378        22.950        .38058E-02   -1.5181    
  13  Prefactor     81.022        77.090        .10641E-02   -1.3905    
  14  Prefactor     2.0571        9.6587        .71222E-02   -1.5421    
  15  norm          1.8335        .99153        .77042E-02   -1.5437    
  16  norm          .10000E-03    .88625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.931        43.458        .15240E-02   -1.4366    
  18  Prefactor     61.367        24.317        .12806E-02   -1.4140    
  19  norm          .10000E-03    1.2730        .35446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.6978        .98665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7249        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.879        14.645        .25985E-02   -1.4936    
  23  Normalizat    .83945        .22598        .68257E-01   -.98622    
  24  Prefactor     .91439        .16615        .45167E-01   -.95640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72807e-07
Minuit parameter uncertainties:
  1  19.4487
  2  3.94662
  3  7.88388
  4  18.8107
  5  0.00370638
  6  14.8635
  7  4.04659e-05
  8  8.36965e-05
  9  4.85545
  10  0.00284325
  11  5.25738
  12  22.9792
  13  77.1855
  14  8.91699
  15  0.991534
  16  7.24882e-07
  17  43.4888
  18  24.3213
  19  8.64943e-06
  20  1.90265e-06
  21  1.5068e-06
  22  14.6482
  23  0.226233
  24  0.166238
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.001e-04  2.843e-03  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:  9.144e-01  1.662e-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.394e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 5.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306416/likelihoodResults_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.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): 102
logL (Free Index) = 5089.33076186
delta logL = -0.000231203104704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5089.33053146
delta logL = -8.08931872598e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2894       1.0000          .0000       10.000    
     3 'Normalizat'    .83944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91439       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=   5089.331     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10163E-03    86.109        .18142E-02** at limit **
   2  Index         2.2291        5.6595        .50000        .16776E-04
   3  Normalizat    .83945        .12130E-01    .30199E-03   -.10962E-03
   4  Prefactor     .91439        .92500E-02    .21997E-03   -.15887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101635
  Index      = 2.22907
  Normalizat = 0.839447
  Prefactor  = 0.914391
 **********
 **   18 **HESSE 
 **********

 FCN=   5089.331     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10163E-03    373.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2291        8.1475        .50000       -.58738    
   3  Normalizat    .83945        .25879E-01    .12080E-04   -.98622    
   4  Prefactor     .91439        .19735E-01    .43993E-04   -.95640    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1368e-08
Minuit parameter uncertainties:
  1  0.049761
  2  386.556
  3  0.0258794
  4  0.0197347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306416': 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): 102
logL (Free Index) = 5089.33053124
delta logL = -5.86814167036e-07

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.016e-04  4.976e-02  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.229e+00  3.866e+02  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:  9.144e-01  1.973e-02  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.394e-01  2.588e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/306416/cmap_HighResolution_518227201_518486401_4FGL_J2228.6-1636_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2021-09-28 11:53:13.103755', job_id='306416', GAL2='0.91', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632855193.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-5.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1076' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:53:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 306416: <4FGL_J2228.6-1636_daily_bin1076> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1076> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 11:40:30 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:40:32 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:40:32 2021
Terminated at Tue Sep 28 11:53:13 2021
Results reported at Tue Sep 28 11:53:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1076 337.166 -16.6073 518227201 518486401 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 :                                   532.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

