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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin635
RA = 354.509, Dec = -2.5106
tmin = 403920001, tmax = 404179201
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='63064', job_status='RUN', time_executed='2021-09-30 02:19:09.233386', time_epoch_executed='1632993549.23' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63064

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63064/ft1_4FGL_J2338.0-0230_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63064/ft2_4FGL_J2338.0-0230_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63064/ft1_4FGL_J2338.0-0230_daily_bin635.fits outfile=/scratch/kocevski/63064/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin635.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.14
user 9.79
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63064/ft1_filtered_4FGL_J2338.0-0230_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/63064/ft2_4FGL_J2338.0-0230_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/63064/ltcube_403920001_404179201_4FGL_J2338.0-0230_daily_bin635.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/63064/ft2_4FGL_J2338.0-0230_daily_bin635.fits
.....................!
real 9.54
user 9.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63064/ft1_filtered_4FGL_J2338.0-0230_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/63064/ft2_4FGL_J2338.0-0230_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/63064/ltcube_403920001_404179201_4FGL_J2338.0-0230_daily_bin635.fits outfile=/scratch/kocevski/63064/expmap_403920001_404179201_4FGL_J2338.0-0230_daily_bin635.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/63064/ltcube_403920001_404179201_4FGL_J2338.0-0230_daily_bin635.fits
.....................!
real 193.07
user 186.91
sys 5.60

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/63064/ft1_filtered_4FGL_J2338.0-0230_daily_bin635.fits scfile=/scratch/kocevski/63064/ft2_4FGL_J2338.0-0230_daily_bin635.fits outfile=/scratch/kocevski/63064/cmap_403920001_404179201_4FGL_J2338.0-0230_daily_bin635.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.58
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63064/ft1_filtered_4FGL_J2338.0-0230_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/63064/ft2_4FGL_J2338.0-0230_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63064/Model_4FGL_J2338.0-0230_daily_bin635.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/63064/ft1_filtered_4FGL_J2338.0-0230_daily_bin635.fits.....................!
real 35.85
user 34.47
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.629       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.251       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.1924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.169       1.0000         .10000E-03   10000.    
    10 'Prefactor '    139.88       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16711E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.904       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.760       1.0000         .10000E-03   10000.    
    16 'Prefactor '    193.58       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.525       1.0000         .10000E-03   10000.    
    19 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2860       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.537       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4238       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .43428       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=   2727.618     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3788 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.629        15.147        .75189E-06    .89541E-05
   2  Prefactor     43.234        83.065       -.23114E-04   -.45026E-05
   3  Prefactor     .10000E-03    28.388       -.79656E-05** at limit **
   4  Prefactor     .10000E-03    10.278        .25615E-06** at limit **
   5  norm          1.1103        3.4311       -.77339E-06   -.33661E-03
   6  Prefactor     .10000E-03    22.474        .58228E-05** at limit **
   7  norm          .10000E-03    4.8492        .44787E-07** at limit **
   8  norm          7.1920        12.467       -.73626E-06   -.10101E-04
   9  Prefactor     31.167        30.062       -.22533E-05    .34592E-04
  10  Prefactor     139.85        109.92       -.22976E-04   -.30266E-04
  11  Prefactor     .10000E-03    23.139        .76386E-05** at limit **
  12  norm          .10000E-03    1.2475       -.72329E-06** at limit **
  13  norm          16.904        13.151        .21553E-05    .97440E-04
  14  Prefactor     .10000E-03    31.144       -.12221E-04** at limit **
  15  Prefactor     59.762        61.965        .22645E-05    .17789E-04
  16  Prefactor     193.59        381.04        .79631E-05    .22929E-04
  17  Prefactor     .10000E-03    22.555        .43707E-05** at limit **
  18  Prefactor     22.521        38.080       -.42345E-05    .10777E-03
  19  norm          .10000E-03    21.061       -.35517E-05** at limit **
  20  Prefactor     .10000E-03    84.775       -.10590E-04** at limit **
  21  Prefactor     6.2878        8.2327        .37623E-05    .72379E-05
  22  Prefactor     .10000E-03    43.340        .18989E-04** at limit **
  23  Prefactor     47.533        36.715       -.38673E-05    .74356E-05
  24  Prefactor     .10000E-03    20.858       -.45924E-05** at limit **
  25  Prefactor     .10000E-03    5.5263       -.13898E-07** at limit **
  26  Normalizat    1.4239        .29595        .32735E-05    .12901E-03
  27  Prefactor     .43421        .19934        .14189E-05    .18291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6288
  Prefactor  = 43.2337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11031
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.19197
  Prefactor  = 31.167
  Prefactor  = 139.85
  Prefactor  = 0.000100005
  norm       = 0.000100001
  norm       = 16.9044
  Prefactor  = 0.000100001
  Prefactor  = 59.7624
  Prefactor  = 193.593
  Prefactor  = 0.000100002
  Prefactor  = 22.5208
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.28784
  Prefactor  = 0.0001
  Prefactor  = 47.5332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42388
  Prefactor  = 0.434213
 **********
 **   18 **HESSE 
 **********

 FCN=   2727.618     FROM HESSE     STATUS=OK           482 CALLS     4270 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.629        15.149        .98217E-04   -1.4892    
   2  Prefactor     43.234        83.148        .60958E-04   -1.4392    
   3  Prefactor     .10000E-03    28.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.427        .16337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1103        3.4075        .15944E-03   -1.5497    
   6  Prefactor     .10000E-03    22.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.9460        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.1920        12.461        .14957E-03   -1.5172    
   9  Prefactor     31.167        30.067        .71769E-04   -1.4591    
  10  Prefactor     139.85        110.77        .17030E-03   -1.3337    
  11  Prefactor     .10000E-03    23.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.0823        .10712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.904        13.035        .97414E-04   -1.4885    
  14  Prefactor     .10000E-03    31.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     59.762        61.929        .51901E-04   -1.4160    
  16  Prefactor     193.59        372.93        .14516E-03   -1.2916    
  17  Prefactor     .10000E-03    22.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.521        37.925        .84397E-04   -1.4758    
  19  norm          .10000E-03    21.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    84.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2878        8.2220        .14728E-03   -1.5206    
  22  Prefactor     .10000E-03    43.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     47.533        36.826        .58157E-04   -1.4328    
  24  Prefactor     .10000E-03    20.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.5372        .11990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4239        .34091        .23220E-03   -.79940    
  27  Prefactor     .43421        .22551        .28030E-03   -1.1510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02048e-10
