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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1165
RA = 354.509, Dec = -2.5106
tmin = 541296001, tmax = 541555201
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='66387', job_status='RUN', time_executed='2021-09-30 02:23:05.280180', time_epoch_executed='1632993785.28' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66387/ft1_4FGL_J2338.0-0230_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66387/ft1_4FGL_J2338.0-0230_daily_bin1165.fits outfile=/scratch/kocevski/66387/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1165.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=541296001.0 tmax=541555201.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.80
user 3.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.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/66387/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/66387/ft1_filtered_4FGL_J2338.0-0230_daily_bin1165.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66387/ft1_filtered_4FGL_J2338.0-0230_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/66387/ltcube_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.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/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.fits
.....................!
real 11.88
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66387/ft1_filtered_4FGL_J2338.0-0230_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/66387/ltcube_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.fits outfile=/scratch/kocevski/66387/expmap_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.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/66387/ltcube_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.fits
.....................!
real 192.48
user 187.56
sys 4.57

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/66387/ft1_filtered_4FGL_J2338.0-0230_daily_bin1165.fits scfile=/scratch/kocevski/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.fits outfile=/scratch/kocevski/66387/cmap_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66387/ft1_filtered_4FGL_J2338.0-0230_daily_bin1165.fits scfile=/scratch/kocevski/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.fits outfile=/scratch/kocevski/66387/cmap_HighResolution_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66387/ft1_filtered_4FGL_J2338.0-0230_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/66387/ft2_4FGL_J2338.0-0230_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66387/Model_4FGL_J2338.0-0230_daily_bin1165.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/66387/ft1_filtered_4FGL_J2338.0-0230_daily_bin1165.fits.....................!
real 53.66
user 51.87
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.013       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.946       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    38.501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97366E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73676       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9221       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8794       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.843       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12796E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9147       1.0000         .10000E-03   10000.    
    19 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35241E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5417       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93818       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0668       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=   4895.876     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3298 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0038       -.12245E-06** at limit **
   2  Prefactor     .10000E-03    37.232       -.14822E-06** at limit **
   3  Prefactor     28.023        18.760        .65722E-06    .45236E-06
   4  Prefactor     .10000E-03    4.5582       -.35526E-07** at limit **
   5  norm          .10000E-03    1.8977       -.56035E-07** at limit **
   6  Prefactor     22.959        20.052        .74304E-06   -.55235E-05
   7  norm          .10000E-03    3.7627       -.14860E-07** at limit **
   8  norm          38.502        19.979        .69642E-06    .49816E-05
   9  Prefactor     .10000E-03    5.0855        .97743E-07** at limit **
  10  Prefactor     .10001E-03    350.79       -.29107E-05** at limit **
  11  Prefactor     .74661        11.075       -.12048E-05    .42715E-03
  12  norm          1.9224        1.1797        .42276E-07    .23028E-03
  13  norm          5.8734        5.7463       -.55491E-06   -.88887E-04
  14  Prefactor     6.9993        11.442        .85031E-06    .37789E-04
  15  Prefactor     18.898        47.869        .17359E-05    .27376E-04
  16  Prefactor     .10000E-03    81.514        .19762E-06** at limit **
  17  Prefactor     .10000E-03    5.6645        .27474E-06** at limit **
  18  Prefactor     9.9571        33.560        .22007E-05    .11840E-04
  19  norm          .10000E-03    8.3315        .82610E-07** at limit **
  20  Prefactor     .10002E-03    1003.6       -.35533E-04** at limit **
  21  Prefactor     .10001E-03    3.2316       -.10699E-05** at limit **
  22  Prefactor     9.5577        32.203        .21807E-05    .15662E-04
  23  Prefactor     .10000E-03    9.2948        .17185E-06** at limit **
  24  Prefactor     .10000E-03    18.147       -.15961E-06** at limit **
  25  Prefactor     .10000E-03    2.4033       -.60682E-07** at limit **
  26  Normalizat    .93796        .22588       -.28893E-05   -.15701E-03
  27  Prefactor     1.0668        .16784       -.14981E-05   -.28404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0227
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.9587
  norm       = 0.0001
  norm       = 38.5015
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.746606
  norm       = 1.92238
  norm       = 5.87337
  Prefactor  = 6.99926
  Prefactor  = 18.898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.9571
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.00010001
  Prefactor  = 9.55773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.937961
  Prefactor  = 1.06677
 **********
 **   18 **HESSE 
 **********

 FCN=   4895.876     FROM HESSE     STATUS=OK           486 CALLS     3784 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.023        18.747        .75693E-04   -1.4649    
   4  Prefactor     .10000E-03    4.5844        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9400        .18758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.959        19.977        .83620E-04   -1.4749    
   7  norm          .10000E-03    3.8107        .26313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          38.502        20.012        .64595E-04   -1.4466    
   9  Prefactor     .10000E-03    5.0885        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    354.42        .41560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .74661        28.839        .40522E-02   -1.5535    
  12  norm          1.9224        1.1735        .56450E-04   -1.5431    
  13  norm          5.8734        5.7909        .15664E-03   -1.5223    
  14  Prefactor     6.9993        11.411        .15162E-03   -1.5179    
  15  Prefactor     18.898        47.938        .92269E-04   -1.4838    
  16  Prefactor     .10000E-03    81.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6949        .16267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9571        33.493        .12726E-03   -1.5077    
  19  norm          .10000E-03    8.3403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    995.44        .39294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    6.6709        .22823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.5577        32.235        .12973E-03   -1.5090    
  23  Prefactor     .10000E-03    9.3178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.4055        .10592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93796        .25955        .29420E-03   -.95139    
  27  Prefactor     1.0668        .19539        .21258E-03   -.90536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.844e-09
