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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin917
RA = 354.509, Dec = -2.5106
tmin = 477014401, tmax = 477273601
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='65838', job_status='RUN', time_executed='2021-09-30 02:20:36.135285', time_epoch_executed='1632993636.14' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65838/ft1_4FGL_J2338.0-0230_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65838/ft2_4FGL_J2338.0-0230_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65838/ft1_4FGL_J2338.0-0230_daily_bin917.fits outfile=/scratch/kocevski/65838/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin917.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=477014401.0 tmax=477273601.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.77
user 3.39
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65838/ft1_filtered_4FGL_J2338.0-0230_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/65838/ft2_4FGL_J2338.0-0230_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/65838/ltcube_477014401_477273601_4FGL_J2338.0-0230_daily_bin917.fits outfile=/scratch/kocevski/65838/expmap_477014401_477273601_4FGL_J2338.0-0230_daily_bin917.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/65838/ltcube_477014401_477273601_4FGL_J2338.0-0230_daily_bin917.fits
.....................!
real 191.31
user 185.67
sys 5.17

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/65838/ft1_filtered_4FGL_J2338.0-0230_daily_bin917.fits scfile=/scratch/kocevski/65838/ft2_4FGL_J2338.0-0230_daily_bin917.fits outfile=/scratch/kocevski/65838/cmap_477014401_477273601_4FGL_J2338.0-0230_daily_bin917.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65838/ft1_filtered_4FGL_J2338.0-0230_daily_bin917.fits scfile=/scratch/kocevski/65838/ft2_4FGL_J2338.0-0230_daily_bin917.fits outfile=/scratch/kocevski/65838/cmap_HighResolution_477014401_477273601_4FGL_J2338.0-0230_daily_bin917.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24705E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.903       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11197E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .96693       1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.894       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5885       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3432       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4658       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2535       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.044       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80752       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92705       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=   4418.853     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3355 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.646        .52261E-06** at limit **
   2  Prefactor     30.741        67.193       -.17129E-05   -.79252E-04
   3  Prefactor     6.1095        12.748        .12651E-06    .11254E-04
   4  Prefactor     10.894        7.8101        .17189E-06   -.27824E-04
   5  norm          5.5550        3.0975        .35396E-07    .26925E-04
   6  Prefactor     .10000E-03    12.167       -.30351E-06** at limit **
   7  norm          .10000E-03    2.7124        .13336E-06** at limit **
   8  norm          .10000E-03    6.9627        .76676E-07** at limit **
   9  Prefactor     24.241        24.890        .93252E-07   -.31243E-04
  10  Prefactor     .10000E-03    57.885        .20584E-05** at limit **
  11  Prefactor     .95705        19.959        .68846E-05   -.27855E-03
  12  norm          .10000E-03    .57176       -.15190E-06** at limit **
  13  norm          .10000E-03    3.0900        .16811E-06** at limit **
  14  Prefactor     .10000E-03    12.029        .49629E-06** at limit **
  15  Prefactor     34.918        65.624       -.12836E-05   -.85341E-04
  16  Prefactor     .10000E-03    101.11       -.11688E-05** at limit **
  17  Prefactor     6.5927        18.329        .12204E-05   -.35325E-06
  18  Prefactor     .10000E-03    7.2426        .62409E-08** at limit **
  19  norm          .10000E-03    20.551        .11391E-05** at limit **
  20  Prefactor     .10000E-03    88.140       -.13231E-05** at limit **
  21  Prefactor     7.3412        7.9651       -.50883E-06    .26574E-04
  22  Prefactor     2.5876        199.08       -.10054E-04   -.92885E-04
  23  Prefactor     6.2546        21.067        .73528E-06    .31741E-04
  24  Prefactor     35.046        24.018        .37645E-06    .10140E-04
  25  Prefactor     .10000E-03    3.3356        .64238E-07** at limit **
  26  Normalizat    .80736        .22395       -.19634E-05   -.27977E-03
  27  Prefactor     .92707        .15480        .85118E-06   -.16404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 30.7415
  Prefactor  = 6.10947
  Prefactor  = 10.8937
  norm       = 5.55497
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.241
  Prefactor  = 0.000100001
  Prefactor  = 0.957049
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9179
  Prefactor  = 0.000100001
  Prefactor  = 6.59269
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 7.3412
  Prefactor  = 2.58765
  Prefactor  = 6.25455
  Prefactor  = 35.046
  Prefactor  = 0.0001
  Normalizat = 0.807363
  Prefactor  = 0.927067
 **********
 **   18 **HESSE 
 **********

 FCN=   4418.853     FROM HESSE     STATUS=OK           486 CALLS     3841 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.741        67.311        .72325E-04   -1.4598    
   3  Prefactor     6.1095        12.730        .16244E-03   -1.5214    
   4  Prefactor     10.894        7.2254        .12134E-03   -1.5048    
   5  norm          5.5550        3.0941        .81784E-04   -1.5237    
   6  Prefactor     .10000E-03    12.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.2909        .19427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.9828        .17130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.241        24.896        .81370E-04   -1.4723    
  10  Prefactor     .10000E-03    58.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .95705        22.050        .31988E-02   -1.5512    
  12  norm          .10000E-03    1.1125        .96175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0969        .11398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.918        65.425        .67840E-04   -1.4525    
  16  Prefactor     .10000E-03    101.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5927        18.085        .15634E-03   -1.5194    
  18  Prefactor     .10000E-03    7.2481        .17472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    20.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    88.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.3412        7.9364        .74006E-03   -1.5166    
  22  Prefactor     2.5876        207.51        .26042E-03   -1.5386    
  23  Prefactor     6.2546        21.067        .16052E-03   -1.5208    
  24  Prefactor     35.046        24.075        .67695E-04   -1.4523    
  25  Prefactor     .10000E-03    3.3498        .11856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80736        .25378        .28278E-03   -.99796    
  27  Prefactor     .92707        .17998        .20173E-03   -.95202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58237e-09
