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 77 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 = 7654
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1685
RA = 337.166, Dec = -16.6073
tmin = 676080001, tmax = 676339201
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='384727', job_status='RUN', time_executed='2022-06-08 01:11:45.349188', time_epoch_executed='1654675905.35' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384727

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384727/ft1_4FGL_J2228.6-1636_daily_bin1685.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384727/ft2_4FGL_J2228.6-1636_daily_bin1685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384727/ft1_4FGL_J2228.6-1636_daily_bin1685.fits outfile=/scratch/kocevski/384727/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1685.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=676080001.0 tmax=676339201.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.58
user 3.37
sys 0.18

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

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

Number of photons that the gtmktime cut: 850

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384727/ft1_filtered_4FGL_J2228.6-1636_daily_bin1685.fits" evtable="EVENTS" scfile=/scratch/kocevski/384727/ft2_4FGL_J2228.6-1636_daily_bin1685.fits sctable="SC_DATA" outfile=/scratch/kocevski/384727/ltcube_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.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/384727/ft2_4FGL_J2228.6-1636_daily_bin1685.fits
.....................!
real 13.17
user 12.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384727/ft1_filtered_4FGL_J2228.6-1636_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/384727/ft2_4FGL_J2228.6-1636_daily_bin1685.fits sctable="SC_DATA" expcube=/scratch/kocevski/384727/ltcube_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.fits outfile=/scratch/kocevski/384727/expmap_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.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/384727/ltcube_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.fits
.....................!
real 190.83
user 185.59
sys 4.89

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/384727/ft1_filtered_4FGL_J2228.6-1636_daily_bin1685.fits scfile=/scratch/kocevski/384727/ft2_4FGL_J2228.6-1636_daily_bin1685.fits outfile=/scratch/kocevski/384727/cmap_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384727/ft1_filtered_4FGL_J2228.6-1636_daily_bin1685.fits scfile=/scratch/kocevski/384727/ft2_4FGL_J2228.6-1636_daily_bin1685.fits outfile=/scratch/kocevski/384727/cmap_HighResolution_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384727/ft1_filtered_4FGL_J2228.6-1636_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/384727/ft2_4FGL_J2228.6-1636_daily_bin1685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384727/Model_4FGL_J2228.6-1636_daily_bin1685.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/384727/ft1_filtered_4FGL_J2228.6-1636_daily_bin1685.fits.....................!
real 74.21
user 72.77
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .87907E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14246E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.688       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34247E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.004       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1892       1.0000         .10000E-03   10000.    
    16 'norm      '    .47985       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8043       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10357E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2496       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84716       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=   9045.877     FROM MIGRAD    STATUS=CONVERGED    985 CALLS     2812 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.832        .18142E-02** at limit **
   2  norm          .10000E-03    27.919        .34282E-02** at limit **
   3  Prefactor     .10000E-03    4.8031        .36285E-02** at limit **
   4  Prefactor     28.348        16.764        .75263E-04   -.45920E-04
   5  Prefactor     .10000E-03    2.7183        .15287E-02** at limit **
   6  Prefactor     43.685        12.164        .60654E-04    .68227E-04
   7  Prefactor     10.577        11.052        .12317E-03   -.99682E-05
   8  Prefactor     .10000E-03    129.41        .42666E-03** at limit **
   9  Prefactor     11.004        5.0506        .12077E-03    .16699E-03
  10  Prefactor     .10000E-03    19.267        .18142E-02** at limit **
  11  norm          .10000E-03    1.4391        .22000E-03** at limit **
  12  norm          3.7858        10.661        .20738E-03   -.69404E-04
  13  Prefactor     .10000E-03    18.539        .18142E-02** at limit **
  14  Prefactor     .10000E-03    5.0957        .18142E-02** at limit **
  15  norm          3.1891        .90635        .46195E-04    .17867E-03
  16  norm          .48010        1.1673        .15452E-03    .11639E-03
  17  Prefactor     .10000E-03    28.550        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.4409        .18142E-02** at limit **
  19  norm          .10000E-03    .27144        .83256E-03** at limit **
  20  Prefactor     .10000E-03    19.225        .18142E-02** at limit **
  21  Prefactor     1.8022        4.4042        .15285E-02    .41206E-04
  22  Prefactor     .10000E-03    5.9296        .63836E-01** at limit **
  23  Normalizat    1.2496        .18620        .25199E-03    .58290E-04
  24  Prefactor     .84707        .14325        .23217E-03    .16825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3475
  Prefactor  = 0.0001
  Prefactor  = 43.6855
  Prefactor  = 10.5771
  Prefactor  = 0.0001
  Prefactor  = 11.0044
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.78579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.18906
  norm       = 0.4801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80215
  Prefactor  = 0.0001
  Normalizat = 1.24957
  Prefactor  = 0.847066
 **********
 **   18 **HESSE 
 **********

 FCN=   9045.877     FROM HESSE     STATUS=OK           385 CALLS     3197 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    29.181        .13713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8398        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.348        16.761        .30105E-05   -1.4643    
   5  Prefactor     .10000E-03    2.7186        .30575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.685        12.163        .24261E-05   -1.4385    
   7  Prefactor     10.577        11.051        .49270E-05   -1.5057    
   8  Prefactor     .10000E-03    129.41        .85332E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.004        5.0505        .48309E-05   -1.5044    
  10  Prefactor     .10000E-03    19.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4392        .43999E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7858        10.660        .82951E-05   -1.5319    
  13  Prefactor     .10000E-03    18.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1891        .90632        .18478E-05   -1.5351    
  16  norm          .48010        1.1672        .61808E-05   -1.5569    
  17  Prefactor     .10000E-03    28.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .27162        .16651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8022        4.4026        .61139E-04   -1.5439    
  22  Prefactor     .10000E-03    5.6291        .66309E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2496        .18637        .10080E-04   -.85085    
  24  Prefactor     .84707        .14333        .92868E-05   -.98016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30951e-10