Minuit parameter uncertainties:
  1  15.153
  2  83.372
  3  4.59069e-05
  4  7.60816e-05
  5  3.40814
  6  9.05831e-05
  7  1.93599e-05
  8  12.4656
  9  30.0814
  10  110.931
  11  0.000658694
  12  0.000157532
  13  13.0374
  14  0.000259055
  15  61.9961
  16  377.644
  17  0.000459879
  18  37.9652
  19  0.000174232
  20  2.44986e-05
  21  8.22347
  22  9.68327e-05
  23  36.844
  24  6.55094e-05
  25  7.4384e-07
  26  0.341462
  27  0.225973
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.288e+00  8.223e+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:  4.342e-01  2.260e-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.424e+00  3.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 8.21e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 2.41e-05

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

Saving results to:
/scratch/kocevski/63064/likelihoodResults_403920001_404179201_4FGL_J2338.0-0230_daily_bin635.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) = 2727.47382407
delta logL = 0.144470060233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2727.46821886
delta logL = 0.150075270076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6733       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0154       1.0000          .0000       10.000    
     3 'Normalizat'    1.3827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45208       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=   2727.468     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6711        126.22        .46540E-02    .13918E-03
   2  Index         3.0155        6.5028        .16314        .40558E-04
   3  Normalizat    1.3827        .10350        .53134E-01   -.26967E-04
   4  Prefactor     .45193        .66797E-01    .62151E-01   -.56752E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67113
  Index      = 3.01553
  Normalizat = 1.38273
  Prefactor  = 0.451932
 **********
 **   18 **HESSE 
 **********

 FCN=   2727.468     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6711        7.2043        .10528E-03   -1.5276    
   2  Index         3.0155        1.0523        .57130E-02   -.40813    
   3  Normalizat    1.3827        .33209        .23493E-03   -.81129    
   4  Prefactor     .45193        .22556        .27504E-03   -1.1424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62701e-09
Minuit parameter uncertainties:
  1  7.20568
  2  1.06178
  3  0.332609
  4  0.226007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63064': 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) = 2727.46821793
delta logL = 0.150076205311

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.671e+00  7.206e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.016e+00  1.062e+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:  4.519e-01  2.260e-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.383e+00  3.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 3.02 +/- 1.06
Photon Flux (Free Index): 9.92e-08 +/- 1.10e-07
Energy Flux (Free Index): 1.97e-05 +/- 2.01e-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/63064/cmap_HighResolution_403920001_404179201_4FGL_J2338.0-0230_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='1.97e-05', photon_flux_error='8.21e-08', dlogl='1.50e-01', energy_flux='1.84e-05', photon_flux2='9.92e-08', job_status='DONE', time_completed='2021-09-30 02:28:14.141136', photon_index_error2='1.06', photon_index2='3.02', ts='1.05', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='2.01e-05', EG='1.42', time_epoch_completed='1632994094.14', return_code='0', job_id='63064', GAL2='0.45', EG2='1.38', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='1.10e-07', ts2='1.38', photon_index='2.49' WHERE bin_id='635' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:28:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 63064: <4FGL_J2338.0-0230_daily_bin635> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin635> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:15:11 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:15:13 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:15:13 2021
Terminated at Thu Sep 30 02:28:14 2021
Results reported at Thu Sep 30 02:28:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin635 354.509 -2.5106 403920001 404179201 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 :                                   541.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

