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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1667
RA = 354.509, Dec = -2.5106
tmin = 671414401, tmax = 671673601
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='534439', job_status='RUN', time_executed='2022-04-15 03:47:24.624581', time_epoch_executed='1650019644.62' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534439

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534439/ft1_4FGL_J2338.0-0230_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534439/ft1_4FGL_J2338.0-0230_daily_bin1667.fits outfile=/scratch/kocevski/534439/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1667.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=671414401.0 tmax=671673601.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.48
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.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/534439/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.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.49
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 638

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/534439/ltcube_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.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/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits
.....................!
real 13.22
user 12.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/534439/ltcube_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.fits outfile=/scratch/kocevski/534439/expmap_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.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/534439/ltcube_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.fits
.....................!
real 191.20
user 186.13
sys 4.72

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/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits scfile=/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits outfile=/scratch/kocevski/534439/cmap_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits scfile=/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits outfile=/scratch/kocevski/534439/cmap_HighResolution_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534439/Model_4FGL_J2338.0-0230_daily_bin1667.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/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits.....................!
real 65.88
user 64.60
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits', '/scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits', expMap='/scratch/kocevski/534439/expmap_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.fits', expCube='/scratch/kocevski/534439/ltcube_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/534439/Model_4FGL_J2338.0-0230_daily_bin1667.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/534439/ft1_filtered_4FGL_J2338.0-0230_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/534439/ft2_4FGL_J2338.0-0230_daily_bin1667.fits
Exposure map: /scratch/kocevski/534439/expmap_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.fits
Exposure cube: /scratch/kocevski/534439/ltcube_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/534439/Model_4FGL_J2338.0-0230_daily_bin1667.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) = 7027.79472755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0299       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45039       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8396       1.0000         .10000E-03   10000.    
     8 'norm      '    31.314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6413       1.0000         .10000E-03   10000.    
    12 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20246E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.487       1.0000         .10000E-03   10000.    
    16 'Prefactor '    196.47       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1062       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12799E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5008       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0389       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78266       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=   7027.778     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3337 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0286        6.9035        .26732E-06   -.72212E-04
   2  Prefactor     .10000E-03    18.975        .10003E-05** at limit **
   3  Prefactor     12.597        15.308        .42419E-06   -.85847E-04
   4  Prefactor     .44712        3.6455        .43635E-06   -.94195E-04
   5  norm          .10000E-03    1.5490       -.11249E-06** at limit **
   6  Prefactor     .10000E-03    2.5944       -.13528E-07** at limit **
   7  norm          8.8398        4.1479       -.28048E-07   -.53001E-03
   8  norm          31.310        12.810        .20185E-06   -.15172E-03
   9  Prefactor     13.736        13.150        .28569E-06   -.72888E-04
  10  Prefactor     .10000E-03    40.417        .95750E-07** at limit **
  11  Prefactor     2.6425        5.7300        .61889E-06    .58813E-04
  12  norm          .10000E-03    .36959        .63843E-06** at limit **
  13  norm          .10001E-03    3.3763       -.86126E-06** at limit **
  14  Prefactor     14.727        12.521        .54193E-06   -.27692E-04
  15  Prefactor     55.468        49.870       -.21837E-05   -.31421E-03
  16  Prefactor     196.61        161.69       -.18269E-06   -.13095E-03
  17  Prefactor     .10000E-03    6.7113        .23404E-05** at limit **
  18  Prefactor     .10000E-03    6.8378        .20210E-06** at limit **
  19  norm          .10000E-03    7.1113       -.46575E-07** at limit **
  20  Prefactor     9.0984        20.649       -.78345E-06   -.98859E-04
  21  Prefactor     .10001E-03    2.7139        .28917E-05** at limit **
  22  Prefactor     .10000E-03    15.251       -.67257E-06** at limit **
  23  Prefactor     .10000E-03    9.7652        .58217E-06** at limit **
  24  Prefactor     3.5032        10.609        .45605E-06   -.10171E-03
  25  Prefactor     .10000E-03    1.5100        .44077E-08** at limit **
  26  Normalizat    1.0391        .16449       -.19096E-05   -.11095E-02
  27  Prefactor     .78273        .12455       -.60624E-06   -.11762E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.02861
  Prefactor  = 0.0001
  Prefactor  = 12.5972
  Prefactor  = 0.447122
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.83978
  norm       = 31.31
  Prefactor  = 13.7358
  Prefactor  = 0.0001
  Prefactor  = 2.64247
  norm       = 0.0001
  norm       = 0.000100014
  Prefactor  = 14.7271
  Prefactor  = 55.4678
  Prefactor  = 196.612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.09845
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50319
  Prefactor  = 0.0001
  Normalizat = 1.03907
  Prefactor  = 0.782732
 **********
 **   18 **HESSE 
 **********

 FCN=   7027.778     FROM HESSE     STATUS=OK           488 CALLS     3825 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0286        6.9018        .15130E-03   -1.5178    
   2  Prefactor     .10000E-03    19.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.597        15.274        .11281E-03   -1.4998    
   4  Prefactor     .44712        15.569        .26083E-02   -1.5574    
   5  norm          .10000E-03    1.5824        .20246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5954        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8398        4.2970        .95859E-04   -1.5113    
   8  norm          31.310        12.821        .71602E-04   -1.4588    
   9  Prefactor     13.736        13.156        .10806E-03   -1.4967    
  10  Prefactor     .10000E-03    40.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6425        5.6207        .25087E-03   -1.5383    
  12  norm          .10000E-03    .64825        .93619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    13.553        .28246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.727        12.554        .10434E-03   -1.4940    
  15  Prefactor     55.468        50.309        .53851E-04   -1.4217    
  16  Prefactor     196.61        162.77        .14411E-03   -1.2894    
  17  Prefactor     .10000E-03    6.8159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.1366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.0984        20.658        .13282E-03   -1.5105    
  21  Prefactor     .10001E-03    3.6456        .22105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.8134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5032        10.586        .21609E-03   -1.5334    
  25  Prefactor     .10000E-03    1.5141        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0391        .18911        .24879E-03   -.91733    
  27  Prefactor     .78273        .14240        .21725E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55855e-08
