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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1068
RA = 337.166, Dec = -16.6073
tmin = 516153601, tmax = 516412801
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='306404', job_status='RUN', time_executed='2021-09-28 11:40:39.444837', time_epoch_executed='1632854439.44' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306404/ft1_4FGL_J2228.6-1636_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306404/ft1_4FGL_J2228.6-1636_daily_bin1068.fits outfile=/scratch/kocevski/306404/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1068.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=516153601.0 tmax=516412801.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.51
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.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/306404/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1068.fits evtable="EVENTS" outfile="/scratch/kocevski/306404/ft1_filtered_4FGL_J2228.6-1636_daily_bin1068.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306404/ft1_filtered_4FGL_J2228.6-1636_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/306404/ltcube_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.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/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.fits
.....................!
real 12.08
user 11.77
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306404/ft1_filtered_4FGL_J2228.6-1636_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/306404/ltcube_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.fits outfile=/scratch/kocevski/306404/expmap_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.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/306404/ltcube_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.fits
.....................!
real 191.54
user 186.71
sys 4.43

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/306404/ft1_filtered_4FGL_J2228.6-1636_daily_bin1068.fits scfile=/scratch/kocevski/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.fits outfile=/scratch/kocevski/306404/cmap_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306404/ft1_filtered_4FGL_J2228.6-1636_daily_bin1068.fits scfile=/scratch/kocevski/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.fits outfile=/scratch/kocevski/306404/cmap_HighResolution_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306404/ft1_filtered_4FGL_J2228.6-1636_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/306404/ft2_4FGL_J2228.6-1636_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306404/Model_4FGL_J2228.6-1636_daily_bin1068.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/306404/ft1_filtered_4FGL_J2228.6-1636_daily_bin1068.fits.....................!
real 79.26
user 77.89
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1306       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8475       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1787       1.0000         .10000E-03   10000.    
    12 'norm      '    24.463       1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.036       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3898       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32020E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    15.789       1.0000         .10000E-03   10000.    
    20 'Prefactor '    85.296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13084       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4929       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .49803       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=   9616.240     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2815 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1394        13.265        .37116E-07   -.66051E-04
   2  norm          3.2588        4.0548        .24558E-07   -.14916E-02
   3  Prefactor     2.5662        4.7845        .42202E-07   -.19104E-03
   4  Prefactor     3.0722        18.368        .10658E-06   -.11033E-04
   5  Prefactor     1.8450        3.1107        .24650E-06   -.26297E-02
   6  Prefactor     10.271        9.5331        .17950E-06    .21276E-03
   7  Prefactor     11.948        9.7105        .12278E-07   -.35615E-04
   8  Prefactor     60.940        44.287        .25968E-06    .13493E-03
   9  Prefactor     4.7921        4.1918        .20486E-07   -.18926E-02
  10  Prefactor     .10000E-03    46.342        .13168E-07** at limit **
  11  norm          1.1761        2.1839        .29480E-07   -.43615E-03
  12  norm          24.462        18.178        .70441E-07   -.65710E-07
  13  Prefactor     85.057        65.213        .40310E-06    .13470E-03
  14  Prefactor     .10000E-03    5.9064       -.26627E-07** at limit **
  15  norm          1.3897        .69723       -.14393E-07   -.71484E-03
  16  norm          .10000E-03    .48485       -.42881E-08** at limit **
  17  Prefactor     .10000E-03    20.305        .37704E-08** at limit **
  18  Prefactor     .10004E-03    23.529        .47474E-05** at limit **
  19  norm          15.789        2.4342       -.31150E-06   -.28318E-02
  20  Prefactor     85.320        47.599       -.11576E-06   -.11868E-03
  21  Prefactor     .96706E-01    3.4274       -.12968E-06    .22893E-03
  22  Prefactor     .10000E-03    5.2620        .16318E-07** at limit **
  23  Normalizat    1.4922        .16356       -.51792E-06   -.50843E-04
  24  Prefactor     .49855        .11965        .32875E-06   -.22628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13938
  norm       = 3.25882
  Prefactor  = 2.56618
  Prefactor  = 3.07219
  Prefactor  = 1.84502
  Prefactor  = 10.2709
  Prefactor  = 11.9477
  Prefactor  = 60.9398
  Prefactor  = 4.79211
  Prefactor  = 0.0001
  norm       = 1.17613
  norm       = 24.4617
  Prefactor  = 85.0574
  Prefactor  = 0.0001
  norm       = 1.38973
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 15.7891
  Prefactor  = 85.32
  Prefactor  = 0.0967062
  Prefactor  = 0.0001
  Normalizat = 1.49221
  Prefactor  = 0.498555
 **********
 **   18 **HESSE 
 **********

 FCN=   9616.240     FROM HESSE     STATUS=OK           415 CALLS     3230 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1394        12.939        .22913E-03   -1.5354    
   2  norm          3.2588        4.1888        .11057E-02   -1.5347    
   3  Prefactor     2.5662        4.7653        .25484E-03   -1.5388    
   4  Prefactor     3.0722        17.813        .23100E-03   -1.5357    
   5  Prefactor     1.8450        6.0910        .15339E-02   -1.5436    
   6  Prefactor     10.271        9.5166        .12506E-03   -1.5067    
   7  Prefactor     11.948        9.7295        .11590E-03   -1.5017    
   8  Prefactor     60.940        44.290        .51408E-04   -1.4145    
   9  Prefactor     4.7921        4.3802        .91883E-03   -1.5270    
  10  Prefactor     .10000E-03    46.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1761        2.1317        .18663E-03   -1.5491    
  12  norm          24.462        18.199        .80990E-04   -1.4718    
  13  Prefactor     85.057        65.346        .43563E-04   -1.3861    
  14  Prefactor     .10000E-03    5.9504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3897        .69162        .55697E-04   -1.5472    
  16  norm          .10000E-03    .48682        .66668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    63.059        .87383E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.789        3.3864        .43539E-04   -1.4913    
  20  Prefactor     85.320        49.062        .43498E-04   -1.3858    
  21  Prefactor     .96706E-01    3.5498        .68378E-01   -1.5646    
  22  Prefactor     .10000E-03    5.3268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4922        .19167        .24063E-03   -.77998    
  24  Prefactor     .49855        .13970        .29380E-03   -1.1204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80493e-08
