/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 9 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 = 7673
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2338.0-0230_daily_bin362
RA = 354.509, Dec = -2.5106
tmin = 333158401, tmax = 333417601
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='61475', job_status='RUN', time_executed='2021-09-30 02:10:36.334529', time_epoch_executed='1632993036.33' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61475

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61475/ft1_4FGL_J2338.0-0230_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61475/ft2_4FGL_J2338.0-0230_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61475/ft1_4FGL_J2338.0-0230_daily_bin362.fits outfile=/scratch/kocevski/61475/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin362.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.11
user 5.80
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61475/ft2_4FGL_J2338.0-0230_daily_bin362.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/61475/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin362.fits evtable="EVENTS" outfile="/scratch/kocevski/61475/ft1_filtered_4FGL_J2338.0-0230_daily_bin362.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/61475/ft1_filtered_4FGL_J2338.0-0230_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/61475/ft2_4FGL_J2338.0-0230_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/61475/ltcube_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.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/61475/ft2_4FGL_J2338.0-0230_daily_bin362.fits
.....................!
real 11.57
user 11.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61475/ft1_filtered_4FGL_J2338.0-0230_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/61475/ft2_4FGL_J2338.0-0230_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/61475/ltcube_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.fits outfile=/scratch/kocevski/61475/expmap_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.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/61475/ltcube_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.fits
.....................!
real 191.12
user 185.23
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/61475/ft1_filtered_4FGL_J2338.0-0230_daily_bin362.fits scfile=/scratch/kocevski/61475/ft2_4FGL_J2338.0-0230_daily_bin362.fits outfile=/scratch/kocevski/61475/cmap_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.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/61475/ft1_filtered_4FGL_J2338.0-0230_daily_bin362.fits scfile=/scratch/kocevski/61475/ft2_4FGL_J2338.0-0230_daily_bin362.fits outfile=/scratch/kocevski/61475/cmap_HighResolution_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1878       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.663       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.411       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6905       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6294       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.872       1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0439       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.713       1.0000         .10000E-03   10000.    
    19 'norm      '    6.3037       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2678       1.0000         .10000E-03   10000.    
    22 'Prefactor '    108.68       1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.942       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.7565       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78583       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79952       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=   6124.015     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3409 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1877        7.0490       -.22522E-07    .57395E-04
   2  Prefactor     11.912        32.544       -.20201E-06    .25312E-04
   3  Prefactor     .10000E-03    7.9964        .51597E-07** at limit **
   4  Prefactor     11.663        6.9144        .46057E-06    .67035E-03
   5  norm          3.5512        2.6211       -.27857E-07    .26569E-03
   6  Prefactor     28.411        16.987        .45848E-06    .35407E-03
   7  norm          .10000E-03    2.3077       -.27650E-05** at limit **
   8  norm          .10000E-03    3.2822        .22055E-07** at limit **
   9  Prefactor     21.569        19.314       -.33517E-07   -.94857E-06
  10  Prefactor     .10000E-03    40.200        .22575E-06** at limit **
  11  Prefactor     .10000E-03    5.8768        .27728E-06** at limit **
  12  norm          1.6902        .85380       -.46618E-07   -.38593E-04
  13  norm          3.6293        4.6248       -.14334E-07   -.20855E-04
  14  Prefactor     .10000E-03    5.0006       -.16111E-06** at limit **
  15  Prefactor     49.865        49.072       -.78880E-07    .28377E-04
  16  Prefactor     55.469        101.98        .25239E-06    .49998E-04
  17  Prefactor     2.1101        26.860        .96495E-05   -.32271E-04
  18  Prefactor     16.709        21.701       -.26676E-07   -.16100E-04
  19  norm          6.1376        49.048       -.11824E-04   -.10989E-04
  20  Prefactor     .10000E-03    17.974        .17731E-06** at limit **
  21  Prefactor     3.2711        3.3756        .23139E-06    .22715E-04
  22  Prefactor     108.68        50.153       -.16806E-06    .34177E-04
  23  Prefactor     55.939        27.619        .25853E-08    .72326E-05
  24  Prefactor     .10000E-03    16.440       -.74011E-06** at limit **
  25  Prefactor     6.7574        5.9222        .11025E-07    .47481E-04
  26  Normalizat    .78557        .18365       -.59097E-06    .99047E-04
  27  Prefactor     .79970        .13500        .25971E-06    .23151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.18766
  Prefactor  = 11.9116
  Prefactor  = 0.0001
  Prefactor  = 11.6633
  norm       = 3.55122
  Prefactor  = 28.4107
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6902
  norm       = 3.62927
  Prefactor  = 0.0001
  Prefactor  = 49.8646
  Prefactor  = 55.4695
  Prefactor  = 2.11009
  Prefactor  = 16.7091
  norm       = 6.13758
  Prefactor  = 0.0001
  Prefactor  = 3.27111
  Prefactor  = 108.676
  Prefactor  = 55.9391
  Prefactor  = 0.0001
  Prefactor  = 6.75739
  Normalizat = 0.785574
  Prefactor  = 0.799705
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.015     FROM HESSE     STATUS=OK           490 CALLS     3899 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1877        7.0456        .14011E-03   -1.5136    
   2  Prefactor     11.912        32.525        .11607E-03   -1.5018    
   3  Prefactor     .10000E-03    8.0268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.663        6.9865        .11731E-03   -1.5025    
   5  norm          3.5512        2.6190        .10312E-03   -1.5331    
   6  Prefactor     28.411        17.047        .75163E-04   -1.4641    
   7  norm          .10000E-03    2.3239        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2877        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.569        19.326        .86242E-04   -1.4779    
  10  Prefactor     .10000E-03    40.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6902        .84787        .48821E-04   -1.5448    
  13  norm          3.6293        4.6062        .18112E-03   -1.5327    
  14  Prefactor     .10000E-03    5.0339        .17085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.865        49.075        .56786E-04   -1.4294    
  16  Prefactor     55.469        102.00        .26917E-03   -1.4217    
  17  Prefactor     2.1101        25.666        .14461E-02   -1.5417    
  18  Prefactor     16.709        21.703        .97970E-04   -1.4890    
  19  norm          6.1376        46.747        .15988E-03   -1.5212    
  20  Prefactor     .10000E-03    17.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2711        3.3586        .13320E-03   -1.5346    
  22  Prefactor     108.68        50.171        .38580E-04   -1.3619    
  23  Prefactor     55.939        27.639        .53633E-04   -1.4211    
  24  Prefactor     .10000E-03    16.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.7574        5.9290        .15436E-03   -1.5188    
  26  Normalizat    .78557        .20922        .28286E-03   -1.0061    
  27  Prefactor     .79970        .15438        .21323E-03   -.99739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20934e-09
