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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1150
RA = 354.509, Dec = -2.5106
tmin = 537408001, tmax = 537667201
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='66366', job_status='RUN', time_executed='2021-09-30 02:23:07.551624', time_epoch_executed='1632993787.55' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66366/ft1_4FGL_J2338.0-0230_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66366/ft2_4FGL_J2338.0-0230_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66366/ft1_4FGL_J2338.0-0230_daily_bin1150.fits outfile=/scratch/kocevski/66366/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1150.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=537408001.0 tmax=537667201.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.61
user 4.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66366/ft1_filtered_4FGL_J2338.0-0230_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/66366/ft2_4FGL_J2338.0-0230_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/66366/ltcube_537408001_537667201_4FGL_J2338.0-0230_daily_bin1150.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/66366/ft2_4FGL_J2338.0-0230_daily_bin1150.fits
.....................!
real 11.76
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66366/ft1_filtered_4FGL_J2338.0-0230_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/66366/ft2_4FGL_J2338.0-0230_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/66366/ltcube_537408001_537667201_4FGL_J2338.0-0230_daily_bin1150.fits outfile=/scratch/kocevski/66366/expmap_537408001_537667201_4FGL_J2338.0-0230_daily_bin1150.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/66366/ltcube_537408001_537667201_4FGL_J2338.0-0230_daily_bin1150.fits
.....................!
real 191.56
user 186.76
sys 4.41

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/66366/ft1_filtered_4FGL_J2338.0-0230_daily_bin1150.fits scfile=/scratch/kocevski/66366/ft2_4FGL_J2338.0-0230_daily_bin1150.fits outfile=/scratch/kocevski/66366/cmap_537408001_537667201_4FGL_J2338.0-0230_daily_bin1150.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66366/ft1_filtered_4FGL_J2338.0-0230_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/66366/ft2_4FGL_J2338.0-0230_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66366/Model_4FGL_J2338.0-0230_daily_bin1150.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/66366/ft1_filtered_4FGL_J2338.0-0230_daily_bin1150.fits.....................!
real 50.94
user 49.21
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .72784       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3558       1.0000         .10000E-03   10000.    
     7 'norm      '    9.2136       1.0000         .10000E-03   10000.    
     8 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.769       1.0000         .10000E-03   10000.    
    12 'norm      '    .64342       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5904       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14935E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.774       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60460E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.886       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13935E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64103       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=   4805.035     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3352 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.251       -.14476E-05** at limit **
   2  Prefactor     .10000E-03    48.705        .93518E-06** at limit **
   3  Prefactor     .10000E-03    7.7462        .17082E-06** at limit **
   4  Prefactor     .10000E-03    5.1126        .26150E-07** at limit **
   5  norm          .72784        2.9371       -.51092E-08    .40624E-03
   6  Prefactor     2.3301        104.11       -.36374E-05   -.47388E-05
   7  norm          9.2209        8.1632        .52100E-06    .59493E-03
   8  norm          .10000E-03    5.4066       -.45379E-07** at limit **
   9  Prefactor     33.157        29.113       -.31074E-06    .96193E-05
  10  Prefactor     .10003E-03    60.850        .66535E-05** at limit **
  11  Prefactor     12.772        12.173       -.95772E-07   -.53582E-04
  12  norm          .64345        .94127        .78248E-07    .25547E-02
  13  norm          4.5891        8.1020       -.21230E-07    .10860E-03
  14  Prefactor     .10000E-03    4.0282       -.49543E-07** at limit **
  15  Prefactor     .10003E-03    215.23        .70854E-05** at limit **
  16  Prefactor     .10005E-03    89.398       -.89208E-05** at limit **
  17  Prefactor     16.773        14.509       -.22337E-06    .21446E-03
  18  Prefactor     .10001E-03    17.937       -.30593E-05** at limit **
  19  norm          .10000E-03    15.831        .50002E-08** at limit **
  20  Prefactor     .10000E-03    31.783        .44645E-06** at limit **
  21  Prefactor     .10000E-03    6.6196       -.36545E-05** at limit **
  22  Prefactor     .10146        41.315        .21167E-05   -.25951E-04
  23  Prefactor     30.891        22.476        .53000E-07    .97934E-04
  24  Prefactor     .10000E-03    7.6218        .42071E-08** at limit **
  25  Prefactor     .10010E-03    23.128        .71831E-05** at limit **
  26  Normalizat    1.2817        .22613        .22473E-06    .32842E-03
  27  Prefactor     .64109        .15207        .72210E-06    .37057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.727836
  Prefactor  = 2.33008
  norm       = 9.22091
  norm       = 0.0001
  Prefactor  = 33.1567
  Prefactor  = 0.000100026
  Prefactor  = 12.7717
  norm       = 0.643451
  norm       = 4.58913
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.000100049
  Prefactor  = 16.7729
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.101463
  Prefactor  = 30.8907
  Prefactor  = 0.0001
  Prefactor  = 0.000100102
  Normalizat = 1.28172
  Prefactor  = 0.641093
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.035     FROM HESSE     STATUS=OK           494 CALLS     3846 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1245        .15268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72784        3.0640        .22006E-03   -1.5537    
   6  Prefactor     2.3301        89.931        .26704E-03   -1.5403    
   7  norm          9.2209        7.5831        .11608E-03   -1.5101    
   8  norm          .10000E-03    5.4207        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.157        29.106        .69582E-04   -1.4556    
  10  Prefactor     .10003E-03    62.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.772        12.172        .11210E-03   -1.4993    
  12  norm          .64345        .96973        .23686E-03   -1.5548    
  13  norm          4.5891        8.0505        .18787E-03   -1.5279    
  14  Prefactor     .10000E-03    4.0357        .13587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    218.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10005E-03    93.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.773        13.765        .97792E-04   -1.4889    
  18  Prefactor     .10001E-03    92.161        .52875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.475        .22544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10146        43.367        .11693       -1.5644    
  23  Prefactor     30.891        22.469        .72096E-04   -1.4596    
  24  Prefactor     .10000E-03    7.6499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10010E-03    43.542        .34067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2817        .26342        .24431E-03   -.84114    
  27  Prefactor     .64109        .17764        .23894E-03   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91156e-09
