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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1013
RA = 354.509, Dec = -2.5106
tmin = 501897601, tmax = 502156801
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='66092', job_status='RUN', time_executed='2021-09-30 02:24:00.795836', time_epoch_executed='1632993840.8' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66092/ft1_4FGL_J2338.0-0230_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66092/ft2_4FGL_J2338.0-0230_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66092/ft1_4FGL_J2338.0-0230_daily_bin1013.fits outfile=/scratch/kocevski/66092/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1013.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=501897601.0 tmax=502156801.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.45
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66092/ft1_filtered_4FGL_J2338.0-0230_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/66092/ft2_4FGL_J2338.0-0230_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/66092/ltcube_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.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/66092/ft2_4FGL_J2338.0-0230_daily_bin1013.fits
.....................!
real 11.82
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66092/ft1_filtered_4FGL_J2338.0-0230_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/66092/ft2_4FGL_J2338.0-0230_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/66092/ltcube_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.fits outfile=/scratch/kocevski/66092/expmap_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.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/66092/ltcube_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.fits
.....................!
real 192.25
user 186.87
sys 5.05

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/66092/ft1_filtered_4FGL_J2338.0-0230_daily_bin1013.fits scfile=/scratch/kocevski/66092/ft2_4FGL_J2338.0-0230_daily_bin1013.fits outfile=/scratch/kocevski/66092/cmap_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.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.65
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66092/ft1_filtered_4FGL_J2338.0-0230_daily_bin1013.fits scfile=/scratch/kocevski/66092/ft2_4FGL_J2338.0-0230_daily_bin1013.fits outfile=/scratch/kocevski/66092/cmap_HighResolution_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66092/ft1_filtered_4FGL_J2338.0-0230_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/66092/ft2_4FGL_J2338.0-0230_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66092/Model_4FGL_J2338.0-0230_daily_bin1013.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/66092/ft1_filtered_4FGL_J2338.0-0230_daily_bin1013.fits.....................!
real 61.32
user 59.98
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.739       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2317       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.221       1.0000         .10000E-03   10000.    
     7 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    33.952       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9176       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    85.290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.287       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.738       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11590       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.813       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12040E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0471       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65042       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=   6408.063     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3311 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.739        7.4416       -.59846E-07    .72746E-04
   2  Prefactor     .10000E-03    11.452        .13407E-05** at limit **
   3  Prefactor     .10000E-03    11.171       -.43022E-06** at limit **
   4  Prefactor     .10000E-03    4.3476       -.15572E-05** at limit **
   5  norm          2.2318        1.9732       -.32247E-06   -.38731E-03
   6  Prefactor     19.221        11.012       -.12227E-05    .11075E-03
   7  norm          .10000E-03    1.4136       -.16403E-08** at limit **
   8  norm          33.952        13.138       -.55098E-06    .31899E-04
   9  Prefactor     .10000E-03    7.4918        .31049E-05** at limit **
  10  Prefactor     12.896        18.365       -.95544E-06    .28293E-04
  11  Prefactor     .10000E-03    2.4193        .12690E-06** at limit **
  12  norm          1.9175        .91514       -.15411E-06    .92722E-03
  13  norm          1.3930        4.3857       -.17531E-05   -.95874E-03
  14  Prefactor     .10000E-03    5.7307       -.18896E-05** at limit **
  15  Prefactor     45.810        42.079       -.87478E-05    .39174E-04
  16  Prefactor     85.327        108.08        .38565E-04    .30450E-04
  17  Prefactor     .10000E-03    8.9660       -.31229E-05** at limit **
  18  Prefactor     23.282        22.238       -.32165E-05    .32586E-04
  19  norm          .10000E-03    6.4570       -.98057E-07** at limit **
  20  Prefactor     14.726        54.744       -.26103E-04    .24823E-04
  21  Prefactor     .11205        1.6528       -.43067E-06   -.23322E-03
  22  Prefactor     29.804        27.280       -.70974E-05    .47558E-04
  23  Prefactor     .10000E-03    52.087        .19344E-06** at limit **
  24  Prefactor     .10000E-03    4.6833        .23640E-05** at limit **
  25  Prefactor     .10000E-03    3.2426       -.65260E-07** at limit **
  26  Normalizat    1.0471        .16900        .37919E-05    .13293E-03
  27  Prefactor     .65043        .12196       -.15250E-07    .33893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2318
  Prefactor  = 19.2207
  norm       = 0.0001
  norm       = 33.952
  Prefactor  = 0.0001
  Prefactor  = 12.8962
  Prefactor  = 0.0001
  norm       = 1.91754
  norm       = 1.39297
  Prefactor  = 0.0001
  Prefactor  = 45.8099
  Prefactor  = 85.3269
  Prefactor  = 0.0001
  Prefactor  = 23.2819
  norm       = 0.0001
  Prefactor  = 14.7262
  Prefactor  = 0.112046
  Prefactor  = 29.8042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04705
  Prefactor  = 0.650428
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.063     FROM HESSE     STATUS=OK           484 CALLS     3795 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.739        7.4497        .11692E-03   -1.5023    
   2  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4857        .32510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2318        1.9653        .10110E-03   -1.5409    
   6  Prefactor     19.221        10.987        .91356E-04   -1.4831    
   7  norm          .10000E-03    1.4373        .92690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          33.952        13.145        .68773E-04   -1.4542    
   9  Prefactor     .10000E-03    7.5144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.896        18.352        .11153E-03   -1.4990    
  11  Prefactor     .10000E-03    2.4253        .12153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9175        .90716        .49433E-04   -1.5431    
  13  norm          1.3930        4.3978        .28173E-03   -1.5472    
  14  Prefactor     .10000E-03    5.7623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.810        42.014        .59233E-04   -1.4353    
  16  Prefactor     85.327        109.03        .21749E-03   -1.3858    
  17  Prefactor     .10000E-03    9.2211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.282        22.246        .83005E-04   -1.4743    
  19  norm          .10000E-03    6.4671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.726        54.560        .10433E-03   -1.4940    
  21  Prefactor     .11205        20.929        .19183E-02   -1.5641    
  22  Prefactor     29.804        27.250        .73378E-04   -1.4616    
  23  Prefactor     .10000E-03    53.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6900        .16911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.3096        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0471        .19350        .23377E-03   -.91470    
  27  Prefactor     .65043        .13922        .22058E-03   -1.0550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03959e-09