Minuit parameter uncertainties:
  1  12.7515
  2  4.1892
  3  4.76596
  4  14.8015
  5  6.093
  6  9.51796
  7  9.7308
  8  44.3144
  9  4.3805
  10  6.70628e-05
  11  2.13185
  12  18.203
  13  65.4015
  14  1.99179e-05
  15  0.691619
  16  9.16804e-07
  17  5.05418e-05
  18  0.00324263
  19  3.38648
  20  49.085
  21  1.17128
  22  3.03981e-07
  23  0.191764
  24  0.139797
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  6.706e-05  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:  4.986e-01  1.398e-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:  1.492e+00  1.918e-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: 4.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306404/likelihoodResults_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.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) = 9616.24057517
delta logL = -0.000101765175714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9616.24047769
delta logL = -4.28433486377e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54394E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1928       1.0000          .0000       10.000    
     3 'Normalizat'    1.4922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49856       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.

 FCN=   9616.240     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      245 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.551        .10558E-01** at limit **
   2  Index         2.1932        5.0129        .50000       -.15975E-05
   3  Normalizat    1.4922        .21594E-02    .54425E-01    .50027E-04
   4  Prefactor     .49856        .16159E-02    .66378E-01    .16073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19325
  Normalizat = 1.4922
  Prefactor  = 0.498557
 **********
 **   18 **HESSE 
 **********

 FCN=   9616.240     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    149.01        .21115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1932        5.4135        .50000       -.59602    
   3  Normalizat    1.4922        .68630E-02    .24063E-03   -.77998    
   4  Prefactor     .49856        .51267E-02    .29380E-03   -1.1204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01787e-09
Minuit parameter uncertainties:
  1  2.5805e-05
  2  164.844
  3  0.00686303
  4  0.00512672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306404': 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) = 9616.24047332
delta logL = 8.31678335089e-08

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  2.581e-05  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.193e+00  1.648e+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:  4.986e-01  5.127e-03  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:  1.492e+00  6.863e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/306404/cmap_HighResolution_516153601_516412801_4FGL_J2228.6-1636_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-03', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2021-09-28 11:54:40.801760', job_id='306404', GAL2='0.50', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632855280.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='8.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1068' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:54:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 306404: <4FGL_J2228.6-1636_daily_bin1068> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1068> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 11:40:29 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:40:31 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:31 2021
Terminated at Tue Sep 28 11:54:41 2021
Results reported at Tue Sep 28 11:54:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1068 337.166 -16.6073 516153601 516412801 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 :                                   839.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

