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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1689
RA = 337.166, Dec = -16.6073
tmin = 677116801, tmax = 677376001
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='994147', job_status='RUN', time_executed='2022-06-20 01:05:44.977249', time_epoch_executed='1655712344.98' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994147/ft1_4FGL_J2228.6-1636_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994147/ft2_4FGL_J2228.6-1636_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994147/ft1_4FGL_J2228.6-1636_daily_bin1689.fits outfile=/scratch/kocevski/994147/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1689.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=677116801.0 tmax=677376001.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.84
user 2.55
sys 0.19

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

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

Number of photons that the gtmktime cut: 592

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994147/ft1_filtered_4FGL_J2228.6-1636_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/994147/ft2_4FGL_J2228.6-1636_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/994147/ltcube_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.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/994147/ft2_4FGL_J2228.6-1636_daily_bin1689.fits
.....................!
real 14.11
user 13.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994147/ft1_filtered_4FGL_J2228.6-1636_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994147/ft2_4FGL_J2228.6-1636_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/994147/ltcube_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.fits outfile=/scratch/kocevski/994147/expmap_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.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/994147/ltcube_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.fits
.....................!
real 193.50
user 185.86
sys 5.39

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/994147/ft1_filtered_4FGL_J2228.6-1636_daily_bin1689.fits scfile=/scratch/kocevski/994147/ft2_4FGL_J2228.6-1636_daily_bin1689.fits outfile=/scratch/kocevski/994147/cmap_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994147/ft1_filtered_4FGL_J2228.6-1636_daily_bin1689.fits scfile=/scratch/kocevski/994147/ft2_4FGL_J2228.6-1636_daily_bin1689.fits outfile=/scratch/kocevski/994147/cmap_HighResolution_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.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/994147/ft1_filtered_4FGL_J2228.6-1636_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994147/ft2_4FGL_J2228.6-1636_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994147/Model_4FGL_J2228.6-1636_daily_bin1689.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/994147/ft1_filtered_4FGL_J2228.6-1636_daily_bin1689.fits.....................!
real 57.41
user 55.50
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.415       1.0000         .10000E-03   10000.    
     2 'norm      '    .27400E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53801E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.941       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0159       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31244E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2065       1.0000         .10000E-03   10000.    
    12 'norm      '    .82027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23808E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35590E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6655       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0965       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13257E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.889       1.0000         .10000E-03   10000.    
    19 'norm      '    .15275E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94976E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16590E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.970       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4604       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6414.866     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1996 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.591        26.302        .22920E-06    .60171E-03
   2  norm          .10000E-03    3.2714       -.72139E-06** at limit **
   3  Prefactor     8.3840        6.7831       -.76595E-06   -.28537E-04
   4  Prefactor     .10000E-03    17.572        .14860E-05** at limit **
   5  Prefactor     10.408        9.4437       -.20866E-06   -.13310E-04
   6  Prefactor     21.216        8.0062        .16958E-06    .13080E-02
   7  Prefactor     11.141        1.5056        .12086E-07    .12182E-02
   8  Prefactor     41.304        74.717       -.83976E-06    .85190E-05
   9  Prefactor     3.9833        3.6012       -.42694E-06    .18126E-04
  10  Prefactor     .10001E-03    1.2428       -.44242E-07** at limit **
  11  norm          2.1863        3.8734        .40808E-06   -.19728E-04
  12  norm          .10000E-03    15.769       -.47647E-06** at limit **
  13  Prefactor     .10076E-03    47.425       -.93348E-05** at limit **
  14  Prefactor     .10000E-03    4.2587       -.17290E-05** at limit **
  15  norm          4.6619        1.4789        .88152E-07   -.39783E-04
  16  norm          3.1007        2.5065       -.11727E-06   -.19683E-05
  17  Prefactor     .10138E-03    34.547       -.75718E-05** at limit **
  18  Prefactor     30.948        13.218        .20235E-06   -.29948E-02
  19  norm          .10000E-03    7.7790        .18567E-05** at limit **
  20  Prefactor     .10000E-03    34.315       -.97392E-06** at limit **
  21  Prefactor     .10000E-03    4.2904        .41615E-06** at limit **
  22  Prefactor     15.990        11.571       -.36392E-06   -.63057E-03
  23  Normalizat    1.4600        .26773       -.16481E-06   -.48275E-05
  24  Prefactor     .83546        .19922        .18111E-06   -.56936E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5906
  norm       = 0.0001
  Prefactor  = 8.38399
  Prefactor  = 0.0001
  Prefactor  = 10.4075
  Prefactor  = 21.2162
  Prefactor  = 11.1409
  Prefactor  = 41.3044
  Prefactor  = 3.98331
  Prefactor  = 0.000100011
  norm       = 2.18627
  norm       = 0.0001
  Prefactor  = 0.000100761
  Prefactor  = 0.0001
  norm       = 4.6619
  norm       = 3.10069
  Prefactor  = 0.000101381
  Prefactor  = 30.9481
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9902
  Normalizat = 1.46
  Prefactor  = 0.835464
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.866     FROM HESSE     STATUS=OK           455 CALLS     2451 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.591        26.523        .18468E-02   -1.4619    
   2  norm          .10000E-03    3.2699        .10714E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3840        6.8023        .34593E-02   -1.5129    
   4  Prefactor     .10000E-03    17.520        .10560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.408        9.4790        .31074E-02   -1.5063    
   6  Prefactor     21.216        16.199        .21734E-02   -1.4786    
   7  Prefactor     11.141        15.251        .30032E-02   -1.5040    
   8  Prefactor     41.304        74.708        .16485E-02   -1.4422    
   9  Prefactor     3.9833        3.6073        .50309E-02   -1.5309    
  10  Prefactor     .10001E-03    47.660        .10686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1863        3.9124        .69236E-02   -1.5412    
  12  norm          .10000E-03    15.710        .10444E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10076E-03    72.829        .91415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2571        .10658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6619        1.4839        .46580E-02   -1.5276    
  16  norm          3.1007        2.5078        .57615E-02   -1.5356    
  17  Prefactor     .10138E-03    75.267        .90892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.948        19.642        .18023E-02   -1.4595    
  19  norm          .10000E-03    .79369        .42565E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.780        .90848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.990        11.647        .25056E-02   -1.4908    
  23  Normalizat    1.4600        .22676        .62248E-01   -.78909    
  24  Prefactor     .83546        .16947        .44187E-01   -.98434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83164e-08