Minuit parameter uncertainties:
  1  4.34705e-05
  2  5.36201e-05
  3  6.00327e-05
  4  16.7639
  5  1.22876e-06
  6  12.1635
  7  11.0536
  8  0.000277249
  9  5.05074
  10  1.51048e-05
  11  4.63583e-06
  12  10.6653
  13  3.79413e-05
  14  1.79091e-05
  15  0.906328
  16  1.16729
  17  0.000222097
  18  2.74288e-06
  19  4.54054e-07
  20  1.84936e-05
  21  4.40337
  22  5.74347e-06
  23  0.186468
  24  0.143396
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.510e-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:  8.471e-01  1.434e-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.250e+00  1.865e-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: 3.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384727/likelihoodResults_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.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) = 9045.87727161
delta logL = -0.000247270689215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9045.87702709
delta logL = -2.75948696071e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5551       1.0000          .0000       10.000    
     3 'Normalizat'    1.2496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84707       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=   9045.877     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.703        .90712E-02** at limit **
   2  Index         2.5156        6.5695        .50000        .34904E-04
   3  Normalizat    1.2496        .11073E-01    .56983E-01   -.92845E-04
   4  Prefactor     .84707        .86258E-02    .44327E-01   -.67144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51565
  Normalizat = 1.24957
  Prefactor  = 0.847066
 **********
 **   18 **HESSE 
 **********

 FCN=   9045.877     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5156        6.2336        .50000       -.51999    
   3  Normalizat    1.2496        .18221        .25199E-03   -.85085    
   4  Prefactor     .84707        .14198        .23217E-03   -.98016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8405e-09
Minuit parameter uncertainties:
  1  4.55739e-05
  2  5.1643
  3  0.182303
  4  0.14204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384727': 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) = 9045.8770267
delta logL = -2.36313462665e-06

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  4.557e-05  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.516e+00  5.164e+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.471e-01  1.420e-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.250e+00  1.823e-01  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/384727/cmap_HighResolution_676080001_676339201_4FGL_J2228.6-1636_daily_bin1685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-03', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2022-06-08 01:25:09.219030', job_id='384727', GAL2='0.85', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1654676709.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-2.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1685' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun  8 01:25:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 384727: <4FGL_J2228.6-1636_daily_bin1685> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1685> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Jun  8 01:10:12 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun  8 01:10:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun  8 01:10:20 2022
Terminated at Wed Jun  8 01:25:09 2022
Results reported at Wed Jun  8 01:25:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1685 337.166 -16.6073 676080001 676339201 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 :                                   806.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            897 sec.

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

