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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1655
RA = 354.509, Dec = -2.5106
tmin = 668304001, tmax = 668563201
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='198710', job_status='RUN', time_executed='2022-03-10 00:38:39.330922', time_epoch_executed='1646901519.33' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198710/ft1_4FGL_J2338.0-0230_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198710/ft1_4FGL_J2338.0-0230_daily_bin1655.fits outfile=/scratch/kocevski/198710/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1655.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=668304001.0 tmax=668563201.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.67
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.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/198710/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/198710/ft1_filtered_4FGL_J2338.0-0230_daily_bin1655.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.52
user 0.32
sys 0.17
Number of photons that survived the gtmktime cut: 511

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198710/ft1_filtered_4FGL_J2338.0-0230_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/198710/ltcube_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.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/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.fits
.....................!
real 12.07
user 11.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198710/ft1_filtered_4FGL_J2338.0-0230_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/198710/ltcube_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.fits outfile=/scratch/kocevski/198710/expmap_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.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/198710/ltcube_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.fits
.....................!
real 193.48
user 187.55
sys 5.49

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/198710/ft1_filtered_4FGL_J2338.0-0230_daily_bin1655.fits scfile=/scratch/kocevski/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.fits outfile=/scratch/kocevski/198710/cmap_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.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/198710/ft1_filtered_4FGL_J2338.0-0230_daily_bin1655.fits scfile=/scratch/kocevski/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.fits outfile=/scratch/kocevski/198710/cmap_HighResolution_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198710/ft1_filtered_4FGL_J2338.0-0230_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/198710/ft2_4FGL_J2338.0-0230_daily_bin1655.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198710/Model_4FGL_J2338.0-0230_daily_bin1655.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/198710/ft1_filtered_4FGL_J2338.0-0230_daily_bin1655.fits.....................!
real 56.19
user 54.73
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9651       1.0000         .10000E-03   10000.    
     2 'Prefactor '    98.452       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.438       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8963       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3635       1.0000         .10000E-03   10000.    
    10 'Prefactor '    181.13       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11702E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3309       1.0000         .10000E-03   10000.    
    13 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13516E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.465       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6994       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    161.57       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7793       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .48525E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2468       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99098       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=   5740.642     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3583 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9652        12.440        .32174E-06    .20291E-06
   2  Prefactor     98.483        77.072        .32548E-06   -.26012E-04
   3  Prefactor     16.471        18.429       -.15597E-05   -.47465E-03
   4  Prefactor     5.8978        5.5549        .26204E-08   -.12432E-03
   5  norm          .10000E-03    2.0311        .14376E-05** at limit **
   6  Prefactor     .10000E-03    6.7145       -.62828E-07** at limit **
   7  norm          .10000E-03    3.4020       -.23102E-06** at limit **
   8  norm          14.062        13.823        .50005E-07    .39849E-05
   9  Prefactor     2.3662        16.595        .13460E-05    .22925E-04
  10  Prefactor     181.43        92.444        .12919E-07   -.44283E-04
  11  Prefactor     .10000E-03    9.4036        .47627E-05** at limit **
  12  norm          1.3308        1.1262       -.98956E-07   -.30849E-03
  13  norm          .10000E-03    6.3118        .18688E-05** at limit **
  14  Prefactor     .10000E-03    2.6386       -.66942E-07** at limit **
  15  Prefactor     .10001E-03    587.12        .15050E-04** at limit **
  16  Prefactor     .10002E-03    2179.6       -.83824E-05** at limit **
  17  Prefactor     11.480        16.732       -.15603E-05   -.15433E-03
  18  Prefactor     6.6946        18.246       -.64395E-07    .66927E-05
  19  norm          5.1243        28.670        .76421E-06   -.25106E-04
  20  Prefactor     161.40        95.226       -.31191E-06   -.83279E-04
  21  Prefactor     2.7794        3.7316       -.13609E-06   -.13711E-03
  22  Prefactor     .10000E-03    40.328       -.43493E-06** at limit **
  23  Prefactor     .10000E-03    7.5333       -.16434E-06** at limit **
  24  Prefactor     .10013E-03    13.116        .19651E-05** at limit **
  25  Prefactor     .10000E-03    15.782       -.13993E-05** at limit **
  26  Normalizat    1.2466        .25274       -.42564E-05   -.19021E-03
  27  Prefactor     .99101        .18176        .41544E-05   -.40225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96521
  Prefactor  = 98.4831
  Prefactor  = 16.4705
  Prefactor  = 5.89775
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.0619
  Prefactor  = 2.36615
  Prefactor  = 181.428
  Prefactor  = 0.000100001
  norm       = 1.33077
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100023
  Prefactor  = 11.48
  Prefactor  = 6.69456
  norm       = 5.12429
  Prefactor  = 161.402
  Prefactor  = 2.77942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100131
  Prefactor  = 0.0001
  Normalizat = 1.24657
  Prefactor  = 0.99101
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.642     FROM HESSE     STATUS=OK           484 CALLS     4067 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9652        12.407        .16441E-03   -1.5219    
   2  Prefactor     98.483        76.980        .40514E-04   -1.3720    
   3  Prefactor     16.471        18.138        .98785E-04   -1.4896    
   4  Prefactor     5.8978        5.5460        .16538E-03   -1.5222    
   5  norm          .10000E-03    3.4397        .19437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5353        .27230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.062        13.822        .10679E-03   -1.4958    
   9  Prefactor     2.3662        16.573        .26655E-03   -1.5400    
  10  Prefactor     181.43        92.735        .14997E-03   -1.3006    
  11  Prefactor     .10000E-03    9.5791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3308        1.1256        .38064E-04   -1.5477    
  13  norm          .10000E-03    6.3873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6398        .12020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    606.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    2200.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.480        16.581        .11832E-03   -1.5030    
  18  Prefactor     6.6946        18.245        .15503E-03   -1.5190    
  19  norm          5.1243        27.967        .17697E-03   -1.5255    
  20  Prefactor     161.40        95.418        .15863E-03   -1.3160    
  21  Prefactor     2.7794        3.7009        .15698E-03   -1.5375    
  22  Prefactor     .10000E-03    40.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.5435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10013E-03    62.846        .51191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2466        .28271        .29589E-03   -.85176    
  27  Prefactor     .99101        .19890        .24122E-03   -.93030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02937e-09
