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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1148
RA = 354.509, Dec = -2.5106
tmin = 536889601, tmax = 537148801
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='66363', job_status='RUN', time_executed='2021-09-30 02:23:13.819681', time_epoch_executed='1632993793.82' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66363/ft1_4FGL_J2338.0-0230_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66363/ft2_4FGL_J2338.0-0230_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66363/ft1_4FGL_J2338.0-0230_daily_bin1148.fits outfile=/scratch/kocevski/66363/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1148.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=536889601.0 tmax=537148801.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.64
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66363/ft1_filtered_4FGL_J2338.0-0230_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/66363/ft2_4FGL_J2338.0-0230_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/66363/ltcube_536889601_537148801_4FGL_J2338.0-0230_daily_bin1148.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/66363/ft2_4FGL_J2338.0-0230_daily_bin1148.fits
.....................!
real 12.21
user 11.87
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66363/ft1_filtered_4FGL_J2338.0-0230_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/66363/ft2_4FGL_J2338.0-0230_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/66363/ltcube_536889601_537148801_4FGL_J2338.0-0230_daily_bin1148.fits outfile=/scratch/kocevski/66363/expmap_536889601_537148801_4FGL_J2338.0-0230_daily_bin1148.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/66363/ltcube_536889601_537148801_4FGL_J2338.0-0230_daily_bin1148.fits
.....................!
real 190.65
user 185.30
sys 4.94

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/66363/ft1_filtered_4FGL_J2338.0-0230_daily_bin1148.fits scfile=/scratch/kocevski/66363/ft2_4FGL_J2338.0-0230_daily_bin1148.fits outfile=/scratch/kocevski/66363/cmap_536889601_537148801_4FGL_J2338.0-0230_daily_bin1148.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66363/ft1_filtered_4FGL_J2338.0-0230_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/66363/ft2_4FGL_J2338.0-0230_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66363/Model_4FGL_J2338.0-0230_daily_bin1148.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/66363/ft1_filtered_4FGL_J2338.0-0230_daily_bin1148.fits.....................!
real 50.26
user 48.47
sys 1.62

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.179       1.0000         .10000E-03   10000.    
     7 'norm      '    .12844E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .47976E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    90.581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57080E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5735       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11644E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37827E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.223       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.487       1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.436       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6897       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9318       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3061       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65882       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=   4801.865     FROM MIGRAD    STATUS=CONVERGED   1164 CALLS     3905 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0094        10.317        .17967E-03    .36700E-04
   2  Prefactor     .10000E-03    27.693        .18142E-02** at limit **
   3  Prefactor     .10000E-03    24.096        .18142E-02** at limit **
   4  Prefactor     .10000E-03    15.756        .32308E-02** at limit **
   5  norm          1.2763        3.3067        .18541E-03    .38790E-03
   6  Prefactor     12.158        15.498        .11479E-03    .38488E-03
   7  norm          .10001E-03    12.826        .20051E-02** at limit **
   8  norm          .10000E-03    38.109        .40543E-02** at limit **
   9  Prefactor     .10000E-03    11.925        .18142E-02** at limit **
  10  Prefactor     90.714        78.958        .21110E-03    .98660E-04
  11  Prefactor     .10000E-03    72.670        .40027E-02** at limit **
  12  norm          .10000E-03    .39371        .82910E-04** at limit **
  13  norm          .10000E-03    4.0650        .13600E-02** at limit **
  14  Prefactor     7.1525        7.2819        .14994E-03   -.18720E-03
  15  Prefactor     7.5826        65.364        .14572E-03   -.12014E-04
  16  Prefactor     .10000E-03    57.119        .18142E-02** at limit **
  17  Prefactor     .10000E-03    8.5177        .18142E-02** at limit **
  18  Prefactor     .10004E-03    220.96        .65960E-02** at limit **
  19  norm          23.235        20.677        .83120E-04   -.89040E-04
  20  Prefactor     42.123        44.999        .61755E-04    .90463E-04
  21  Prefactor     .10000E-03    5.4518        .22472E-02** at limit **
  22  Prefactor     23.468        35.026        .82653E-04    .19944E-04
  23  Prefactor     55.428        28.470        .53875E-04   -.10049E-03
  24  Prefactor     3.6925        18.796        .21026E-03    .25791E-04
  25  Prefactor     4.9324        9.6909        .90553E-03   -.10631E-03
  26  Normalizat    1.3063        .27151        .24248E-03   -.53777E-04
  27  Prefactor     .65859        .17712        .23919E-03   -.43870E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27626
  Prefactor  = 12.1576
  norm       = 0.000100007
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 90.7143
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.15252
  Prefactor  = 7.58264
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  norm       = 23.2352
  Prefactor  = 42.1229
  Prefactor  = 0.000100001
  Prefactor  = 23.468
  Prefactor  = 55.4282
  Prefactor  = 3.69251
  Prefactor  = 4.93236
  Normalizat = 1.30633
  Prefactor  = 0.658585
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.865     FROM HESSE     STATUS=OK           462 CALLS     4367 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0094        10.313        .71868E-05   -1.5260    
   2  Prefactor     .10000E-03    27.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.830        .64617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2763        3.3051        .74162E-05   -1.5482    
   6  Prefactor     12.158        15.468        .45915E-05   -1.5010    
   7  norm          .10001E-03    12.891        .40102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    38.543        .81086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     90.714        78.558        .84441E-05   -1.3800    
  11  Prefactor     .10000E-03    73.056        .80055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .39371        .16582E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0654        .27199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1525        7.2802        .59977E-05   -1.5173    
  15  Prefactor     7.5826        65.352        .58290E-05   -1.5157    
  16  Prefactor     .10000E-03    57.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    227.30        .26384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.235        20.665        .33248E-05   -1.4744    
  20  Prefactor     42.123        44.998        .12351E-04   -1.4409    
  21  Prefactor     .10000E-03    5.4658        .44944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.468        35.016        .33061E-05   -1.4739    
  23  Prefactor     55.428        28.465        .10775E-04   -1.4218    
  24  Prefactor     3.6925        18.787        .84104E-05   -1.5324    
  25  Prefactor     4.9324        9.6825        .36221E-04   -1.5264    
  26  Normalizat    1.3063        .27154        .96992E-05   -.83378    
  27  Prefactor     .65859        .17722        .95676E-05   -1.0517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65028e-09
