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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1048
RA = 337.166, Dec = -16.6073
tmin = 510969601, tmax = 511228801
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='306375', job_status='RUN', time_executed='2021-09-28 11:40:56.325641', time_epoch_executed='1632854456.33' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306375/ft1_4FGL_J2228.6-1636_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306375/ft1_4FGL_J2228.6-1636_daily_bin1048.fits outfile=/scratch/kocevski/306375/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1048.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=510969601.0 tmax=511228801.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.46
user 3.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.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/306375/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/306375/ft1_filtered_4FGL_J2228.6-1636_daily_bin1048.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306375/ft1_filtered_4FGL_J2228.6-1636_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/306375/ltcube_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.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/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.fits
.....................!
real 11.93
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306375/ft1_filtered_4FGL_J2228.6-1636_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/306375/ltcube_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.fits outfile=/scratch/kocevski/306375/expmap_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.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/306375/ltcube_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.fits
.....................!
real 190.41
user 185.61
sys 4.45

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/306375/ft1_filtered_4FGL_J2228.6-1636_daily_bin1048.fits scfile=/scratch/kocevski/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.fits outfile=/scratch/kocevski/306375/cmap_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306375/ft1_filtered_4FGL_J2228.6-1636_daily_bin1048.fits scfile=/scratch/kocevski/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.fits outfile=/scratch/kocevski/306375/cmap_HighResolution_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306375/ft1_filtered_4FGL_J2228.6-1636_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/306375/ft2_4FGL_J2228.6-1636_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306375/Model_4FGL_J2228.6-1636_daily_bin1048.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/306375/ft1_filtered_4FGL_J2228.6-1636_daily_bin1048.fits.....................!
real 60.85
user 59.51
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.016       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9277       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0715       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.583       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9214       1.0000         .10000E-03   10000.    
    12 'norm      '    16.210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.548       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0599       1.0000         .10000E-03   10000.    
    16 'norm      '    .80260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34618E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.7719       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7196       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1805       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.402       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0239       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82469       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=   7236.906     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2716 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.009        14.996        .10709E-05    .14999E-05
   2  norm          1.9898        4.2213       -.41596E-08   -.41893E-04
   3  Prefactor     2.1357        1.8494        .10273E-06   -.12122E-02
   4  Prefactor     7.8239        15.250       -.11065E-05   -.11295E-04
   5  Prefactor     1.9273        3.7395        .27062E-07   -.40548E-04
   6  Prefactor     7.6937        7.6813       -.13688E-06   -.11369E-04
   7  Prefactor     27.342        16.927        .67361E-06   -.44293E-05
   8  Prefactor     .10000E-03    103.73        .24065E-06** at limit **
   9  Prefactor     5.0707        5.2870        .63542E-07   -.35116E-04
  10  Prefactor     42.598        50.099        .14654E-04    .12613E-04
  11  norm          4.9203        3.1922        .58301E-07   -.41909E-04
  12  norm          16.209        15.263        .29564E-06   -.31891E-05
  13  Prefactor     .10000E-03    18.702        .40904E-06** at limit **
  14  Prefactor     21.549        12.234        .30172E-06   -.17113E-04
  15  norm          1.0597        .77656       -.17135E-06   -.61494E-03
  16  norm          .80248        1.5854        .68167E-07   -.50754E-04
  17  Prefactor     .10000E-03    22.797       -.32658E-06** at limit **
  18  Prefactor     .10000E-03    11.782        .35616E-06** at limit **
  19  norm          2.7715        1.4625       -.36641E-07   -.74740E-03
  20  Prefactor     5.7092        21.776        .96832E-06   -.11105E-03
  21  Prefactor     9.1815        8.5990        .43397E-06   -.19377E-04
  22  Prefactor     11.399        8.5174       -.14798E-05   -.41934E-04
  23  Normalizat    1.0239        .18147       -.86949E-06   -.29863E-04
  24  Prefactor     .82475        .13691       -.37132E-06   -.54893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.009
  norm       = 1.9898
  Prefactor  = 2.1357
  Prefactor  = 7.82385
  Prefactor  = 1.92734
  Prefactor  = 7.69374
  Prefactor  = 27.3416
  Prefactor  = 0.0001
  Prefactor  = 5.07075
  Prefactor  = 42.5985
  norm       = 4.92032
  norm       = 16.2089
  Prefactor  = 0.0001
  Prefactor  = 21.5494
  norm       = 1.05968
  norm       = 0.802476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77147
  Prefactor  = 5.70919
  Prefactor  = 9.18146
  Prefactor  = 11.3986
  Normalizat = 1.02388
  Prefactor  = 0.824749
 **********
 **   18 **HESSE 
 **********

 FCN=   7236.906     FROM HESSE     STATUS=OK           415 CALLS     3131 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.009        15.021        .94361E-04   -1.4859    
   2  norm          1.9898        4.1908        .24727E-03   -1.5426    
   3  Prefactor     2.1357        6.5585        .14094E-02   -1.5416    
   4  Prefactor     7.8239        15.257        .14339E-03   -1.5148    
   5  Prefactor     1.9273        3.7105        .22292E-03   -1.5430    
   6  Prefactor     7.6937        7.6846        .14456E-03   -1.5153    
   7  Prefactor     27.342        16.953        .76611E-04   -1.4662    
   8  Prefactor     .10000E-03    104.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0707        5.2787        .17855E-03   -1.5258    
  10  Prefactor     42.598        50.062        .61433E-04   -1.4402    
  11  norm          4.9203        3.1869        .11559E-03   -1.5264    
  12  norm          16.209        15.248        .99478E-04   -1.4903    
  13  Prefactor     .10000E-03    18.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.549        12.291        .86287E-04   -1.4779    
  15  norm          1.0597        .76831        .60523E-04   -1.5502    
  16  norm          .80248        1.3881        .14445E-02   -1.5529    
  17  Prefactor     .10000E-03    22.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.744        .42353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.7715        1.2190        .24444E-04   -1.5375    
  20  Prefactor     5.7092        21.796        .83976E-03   -1.5230    
  21  Prefactor     9.1815        8.5972        .13227E-03   -1.5102    
  22  Prefactor     11.399        8.5256        .11864E-03   -1.5033    
  23  Normalizat    1.0239        .21115        .25988E-03   -.92235    
  24  Prefactor     .82475        .15969        .22427E-03   -.98822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07364e-09
