aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 151 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 = 7717
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1675
RA = 337.166, Dec = -16.6073
tmin = 673488001, tmax = 673747201
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='884148', job_status='RUN', time_executed='2022-05-09 01:29:03.313620', time_epoch_executed='1652084943.31' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884148

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884148/ft1_4FGL_J2228.6-1636_daily_bin1675.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884148/ft2_4FGL_J2228.6-1636_daily_bin1675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884148/ft1_4FGL_J2228.6-1636_daily_bin1675.fits outfile=/scratch/kocevski/884148/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1675.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=673488001.0 tmax=673747201.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 2.55
user 2.36
sys 0.18

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

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

Number of photons that the gtmktime cut: 577

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884148/ft1_filtered_4FGL_J2228.6-1636_daily_bin1675.fits" evtable="EVENTS" scfile=/scratch/kocevski/884148/ft2_4FGL_J2228.6-1636_daily_bin1675.fits sctable="SC_DATA" outfile=/scratch/kocevski/884148/ltcube_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.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/884148/ft2_4FGL_J2228.6-1636_daily_bin1675.fits
.....................!
real 14.75
user 14.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884148/ft1_filtered_4FGL_J2228.6-1636_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884148/ft2_4FGL_J2228.6-1636_daily_bin1675.fits sctable="SC_DATA" expcube=/scratch/kocevski/884148/ltcube_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.fits outfile=/scratch/kocevski/884148/expmap_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.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/884148/ltcube_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.fits
.....................!
real 191.40
user 185.23
sys 5.63

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/884148/ft1_filtered_4FGL_J2228.6-1636_daily_bin1675.fits scfile=/scratch/kocevski/884148/ft2_4FGL_J2228.6-1636_daily_bin1675.fits outfile=/scratch/kocevski/884148/cmap_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884148/ft1_filtered_4FGL_J2228.6-1636_daily_bin1675.fits scfile=/scratch/kocevski/884148/ft2_4FGL_J2228.6-1636_daily_bin1675.fits outfile=/scratch/kocevski/884148/cmap_HighResolution_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884148/ft1_filtered_4FGL_J2228.6-1636_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884148/ft2_4FGL_J2228.6-1636_daily_bin1675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884148/Model_4FGL_J2228.6-1636_daily_bin1675.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/884148/ft1_filtered_4FGL_J2228.6-1636_daily_bin1675.fits.....................!
real 56.56
user 55.18
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3975       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31721E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.187       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.706       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1052       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2105       1.0000         .10000E-03   10000.    
    16 'norm      '    .10434E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.165       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.178       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3950       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72955       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=   6277.474     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2768 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5035        .10190E-06** at limit **
   2  norm          2.3975        3.3612        .12102E-05   -.32674E-04
   3  Prefactor     .10000E-03    2.1872        .27712E-07** at limit **
   4  Prefactor     7.8461        14.034       -.18581E-05   -.44041E-04
   5  Prefactor     .10000E-03    4.6664       -.16532E-07** at limit **
   6  Prefactor     .10000E-03    7.6766       -.55602E-07** at limit **
   7  Prefactor     .10000E-03    10.072        .29793E-05** at limit **
   8  Prefactor     .10000E-03    42.849        .83661E-06** at limit **
   9  Prefactor     6.4839        4.1060        .25684E-06   -.53764E-04
  10  Prefactor     13.184        31.260       -.23989E-05   -.45543E-05
  11  norm          .10000E-03    2.1784        .14718E-06** at limit **
  12  norm          10.711        23.073       -.83847E-06   -.16586E-04
  13  Prefactor     23.611        69.077       -.23886E-04   -.26923E-05
  14  Prefactor     9.1066        14.100        .62081E-06   -.51106E-04
  15  norm          1.2105        .83793       -.42227E-09   -.25215E-03
  16  norm          .10000E-03    1.0173       -.43412E-07** at limit **
  17  Prefactor     .10000E-03    19.625       -.36398E-06** at limit **
  18  Prefactor     19.175        21.808       -.20976E-05    .21196E-04
  19  norm          1.0986        1.5584        .23606E-06   -.77870E-03
  20  Prefactor     14.187        33.312        .20602E-05   -.95615E-05
  21  Prefactor     .10000E-03    8.8309        .33920E-05** at limit **
  22  Prefactor     .10000E-03    9.3077       -.65045E-05** at limit **
  23  Normalizat    1.3948        .19762        .45748E-07    .41201E-04
  24  Prefactor     .72964        .14215        .94857E-06   -.42361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.39752
  Prefactor  = 0.0001
  Prefactor  = 7.84613
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48393
  Prefactor  = 13.1837
  norm       = 0.0001
  norm       = 10.7107
  Prefactor  = 23.6115
  Prefactor  = 9.1066
  norm       = 1.21053
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1748
  norm       = 1.0986
  Prefactor  = 14.1865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39483
  Prefactor  = 0.729636
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.474     FROM HESSE     STATUS=OK           405 CALLS     3173 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3975        3.3467        .16778E-03   -1.5398    
   3  Prefactor     .10000E-03    2.2010        .11439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8461        14.008        .14314E-03   -1.5148    
   5  Prefactor     .10000E-03    4.6957        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    100.69        .41153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4839        4.1020        .12326E-03   -1.5199    
  10  Prefactor     13.184        31.245        .11030E-03   -1.4982    
  11  norm          .10000E-03    2.2511        .22812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.711        23.031        .12245E-03   -1.5053    
  13  Prefactor     23.611        69.212        .82410E-04   -1.4736    
  14  Prefactor     9.1066        14.186        .13282E-03   -1.5104    
  15  norm          1.2105        .82629        .57414E-04   -1.5488    
  16  norm          .10000E-03    1.9037        .15511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.175        22.675        .91489E-04   -1.4832    
  19  norm          1.0986        1.5450        .74299E-04   -1.5498    
  20  Prefactor     14.187        32.513        .10637E-03   -1.4954    
  21  Prefactor     .10000E-03    8.9110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3948        .23490        .23898E-03   -.80778    
  24  Prefactor     .72964        .16947        .23732E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59946e-10
