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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1603
RA = 354.509, Dec = -2.5106
tmin = 654825601, tmax = 655084801
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='917552', job_status='RUN', time_executed='2021-10-05 00:18:18.415446', time_epoch_executed='1633418298.42' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917552/ft1_4FGL_J2338.0-0230_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917552/ft2_4FGL_J2338.0-0230_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917552/ft1_4FGL_J2338.0-0230_daily_bin1603.fits outfile=/scratch/kocevski/917552/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1603.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=654825601.0 tmax=655084801.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.98
user 2.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917552/ft1_filtered_4FGL_J2338.0-0230_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917552/ft2_4FGL_J2338.0-0230_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917552/ltcube_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.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/917552/ft2_4FGL_J2338.0-0230_daily_bin1603.fits
.....................!
real 12.20
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917552/ft1_filtered_4FGL_J2338.0-0230_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917552/ft2_4FGL_J2338.0-0230_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917552/ltcube_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.fits outfile=/scratch/kocevski/917552/expmap_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.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/917552/ltcube_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.fits
.....................!
real 190.78
user 185.43
sys 5.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2338.0-0230 @ 354.509 -2.5106

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/917552/ft1_filtered_4FGL_J2338.0-0230_daily_bin1603.fits scfile=/scratch/kocevski/917552/ft2_4FGL_J2338.0-0230_daily_bin1603.fits outfile=/scratch/kocevski/917552/cmap_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.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.51
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917552/ft1_filtered_4FGL_J2338.0-0230_daily_bin1603.fits scfile=/scratch/kocevski/917552/ft2_4FGL_J2338.0-0230_daily_bin1603.fits outfile=/scratch/kocevski/917552/cmap_HighResolution_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.509 yref=-2.5106 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917552/ft1_filtered_4FGL_J2338.0-0230_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917552/ft2_4FGL_J2338.0-0230_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917552/Model_4FGL_J2338.0-0230_daily_bin1603.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/917552/ft1_filtered_4FGL_J2338.0-0230_daily_bin1603.fits......................!
real 21.14
user 19.91
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .37624E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.085       1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11280E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10889E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12872E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10839E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9177       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14916E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    115.64       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .54528       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0294       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=   1095.120     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3315 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.301       -.31752E-06** at limit **
   2  Prefactor     .10000E-03    48.437       -.68595E-07** at limit **
   3  Prefactor     1.4195        1812.3       -.70514E-04   -.58983E-05
   4  Prefactor     .10000E-03    7.3711        .50638E-07** at limit **
   5  norm          .10000E-03    13.748        .30899E-05** at limit **
   6  Prefactor     .10000E-03    20.581       -.22856E-06** at limit **
   7  norm          .10000E-03    4.1334        .27382E-07** at limit **
   8  norm          .10008E-03    34.093        .24166E-05** at limit **
   9  Prefactor     20.886        83.785       -.10597E-05   -.55518E-05
  10  Prefactor     87.651        122.85       -.14456E-05   -.19882E-04
  11  Prefactor     .10000E-03    24.688        .20073E-05** at limit **
  12  norm          .10000E-03    .90427        .31366E-06** at limit **
  13  norm          .10000E-03    15.729        .64986E-06** at limit **
  14  Prefactor     .10000E-03    76.079        .37248E-06** at limit **
  15  Prefactor     .10000E-03    157.97        .17787E-05** at limit **
  16  Prefactor     .10000E-03    298.27       -.44561E-07** at limit **
  17  Prefactor     .10000E-03    22.503        .26821E-06** at limit **
  18  Prefactor     .10000E-03    102.01        .15598E-06** at limit **
  19  norm          .10000E-03    90.345       -.22350E-06** at limit **
  20  Prefactor     .10000E-03    63.509       -.22760E-06** at limit **
  21  Prefactor     7.9029        12.578        .31375E-06   -.20917E-04
  22  Prefactor     .10000E-03    162.62       -.13888E-05** at limit **
  23  Prefactor     115.12        270.71        .95825E-05   -.78033E-05
  24  Prefactor     .10000E-03    40.855        .51096E-06** at limit **
  25  Prefactor     .10000E-03    52.731       -.60015E-05** at limit **
  26  Normalizat    .54401        .41835        .96238E-05   -.38234E-04
  27  Prefactor     1.0302        .31977       -.49153E-05    .39863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100084
  Prefactor  = 20.8855
  Prefactor  = 87.6506
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.90295
  Prefactor  = 0.0001
  Prefactor  = 115.12
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.544015
  Prefactor  = 1.0302
 **********
 **   18 **HESSE 
 **********

 FCN=   1095.120     FROM HESSE     STATUS=OK           474 CALLS     3789 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.309        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4195        1866.6        .42757E-03   -1.5470    
   4  Prefactor     .10000E-03    7.3718        .87770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.140        .12139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.588        .14669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.1340        .65721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10008E-03    119.30        .36507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.886        83.425        .87228E-04   -1.4794    
  10  Prefactor     87.651        122.95        .21482E-03   -1.3833    
  11  Prefactor     .10000E-03    24.692        .16017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .90941        .30677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.930        .12804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    76.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    157.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    298.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.517        .15336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    102.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    90.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    63.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.9029        12.563        .14197E-03   -1.5146    
  22  Prefactor     .10000E-03    162.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     115.12        270.44        .18707E-03   -1.3558    
  24  Prefactor     .10000E-03    40.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    54.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .54401        .45427        .32843E-03   -1.1042    
  27  Prefactor     1.0302        .34828        .18820E-03   -.91730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83241e-10
