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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1081
RA = 354.509, Dec = -2.5106
tmin = 519523201, tmax = 519782401
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='66216', job_status='RUN', time_executed='2021-09-30 02:23:08.686571', time_epoch_executed='1632993788.69' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66216

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66216/ft1_4FGL_J2338.0-0230_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66216/ft2_4FGL_J2338.0-0230_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66216/ft1_4FGL_J2338.0-0230_daily_bin1081.fits outfile=/scratch/kocevski/66216/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1081.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.92
user 2.70
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66216/ft1_filtered_4FGL_J2338.0-0230_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/66216/ft2_4FGL_J2338.0-0230_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/66216/ltcube_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.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/66216/ft2_4FGL_J2338.0-0230_daily_bin1081.fits
.....................!
real 9.75
user 9.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66216/ft1_filtered_4FGL_J2338.0-0230_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/66216/ft2_4FGL_J2338.0-0230_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/66216/ltcube_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.fits outfile=/scratch/kocevski/66216/expmap_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.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/66216/ltcube_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.fits
.....................!
real 192.22
user 186.66
sys 5.24

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/66216/ft1_filtered_4FGL_J2338.0-0230_daily_bin1081.fits scfile=/scratch/kocevski/66216/ft2_4FGL_J2338.0-0230_daily_bin1081.fits outfile=/scratch/kocevski/66216/cmap_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.509 yref=-2.5106 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66216/ft1_filtered_4FGL_J2338.0-0230_daily_bin1081.fits scfile=/scratch/kocevski/66216/ft2_4FGL_J2338.0-0230_daily_bin1081.fits outfile=/scratch/kocevski/66216/cmap_HighResolution_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1344       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10578E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.462       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1793       1.0000         .10000E-03   10000.    
    13 'norm      '    13.904       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.200       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.224       1.0000         .10000E-03   10000.    
    19 'norm      '    19.140       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6400       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9374       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2640       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90099       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=   5681.743     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3298 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1354        9.2608        .32505E-07   -.12496E-04
   2  Prefactor     .10000E-03    22.149       -.12050E-05** at limit **
   3  Prefactor     49.529        20.190        .89848E-07   -.20323E-04
   4  Prefactor     .10000E-03    2.8125        .24995E-07** at limit **
   5  norm          .10000E-03    1.2269        .13016E-07** at limit **
   6  Prefactor     .10000E-03    4.5901        .17726E-07** at limit **
   7  norm          .10001E-03    1.6432       -.21297E-06** at limit **
   8  norm          5.2298        10.137        .55506E-05   -.72780E-04
   9  Prefactor     .10000E-03    8.6359        .57318E-07** at limit **
  10  Prefactor     41.452        57.995        .27831E-05   -.79413E-04
  11  Prefactor     .10007E-03    6.3956        .29532E-06** at limit **
  12  norm          2.1793        1.0497       -.11422E-06   -.50383E-03
  13  norm          13.902        7.0048        .28442E-06   -.15027E-03
  14  Prefactor     31.030        17.459        .23771E-06   -.18756E-04
  15  Prefactor     28.617        41.180       -.11377E-05   -.65437E-04
  16  Prefactor     51.389        165.79        .15174E-04    .68359E-04
  17  Prefactor     .10000E-03    39.405        .46767E-05** at limit **
  18  Prefactor     16.227        28.301        .62559E-06   -.10723E-05
  19  norm          19.158        21.707       -.68823E-06   -.89350E-04
  20  Prefactor     .10000E-03    43.327       -.61483E-07** at limit **
  21  Prefactor     1.6361        4.8307        .21846E-05   -.24486E-03
  22  Prefactor     .10000E-03    45.629       -.14614E-05** at limit **
  23  Prefactor     4.9374        15.497        .65203E-06   -.68679E-05
  24  Prefactor     .10000E-03    13.733        .37780E-06** at limit **
  25  Prefactor     2.2640        6.2009        .98461E-06   -.20635E-04
  26  Normalizat    1.0048        .20847        .57644E-07   -.15499E-03
  27  Prefactor     .90109        .15328       -.17043E-05   -.62962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.13541
  Prefactor  = 0.0001
  Prefactor  = 49.529
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 5.22978
  Prefactor  = 0.0001
  Prefactor  = 41.4518
  Prefactor  = 0.00010007
  norm       = 2.1793
  norm       = 13.9017
  Prefactor  = 31.0304
  Prefactor  = 28.617
  Prefactor  = 51.3893
  Prefactor  = 0.000100004
  Prefactor  = 16.2266
  norm       = 19.1584
  Prefactor  = 0.0001
  Prefactor  = 1.63606
  Prefactor  = 0.0001
  Prefactor  = 4.9374
  Prefactor  = 0.0001
  Prefactor  = 2.26401
  Normalizat = 1.00477
  Prefactor  = 0.901086
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.743     FROM HESSE     STATUS=OK           490 CALLS     3788 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1354        9.2425        .15018E-03   -1.5174    
   2  Prefactor     .10000E-03    22.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.529        20.175        .56979E-04   -1.4299    
   4  Prefactor     .10000E-03    2.8267        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2384        .81291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5972        .15770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    9.9102        .18505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2298        10.224        .87884E-03   -1.5251    
   9  Prefactor     .10000E-03    8.6572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.452        54.161        .62254E-04   -1.4419    
  11  Prefactor     .10007E-03    27.239        .33073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1793        1.0500        .27888E-04   -1.5413    
  13  norm          13.902        6.9339        .10742E-03   -1.4962    
  14  Prefactor     31.030        17.463        .71931E-04   -1.4593    
  15  Prefactor     28.617        41.241        .74878E-04   -1.4638    
  16  Prefactor     51.389        170.89        .28024E-03   -1.4273    
  17  Prefactor     .10000E-03    38.777        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.227        28.271        .99435E-04   -1.4902    
  19  norm          19.158        21.399        .91549E-04   -1.4832    
  20  Prefactor     .10000E-03    43.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6361        4.7471        .23919E-03   -1.5452    
  22  Prefactor     .10000E-03    45.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.9374        15.480        .18100E-03   -1.5264    
  24  Prefactor     .10000E-03    13.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2640        6.1910        .27299E-03   -1.5407    
  26  Normalizat    1.0048        .23674        .27656E-03   -.92871    
  27  Prefactor     .90109        .17522        .22282E-03   -.96103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9101e-09
