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 102 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_J2338.0-0230_daily_bin1675
RA = 354.509, Dec = -2.5106
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='884278', job_status='RUN', time_executed='2022-05-09 01:30:26.363355', time_epoch_executed='1652085026.36' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884278

Creating custom pfile directory:
/scratch/kocevski/884278/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/884278/ft1_4FGL_J2338.0-0230_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/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884278/ft1_4FGL_J2338.0-0230_daily_bin1675.fits outfile=/scratch/kocevski/884278/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1675.fits ra=354.509 dec=-2.5106 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.56
user 2.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_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/884278/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1675.fits evtable="EVENTS" outfile="/scratch/kocevski/884278/ft1_filtered_4FGL_J2338.0-0230_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.50
user 0.36
sys 0.13

Number of photons that the gtmktime cut: 530

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits" evtable="EVENTS" scfile=/scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits sctable="SC_DATA" outfile=/scratch/kocevski/884278/ltcube_673488001_673747201_4FGL_J2338.0-0230_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/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits
.....................!
real 14.70
user 14.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits sctable="SC_DATA" expcube=/scratch/kocevski/884278/ltcube_673488001_673747201_4FGL_J2338.0-0230_daily_bin1675.fits outfile=/scratch/kocevski/884278/expmap_673488001_673747201_4FGL_J2338.0-0230_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/884278/ltcube_673488001_673747201_4FGL_J2338.0-0230_daily_bin1675.fits
.....................!
real 192.92
user 187.25
sys 5.12

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2338.0-0230 @ 354.509 -2.5106

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits scfile=/scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits outfile=/scratch/kocevski/884278/cmap_673488001_673747201_4FGL_J2338.0-0230_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=354.509 yref=-2.5106 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits scfile=/scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits outfile=/scratch/kocevski/884278/cmap_HighResolution_673488001_673747201_4FGL_J2338.0-0230_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=354.509 yref=-2.5106 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/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884278/Model_4FGL_J2338.0-0230_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/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits.....................!
real 57.87
user 56.52
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits', '/scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits', expMap='/scratch/kocevski/884278/expmap_673488001_673747201_4FGL_J2338.0-0230_daily_bin1675.fits', expCube='/scratch/kocevski/884278/ltcube_673488001_673747201_4FGL_J2338.0-0230_daily_bin1675.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/884278/Model_4FGL_J2338.0-0230_daily_bin1675.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2338.0-0230'

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.455e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/884278/ft1_filtered_4FGL_J2338.0-0230_daily_bin1675.fits
Spacecraft file(s): /scratch/kocevski/884278/ft2_4FGL_J2338.0-0230_daily_bin1675.fits
Exposure map: /scratch/kocevski/884278/expmap_673488001_673747201_4FGL_J2338.0-0230_daily_bin1675.fits
Exposure cube: /scratch/kocevski/884278/ltcube_673488001_673747201_4FGL_J2338.0-0230_daily_bin1675.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/884278/Model_4FGL_J2338.0-0230_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) = 5848.88158046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.325       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0255       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .49434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9611       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2574       1.0000         .10000E-03   10000.    
    12 'norm      '    .91886       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.870       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20863E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.396       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1432       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4103       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.762       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0661       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95876       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5848.879     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3272 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.326        13.424        .93546E-07   -.36758E-04
   2  Prefactor     .10000E-03    31.889        .13322E-05** at limit **
   3  Prefactor     7.0271        14.772       -.15046E-05   -.12074E-03
   4  Prefactor     .10000E-03    3.1960        .72662E-08** at limit **
   5  norm          .49531        3.8321        .21583E-05   -.27130E-03
   6  Prefactor     .10000E-03    5.7393        .14478E-06** at limit **
   7  norm          5.9609        3.7192        .14107E-07   -.76793E-04
   8  norm          .10000E-03    8.8640        .85137E-07** at limit **
   9  Prefactor     .10000E-03    5.3980       -.54581E-07** at limit **
  10  Prefactor     .10000E-03    25.818        .73261E-06** at limit **
  11  Prefactor     5.2576        7.3066        .21284E-06   -.20043E-04
  12  norm          .91880        .73133       -.16526E-07   -.13558E-03
  13  norm          2.1541        4.0368        .64798E-06    .10340E-03
  14  Prefactor     39.310        18.000       -.11459E-07   -.34527E-04
  15  Prefactor     .10000E-03    29.206       -.87251E-06** at limit **
  16  Prefactor     81.912        154.52        .39335E-05    .49986E-04
  17  Prefactor     .10000E-03    28.153       -.14298E-05** at limit **
  18  Prefactor     .10000E-03    126.04       -.51964E-06** at limit **
  19  norm          17.398        20.687       -.13448E-05   -.43703E-05
  20  Prefactor     45.793        58.641       -.19575E-05   -.72149E-04
  21  Prefactor     1.1438        4.3935        .14463E-05   -.13019E-03
  22  Prefactor     3.4136        115.81        .11973E-05    .35718E-05
  23  Prefactor     20.764        24.951        .12875E-06   -.98630E-05
  24  Prefactor     .10000E-03    3.7067       -.14046E-07** at limit **
  25  Prefactor     .10000E-03    6.5400       -.46016E-07** at limit **
  26  Normalizat    1.0661        .21019       -.55988E-06   -.85972E-04
  27  Prefactor     .95877        .15266       -.35004E-06   -.68270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3264
  Prefactor  = 0.0001
  Prefactor  = 7.02712
  Prefactor  = 0.0001
  norm       = 0.495311
  Prefactor  = 0.0001
  norm       = 5.96093
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25764
  norm       = 0.918796
  norm       = 2.15414
  Prefactor  = 39.3101
  Prefactor  = 0.0001
  Prefactor  = 81.9119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.3981
  Prefactor  = 45.793
  Prefactor  = 1.14378
  Prefactor  = 3.41356
  Prefactor  = 20.7643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06608
  Prefactor  = 0.958774
 **********
 **   18 **HESSE 
 **********

 FCN=   5848.879     FROM HESSE     STATUS=OK           490 CALLS     3762 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.326        13.436        .96225E-04   -1.4875    
   2  Prefactor     .10000E-03    32.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0271        14.685        .15135E-03   -1.5178    
   4  Prefactor     .10000E-03    3.2032        .13327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .49531        4.0321        .26614E-02   -1.5567    
   6  Prefactor     .10000E-03    5.7475        .17893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9609        3.7097        .11220E-03   -1.5220    
   8  norm          .10000E-03    8.9550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4021        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2576        7.2678        .17530E-03   -1.5249    
  12  norm          .91880        .71651        .55795E-04   -1.5516    
  13  norm          2.1541        4.0081        .19815E-03   -1.5414    
  14  Prefactor     39.310        17.974        .63933E-04   -1.4453    
  15  Prefactor     .10000E-03    29.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     81.912        159.05        .22195E-03   -1.3895    
  17  Prefactor     .10000E-03    28.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    129.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.398        20.280        .96027E-04   -1.4874    
  20  Prefactor     45.793        59.437        .59240E-04   -1.4354    
  21  Prefactor     1.1438        4.3814        .27625E-03   -1.5494    
  22  Prefactor     3.4136        115.22        .21906E-03   -1.5338    
  23  Prefactor     20.764        24.928        .87903E-04   -1.4796    
  24  Prefactor     .10000E-03    3.7094        .14380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.6548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0661        .24787        .27958E-03   -.90848    
  27  Prefactor     .95877        .17990        .22209E-03   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51128e-08