Minuit parameter uncertainties:
  1  3.63683e-06
  2  2.15493e-05
  3  106.46
  4  2.59527e-06
  5  0.000117957
  6  2.82262e-06
  7  1.51498e-06
  8  0.00634487
  9  83.6881
  10  123.31
  11  2.32689e-05
  12  2.23986e-06
  13  1.3377e-06
  14  5.11175e-05
  15  8.51059e-07
  16  0.000254134
  17  1.37973e-05
  18  6.84869e-06
  19  5.59648e-05
  20  8.22624e-06
  21  12.5675
  22  3.13017e-05
  23  273.42
  24  5.94403e-05
  25  0.000127686
  26  0.457424
  27  0.349049
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  7.903e+00  1.257e+01  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:  1.030e+00  3.490e-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:  5.440e-01  4.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917552/likelihoodResults_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.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) = 1094.91765459
delta logL = 0.20271100232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1094.87759338
delta logL = 0.242772211423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.030       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8373       1.0000          .0000       10.000    
     3 'Normalizat'    .55991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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=   1094.878     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.032        15.502        .50667E-05   -.38314E-03
   2  Index         1.8371        .66826       -.82331E-05   -.24250E-03
   3  Normalizat    .55983        .38502        .17273E-06   -.16485E-05
   4  Prefactor     1.0161        .30031       -.94904E-06    .26523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.032
  Index      = 1.83715
  Normalizat = 0.55983
  Prefactor  = 1.01614
 **********
 **   18 **HESSE 
 **********

 FCN=   1094.878     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.032        15.983        .11549E-03   -1.5014    
   2  Index         1.8371        .80926        .62454E-02   -.68487    
   3  Normalizat    .55983        .43497        .32381E-03   -1.0972    
   4  Prefactor     1.0161        .34037        .18902E-03   -.92193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09743e-09
Minuit parameter uncertainties:
  1  15.9882
  2  0.815273
  3  0.437654
  4  0.341094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917552': 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) = 1094.87759332
delta logL = 0.242772275559

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.016e+00  3.411e-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:  5.598e-01  4.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 1.84 +/- 0.82
Photon Flux (Free Index): 5.74e-08 +/- 8.85e-08
Energy Flux (Free Index): 6.16e-05 +/- 1.27e-04

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/917552/cmap_HighResolution_654825601_655084801_4FGL_J2338.0-0230_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-02', comment='SUCCESS', energy_flux2='6.16e-05', dlogl='2.43e-01', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-10-05 00:24:33.304997', photon_index_error2='0.82', photon_index2='1.84', ts='0.64', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='4.58e-07', energy_flux_error2='1.27e-04', EG='0.54', time_epoch_completed='1633418673.31', return_code='0', job_id='917552', GAL2='1.02', EG2='0.56', return_code2='0', photon_flux_error2='8.85e-08', ts2='1.13', photon_index='2.49' WHERE bin_id='1603' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:24:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 917552: <4FGL_J2338.0-0230_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:43 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:45 2021
Terminated at Tue Oct  5 00:24:33 2021
Results reported at Tue Oct  5 00:24:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1603 354.509 -2.5106 654825601 655084801 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 :                                   378.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            530 sec.

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

