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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1029
RA = 354.509, Dec = -2.5106
tmin = 506044801, tmax = 506304001
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='66139', job_status='RUN', time_executed='2021-09-30 02:20:44.791089', time_epoch_executed='1632993644.79' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66139/ft1_4FGL_J2338.0-0230_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66139/ft2_4FGL_J2338.0-0230_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66139/ft1_4FGL_J2338.0-0230_daily_bin1029.fits outfile=/scratch/kocevski/66139/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1029.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.32
user 4.06
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66139/ft1_filtered_4FGL_J2338.0-0230_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/66139/ft2_4FGL_J2338.0-0230_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/66139/ltcube_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.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/66139/ft2_4FGL_J2338.0-0230_daily_bin1029.fits
.....................!
real 12.41
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66139/ft1_filtered_4FGL_J2338.0-0230_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/66139/ft2_4FGL_J2338.0-0230_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/66139/ltcube_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.fits outfile=/scratch/kocevski/66139/expmap_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.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/66139/ltcube_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.fits
.....................!
real 190.13
user 185.33
sys 4.38

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/66139/ft1_filtered_4FGL_J2338.0-0230_daily_bin1029.fits scfile=/scratch/kocevski/66139/ft2_4FGL_J2338.0-0230_daily_bin1029.fits outfile=/scratch/kocevski/66139/cmap_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66139/ft1_filtered_4FGL_J2338.0-0230_daily_bin1029.fits scfile=/scratch/kocevski/66139/ft2_4FGL_J2338.0-0230_daily_bin1029.fits outfile=/scratch/kocevski/66139/cmap_HighResolution_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66139/ft1_filtered_4FGL_J2338.0-0230_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/66139/ft2_4FGL_J2338.0-0230_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66139/Model_4FGL_J2338.0-0230_daily_bin1029.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/66139/ft1_filtered_4FGL_J2338.0-0230_daily_bin1029.fits.....................!
real 68.15
user 66.71
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.367       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6020       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8460       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.669       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8439       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8868       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    201.55       1.0000         .10000E-03   10000.    
    16 'Prefactor '    143.11       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1265       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4142       1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75054       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.923       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83585       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92153       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=   7249.450     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3239 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5804        .41912E-09** at limit **
   2  Prefactor     13.361        24.567       -.17274E-05   -.17179E-03
   3  Prefactor     5.9417        10.511        .33082E-05   -.36808E-03
   4  Prefactor     1.6049        4.8309        .11347E-05   -.74902E-04
   5  norm          .10000E-03    .76826       -.92779E-07** at limit **
   6  Prefactor     .10000E-03    2.7164        .12903E-06** at limit **
   7  norm          2.8444        3.1203       -.23719E-06   -.16178E-03
   8  norm          6.0044        9.2579        .30232E-05   -.43002E-03
   9  Prefactor     22.668        16.666       -.57524E-07   -.36102E-04
  10  Prefactor     .10000E-03    14.968       -.29263E-05** at limit **
  11  Prefactor     .10000E-03    3.0213       -.19180E-06** at limit **
  12  norm          2.8441        1.0020       -.39377E-07    .39318E-03
  13  norm          3.8868        3.8771        .51993E-07    .38947E-04
  14  Prefactor     6.1190        7.8810        .15156E-05   -.30854E-03
  15  Prefactor     201.55        67.711        .21337E-06    .61930E-04
  16  Prefactor     143.15        144.33        .52624E-05    .16406E-03
  17  Prefactor     7.1286        10.779       -.80404E-06   -.18352E-04
  18  Prefactor     7.4129        16.460       -.15358E-06   -.30256E-04
  19  norm          .10000E-03    27.834        .10647E-05** at limit **
  20  Prefactor     .10001E-03    15.966        .40565E-05** at limit **
  21  Prefactor     .74478        3.3915       -.47630E-06    .14511E-03
  22  Prefactor     .10000E-03    29.207       -.24294E-05** at limit **
  23  Prefactor     24.921        19.438        .50543E-08   -.26921E-04
  24  Prefactor     .10000E-03    3.5039        .18097E-06** at limit **
  25  Prefactor     .10000E-03    1.3915        .31086E-07** at limit **
  26  Normalizat    .83592        .16371       -.94431E-06    .72932E-04
  27  Prefactor     .92151        .12538       -.53282E-06    .70943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.361
  Prefactor  = 5.94174
  Prefactor  = 1.6049
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84443
  norm       = 6.00442
  Prefactor  = 22.6678
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.84406
  norm       = 3.88681
  Prefactor  = 6.119
  Prefactor  = 201.552
  Prefactor  = 143.15
  Prefactor  = 7.12864
  Prefactor  = 7.41294
  norm       = 0.000100003
  Prefactor  = 0.000100007
  Prefactor  = 0.744779
  Prefactor  = 0.000100002
  Prefactor  = 24.9213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.835924
  Prefactor  = 0.921507
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.450     FROM HESSE     STATUS=OK           490 CALLS     3729 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5817        .10453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.361        24.748        .10956E-03   -1.4977    
   3  Prefactor     5.9417        10.702        .82367E-03   -1.5220    
   4  Prefactor     1.6049        4.7019        .24382E-03   -1.5455    
   5  norm          .10000E-03    .78117        .72797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7196        .13706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8444        3.0472        .11844E-03   -1.5371    
   8  norm          6.0044        9.4380        .81928E-03   -1.5218    
   9  Prefactor     22.668        16.674        .84129E-04   -1.4755    
  10  Prefactor     .10000E-03    15.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0335        .14446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8441        .99920        .47568E-04   -1.5371    
  13  norm          3.8868        3.8706        .16127E-03   -1.5314    
  14  Prefactor     6.1190        7.9286        .81149E-03   -1.5213    
  15  Prefactor     201.55        67.707        .28464E-04   -1.2859    
  16  Prefactor     143.15        147.09        .16839E-03   -1.3309    
  17  Prefactor     7.1286        10.334        .15026E-03   -1.5174    
  18  Prefactor     7.4129        16.462        .14729E-03   -1.5163    
  19  norm          .10000E-03    28.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    16.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .74478        5.1062        .24477E-02   -1.5535    
  22  Prefactor     .10000E-03    29.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.921        19.451        .80241E-04   -1.4709    
  24  Prefactor     .10000E-03    3.5117        .15570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.3964        .98079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83592        .18824        .27959E-03   -.98750    
  27  Prefactor     .92151        .14553        .20830E-03   -.95394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2176e-09
