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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1011
RA = 354.509, Dec = -2.5106
tmin = 501379201, tmax = 501638401
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='66078', job_status='RUN', time_executed='2021-09-30 02:23:00.709505', time_epoch_executed='1632993780.71' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66078

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66078/ft1_4FGL_J2338.0-0230_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66078/ft1_4FGL_J2338.0-0230_daily_bin1011.fits outfile=/scratch/kocevski/66078/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1011.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=501379201.0 tmax=501638401.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.59
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.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/66078/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/66078/ft1_filtered_4FGL_J2338.0-0230_daily_bin1011.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.58
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66078/ft1_filtered_4FGL_J2338.0-0230_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/66078/ltcube_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.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/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.fits
.....................!
real 12.33
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66078/ft1_filtered_4FGL_J2338.0-0230_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/66078/ltcube_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.fits outfile=/scratch/kocevski/66078/expmap_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.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/66078/ltcube_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.fits
.....................!
real 193.16
user 187.07
sys 5.70

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/66078/ft1_filtered_4FGL_J2338.0-0230_daily_bin1011.fits scfile=/scratch/kocevski/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.fits outfile=/scratch/kocevski/66078/cmap_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.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/66078/ft1_filtered_4FGL_J2338.0-0230_daily_bin1011.fits scfile=/scratch/kocevski/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.fits outfile=/scratch/kocevski/66078/cmap_HighResolution_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.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.56
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66078/ft1_filtered_4FGL_J2338.0-0230_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/66078/ft2_4FGL_J2338.0-0230_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66078/Model_4FGL_J2338.0-0230_daily_bin1011.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/66078/ft1_filtered_4FGL_J2338.0-0230_daily_bin1011.fits.....................!
real 57.49
user 55.99
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5682       1.0000         .10000E-03   10000.    
     8 'norm      '    13.464       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.529       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .54584       1.0000         .10000E-03   10000.    
    13 'norm      '    9.6669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5535       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    439.18       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6190       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.168       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7269       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76080       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0475       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=   5960.221     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3284 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5686       -.61735E-07** at limit **
   2  Prefactor     .10000E-03    31.146        .13764E-05** at limit **
   3  Prefactor     1.6404        46.504        .12790E-04   -.91886E-04
   4  Prefactor     .10000E-03    1.7011       -.23768E-07** at limit **
   5  norm          .10000E-03    1.5896        .47703E-06** at limit **
   6  Prefactor     .10000E-03    4.8875       -.53339E-07** at limit **
   7  norm          1.5676        2.2947        .95888E-07   -.50640E-04
   8  norm          13.465        14.123        .55645E-06   -.37678E-04
   9  Prefactor     15.527        20.135        .30924E-06   -.16245E-04
  10  Prefactor     .10000E-03    35.648       -.16077E-05** at limit **
  11  Prefactor     .10000E-03    7.3935       -.25391E-06** at limit **
  12  norm          .54415        1.0089        .73571E-06    .10060E-02
  13  norm          9.6710        6.6619        .83718E-07   -.87101E-04
  14  Prefactor     5.5537        9.6038        .15332E-05   -.17805E-04
  15  Prefactor     .10000E-03    20.530       -.15630E-07** at limit **
  16  Prefactor     439.37        277.12       -.13418E-04   -.40131E-04
  17  Prefactor     .10000E-03    7.5400        .72619E-06** at limit **
  18  Prefactor     .10000E-03    11.470       -.19725E-06** at limit **
  19  norm          .10000E-03    13.593        .59709E-06** at limit **
  20  Prefactor     .10000E-03    118.53        .27135E-06** at limit **
  21  Prefactor     4.6176        5.1995        .19623E-05   -.22141E-03
  22  Prefactor     .10000E-03    19.345       -.58178E-06** at limit **
  23  Prefactor     11.160        21.167        .36740E-06    .34245E-05
  24  Prefactor     .10000E-03    20.590        .60695E-07** at limit **
  25  Prefactor     5.7262        6.3737        .33162E-06   -.13735E-04
  26  Normalizat    .76091        .19476       -.21591E-05   -.11262E-03
  27  Prefactor     1.0475        .14655       -.20254E-06   -.19101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.64044
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56759
  norm       = 13.4652
  Prefactor  = 15.5265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.544155
  norm       = 9.67101
  Prefactor  = 5.5537
  Prefactor  = 0.0001
  Prefactor  = 439.367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6176
  Prefactor  = 0.0001
  Prefactor  = 11.1598
  Prefactor  = 0.0001
  Prefactor  = 5.72617
  Normalizat = 0.76091
  Prefactor  = 1.04752
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.221     FROM HESSE     STATUS=OK           482 CALLS     3766 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5865        .14241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6404        47.279        .16467E-02   -1.5452    
   4  Prefactor     .10000E-03    1.7052        .98251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6459        .18999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9111        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5676        2.2684        .13640E-03   -1.5458    
   8  norm          13.465        14.130        .54581E-03   -1.4974    
   9  Prefactor     15.527        20.145        .10164E-03   -1.4920    
  10  Prefactor     .10000E-03    35.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .54415        .98131        .96270E-04   -1.5560    
  13  norm          9.6710        6.6301        .12889E-03   -1.5086    
  14  Prefactor     5.5537        9.6198        .85241E-03   -1.5237    
  15  Prefactor     .10000E-03    20.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     439.37        277.91        .97603E-04   -1.1484    
  17  Prefactor     .10000E-03    7.5821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    118.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6176        5.1646        .83531E-03   -1.5278    
  22  Prefactor     .10000E-03    19.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.160        21.170        .11988E-03   -1.5040    
  24  Prefactor     .10000E-03    20.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.7262        6.3884        .16784E-03   -1.5229    
  26  Normalizat    .76091        .22520        .29723E-03   -1.0154    
  27  Prefactor     1.0475        .17143        .20040E-03   -.91162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29983e-10