Minuit parameter uncertainties:
  1  10.317
  2  7.6935e-05
  3  0.000103671
  4  0.000123046
  5  3.30559
  6  15.4734
  7  0.000587813
  8  0.000396095
  9  9.55007e-05
  10  78.648
  11  0.000648218
  12  2.86603e-06
  13  3.39639e-06
  14  7.28114
  15  44.5869
  16  0.000362568
  17  5.23325e-05
  18  0.00580423
  19  20.6715
  20  45.0346
  21  0.00015437
  22  35.0463
  23  28.472
  24  16.6658
  25  9.68559
  26  0.271838
  27  0.177367
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.544e-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:  6.586e-01  1.774e-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.306e+00  2.718e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66363/likelihoodResults_536889601_537148801_4FGL_J2338.0-0230_daily_bin1148.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) = 4801.86606274
delta logL = -0.000874400549037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4801.86518857
delta logL = -2.32952515944e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5141       1.0000          .0000       10.000    
     3 'Normalizat'    1.3062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65874       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=   4801.865     FROM MIGRAD    STATUS=FAILED        95 CALLS      264 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10312E-03    43.639        .22465E-02** at limit **
   2  Index         2.6255        6.2586        .50000       -.27085E-04
   3  Normalizat    1.3063        .14467E-01    .24249E-03    .28251E-03
   4  Prefactor     .65859        .10543E-01    .23919E-03    .21403E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4801.865     FROM SIMPLEX   STATUS=PROGRESS     125 CALLS      389 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    43.639        .30844E-03** at limit **
   2  Index         2.6245        6.2586        .31270E-03   -.27085E-04
   3  Normalizat    1.3063        .14467E-01    .16515E-05    .28251E-03
   4  Prefactor     .65858        .10543E-01    .14448E-05    .21403E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4801.865     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      447 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.780        .44930E-02** at limit **
   2  Index         2.8449        5.9489        .50000        .13652E-06
   3  Normalizat    1.3063        .75747E-02    .48498E-04    .63996E-04
   4  Prefactor     .65859        .55202E-02    .95674E-05    .50620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.84489
  Normalizat = 1.30633
  Prefactor  = 0.658586
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.865     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      476 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    374.31        .17972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8449        5.9307        .50000       -.44563    
   3  Normalizat    1.3063        .43048E-01    .96995E-05   -.83378    
   4  Prefactor     .65859        .31369E-01    .19135E-05   -1.0517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.56198e-10
Minuit parameter uncertainties:
  1  0.000442714
  2  465.465
  3  0.043049
  4  0.0313698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66363': 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) = 4801.86518662
delta logL = 1.71751071321e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  4.427e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.845e+00  4.655e+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:  6.586e-01  3.137e-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.306e+00  4.305e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/66363/cmap_HighResolution_536889601_537148801_4FGL_J2338.0-0230_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.27e-08', time_completed='2021-09-30 02:37:06.343049', job_id='66363', GAL2='0.66', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632994626.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1148' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:37:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 66363: <4FGL_J2338.0-0230_daily_bin1148> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1148> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:47 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:48 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:48 2021
Terminated at Thu Sep 30 02:37:06 2021
Results reported at Thu Sep 30 02:37:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1148 354.509 -2.5106 536889601 537148801 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 :                                   670.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