Minuit parameter uncertainties:
  1  2.59336e-05
  2  1.58209e-06
  3  18.7514
  4  9.71602e-06
  5  7.13383e-06
  6  19.9825
  7  1.02123e-05
  8  20.0152
  9  7.24842e-06
  10  0.00318044
  11  9.28465
  12  1.17355
  13  5.79148
  14  11.4142
  15  48.0362
  16  0.000222831
  17  3.77623e-05
  18  33.5563
  19  2.41499e-05
  20  0.00993633
  21  0.000525543
  22  32.2934
  23  1.75327e-05
  24  6.98178e-05
  25  3.27625e-06
  26  0.259896
  27  0.195524
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  5.255e-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:  1.067e+00  1.955e-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:  9.380e-01  2.599e-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: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66387/likelihoodResults_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.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) = 4895.8763271
delta logL = -0.00071311782267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4895.87561661
delta logL = -2.63111360255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11710E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3999       1.0000          .0000       10.000    
     3 'Normalizat'    .93728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0673       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=   4895.865     FROM MIGRAD    STATUS=FAILED       182 CALLS      355 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41554        629.11        .21735E-02    .26211E-02
   2  Index         1.7299        8.0132        .50000       -.20237E-04
   3  Normalizat    .93913        .72998E-01    .29420E-03   -.48072E-04
   4  Prefactor     1.0646        .59467E-01    .21258E-03   -.93309E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4895.865     FROM SIMPLEX   STATUS=UNCHANGED    103 CALLS      458 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41554        629.11        .37873E-03    .26211E-02
   2  Index         1.7299        8.0132        .36710E-02   -.20237E-04
   3  Normalizat    .93913        .72998E-01    .96035E-04   -.48072E-04
   4  Prefactor     1.0646        .59467E-01    .47980E-04   -.93309E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4895.865     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      492 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41556        5.4590        .43469E-03   -.55733E-04
   2  Index         1.7299        1.8839        .18872E-01   -.12608E-04
   3  Normalizat    .93913        .24869        .11768E-04   -.42121E-04
   4  Prefactor     1.0646        .19206        .42517E-04   -.81127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.415559
  Index      = 1.7299
  Normalizat = 0.939129
  Prefactor  = 1.0646
 **********
 **   18 **HESSE 
 **********

 FCN=   4895.865     FROM HESSE     STATUS=OK            27 CALLS      519 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41556        5.5678        .17388E-04   -1.5579    
   2  Index         1.7299        1.9032        .75486E-03   -.71289    
   3  Normalizat    .93913        .24879        .23536E-05   -.95099    
   4  Prefactor     1.0646        .19210        .85034E-05   -.90606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55617e-11
Minuit parameter uncertainties:
  1  3.04219
  2  1.99433
  3  0.249096
  4  0.192222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66387': 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) = 4895.86514975
delta logL = 0.0104642372189

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.156e-01  3.042e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  1.730e+00  1.994e+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.065e+00  1.922e-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:  9.391e-01  2.491e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/66387/cmap_HighResolution_541296001_541555201_4FGL_J2338.0-0230_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-30 02:36:32.207613', job_id='66387', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632994592.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.05e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1165' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 66387: <4FGL_J2338.0-0230_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1165> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:49 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:51 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:51 2021
Terminated at Thu Sep 30 02:36:32 2021
Results reported at Thu Sep 30 02:36:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1165 354.509 -2.5106 541296001 541555201 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 :                                   650.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