Minuit parameter uncertainties:
  1  12.412
  2  77.0581
  3  18.1437
  4  5.54645
  5  0.000104864
  6  1.57755e-06
  7  8.25059e-06
  8  13.8255
  9  12.5289
  10  92.8102
  11  0.000154825
  12  1.1256
  13  4.40944e-05
  14  1.34931e-06
  15  0.00603411
  16  0.0146537
  17  16.588
  18  18.2598
  19  23.9597
  20  95.5093
  21  3.7012
  22  7.13885e-05
  23  7.49214e-06
  24  0.00574264
  25  2.15122e-05
  26  0.283056
  27  0.199048
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  2.779e+00  3.701e+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.910e-01  1.990e-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.247e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 8.15e-06 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/198710/likelihoodResults_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.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) = 5739.6290832
delta logL = 1.0128198236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5739.61223911
delta logL = 1.02966391479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3221       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4648       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97884       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=   5739.612     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3250        3.3421        .55522E-02   -.57656E-04
   2  Index         1.4645        .40246        .22441       -.61347E-04
   3  Normalizat    1.2676        .22582        .66396E-01    .83231E-05
   4  Prefactor     .97889        .16709        .46002E-01    .80303E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32499
  Index      = 1.46447
  Normalizat = 1.26759
  Prefactor  = 0.978892
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.612     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3250        3.9937        .13543E-03   -1.5343    
   2  Index         1.4645        .56558        .84350E-02   -.78540    
   3  Normalizat    1.2676        .26409        .29373E-03   -.84539    
   4  Prefactor     .97889        .19554        .24231E-03   -.93436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55526e-12
Minuit parameter uncertainties:
  1  3.99398
  2  0.568021
  3  0.26437
  4  0.19568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198710': 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) = 5739.61223789
delta logL = 1.02966513742

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.325e+00  3.994e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  1.464e+00  5.680e-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:  9.789e-01  1.957e-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.268e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 1.46 +/- 0.57
Photon Flux (Free Index): 1.30e-08 +/- 1.63e-08
Energy Flux (Free Index): 4.64e-05 +/- 7.14e-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/198710/cmap_HighResolution_668304001_668563201_4FGL_J2338.0-0230_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='4.64e-05', photon_flux_error='3.70e-08', dlogl='1.03e+00', energy_flux='8.15e-06', photon_flux2='1.30e-08', job_status='DONE', time_completed='2022-03-10 00:50:26.299884', photon_index_error2='0.57', photon_index2='1.46', ts='1.16', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='7.14e-05', EG='1.25', time_epoch_completed='1646902226.3', return_code='0', job_id='198710', GAL2='0.98', EG2='1.27', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='1.63e-08', ts2='3.23', photon_index='2.49' WHERE bin_id='1655' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:50:26 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 198710: <4FGL_J2338.0-0230_daily_bin1655> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1655> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Mar 10 00:35:57 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:36:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:36:11 2022
Terminated at Thu Mar 10 00:50:27 2022
Results reported at Thu Mar 10 00:50:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1655 354.509 -2.5106 668304001 668563201 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 :                                   709.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            870 sec.

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

