/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 129 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 = 7351
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1204
RA = 354.509, Dec = -2.5106
tmin = 551404801, tmax = 551664001
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='66489', job_status='RUN', time_executed='2021-09-30 02:23:13.128114', time_epoch_executed='1632993793.13' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66489/ft1_4FGL_J2338.0-0230_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66489/ft1_4FGL_J2338.0-0230_daily_bin1204.fits outfile=/scratch/kocevski/66489/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1204.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=551404801.0 tmax=551664001.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.69
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.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/66489/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1204.fits evtable="EVENTS" outfile="/scratch/kocevski/66489/ft1_filtered_4FGL_J2338.0-0230_daily_bin1204.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66489/ft1_filtered_4FGL_J2338.0-0230_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/66489/ltcube_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.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/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.fits
.....................!
real 11.71
user 11.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66489/ft1_filtered_4FGL_J2338.0-0230_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/66489/ltcube_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.fits outfile=/scratch/kocevski/66489/expmap_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.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/66489/ltcube_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.fits
.....................!
real 193.48
user 188.11
sys 4.96

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/66489/ft1_filtered_4FGL_J2338.0-0230_daily_bin1204.fits scfile=/scratch/kocevski/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.fits outfile=/scratch/kocevski/66489/cmap_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66489/ft1_filtered_4FGL_J2338.0-0230_daily_bin1204.fits scfile=/scratch/kocevski/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.fits outfile=/scratch/kocevski/66489/cmap_HighResolution_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66489/ft1_filtered_4FGL_J2338.0-0230_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/66489/ft2_4FGL_J2338.0-0230_daily_bin1204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66489/Model_4FGL_J2338.0-0230_daily_bin1204.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/66489/ft1_filtered_4FGL_J2338.0-0230_daily_bin1204.fits.....................!
real 47.27
user 45.78
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.384       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7717       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.944       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2399       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6428       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .43103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    99.116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47997E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.123       1.0000         .10000E-03   10000.    
    19 'norm      '    .13392E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.724       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0808       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.255       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .57318       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99984       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.

 FCN=   4239.710     FROM MIGRAD    STATUS=CONVERGED   1198 CALLS     3896 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3075        16.248        .97078E-03    .68052E-04
   2  Prefactor     .10000E-03    43.074        .18142E-02** at limit **
   3  Prefactor     21.378        31.523        .86609E-04    .15804E-03
   4  Prefactor     14.374        18.134        .10561E-03    .15878E-03
   5  norm          1.7741        5.2211        .18930E-03    .83296E-04
   6  Prefactor     18.927        42.449        .92022E-04    .89075E-04
   7  norm          3.2489        12.111        .22503E-03    .92453E-04
   8  norm          1.6493        21.977        .32960E-03   -.26938E-04
   9  Prefactor     .10000E-03    7.3126        .17176E-02** at limit **
  10  Prefactor     43.047        112.18        .61118E-04   -.36384E-04
  11  Prefactor     .10000E-03    12.042        .18142E-02** at limit **
  12  norm          .10000E-03    1.1616        .10369E-02** at limit **
  13  norm          .42181        33.995        .28731E-02    .69552E-04
  14  Prefactor     .10000E-03    5.0799        .14283E-02** at limit **
  15  Prefactor     99.095        59.034        .40379E-04   -.98542E-04
  16  Prefactor     .10001E-03    319.14        .21178E-02** at limit **
  17  Prefactor     .10000E-03    25.404        .36285E-03** at limit **
  18  Prefactor     31.133        25.513        .71821E-04   -.35932E-04
  19  norm          .10000E-03    30.645        .85936E-01** at limit **
  20  Prefactor     40.726        71.210        .62814E-04   -.12307E-04
  21  Prefactor     2.0804        5.3260        .10209E-02   -.12808E-03
  22  Prefactor     .10000E-03    48.588        .18142E-02** at limit **
  23  Prefactor     12.257        24.999        .11443E-03   -.54545E-04
  24  Prefactor     .10000E-03    7.2300        .17090E-02** at limit **
  25  Prefactor     .10000E-03    22.936        .18142E-02** at limit **
  26  Normalizat    .57321        .28194        .33569E-03   -.89068E-04
  27  Prefactor     .99969        .18528        .18511E-03   -.16889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30746
  Prefactor  = 0.0001
  Prefactor  = 21.378
  Prefactor  = 14.3737
  norm       = 1.77413
  Prefactor  = 18.9269
  norm       = 3.2489
  norm       = 1.64934
  Prefactor  = 0.0001
  Prefactor  = 43.0474
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.421806
  Prefactor  = 0.0001
  Prefactor  = 99.095
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 31.1331
  norm       = 0.0001
  Prefactor  = 40.7258
  Prefactor  = 2.08041
  Prefactor  = 0.000100001
  Prefactor  = 12.2573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.573208
  Prefactor  = 0.999688
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.710     FROM HESSE     STATUS=OK           474 CALLS     4370 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3075        16.238        .38831E-04   -1.5293    
   2  Prefactor     .10000E-03    43.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.378        31.479        .34643E-05   -1.4783    
   4  Prefactor     14.374        18.113        .42244E-05   -1.4950    
   5  norm          1.7741        5.2124        .75722E-05   -1.5442    
   6  Prefactor     18.927        42.422        .36809E-05   -1.4838    
   7  norm          3.2489        12.087        .90012E-05   -1.5347    
   8  norm          1.6493        21.954        .13184E-04   -1.5451    
   9  Prefactor     .10000E-03    7.3132        .34352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.047        110.78        .12224E-04   -1.4395    
  11  Prefactor     .10000E-03    12.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1638        .20738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .42181        32.958        .11492E-03   -1.5578    
  14  Prefactor     .10000E-03    5.0807        .28567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     99.095        59.035        .80758E-05   -1.3714    
  16  Prefactor     .10001E-03    319.17        .42355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.405        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.133        25.511        .28729E-05   -1.4591    
  19  norm          .10000E-03    26.851        .94235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.726        71.159        .25125E-05   -1.4431    
  21  Prefactor     2.0804        5.2906        .40837E-04   -1.5419    
  22  Prefactor     .10000E-03    48.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.257        24.990        .45771E-05   -1.5008    
  24  Prefactor     .10000E-03    7.2302        .34180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .57321        .28198        .13428E-04   -1.0913    
  27  Prefactor     .99969        .18529        .37023E-04   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4961e-10
