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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1106
RA = 354.509, Dec = -2.5106
tmin = 526003201, tmax = 526262401
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='66301', job_status='RUN', time_executed='2021-09-30 02:22:46.186835', time_epoch_executed='1632993766.19' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66301

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66301/ft1_4FGL_J2338.0-0230_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66301/ft1_4FGL_J2338.0-0230_daily_bin1106.fits outfile=/scratch/kocevski/66301/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1106.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=526003201.0 tmax=526262401.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.72
user 3.49
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.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/66301/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.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.58
user 0.33
sys 0.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/66301/ltcube_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.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/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits
.....................!
real 12.12
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/66301/ltcube_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.fits outfile=/scratch/kocevski/66301/expmap_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.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/66301/ltcube_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.fits
.....................!
real 192.88
user 187.26
sys 5.27

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/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits scfile=/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits outfile=/scratch/kocevski/66301/cmap_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits scfile=/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits outfile=/scratch/kocevski/66301/cmap_HighResolution_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66301/Model_4FGL_J2338.0-0230_daily_bin1106.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/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits.....................!
real 57.72
user 56.45
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits', '/scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits', expMap='/scratch/kocevski/66301/expmap_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.fits', expCube='/scratch/kocevski/66301/ltcube_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66301/Model_4FGL_J2338.0-0230_daily_bin1106.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/66301/ft1_filtered_4FGL_J2338.0-0230_daily_bin1106.fits
Spacecraft file(s): /scratch/kocevski/66301/ft2_4FGL_J2338.0-0230_daily_bin1106.fits
Exposure map: /scratch/kocevski/66301/expmap_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.fits
Exposure cube: /scratch/kocevski/66301/ltcube_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66301/Model_4FGL_J2338.0-0230_daily_bin1106.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5477.35730214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1849       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7480       1.0000         .10000E-03   10000.    
     7 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.757       1.0000         .10000E-03   10000.    
    10 'Prefactor '    153.54       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30508       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6305       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.346       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .94505       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73589       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98335       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=   5477.336     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3337 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4970        .88369E-07** at limit **
   2  Prefactor     .10000E-03    23.814        .18246E-06** at limit **
   3  Prefactor     8.1848        16.700        .62426E-06   -.22927E-04
   4  Prefactor     .10000E-03    2.4081       -.81948E-07** at limit **
   5  norm          .10000E-03    .99118       -.16310E-07** at limit **
   6  Prefactor     9.7476        14.812        .24120E-05   -.71579E-04
   7  norm          .10000E-03    2.0524       -.15944E-06** at limit **
   8  norm          18.644        12.349        .15881E-06   -.34195E-04
   9  Prefactor     11.754        15.918        .24105E-06   -.87175E-05
  10  Prefactor     153.53        66.315        .35177E-06   -.17604E-03
  11  Prefactor     .10000E-03    7.7557       -.41836E-06** at limit **
  12  norm          .10000E-03    .44371       -.79007E-08** at limit **
  13  norm          .29544        4.3017        .29262E-06   -.14832E-03
  14  Prefactor     .10000E-03    3.2788        .67331E-08** at limit **
  15  Prefactor     .10000E-03    16.770       -.42420E-06** at limit **
  16  Prefactor     .10000E-03    87.089        .68098E-06** at limit **
  17  Prefactor     .10000E-03    14.409        .34485E-06** at limit **
  18  Prefactor     .10000E-03    8.2095       -.17263E-06** at limit **
  19  norm          .10000E-03    16.933       -.50059E-06** at limit **
  20  Prefactor     .10000E-03    42.668        .65636E-07** at limit **
  21  Prefactor     3.6311        3.6642        .47209E-07   -.31192E-04
  22  Prefactor     27.331        41.584        .13336E-05   -.15592E-03
  23  Prefactor     .10000E-03    24.421        .10129E-06** at limit **
  24  Prefactor     .10000E-03    44.926        .86515E-07** at limit **
  25  Prefactor     .94736        11.115        .49172E-05    .87971E-04
  26  Normalizat    .73559        .19821       -.13795E-05   -.97914E-04
  27  Prefactor     .98359        .14049       -.90669E-07   -.15660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.1848
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.74761
  norm       = 0.0001
  norm       = 18.6436
  Prefactor  = 11.7543
  Prefactor  = 153.526
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.295442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.6311
  Prefactor  = 27.3305
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.947357
  Normalizat = 0.735591
  Prefactor  = 0.98359
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.336     FROM HESSE     STATUS=OK           482 CALLS     3819 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5270        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1848        16.710        .14014E-03   -1.5136    
   4  Prefactor     .10000E-03    2.4296        .11213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .99588        .71758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7476        14.816        .64174E-03   -1.5083    
   7  norm          .10000E-03    2.1275        .20695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.644        12.352        .92757E-04   -1.4844    
   9  Prefactor     11.754        15.946        .11683E-03   -1.5022    
  10  Prefactor     153.53        65.554        .32532E-04   -1.3223    
  11  Prefactor     .10000E-03    7.7684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .71151        .94834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .29544        10.991        .28252E-02   -1.5599    
  14  Prefactor     .10000E-03    3.2838        .13088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    86.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6311        3.6416        .13514E-03   -1.5327    
  22  Prefactor     27.331        41.294        .76610E-04   -1.4662    
  23  Prefactor     .10000E-03    24.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .94736        11.112        .45203E-02   -1.5513    
  26  Normalizat    .73559        .23341        .29081E-03   -1.0250    
  27  Prefactor     .98359        .16728        .19384E-03   -.93279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24883e-08