Minuit parameter uncertainties:
  1  0.00027326
  2  0.000323238
  3  2.28171e-05
  4  1.50984e-06
  5  2.98676
  6  28.9978
  7  7.58393
  8  7.33043e-06
  9  29.1188
  10  0.00257064
  11  12.174
  12  0.969757
  13  8.0524
  14  5.36557e-06
  15  0.00498503
  16  0.00428509
  17  13.7678
  18  0.00154885
  19  1.71618e-05
  20  0.000118027
  21  0.000261264
  22  4.19629
  23  22.4754
  24  2.12674e-06
  25  0.00421419
  26  0.263698
  27  0.177796
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  6.411e-01  1.778e-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.282e+00  2.637e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66366/likelihoodResults_537408001_537667201_4FGL_J2338.0-0230_daily_bin1150.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) = 4805.03584118
delta logL = -0.000353541117875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4805.03548775
delta logL = -1.0463372746e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5046       1.0000          .0000       10.000    
     3 'Normalizat'    1.2818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64109       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=   4805.035     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16723        .62724E-01** at limit **
   2  Index         2.5173        5.4583        .50000       -.75877E-05
   3  Normalizat    1.2817        .13326E-02    .55249E-01    .16145E-03
   4  Prefactor     .64109        .95878E-03    .41612E-01    .14083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.51732
  Normalizat = 1.28172
  Prefactor  = 0.641092
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.035     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    389.19        .22312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5173        8.5499        .50000       -.51960    
   3  Normalizat    1.2817        .29754E-01    .24431E-03   -.84114    
   4  Prefactor     .64109        .21409E-01    .23894E-03   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20926e-06
Minuit parameter uncertainties:
  1  0.00206533
  2  807.304
  3  0.0297549
  4  0.0214091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66366': 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) = 4805.03548759
delta logL = 5.29289536644e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  6.411e-01  2.141e-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.282e+00  2.975e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/66366/cmap_HighResolution_537408001_537667201_4FGL_J2338.0-0230_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-30 02:36:18.934636', job_id='66366', GAL2='0.64', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632994578.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='5.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1150' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 66366: <4FGL_J2338.0-0230_daily_bin1150> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1150> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:47 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:20:48 2021
Terminated at Thu Sep 30 02:36:19 2021
Results reported at Thu Sep 30 02:36:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1150 354.509 -2.5106 537408001 537667201 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