Minuit parameter uncertainties:
  1  13.4384
  2  0.000208847
  3  14.6924
  4  2.68361e-06
  5  2.8264
  6  7.91074e-06
  7  3.70988
  8  8.98839e-06
  9  2.70759e-06
  10  8.4334e-05
  11  7.26902
  12  0.716518
  13  4.00856
  14  17.9767
  15  0.000127135
  16  159.884
  17  0.000190319
  18  0.000142119
  19  20.2883
  20  59.5142
  21  4.3826
  22  39.7472
  23  24.9401
  24  5.39292e-07
  25  3.99752e-06
  26  0.248142
  27  0.180008
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.144e+00  4.383e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.588e-01  1.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.066e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884278/likelihoodResults_673488001_673747201_4FGL_J2338.0-0230_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) = 5848.68457282
delta logL = 0.194509432914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5848.63068158
delta logL = 0.248400669871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39192       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0340       1.0000          .0000       10.000    
     3 'Normalizat'    1.0236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5848.631     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38747        8.0372        .10821E-01    .14624E-02
   2  Index         4.0405        3.0154        .20545        .73780E-04
   3  Normalizat    1.0239        .35715E-01    .64324E-01   -.95132E-05
   4  Prefactor     .97962        .27234E-01    .46014E-01   -.13515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.387469
  Index      = 4.04052
  Normalizat = 1.02395
  Prefactor  = 0.979622
 **********
 **   18 **HESSE 
 **********

 FCN=   5848.631     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38747        36.746        .64072E-04   -1.5583    
   2  Index         4.0405        6.0433        .74772E-02   -.19309    
   3  Normalizat    1.0239        .20079        .28451E-03   -.92232    
   4  Prefactor     .97962        .15328        .21999E-03   -.93412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.66627e-07
Minuit parameter uncertainties:
  1  7.55045
  2  11.2541
  3  0.200942
  4  0.153353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884278': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5848.63067823
delta logL = 0.24840402855

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.875e-01  7.550e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  4.041e+00  1.125e+01  0.000e+00  1.000e+01 (-1.000e+00)
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.796e-01  1.534e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.024e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 354.509 -2.511

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/884278/cmap_HighResolution_673488001_673747201_4FGL_J2338.0-0230_daily_bin1675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2022-05-09 01:42:03.550261', job_id='884278', GAL2='0.98', fit_tolerance='1e-08', EG2='1.02', EG='1.07', time_epoch_completed='1652085723.55', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.48e-01', ts2='0.64', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1675' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May  9 01:42:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 884278: <4FGL_J2338.0-0230_daily_bin1675> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1675> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon May  9 01:25:36 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May  9 01:28:33 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:28:33 2022
Terminated at Mon May  9 01:42:04 2022
Results reported at Mon May  9 01:42:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1675 354.509 -2.5106 673488001 673747201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2338.0-0230 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            988 sec.

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