Minuit parameter uncertainties:
  1  9.24439
  2  0.000133257
  3  20.1775
  4  5.28405e-06
  5  1.92804e-06
  6  3.34258e-06
  7  0.000555639
  8  10.2269
  9  7.0069e-06
  10  54.2258
  11  0.0027594
  12  1.04999
  13  6.93433
  14  17.4662
  15  41.2816
  16  172.558
  17  0.000767167
  18  28.2946
  19  21.4074
  20  3.57544e-05
  21  4.74818
  22  0.000198307
  23  15.4929
  24  4.06784e-05
  25  6.19279
  26  0.236988
  27  0.175331
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.636e+00  4.748e+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.011e-01  1.753e-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.005e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66216/likelihoodResults_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.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) = 5681.21043093
delta logL = 0.532788871856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5681.18944929
delta logL = 0.553770511624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75343       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8279       1.0000          .0000       10.000    
     3 'Normalizat'    .95999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92060       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=   5681.189     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75267        14.646        .12265E-01    .92763E-03
   2  Index         3.8286        3.6399        .13925        .11664E-03
   3  Normalizat    .96002        .48051E-01    .45664E-01    .13802E-04
   4  Prefactor     .92057        .37088E-01    .45267E-01    .69310E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.752665
  Index      = 3.82862
  Normalizat = 0.960019
  Prefactor  = 0.92057
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.189     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      286 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75267        38.542        .64867E-03   -1.5534    
   2  Index         3.8286        6.7387        .71697E-02   -.23647    
   3  Normalizat    .96002        .19755        .28185E-03   -.94382    
   4  Prefactor     .92057        .15094        .22058E-03   -.95426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79656e-10
Minuit parameter uncertainties:
  1  10.7786
  2  8.31895
  3  0.197701
  4  0.151012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66216': 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) = 5681.18944913
delta logL = 0.553770680638

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  7.527e-01  1.078e+01  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.829e+00  8.319e+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:  9.206e-01  1.510e-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.600e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 3.83 +/- 8.32
Photon Flux (Free Index): 5.84e-08 +/- 6.53e-08
Energy Flux (Free Index): 9.02e-06 +/- 2.11e-05

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/66216/cmap_HighResolution_519523201_519782401_4FGL_J2338.0-0230_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', comment='SUCCESS', energy_flux2='9.02e-06', dlogl='5.54e-01', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-30 02:36:29.132902', photon_index_error2='8.32', photon_index2='3.83', ts='0.16', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.11e-05', EG='1.00', time_epoch_completed='1632994589.13', return_code='0', job_id='66216', GAL2='0.92', EG2='0.96', return_code2='102', photon_flux_error2='6.53e-08', ts2='1.32', photon_index='2.49' WHERE bin_id='1081' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 66216: <4FGL_J2338.0-0230_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1081 354.509 -2.5106 519523201 519782401 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 :                                   683.61 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            949 sec.

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

