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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin993
RA = 354.509, Dec = -2.5106
tmin = 496713601, tmax = 496972801
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='65994', job_status='RUN', time_executed='2021-09-30 02:20:40.501562', time_epoch_executed='1632993640.5' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65994

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65994/ft1_4FGL_J2338.0-0230_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65994/ft2_4FGL_J2338.0-0230_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65994/ft1_4FGL_J2338.0-0230_daily_bin993.fits outfile=/scratch/kocevski/65994/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin993.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=496713601.0 tmax=496972801.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 4.92
user 4.65
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/65994/ft2_4FGL_J2338.0-0230_daily_bin993.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/65994/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/65994/ft1_filtered_4FGL_J2338.0-0230_daily_bin993.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/65994/ft1_filtered_4FGL_J2338.0-0230_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/65994/ft2_4FGL_J2338.0-0230_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/65994/ltcube_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.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/65994/ft2_4FGL_J2338.0-0230_daily_bin993.fits
.....................!
real 12.56
user 12.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65994/ft1_filtered_4FGL_J2338.0-0230_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/65994/ft2_4FGL_J2338.0-0230_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/65994/ltcube_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.fits outfile=/scratch/kocevski/65994/expmap_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.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/65994/ltcube_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.fits
.....................!
real 190.84
user 185.16
sys 5.24

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/65994/ft1_filtered_4FGL_J2338.0-0230_daily_bin993.fits scfile=/scratch/kocevski/65994/ft2_4FGL_J2338.0-0230_daily_bin993.fits outfile=/scratch/kocevski/65994/cmap_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65994/ft1_filtered_4FGL_J2338.0-0230_daily_bin993.fits scfile=/scratch/kocevski/65994/ft2_4FGL_J2338.0-0230_daily_bin993.fits outfile=/scratch/kocevski/65994/cmap_HighResolution_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/65994/ft1_filtered_4FGL_J2338.0-0230_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/65994/ft2_4FGL_J2338.0-0230_daily_bin993.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/65994/Model_4FGL_J2338.0-0230_daily_bin993.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/65994/ft1_filtered_4FGL_J2338.0-0230_daily_bin993.fits.....................!
real 45.37
user 43.97
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.222       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.940       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4030       1.0000         .10000E-03   10000.    
     7 'norm      '    .89131       1.0000         .10000E-03   10000.    
     8 'norm      '    34.067       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.785       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.018       1.0000         .10000E-03   10000.    
    12 'norm      '    .43752       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4381       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.758       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.542       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.127       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0280       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62285       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=   4270.567     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3278 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2842        .86665E-08** at limit **
   2  Prefactor     58.201        55.892       -.21419E-04    .59054E-05
   3  Prefactor     .10000E-03    41.253        .25034E-05** at limit **
   4  Prefactor     10.939        8.1743        .41509E-06   -.10674E-02
   5  norm          4.9514        3.5656        .20375E-06   -.25296E-03
   6  Prefactor     8.4056        18.048        .43969E-05    .15756E-04
   7  norm          .89162        3.9747       -.10061E-05   -.77063E-03
   8  norm          34.063        19.110       -.23896E-06   -.92384E-05
   9  Prefactor     14.442        25.572        .82888E-05   -.51790E-05
  10  Prefactor     29.811        66.019        .39202E-04    .45161E-05
  11  Prefactor     12.016        13.015       -.63096E-05   -.44897E-04
  12  norm          .43750        .46605        .55976E-07    .31889E-03
  13  norm          4.4392        4.9222       -.19255E-06   -.50311E-04
  14  Prefactor     .10000E-03    8.2152       -.38643E-06** at limit **
  15  Prefactor     87.491        60.361       -.11097E-04    .19047E-05
  16  Prefactor     .10000E-03    54.148        .48194E-05** at limit **
  17  Prefactor     10.749        23.019       -.13394E-04    .44066E-04
  18  Prefactor     .10000E-03    38.088       -.77757E-05** at limit **
  19  norm          21.960        51.112        .24609E-04   -.36538E-04
  20  Prefactor     .10000E-03    21.792       -.48041E-07** at limit **
  21  Prefactor     .10000E-03    2.4336       -.33551E-06** at limit **
  22  Prefactor     44.538        47.865       -.51728E-05    .86097E-05
  23  Prefactor     38.143        31.113        .10654E-04    .16057E-04
  24  Prefactor     .10000E-03    12.888       -.55362E-06** at limit **
  25  Prefactor     .10000E-03    3.6356       -.14907E-06** at limit **
  26  Normalizat    1.0280        .22836       -.88166E-06    .62656E-04
  27  Prefactor     .62281        .15545       -.53480E-06    .49259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 58.2009
  Prefactor  = 0.0001
  Prefactor  = 10.9387
  norm       = 4.95142
  Prefactor  = 8.40564
  norm       = 0.891625
  norm       = 34.0633
  Prefactor  = 14.4425
  Prefactor  = 29.8106
  Prefactor  = 12.0158
  norm       = 0.4375
  norm       = 4.43919
  Prefactor  = 0.0001
  Prefactor  = 87.4909
  Prefactor  = 0.0001
  Prefactor  = 10.7489
  Prefactor  = 0.0001
  norm       = 21.9601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.538
  Prefactor  = 38.1428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02801
  Prefactor  = 0.622809
 **********
 **   18 **HESSE 
 **********

 FCN=   4270.567     FROM HESSE     STATUS=OK           494 CALLS     3772 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2871        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     58.201        55.808        .52577E-04   -1.4181    
   3  Prefactor     .10000E-03    41.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.939        7.9357        .60565E-03   -1.5046    
   5  norm          4.9514        3.5747        .97305E-04   -1.5263    
   6  Prefactor     8.4056        17.724        .13829E-03   -1.5128    
   7  norm          .89162        3.5171        .20598E-03   -1.5519    
   8  norm          34.063        19.117        .68657E-04   -1.4540    
   9  Prefactor     14.442        25.554        .10543E-03   -1.4948    
  10  Prefactor     29.811        66.088        .73413E-04   -1.4615    
  11  Prefactor     12.016        13.011        .11555E-03   -1.5015    
  12  norm          .43750        .46977        .44759E-04   -1.5576    
  13  norm          4.4392        4.9144        .14516E-03   -1.5287    
  14  Prefactor     .10000E-03    8.2764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     87.491        60.376        .21475E-03   -1.3834    
  16  Prefactor     .10000E-03    54.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.749        23.401        .12215E-03   -1.5052    
  18  Prefactor     .10000E-03    38.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.960        51.879        .85500E-04   -1.4770    
  20  Prefactor     .10000E-03    21.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4650        .99407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.538        47.920        .60072E-04   -1.4372    
  23  Prefactor     38.143        31.113        .64910E-04   -1.4472    
  24  Prefactor     .10000E-03    12.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.6654        .12165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0280        .25818        .25763E-03   -.92098    
  27  Prefactor     .62281        .17445        .23552E-03   -1.0663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09169e-09