Minuit parameter uncertainties:
  1  7.45027
  2  3.21517e-06
  3  2.05424e-05
  4  4.16307e-06
  5  1.96537
  6  10.9877
  7  1.66431e-06
  8  13.146
  9  8.6689e-06
  10  18.3597
  11  1.3371e-05
  12  0.907166
  13  4.39877
  14  1.49878e-05
  15  42.0415
  16  109.287
  17  3.79582e-05
  18  22.2534
  19  1.06842e-05
  20  54.7461
  21  3.0624
  22  27.2618
  23  6.01673e-05
  24  9.29691e-06
  25  1.32635e-05
  26  0.193628
  27  0.139296
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.120e-01  3.062e+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:  6.504e-01  1.393e-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.047e+00  1.936e-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: 7.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66092/likelihoodResults_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.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) = 6408.04560723
delta logL = 0.0177949873869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6408.03122229
delta logL = 0.0321799265676

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6408.031     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      248 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14065        1.9480        .18252E-01    .20154E-02
   2  Index         3.8095        .86378        .50000        .94572E-06
   3  Normalizat    1.0357        .99260E-02    .41618E-01   -.54148E-05
   4  Prefactor     .65525        .75802E-02    .41801E-01   -.15783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.140652
  Index      = 3.80945
  Normalizat = 1.03575
  Prefactor  = 0.655251
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.031     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      283 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14065        102.56        .90076E-03   -1.5633    
   2  Index         3.8095        5.3385        .57702E-02   -.24042    
   3  Normalizat    1.0357        .11240        .23490E-03   -.91842    
   4  Prefactor     .65525        .85453E-01    .21983E-03   -1.0531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27226e-06
Minuit parameter uncertainties:
  1  7.60641
  2  31.2037
  3  0.112423
  4  0.0854698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66092': 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) = 6408.03120941
delta logL = 0.0321928052053

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  6.553e-01  8.547e-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.036e+00  1.124e-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/66092/cmap_HighResolution_501897601_502156801_4FGL_J2338.0-0230_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-30 02:36:26.047389', job_id='66092', GAL2='0.66', fit_tolerance='1e-08', EG2='1.04', EG='1.05', time_epoch_completed='1632994586.05', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='3.22e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1013' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 66092: <4FGL_J2338.0-0230_daily_bin1013> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1013 354.509 -2.5106 501897601 502156801 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 :                                   739.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