Minuit parameter uncertainties:
  1  6.9026
  2  0.000165505
  3  15.279
  4  5.2777
  5  2.68391e-06
  6  3.7877e-07
  7  4.29716
  8  12.8218
  9  13.1587
  10  2.21228e-05
  11  5.6218
  12  2.19013e-05
  13  0.000873041
  14  12.5563
  15  50.3478
  16  163.149
  17  9.05664e-05
  18  2.36462e-05
  19  5.83659e-05
  20  20.6738
  21  0.000274045
  22  6.8087e-05
  23  8.13673e-05
  24  10.5913
  25  2.26684e-06
  26  0.189237
  27  0.142471
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  2.740e-04  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:  7.827e-01  1.425e-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.039e+00  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534439/likelihoodResults_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.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) = 7027.77916015
delta logL = -0.00130673629064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7027.77785405
delta logL = -6.3158768171e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4512       1.0000          .0000       10.000    
     3 'Normalizat'    1.0389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78292       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7027.778     FROM MIGRAD    STATUS=FAILED        99 CALLS      263 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13681E-03    140.98        .22970E-02** at limit **
   2  Index         2.0633        8.9380        .50000        .59228E-04
   3  Normalizat    1.0391        .18037E-01    .24880E-03    .20412E-03
   4  Prefactor     .78273        .13929E-01    .21725E-03    .34989E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7027.778     FROM SIMPLEX   STATUS=PROGRESS     110 CALLS      373 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    140.98        .42891E-03** at limit **
   2  Index         2.0616        8.9380        .57047E-03    .59228E-04
   3  Normalizat    1.0391        .18037E-01    .45150E-05    .20412E-03
   4  Prefactor     .78273        .13929E-01    .34085E-05    .34989E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7027.778     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      429 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6438        .45940E-01** at limit **
   2  Index         1.8242        5.3983        .50000       -.27162E-06
   3  Normalizat    1.0391        .36482E-02    .99518E-05   -.40440E-04
   4  Prefactor     .78273        .28173E-02    .43450E-04   -.17478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82424
  Normalizat = 1.03908
  Prefactor  = 0.782733
 **********
 **   18 **HESSE 
 **********

 FCN=   7027.778     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      460 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    266.57        .23736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8242        5.4265        .50000       -.68820    
   3  Normalizat    1.0391        .22275E-01    .19904E-05   -.91733    
   4  Prefactor     .78273        .17202E-01    .86899E-05   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.73429e-12
Minuit parameter uncertainties:
  1  0.000409392
  2  323.058
  3  0.0222748
  4  0.0172022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534439': 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) = 7027.77784476
delta logL = 8.65111633175e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  4.094e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  1.824e+00  3.231e+02  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:  7.827e-01  1.720e-02  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.039e+00  2.227e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/534439/cmap_HighResolution_671414401_671673601_4FGL_J2338.0-0230_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2022-04-15 04:00:39.522421', job_id='534439', GAL2='0.78', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1650020439.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1667' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 04:00:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 534439: <4FGL_J2338.0-0230_daily_bin1667> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1667> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Apr 15 03:45:16 2022
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:45:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:45:33 2022
Terminated at Fri Apr 15 04:00:40 2022
Results reported at Fri Apr 15 04:00:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1667 354.509 -2.5106 671414401 671673601 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 :                                   797.12 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             307.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            924 sec.

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