Minuit parameter uncertainties:
  1  15.0244
  2  4.19141
  3  6.56073
  4  15.2646
  5  3.71098
  6  7.68561
  7  16.9561
  8  2.24586e-05
  9  5.27917
  10  50.1114
  11  3.18699
  12  15.2519
  13  2.83266e-06
  14  12.2925
  15  0.768321
  16  1.3882
  17  2.73326e-06
  18  0.000132872
  19  1.21902
  20  21.8266
  21  8.59834
  22  8.52648
  23  0.211325
  24  0.159778
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  4.260e+01  5.011e+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:  8.247e-01  1.598e-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.024e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/306375/likelihoodResults_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.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) = 7236.69463484
delta logL = 0.210930420446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7236.64359156
delta logL = 0.261973708914

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.030       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7198       1.0000          .0000       10.000    
     3 'Normalizat'    .99636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83781       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=   7236.644     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      287 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.040        167.40        .97052E-04    .29168E-04
   2  Index         2.7198        2.6610        .61624E-02    .34829E-04
   3  Normalizat    .99630        .22476        .26303E-03   -.41261E-03
   4  Prefactor     .83783        .16961        .22263E-03   -.18317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0395
  Index      = 2.71977
  Normalizat = 0.996302
  Prefactor  = 0.837828
 **********
 **   18 **HESSE 
 **********

 FCN=   7236.644     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.040        38.793        .38821E-05   -1.4882    
   2  Index         2.7198        1.0222        .24650E-03   -.47355    
   3  Normalizat    .99630        .20458        .52606E-04   -.93154    
   4  Prefactor     .83783        .15796        .89051E-05   -.98349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94708e-10
Minuit parameter uncertainties:
  1  38.8505
  2  1.03144
  3  0.204744
  4  0.158046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306375': 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) = 7236.64359139
delta logL = 0.261973872848

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.704e+01  3.885e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.720e+00  1.031e+00  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:  8.378e-01  1.580e-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:  9.963e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 2.72 +/- 1.03
Photon Flux (Free Index): 4.34e-08 +/- 4.66e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.02e-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/306375/cmap_HighResolution_510969601_511228801_4FGL_J2228.6-1636_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='2.62e-01', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-09-28 11:52:10.399589', photon_index_error2='1.03', photon_index2='2.72', ts='0.98', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.44e-08', energy_flux_error2='1.02e-05', EG='1.02', time_epoch_completed='1632855130.4', return_code='0', job_id='306375', GAL2='0.84', EG2='1.00', return_code2='0', photon_flux_error2='4.66e-08', ts2='1.52', photon_index='2.06' WHERE bin_id='1048' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 306375: <4FGL_J2228.6-1636_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1048 337.166 -16.6073 510969601 511228801 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 :                                   673.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

