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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1260
RA = 354.509, Dec = -2.5106
tmin = 565920001, tmax = 566179201
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='66570', job_status='RUN', time_executed='2021-09-30 02:23:39.965053', time_epoch_executed='1632993819.97' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66570/ft1_4FGL_J2338.0-0230_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66570/ft2_4FGL_J2338.0-0230_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66570/ft1_4FGL_J2338.0-0230_daily_bin1260.fits outfile=/scratch/kocevski/66570/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1260.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=565920001.0 tmax=566179201.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 3.66
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66570/ft1_filtered_4FGL_J2338.0-0230_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/66570/ft2_4FGL_J2338.0-0230_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/66570/ltcube_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.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/66570/ft2_4FGL_J2338.0-0230_daily_bin1260.fits
.....................!
real 12.48
user 12.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66570/ft1_filtered_4FGL_J2338.0-0230_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/66570/ft2_4FGL_J2338.0-0230_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/66570/ltcube_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.fits outfile=/scratch/kocevski/66570/expmap_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.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/66570/ltcube_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.fits
.....................!
real 190.39
user 185.23
sys 4.79

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/66570/ft1_filtered_4FGL_J2338.0-0230_daily_bin1260.fits scfile=/scratch/kocevski/66570/ft2_4FGL_J2338.0-0230_daily_bin1260.fits outfile=/scratch/kocevski/66570/cmap_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66570/ft1_filtered_4FGL_J2338.0-0230_daily_bin1260.fits scfile=/scratch/kocevski/66570/ft2_4FGL_J2338.0-0230_daily_bin1260.fits outfile=/scratch/kocevski/66570/cmap_HighResolution_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.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/66570/ft1_filtered_4FGL_J2338.0-0230_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/66570/ft2_4FGL_J2338.0-0230_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66570/Model_4FGL_J2338.0-0230_daily_bin1260.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/66570/ft1_filtered_4FGL_J2338.0-0230_daily_bin1260.fits.....................!
real 37.88
user 36.64
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1079       1.0000         .10000E-03   10000.    
     5 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   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      '    .47854       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8880       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6388       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4037       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80586       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0584       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=   3503.279     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3294 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10355E-03    12.571        .24383E-06** at limit **
   2  Prefactor     .10000E-03    55.433       -.18019E-04** at limit **
   3  Prefactor     19.202        24.001        .18996E-05   -.64872E-05
   4  Prefactor     8.1094        6.5287       -.14559E-05   -.10815E-04
   5  norm          .10000E-03    2.3625       -.11764E-06** at limit **
   6  Prefactor     .10000E-03    4.7258        .12120E-06** at limit **
   7  norm          .10000E-03    1.8155        .13203E-06** at limit **
   8  norm          .10000E-03    19.334        .88536E-05** at limit **
   9  Prefactor     .10000E-03    21.119       -.17987E-05** at limit **
  10  Prefactor     .10000E-03    15.898       -.11253E-04** at limit **
  11  Prefactor     .10000E-03    4.0502        .27959E-07** at limit **
  12  norm          .47866        .98811       -.18370E-06   -.11060E-02
  13  norm          .10000E-03    5.7255       -.66021E-07** at limit **
  14  Prefactor     .10000E-03    9.2715        .91451E-07** at limit **
  15  Prefactor     .10000E-03    36.360        .18842E-04** at limit **
  16  Prefactor     .10000E-03    94.566        .35865E-04** at limit **
  17  Prefactor     .10000E-03    8.6671        .42770E-07** at limit **
  18  Prefactor     .10000E-03    58.298       -.36431E-04** at limit **
  19  norm          .10000E-03    14.601        .76057E-05** at limit **
  20  Prefactor     .10000E-03    31.808       -.23055E-04** at limit **
  21  Prefactor     3.8885        4.6485       -.11845E-06   -.32027E-03
  22  Prefactor     .10000E-03    45.510        .34508E-04** at limit **
  23  Prefactor     .10000E-03    11.364       -.71234E-06** at limit **
  24  Prefactor     9.6382        16.808       -.24529E-06   -.31720E-04
  25  Prefactor     7.4168        7.6360       -.67410E-06   -.88362E-04
  26  Normalizat    .80581        .23687       -.19241E-06   -.18965E-04
  27  Prefactor     1.0586        .17916        .34403E-06    .21769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103551
  Prefactor  = 0.0001
  Prefactor  = 19.202
  Prefactor  = 8.10941
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.478662
  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  = 3.88852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.63815
  Prefactor  = 7.41676
  Normalizat = 0.80581
  Prefactor  = 1.05862
 **********
 **   18 **HESSE 
 **********

 FCN=   3503.279     FROM HESSE     STATUS=OK           486 CALLS     3780 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10355E-03    17.469        .59740E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.202        23.986        .91400E-04   -1.4831    
   4  Prefactor     8.1094        6.5231        .13091E-03   -1.5138    
   5  norm          .10000E-03    2.3937        .88481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7277        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8262        .77749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0606        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .47866        .88278        .80231E-03   -1.5570    
  13  norm          .10000E-03    5.9654        .27650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3154        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    94.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7000        .17006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8885        4.6300        .13323E-03   -1.5314    
  22  Prefactor     .10000E-03    45.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.6382        16.810        .12908E-03   -1.5087    
  25  Prefactor     7.4168        7.6351        .14740E-03   -1.5163    
  26  Normalizat    .80581        .27391        .28148E-03   -.99854    
  27  Prefactor     1.0586        .20849        .19465E-03   -.90800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78558e-10
