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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1093
RA = 354.509, Dec = -2.5106
tmin = 522633601, tmax = 522892801
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='66270', job_status='RUN', time_executed='2021-09-30 02:23:32.885908', time_epoch_executed='1632993812.89' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66270/ft1_4FGL_J2338.0-0230_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66270/ft2_4FGL_J2338.0-0230_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66270/ft1_4FGL_J2338.0-0230_daily_bin1093.fits outfile=/scratch/kocevski/66270/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1093.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=522633601.0 tmax=522892801.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.70
user 2.50
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66270/ft1_filtered_4FGL_J2338.0-0230_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/66270/ft2_4FGL_J2338.0-0230_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/66270/ltcube_522633601_522892801_4FGL_J2338.0-0230_daily_bin1093.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/66270/ft2_4FGL_J2338.0-0230_daily_bin1093.fits
.....................!
real 8.70
user 8.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66270/ft1_filtered_4FGL_J2338.0-0230_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/66270/ft2_4FGL_J2338.0-0230_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/66270/ltcube_522633601_522892801_4FGL_J2338.0-0230_daily_bin1093.fits outfile=/scratch/kocevski/66270/expmap_522633601_522892801_4FGL_J2338.0-0230_daily_bin1093.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/66270/ltcube_522633601_522892801_4FGL_J2338.0-0230_daily_bin1093.fits
.....................!
real 140.67
user 136.83
sys 3.62

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/66270/ft1_filtered_4FGL_J2338.0-0230_daily_bin1093.fits scfile=/scratch/kocevski/66270/ft2_4FGL_J2338.0-0230_daily_bin1093.fits outfile=/scratch/kocevski/66270/cmap_522633601_522892801_4FGL_J2338.0-0230_daily_bin1093.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.43
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66270/ft1_filtered_4FGL_J2338.0-0230_daily_bin1093.fits scfile=/scratch/kocevski/66270/ft2_4FGL_J2338.0-0230_daily_bin1093.fits outfile=/scratch/kocevski/66270/cmap_HighResolution_522633601_522892801_4FGL_J2338.0-0230_daily_bin1093.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.44
user 0.31
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66270/ft1_filtered_4FGL_J2338.0-0230_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/66270/ft2_4FGL_J2338.0-0230_daily_bin1093.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66270/Model_4FGL_J2338.0-0230_daily_bin1093.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/66270/ft1_filtered_4FGL_J2338.0-0230_daily_bin1093.fits.....................!
real 36.65
user 35.63
sys 0.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0274       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9989       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .79539       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.137       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.262       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.508       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3979       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8112       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.126       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.787       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91861       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87463       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=   4892.114     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3343 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0225        12.463       -.66639E-06   -.42401E-04
   2  Prefactor     .10000E-03    47.851        .17509E-07** at limit **
   3  Prefactor     11.676        21.424        .23851E-05   -.60778E-04
   4  Prefactor     .10000E-03    2.1190        .14057E-07** at limit **
   5  norm          2.9984        3.4565       -.62438E-06   -.35126E-03
   6  Prefactor     .10000E-03    5.3548        .21083E-07** at limit **
   7  norm          .79473        2.3144       -.77225E-06   -.96852E-03
   8  norm          2.3515        16.271       -.19344E-05   -.14500E-03
   9  Prefactor     .10000E-03    8.9585       -.47699E-06** at limit **
  10  Prefactor     76.118        113.87       -.19061E-04    .85708E-04
  11  Prefactor     13.262        24.050        .85989E-05   -.48029E-04
  12  norm          .10000E-03    .36187       -.40844E-08** at limit **
  13  norm          14.507        8.8032       -.13429E-06   -.46368E-04
  14  Prefactor     .10000E-03    8.7788        .50208E-06** at limit **
  15  Prefactor     .10000E-03    22.556       -.15116E-06** at limit **
  16  Prefactor     .10000E-03    157.06       -.56018E-06** at limit **
  17  Prefactor     .10000E-03    10.793       -.52215E-06** at limit **
  18  Prefactor     .10000E-03    8.1339        .37557E-07** at limit **
  19  norm          .10000E-03    10.968        .61825E-06** at limit **
  20  Prefactor     81.751        75.554       -.14271E-04    .18220E-03
  21  Prefactor     3.5268        4.2620       -.79926E-07   -.24656E-03
  22  Prefactor     7.3951        22.924       -.38715E-05   -.46676E-03
  23  Prefactor     6.8118        19.496       -.93795E-06   -.22294E-04
  24  Prefactor     13.120        16.789        .76090E-06   -.44246E-04
  25  Prefactor     11.784        9.2459        .22543E-05   -.28718E-03
  26  Normalizat    .91897        .21833        .20375E-05    .12022E-04
  27  Prefactor     .87439        .14857       -.22770E-06    .89013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.0225
  Prefactor  = 0.0001
  Prefactor  = 11.6761
  Prefactor  = 0.0001
  norm       = 2.99837
  Prefactor  = 0.0001
  norm       = 0.794729
  norm       = 2.35147
  Prefactor  = 0.0001
  Prefactor  = 76.1181
  Prefactor  = 13.2621
  norm       = 0.0001
  norm       = 14.5071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.751
  Prefactor  = 3.52679
  Prefactor  = 7.39507
  Prefactor  = 6.81177
  Prefactor  = 13.1196
  Prefactor  = 11.7844
  Normalizat = 0.918972
  Prefactor  = 0.874393
 **********
 **   18 **HESSE 
 **********

 FCN=   4892.114     FROM HESSE     STATUS=OK           492 CALLS     3835 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0225        12.452        .13340E-03   -1.5107    
   2  Prefactor     .10000E-03    47.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.676        21.270        .11720E-03   -1.5024    
   4  Prefactor     .10000E-03    2.1239        .99341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9984        3.4401        .11897E-03   -1.5362    
   6  Prefactor     .10000E-03    5.3598        .15803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .79473        2.2482        .17608E-02   -1.5530    
   8  norm          2.3515        16.426        .26729E-03   -1.5401    
   9  Prefactor     .10000E-03    8.9742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     76.118        112.46        .46018E-04   -1.3961    
  11  Prefactor     13.262        23.656        .10999E-03   -1.4979    
  12  norm          .10000E-03    .46973        .81536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.507        8.7923        .10516E-03   -1.4946    
  14  Prefactor     .10000E-03    8.9485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    157.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.1457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     81.751        74.619        .44418E-04   -1.3897    
  21  Prefactor     3.5268        4.2459        .15032E-03   -1.5332    
  22  Prefactor     7.3951        23.903        .73729E-03   -1.5164    
  23  Prefactor     6.8118        19.490        .15374E-03   -1.5186    
  24  Prefactor     13.120        16.806        .11056E-03   -1.4983    
  25  Prefactor     11.784        9.1864        .11668E-03   -1.5021    
  26  Normalizat    .91897        .24909        .27413E-03   -.95797    
  27  Prefactor     .87439        .16982        .20979E-03   -.97042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91882e-09