Minuit parameter uncertainties:
  1  7.26603e-07
  2  3.34694
  3  8.72497e-07
  4  14.0135
  5  4.78353e-06
  6  0.00115782
  7  1.04308e-05
  8  5.32233e-06
  9  4.10222
  10  31.2838
  11  2.78102e-05
  12  23.05
  13  69.4486
  14  14.191
  15  0.826299
  16  3.70678e-06
  17  1.14458e-05
  18  22.6854
  19  1.54501
  20  32.5538
  21  2.19418e-05
  22  1.08108e-05
  23  0.235079
  24  0.16959
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.318e+01  3.128e+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:  7.296e-01  1.696e-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.395e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/884148/likelihoodResults_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.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) = 6277.40167722
delta logL = 0.072742818008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.38401808
delta logL = 0.0904019584832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.853       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5244       1.0000          .0000       10.000    
     3 'Normalizat'    1.4003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72653       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=   6277.384     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.853        38.211        .22473E-02    .15788E-02
   2  Index         1.5242        1.0286        .29536E-01   -.63621E-05
   3  Normalizat    1.4003        .18725        .53960E-01    .24302E-05
   4  Prefactor     .72655        .14012        .42753E-01    .17416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8532
  Index      = 1.52417
  Normalizat = 1.40032
  Prefactor  = 0.726549
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.384     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.853        38.117        .89891E-04   -1.4817    
   2  Index         1.5242        1.0274        .11814E-02   -.76865    
   3  Normalizat    1.4003        .22173        .23858E-03   -.80619    
   4  Prefactor     .72655        .16592        .23774E-03   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82784e-08
Minuit parameter uncertainties:
  1  38.1637
  2  1.0419
  3  0.221879
  4  0.16603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884148': 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) = 6277.38401805
delta logL = 0.0904019957779

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.985e+01  3.816e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  1.524e+00  1.042e+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:  7.265e-01  1.660e-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.400e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/884148/cmap_HighResolution_673488001_673747201_4FGL_J2228.6-1636_daily_bin1675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2022-05-09 01:39:43.991369', job_id='884148', GAL2='0.73', fit_tolerance='1e-08', EG2='1.40', EG='1.39', time_epoch_completed='1652085583.99', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='9.04e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1675' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May  9 01:39:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 884148: <4FGL_J2228.6-1636_daily_bin1675> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1675> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon May  9 01:25:26 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May  9 01:26:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon May  9 01:26:23 2022
Terminated at Mon May  9 01:39:44 2022
Results reported at Mon May  9 01:39:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1675 337.166 -16.6073 673488001 673747201 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 :                                   642.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            858 sec.

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