Minuit parameter uncertainties:
  1  3.34468e-05
  2  55.8578
  3  5.28139e-05
  4  7.93645
  5  3.57483
  6  17.7347
  7  3.51787
  8  19.1203
  9  25.5736
  10  66.2505
  11  13.0145
  12  0.46977
  13  4.91486
  14  3.65732e-06
  15  60.418
  16  7.64389e-06
  17  23.4209
  18  8.55889e-05
  19  51.9859
  20  6.22471e-06
  21  1.79941e-05
  22  47.9613
  23  31.126
  24  3.70908e-05
  25  1.53296e-05
  26  0.258496
  27  0.1746
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.799e-05  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:  6.228e-01  1.746e-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.028e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.509 -2.511
Photon Flux Upper Limit: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/65994/likelihoodResults_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.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): 102
logL (Free Index) = 4270.56908418
delta logL = -0.00192611179773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4270.56715815
delta logL = -8.15271050669e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4755       1.0000          .0000       10.000    
     3 'Normalizat'    1.0280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62282       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4270.567     FROM MIGRAD    STATUS=FAILED        85 CALLS      232 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    67.341        .10034E-02** at limit **
   2  Index         2.4030        7.2560        .50000        .41564E-04
   3  Normalizat    1.0280        .28602E-01    .25763E-03   -.77753E-04
   4  Prefactor     .62281        .20904E-01    .23552E-03   -.12212E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4270.567     FROM SIMPLEX   STATUS=PROGRESS     130 CALLS      362 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    67.341        .18232E-03** at limit **
   2  Index         2.4024        7.2560        .19540E-03    .41564E-04
   3  Normalizat    1.0280        .28602E-01    .49493E-05   -.77753E-04
   4  Prefactor     .62280        .20904E-01    .41732E-05   -.12212E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4270.567     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      412 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.202        .20067E-02** at limit **
   2  Index         2.1151        5.8856        .50000        .18933E-06
   3  Normalizat    1.0280        .26607E-01    .10305E-04   -.12400E-03
   4  Prefactor     .62281        .19446E-01    .94208E-05   -.12936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11515
  Normalizat = 1.02801
  Prefactor  = 0.622809
 **********
 **   18 **HESSE 
 **********

 FCN=   4270.567     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    267.61        .40135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1151        6.0562        .50000       -.61502    
   3  Normalizat    1.0280        .60990E-01    .20610E-05   -.92098    
   4  Prefactor     .62281        .44568E-01    .18842E-05   -1.0663    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88743e-09
Minuit parameter uncertainties:
  1  3.48485e-05
  2  799.479
  3  0.0609942
  4  0.0445705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65994': 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): 102
logL (Free Index) = 4270.56715572
delta logL = 2.34286017076e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  3.485e-05  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.115e+00  7.995e+02  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:  6.228e-01  4.457e-02  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.028e+00  6.099e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/65994/cmap_HighResolution_496713601_496972801_4FGL_J2338.0-0230_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-09-30 02:30:47.608679', job_id='65994', GAL2='0.62', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632994247.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='993' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 65994: <4FGL_J2338.0-0230_daily_bin993> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin993 354.509 -2.5106 496713601 496972801 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 :                                   602.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            620 sec.

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