Minuit parameter uncertainties:
  1  12.4554
  2  2.52899e-05
  3  21.2836
  4  2.27314e-06
  5  3.44028
  6  1.25905e-06
  7  2.24846
  8  12.4344
  9  6.8191e-06
  10  112.779
  11  23.6724
  12  8.57131e-07
  13  8.79308
  14  2.70202e-05
  15  2.07477e-06
  16  9.32575e-05
  17  2.27216e-05
  18  4.6349e-06
  19  1.67947e-05
  20  74.7043
  21  4.24626
  22  23.9341
  23  19.5082
  24  16.8119
  25  9.18751
  26  0.249408
  27  0.16992
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.527e+00  4.246e+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:  8.744e-01  1.699e-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:  9.190e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/66270/likelihoodResults_522633601_522892801_4FGL_J2338.0-0230_daily_bin1093.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) = 4892.1131922
delta logL = 0.000684897327119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4892.11272577
delta logL = 0.00115132384326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3753       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5522       1.0000          .0000       10.000    
     3 'Normalizat'    .91700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87545       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=   4892.113     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      224 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3749        5.6845        .14620E-03    .34820E-03
   2  Index         2.5530        1.4170        .10056E-01    .57347E-04
   3  Normalizat    .91677        .22912        .27443E-03   -.29168E-03
   4  Prefactor     .87562        .16937        .20966E-03   -.47285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37486
  Index      = 2.55304
  Normalizat = 0.91677
  Prefactor  = 0.875617
 **********
 **   18 **HESSE 
 **********

 FCN=   4892.113     FROM HESSE     STATUS=OK            25 CALLS      249 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3749        5.2503        .58482E-05   -1.5341    
   2  Index         2.5530        1.3102        .40224E-03   -.51139    
   3  Normalizat    .91677        .22850        .54886E-04   -.95873    
   4  Prefactor     .87562        .16901        .41932E-04   -.96998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07593e-10
Minuit parameter uncertainties:
  1  5.25106
  2  1.33074
  3  0.228744
  4  0.16911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66270': 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) = 4892.11272504
delta logL = 0.00115205821839

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.375e+00  5.251e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.553e+00  1.331e+00  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:  8.756e-01  1.691e-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:  9.168e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-30 02:33:57.600209', job_id='66270', GAL2='0.88', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632994437.6', return_code2='0', ts='0.99', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.15e-03', ts2='0.99', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1093' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 66270: <4FGL_J2338.0-0230_daily_bin1093> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1093 354.509 -2.5106 522633601 522892801 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 :                                   467.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