Minuit parameter uncertainties:
  1  0.000309259
  2  67.4777
  3  12.7354
  4  7.226
  5  3.09415
  6  4.74409e-05
  7  6.07861e-06
  8  2.71929e-06
  9  24.9071
  10  0.000560796
  11  9.19088
  12  1.72649e-05
  13  3.37557e-07
  14  8.16213e-05
  15  65.5598
  16  0.0006319
  17  18.0996
  18  6.5511e-06
  19  0.000275981
  20  0.000798605
  21  7.93752
  22  46.5117
  23  21.0921
  24  24.0819
  25  5.3734e-06
  26  0.254149
  27  0.180096
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  7.341e+00  7.938e+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.271e-01  1.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.074e-01  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 7.93e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 2.33e-05

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

Saving results to:
/scratch/kocevski/65838/likelihoodResults_477014401_477273601_4FGL_J2338.0-0230_daily_bin917.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) = 4417.58943594
delta logL = 1.26322081902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4417.09797615
delta logL = 1.75468060972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.3416       1.0000          .0000       10.000    
     3 'Normalizat'    .65346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0274       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=   4417.098     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      600 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28872E-02    .25890E-03** at limit **
   2  Index         9.3415        7.6701        .15552        .53058E-04
   3  Normalizat    .65347        .76096E-01    .70272E-01    .15887E-03
   4  Prefactor     1.0274        .57283E-01    .41473E-01    .23081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.34148
  Normalizat = 0.653475
  Prefactor  = 1.02739
 **********
 **   18 **HESSE 
 **********

 FCN=   4417.098     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      639 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .22437E-01    .97258E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3415        8.2837        .70913E-02    1.0518    
   3  Normalizat    .65347        .16896        .31101E-03   -1.0576    
   4  Prefactor     1.0274        .12711        .19308E-03   -.91822    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32683e-09
Minuit parameter uncertainties:
  1  5.31651e-09
  2  3.75291
  3  0.169094
  4  0.127147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65838': 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) = 4417.09797595
delta logL = 1.75468080324

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  5.317e-09  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  9.341e+00  3.753e+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:  1.027e+00  1.271e-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:  6.535e-01  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 9.34 +/- 3.75
Photon Flux (Free Index): 1.74e-07 +/- 1.20e-06
Energy Flux (Free Index): 1.97e-05 +/- 1.35e-04

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/65838/cmap_HighResolution_477014401_477273601_4FGL_J2338.0-0230_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='1.97e-05', photon_flux_error='7.93e-08', dlogl='1.75e+00', energy_flux='2.15e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-30 02:31:06.373644', photon_index_error2='3.75', photon_index2='9.34', ts='1.70', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='1.35e-04', EG='0.81', time_epoch_completed='1632994266.37', return_code='0', job_id='65838', GAL2='1.03', EG2='0.65', return_code2='102', energy_flux_error='2.33e-05', photon_flux_error2='1.20e-06', ts2='5.91', photon_index='2.49' WHERE bin_id='917' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:31:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 65838: <4FGL_J2338.0-0230_daily_bin917> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin917 354.509 -2.5106 477014401 477273601 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            649 sec.

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