Minuit parameter uncertainties:
  1  16.2548
  2  4.75622e-05
  3  31.5036
  4  18.1202
  5  5.21373
  6  42.4901
  7  12.0961
  8  12.0398
  9  2.37329e-05
  10  111.314
  11  0.000113718
  12  1.89652e-05
  13  7.46038
  14  9.3757e-05
  15  59.07
  16  0.00347691
  17  0.000221484
  18  25.5203
  19  3.59237e-05
  20  71.3077
  21  5.29177
  22  0.00039663
  23  25.0109
  24  2.08708e-05
  25  5.33634e-05
  26  0.282684
  27  0.185413
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.080e+00  5.292e+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.997e-01  1.854e-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:  5.732e-01  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66489/likelihoodResults_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.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) = 4239.70515981
delta logL = 0.00524168609172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4239.70411641
delta logL = 0.0062850813656

Fit tolerance = 1e-08

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

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

 FCN=   4239.704     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8751        5.1541        .18901E-03   -.43409E-03
   2  Index         2.6315        1.3580        .12063E-01   -.46257E-04
   3  Normalizat    .57100        .25279        .33633E-03    .14052E-03
   4  Prefactor     1.0008        .18016        .18502E-03    .23424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87512
  Index      = 2.63149
  Normalizat = 0.571001
  Prefactor  = 1.0008
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.704     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8751        4.8243        .75605E-05   -1.5434    
   2  Index         2.6315        1.2735        .48252E-03   -.49349    
   3  Normalizat    .57100        .25302        .13453E-04   -1.0923    
   4  Prefactor     1.0008        .18023        .37003E-04   -.92703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52242e-10
Minuit parameter uncertainties:
  1  4.82527
  2  1.29196
  3  0.253531
  4  0.180339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66489': 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) = 4239.70411631
delta logL = 0.00628518450958

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.875e+00  4.825e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.631e+00  1.292e+00  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:  1.001e+00  1.803e-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:  5.710e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/66489/cmap_HighResolution_551404801_551664001_4FGL_J2338.0-0230_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-30 02:36:03.489465', job_id='66489', GAL2='1.00', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1632994563.49', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.29e-03', ts2='0.26', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1204' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 66489: <4FGL_J2338.0-0230_daily_bin1204> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1204> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:54 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:20:55 2021
Terminated at Thu Sep 30 02:36:04 2021
Results reported at Thu Sep 30 02:36:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1204 354.509 -2.5106 551404801 551664001 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 :                                   613.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