Minuit parameter uncertainties:
  1  2.04027e-05
  2  0.000118747
  3  16.72
  4  8.85519e-06
  5  4.03977e-07
  6  14.8221
  7  1.44917e-05
  8  12.3532
  9  15.9515
  10  65.5849
  11  4.10153e-05
  12  4.69358e-06
  13  3.60408
  14  1.59084e-06
  15  0.000154513
  16  0.000620327
  17  0.000177641
  18  4.72909e-05
  19  0.000186616
  20  7.32428e-05
  21  3.64181
  22  41.3371
  23  0.000198435
  24  0.00063204
  25  6.49012
  26  0.233726
  27  0.167364
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.631e+00  3.642e+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.836e-01  1.674e-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:  7.356e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.07e-05

TS (Fixed Index): 1.62
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66301/likelihoodResults_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.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) = 5477.330562
delta logL = 0.00589664238669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5477.32894979
delta logL = 0.00750884615718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4206       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5793       1.0000          .0000       10.000    
     3 'Normalizat'    .73360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98435       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5477.329     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4209        4.0283        .12951E-03   -.15391E-02
   2  Index         2.5786        .74879        .86926E-02   -.23388E-03
   3  Normalizat    .73336        .21404        .14561E-02    .16537E-03
   4  Prefactor     .98459        .16276        .19375E-03    .28824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42091
  Index      = 2.57864
  Normalizat = 0.733362
  Prefactor  = 0.984586
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.329     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4209        3.8892        .51805E-05   -1.5338    
   2  Index         2.5786        .72296        .34770E-03   -.50553    
   3  Normalizat    .73336        .21445        .58242E-04   -1.0259    
   4  Prefactor     .98459        .16304        .38750E-04   -.93245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54202e-09
Minuit parameter uncertainties:
  1  3.88945
  2  0.726289
  3  0.214697
  4  0.163126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66301': 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) = 5477.32894826
delta logL = 0.00751037677128

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.421e+00  3.889e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.579e+00  7.263e-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.846e-01  1.631e-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:  7.334e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.58 +/- 0.73
Photon Flux (Free Index): 3.86e-08 +/- 4.16e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.06e-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/66301/cmap_HighResolution_526003201_526262401_4FGL_J2338.0-0230_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='1.03e-05', photon_flux_error='3.64e-08', dlogl='7.51e-03', energy_flux='1.07e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-09-30 02:36:02.282265', photon_index_error2='0.73', photon_index2='2.58', ts='1.62', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.06e-05', EG='0.74', time_epoch_completed='1632994562.28', return_code='0', job_id='66301', GAL2='0.98', EG2='0.73', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.16e-08', ts2='1.63', photon_index='2.49' WHERE bin_id='1106' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:36:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 66301: <4FGL_J2338.0-0230_daily_bin1106> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1106> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:20:42 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:20:44 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:44 2021
Terminated at Thu Sep 30 02:36:03 2021
Results reported at Thu Sep 30 02:36:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1106 354.509 -2.5106 526003201 526262401 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 :                                   668.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