Minuit parameter uncertainties:
  1  7.04634
  2  32.5732
  3  2.36445e-06
  4  6.98702
  5  2.6191
  6  17.0497
  7  1.44981e-05
  8  3.80938e-07
  9  19.3313
  10  4.27023e-05
  11  8.49739e-06
  12  0.847873
  13  4.60663
  14  3.97941e-06
  15  49.1146
  16  102.327
  17  14.7259
  18  21.7133
  19  33.9137
  20  2.03818e-05
  21  3.35878
  22  50.1907
  23  27.6453
  24  1.7755e-06
  25  5.92955
  26  0.209432
  27  0.154462
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.271e+00  3.359e+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:  7.997e-01  1.545e-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.856e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 9.59e-06 +/- 9.85e-06

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

Saving results to:
/scratch/kocevski/61475/likelihoodResults_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.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) = 6124.00957469
delta logL = 0.00502175565089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6124.00760604
delta logL = 0.00699040304971

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4737       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3647       1.0000          .0000       10.000    
     3 'Normalizat'    .78977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79755       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=   6124.008     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      204 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4766        102.85        .54242E-02    .23959E-03
   2  Index         2.3647        5.7431        .24042        .28641E-04
   3  Normalizat    .79001        .76936E-01    .63783E-01    .21015E-04
   4  Prefactor     .79741        .45637E-01    .43685E-01    .11924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47663
  Index      = 2.36468
  Normalizat = 0.790009
  Prefactor  = 0.797413
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.008     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4766        3.8186        .13981E-03   -1.5335    
   2  Index         2.3647        1.0537        .11088E-01   -.55514    
   3  Normalizat    .79001        .20015        .28215E-03   -1.0044    
   4  Prefactor     .79741        .15104        .21350E-03   -.99824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52573e-12
Minuit parameter uncertainties:
  1  3.81887
  2  1.06477
  3  0.20034
  4  0.151121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61475': 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) = 6124.00760477
delta logL = 0.00699166766026

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  3.477e+00  3.819e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.365e+00  1.065e+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:  7.974e-01  1.511e-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.900e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.36 +/- 1.06
Photon Flux (Free Index): 2.95e-08 +/- 3.93e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.18e-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/61475/cmap_HighResolution_333158401_333417601_4FGL_J2338.0-0230_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.01e-05', photon_flux_error='3.35e-08', dlogl='6.99e-03', energy_flux='9.59e-06', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-09-30 02:22:55.282778', photon_index_error2='1.06', photon_index2='2.36', ts='1.84', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.18e-05', EG='0.79', time_epoch_completed='1632993775.28', return_code='0', job_id='61475', GAL2='0.80', EG2='0.79', return_code2='0', energy_flux_error='9.85e-06', photon_flux_error2='3.93e-08', ts2='1.85', photon_index='2.49' WHERE bin_id='362' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:22:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 61475: <4FGL_J2338.0-0230_daily_bin362> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin362> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:10:16 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:10:18 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:10:18 2021
Terminated at Thu Sep 30 02:22:56 2021
Results reported at Thu Sep 30 02:22:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin362 354.509 -2.5106 333158401 333417601 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            760 sec.

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