Minuit parameter uncertainties:
  1  4.11475e-06
  2  3.34473e-05
  3  17.6283
  4  1.35956e-06
  5  9.5436e-06
  6  3.83474e-06
  7  2.26848
  8  14.1336
  9  20.1542
  10  2.69239e-05
  11  1.07757e-05
  12  0.981334
  13  6.63065
  14  9.62249
  15  1.43137e-06
  16  278.768
  17  5.84014e-05
  18  5.76781e-06
  19  3.35498e-05
  20  2.04381e-05
  21  5.16509
  22  6.44022e-06
  23  21.1839
  24  3.437e-05
  25  6.3892
  26  0.225474
  27  0.171517
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  4.618e+00  5.165e+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:  1.048e+00  1.715e-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.609e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/66078/likelihoodResults_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.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) = 5960.11320886
delta logL = 0.108080369901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5960.11275409
delta logL = 0.108535137656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8723       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0309       1.0000          .0000       10.000    
     3 'Normalizat'    .78155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0352       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=   5960.113     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8701        244.61        .41430E-02    .25062E-03
   2  Index         2.0309        5.3062        .25614       -.24251E-04
   3  Normalizat    .78151        .12091        .66364E-01    .21315E-04
   4  Prefactor     1.0352        .80443E-01    .40868E-01    .16763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87007
  Index      = 2.03093
  Normalizat = 0.781506
  Prefactor  = 1.03522
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.113     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8701        5.9405        .16572E-03   -1.5223    
   2  Index         2.0309        .81509        .98183E-02   -.63579    
   3  Normalizat    .78151        .21608        .29361E-03   -1.0076    
   4  Prefactor     1.0352        .16781        .20139E-03   -.91565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93611e-12
Minuit parameter uncertainties:
  1  5.94114
  2  0.820768
  3  0.216322
  4  0.1679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66078': 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) = 5960.11275399
delta logL = 0.108535236309

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  5.870e+00  5.941e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.031e+00  8.208e-01  0.000e+00  1.000e+01 (-1.000e+00)
464        Scale:  7.455e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.035e+00  1.679e-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.815e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 2.03 +/- 0.82
Photon Flux (Free Index): 3.37e-08 +/- 4.38e-08
Energy Flux (Free Index): 2.16e-05 +/- 3.26e-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/66078/cmap_HighResolution_501379201_501638401_4FGL_J2338.0-0230_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='2.16e-05', photon_flux_error='5.16e-08', dlogl='1.09e-01', energy_flux='1.35e-05', photon_flux2='3.37e-08', job_status='DONE', time_completed='2021-09-30 02:34:46.564356', photon_index_error2='0.82', photon_index2='2.03', ts='1.14', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='3.26e-05', EG='0.76', time_epoch_completed='1632994486.56', return_code='0', job_id='66078', GAL2='1.04', EG2='0.78', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.38e-08', ts2='1.36', photon_index='2.49' WHERE bin_id='1011' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:34:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 66078: <4FGL_J2338.0-0230_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1011 354.509 -2.5106 501379201 501638401 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 :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

