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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1280
RA = 354.509, Dec = -2.5106
tmin = 571104001, tmax = 571363201
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='67804', job_status='RUN', time_executed='2021-09-30 02:25:24.789472', time_epoch_executed='1632993924.79' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67804/ft1_4FGL_J2338.0-0230_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67804/ft2_4FGL_J2338.0-0230_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67804/ft1_4FGL_J2338.0-0230_daily_bin1280.fits outfile=/scratch/kocevski/67804/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1280.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=571104001.0 tmax=571363201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.99
user 2.76
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67804/ft1_filtered_4FGL_J2338.0-0230_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/67804/ft2_4FGL_J2338.0-0230_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/67804/ltcube_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.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/67804/ft2_4FGL_J2338.0-0230_daily_bin1280.fits
.....................!
real 12.75
user 12.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67804/ft1_filtered_4FGL_J2338.0-0230_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/67804/ft2_4FGL_J2338.0-0230_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/67804/ltcube_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.fits outfile=/scratch/kocevski/67804/expmap_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.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/67804/ltcube_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.fits
.....................!
real 192.40
user 186.99
sys 5.01

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/67804/ft1_filtered_4FGL_J2338.0-0230_daily_bin1280.fits scfile=/scratch/kocevski/67804/ft2_4FGL_J2338.0-0230_daily_bin1280.fits outfile=/scratch/kocevski/67804/cmap_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.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.59
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67804/ft1_filtered_4FGL_J2338.0-0230_daily_bin1280.fits scfile=/scratch/kocevski/67804/ft2_4FGL_J2338.0-0230_daily_bin1280.fits outfile=/scratch/kocevski/67804/cmap_HighResolution_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.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/67804/ft1_filtered_4FGL_J2338.0-0230_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/67804/ft2_4FGL_J2338.0-0230_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67804/Model_4FGL_J2338.0-0230_daily_bin1280.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/67804/ft1_filtered_4FGL_J2338.0-0230_daily_bin1280.fits.....................!
real 58.03
user 56.60
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67273E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38038E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8136       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2506       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .61646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .92590       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.990       1.0000         .10000E-03   10000.    
    19 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    150.37       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5487       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9477       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.074       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.8527       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5102       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .57227       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=   5657.340     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3407 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10028E-03    8.9523        .16251E-05** at limit **
   2  Prefactor     67.149        59.871       -.26399E-05   -.93548E-04
   3  Prefactor     17.205        14.305       -.17410E-06    .45638E-04
   4  Prefactor     .10010E-03    5.9144       -.22157E-05** at limit **
   5  norm          1.8140        2.8879        .38972E-06    .20218E-03
   6  Prefactor     .10000E-03    6.7876        .86737E-07** at limit **
   7  norm          5.2572        4.3132        .12115E-05    .15049E-02
   8  norm          .10000E-03    6.3376       -.16590E-06** at limit **
   9  Prefactor     .63804        8.0214       -.56644E-06    .96113E-04
  10  Prefactor     36.354        70.619        .26781E-05    .39992E-04
  11  Prefactor     .10000E-03    7.4067        .36380E-06** at limit **
  12  norm          .92575        1.1632       -.11274E-08   -.30202E-03
  13  norm          4.3586        5.1069       -.15142E-06   -.33250E-04
  14  Prefactor     .10000E-03    5.7842        .28893E-06** at limit **
  15  Prefactor     .10000E-03    15.996        .75586E-07** at limit **
  16  Prefactor     .10000E-03    70.010        .74299E-06** at limit **
  17  Prefactor     .10000E-03    5.1172       -.24488E-06** at limit **
  18  Prefactor     50.999        33.674        .87641E-06    .11567E-03
  19  norm          .10000E-03    9.8310       -.20891E-06** at limit **
  20  Prefactor     150.36        102.18       -.11366E-05   -.14454E-04
  21  Prefactor     8.5490        6.4023        .17409E-05   -.44561E-03
  22  Prefactor     .10000E-03    32.451       -.58326E-06** at limit **
  23  Prefactor     1.9107        84.185       -.58467E-05   -.44367E-04
  24  Prefactor     44.072        25.315       -.27176E-06    .80435E-04
  25  Prefactor     7.8501        10.189        .76599E-06   -.16656E-03
  26  Normalizat    1.5102        .24978        .21759E-06    .22442E-03
  27  Prefactor     .57229        .15473       -.58320E-06    .17907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100281
  Prefactor  = 67.1491
  Prefactor  = 17.2054
  Prefactor  = 0.000100103
  norm       = 1.81401
  Prefactor  = 0.0001
  norm       = 5.25716
  norm       = 0.0001
  Prefactor  = 0.638044
  Prefactor  = 36.3538
  Prefactor  = 0.0001
  norm       = 0.925752
  norm       = 4.35863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.9986
  norm       = 0.0001
  Prefactor  = 150.361
  Prefactor  = 8.54903
  Prefactor  = 0.0001
  Prefactor  = 1.91069
  Prefactor  = 44.072
  Prefactor  = 7.8501
  Normalizat = 1.51017
  Prefactor  = 0.572293
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.340     FROM HESSE     STATUS=OK           494 CALLS     3901 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10028E-03    59.532        .40737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.149        59.878        .24484E-03   -1.4067    
   3  Prefactor     17.205        14.203        .96558E-04   -1.4878    
   4  Prefactor     .10010E-03    39.156        .29078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8140        2.8568        .14215E-03   -1.5439    
   6  Prefactor     .10000E-03    6.8041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2572        4.0878        .12488E-03   -1.5249    
   8  norm          .10000E-03    6.3491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63804        23.993        .41243E-02   -1.5548    
  10  Prefactor     36.354        71.081        .66482E-04   -1.4501    
  11  Prefactor     .10000E-03    7.4029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .92575        1.0813        .85238E-03   -1.5516    
  13  norm          4.3586        5.0928        .17584E-03   -1.5290    
  14  Prefactor     .10000E-03    5.8247        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    70.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1329        .16623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     50.999        33.757        .56163E-04   -1.4278    
  19  norm          .10000E-03    9.8416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     150.36        102.71        .32868E-04   -1.3249    
  21  Prefactor     8.5490        6.3969        .68551E-03   -1.5123    
  22  Prefactor     .10000E-03    32.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9107        87.337        .29739E-03   -1.5432    
  24  Prefactor     44.072        25.508        .60389E-04   -1.4379    
  25  Prefactor     7.8501        10.157        .14309E-03   -1.5148    
  26  Normalizat    1.5102        .30335        .25988E-03   -.77493    
  27  Prefactor     .57229        .18306        .27867E-03   -1.0877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27053e-09