Minuit parameter uncertainties:
  1  26.5335
  2  2.56142e-06
  3  6.8029
  4  7.42453e-06
  5  9.48038
  6  16.2028
  7  15.2567
  8  74.8785
  9  3.60751
  10  0.00142147
  11  3.91282
  12  2.69685e-06
  13  0.0149103
  14  5.90188e-06
  15  1.48389
  16  2.50791
  17  0.0204194
  18  19.646
  19  1.14567e-06
  20  2.19469e-05
  21  7.45612e-06
  22  11.6489
  23  0.226913
  24  0.169575
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.421e-03  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  8.355e-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.460e+00  2.269e-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: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994147/likelihoodResults_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.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) = 6414.86564554
delta logL = -9.97746683424e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.67923657
delta logL = 0.186309186424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4245       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4713       1.0000          .0000       10.000    
     3 'Normalizat'    1.4170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85124       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=   6414.679     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      374 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4236        326.04        .19875E-03   -.14044E-02
   2  Index         3.4715        6.4754        .68266E-02   -.34197E-03
   3  Normalizat    1.4168        .22805        .27852E-03   -.69814E-03
   4  Prefactor     .85137        .17002        .26122E-03   -.56009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42364
  Index      = 3.47154
  Normalizat = 1.41683
  Prefactor  = 0.851374
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.679     FROM HESSE     STATUS=OK            25 CALLS      399 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4236        10.552        .79499E-05   -1.5397    
   2  Index         3.4715        1.4404        .27306E-03   -.31067    
   3  Normalizat    1.4168        .26983        .55704E-04   -.80143    
   4  Prefactor     .85137        .19832        .52243E-04   -.97862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4494e-09
Minuit parameter uncertainties:
  1  10.117
  2  1.46333
  3  0.270107
  4  0.198492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994147': 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) = 6414.67923633
delta logL = 0.186309434844

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  2.424e+00  1.012e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  3.472e+00  1.463e+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.514e-01  1.985e-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.417e+00  2.701e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/994147/cmap_HighResolution_677116801_677376001_4FGL_J2228.6-1636_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2022-06-20 01:15:54.981565', job_id='994147', GAL2='0.85', fit_tolerance='1e-08', EG2='1.42', EG='1.46', time_epoch_completed='1655712954.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.86e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1689' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:15:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 994147: <4FGL_J2228.6-1636_daily_bin1689> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 01:00:33 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 01:02:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 01:02:36 2022
Terminated at Mon Jun 20 01:15:55 2022
Results reported at Mon Jun 20 01:15:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1689 337.166 -16.6073 677116801 677376001 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 :                                   606.15 sec.
    Max Memory :                                 1179 MB
    Average Memory :                             282.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            922 sec.

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