Minuit parameter uncertainties:
  1  1.76363e-06
  2  24.7672
  3  10.7049
  4  4.70301
  5  3.50884e-06
  6  1.057e-05
  7  3.04737
  8  9.44036
  9  16.6778
  10  0.000477915
  11  1.23235e-05
  12  0.999203
  13  3.87088
  14  7.92996
  15  67.7331
  16  147.465
  17  10.3363
  18  16.4718
  19  0.000545948
  20  0.000698967
  21  3.90045
  22  0.000504336
  23  19.4562
  24  1.70231e-05
  25  1.69274e-06
  26  0.188391
  27  0.145594
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  7.448e-01  3.900e+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.215e-01  1.456e-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:  8.359e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 9.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66139/likelihoodResults_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.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) = 7249.27722351
delta logL = 0.172520727327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7249.26960766
delta logL = 0.180136573091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63359       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5204       1.0000          .0000       10.000    
     3 'Normalizat'    .81323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93092       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=   7249.270     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63333        18.373        .11805E-01    .16639E-02
   2  Index         3.5207        3.4446        .21141        .90937E-04
   3  Normalizat    .81321        .29262E-01    .63959E-01    .22187E-04
   4  Prefactor     .93093        .22968E-01    .45398E-01    .70511E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.63333
  Index      = 3.5207
  Normalizat = 0.813214
  Prefactor  = 0.930928
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.270     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63333        12.847        .10608E-03   -1.5549    
   2  Index         3.5207        6.7181        .99650E-02   -.30036    
   3  Normalizat    .81321        .18719        .28292E-03   -.99580    
   4  Prefactor     .93093        .14471        .20728E-03   -.95069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42516e-10
Minuit parameter uncertainties:
  1  5.70575
  2  5.18846
  3  0.187334
  4  0.14477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66139': 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) = 7249.26960765
delta logL = 0.180136586923

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  6.333e-01  5.706e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  3.521e+00  5.188e+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.309e-01  1.448e-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:  8.132e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 354.509 -2.511

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/66139/cmap_HighResolution_506044801_506304001_4FGL_J2338.0-0230_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2021-09-30 02:33:55.229963', job_id='66139', GAL2='0.93', fit_tolerance='1e-08', EG2='0.81', EG='0.84', time_epoch_completed='1632994435.23', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.80e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1029' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:33:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 66139: <4FGL_J2338.0-0230_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1029 354.509 -2.5106 506044801 506304001 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 :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