Minuit parameter uncertainties:
  1  0.00818177
  2  59.9319
  3  14.2056
  4  0.00401981
  5  2.85701
  6  7.85539e-06
  7  4.08801
  8  1.12325e-05
  9  7.82795
  10  71.2477
  11  3.6265e-05
  12  1.08133
  13  5.09331
  14  4.96139e-06
  15  6.75987e-07
  16  8.71337e-05
  17  2.66979e-05
  18  33.77
  19  2.96862e-05
  20  102.834
  21  6.39744
  22  3.42363e-05
  23  25.8755
  24  25.5145
  25  10.1592
  26  0.303714
  27  0.183247
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  8.549e+00  6.397e+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:  5.723e-01  1.832e-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.510e+00  3.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 354.509 -2.511
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 8.55e-08 +/- 6.39e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.88e-05

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

Saving results to:
/scratch/kocevski/67804/likelihoodResults_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.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) = 5656.26161443
delta logL = 1.07838105717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5656.23007132
delta logL = 1.10992416787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5412       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0810       1.0000          .0000       10.000    
     3 'Normalizat'    1.3908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63787       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5656.230     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      288 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5416        20.497        .46918E-04    .67048E-02
   2  Index         4.0811        3.8774        .41673E-02    .71962E-03
   3  Normalizat    1.3907        .26160        .26847E-03    .65328E-03
   4  Prefactor     .63793        .18369        .26533E-03    .57939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54165
  Index      = 4.08114
  Normalizat = 1.39068
  Prefactor  = 0.637929
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.230     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5416        3.5473        .18767E-05   -1.5460    
   2  Index         4.0811        1.3895        .16669E-03   -.18482    
   3  Normalizat    1.3907        .26981        .53694E-04   -.80899    
   4  Prefactor     .63793        .18299        .53066E-04   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1902e-09
Minuit parameter uncertainties:
  1  3.54783
  2  1.40876
  3  0.270088
  4  0.183161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67804': 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) = 5656.23007096
delta logL = 1.10992453142

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.542e+00  3.548e+00  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  4.081e+00  1.409e+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:  6.379e-01  1.832e-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.391e+00  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 4.08 +/- 1.41
Photon Flux (Free Index): 1.83e-07 +/- 1.03e-07
Energy Flux (Free Index): 2.70e-05 +/- 1.49e-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/67804/cmap_HighResolution_571104001_571363201_4FGL_J2338.0-0230_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='8.55e-08', energy_flux2='2.70e-05', photon_flux_error='6.39e-08', dlogl='1.11e+00', energy_flux='2.51e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-30 02:37:13.835412', photon_index_error2='1.41', photon_index2='4.08', ts='2.54', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='2.10e-07', energy_flux_error2='1.49e-05', EG='1.51', time_epoch_completed='1632994633.84', return_code='0', job_id='67804', GAL2='0.64', EG2='1.39', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='1.03e-07', ts2='5.11', photon_index='2.49' WHERE bin_id='1280' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:37:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 67804: <4FGL_J2338.0-0230_daily_bin1280> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin1280> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:25:13 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:25:14 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:25:14 2021
Terminated at Thu Sep 30 02:37:14 2021
Results reported at Thu Sep 30 02:37:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1280 354.509 -2.5106 571104001 571363201 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 :                                   705.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            721 sec.

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