Minuit parameter uncertainties:
  1  0.0157567
  2  7.98964e-05
  3  23.9983
  4  6.52365
  5  9.72946e-06
  6  5.21329e-06
  7  1.3516e-05
  8  4.36264e-05
  9  1.52138e-06
  10  2.48085e-06
  11  2.01839e-06
  12  0.882807
  13  5.62929e-06
  14  8.51904e-06
  15  1.17233e-05
  16  3.34539e-06
  17  2.64799e-06
  18  0.000236607
  19  2.59058e-06
  20  8.4316e-06
  21  4.63045
  22  7.9731e-05
  23  1.74742e-06
  24  16.8178
  25  7.63608
  26  0.274381
  27  0.208653
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.889e+00  4.630e+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:  1.059e+00  2.087e-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.058e-01  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.89e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/66570/likelihoodResults_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.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) = 3503.21859614
delta logL = 0.0601933117619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3503.21654493
delta logL = 0.0622445209979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6683       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1856       1.0000          .0000       10.000    
     3 'Normalizat'    .81510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0537       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=   3503.217     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      262 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6698        242.32        .46565E-02    .12516E-03
   2  Index         2.1855        5.1668        .24820        .84185E-05
   3  Normalizat    .81512        .11698        .63296E-01    .58755E-05
   4  Prefactor     1.0537        .78199E-01    .39700E-01   -.77007E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66983
  Index      = 2.18551
  Normalizat = 0.815121
  Prefactor  = 1.0537
 **********
 **   18 **HESSE 
 **********

 FCN=   3503.217     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6698        5.6140        .14511E-03   -1.5276    
   2  Index         2.1855        .82091        .86190E-02   -.59789    
   3  Normalizat    .81512        .26497        .27998E-03   -.99510    
   4  Prefactor     1.0537        .20770        .19502E-03   -.90960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01615e-11
Minuit parameter uncertainties:
  1  5.61464
  2  0.826404
  3  0.26539
  4  0.207863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66570': 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) = 3503.21654474
delta logL = 0.0622447105702

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.670e+00  5.615e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.186e+00  8.264e-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.054e+00  2.079e-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.151e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.19 +/- 0.83
Photon Flux (Free Index): 3.18e-08 +/- 4.35e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.13e-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/66570/cmap_HighResolution_565920001_566179201_4FGL_J2338.0-0230_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='3.89e-08', energy_flux2='1.47e-05', photon_flux_error='4.63e-08', dlogl='6.22e-02', energy_flux='1.14e-05', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-09-30 02:32:47.024076', photon_index_error2='0.83', photon_index2='2.19', ts='1.10', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='2.13e-05', EG='0.81', time_epoch_completed='1632994367.02', return_code='0', job_id='66570', GAL2='1.05', EG2='0.82', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.35e-08', ts2='1.22', photon_index='2.49' WHERE bin_id='1260' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:32:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 66570: <4FGL_J2338.0-0230_daily_bin1260> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1260> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:21:00 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:21:03 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:21:03 2021
Terminated at Thu Sep 30 02:32:47 2021
Results reported at Thu Sep 30 02:32:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1260 354.509 -2.5106 565920001 566179201 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 :                                   543.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            707 sec.

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

