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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin315
RA = 354.509, Dec = -2.5106
tmin = 320976001, tmax = 321235201
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='60278', job_status='RUN', time_executed='2021-09-30 02:08:13.579706', time_epoch_executed='1632992893.58' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60278/ft1_4FGL_J2338.0-0230_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60278/ft2_4FGL_J2338.0-0230_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60278/ft1_4FGL_J2338.0-0230_daily_bin315.fits outfile=/scratch/kocevski/60278/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin315.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=320976001.0 tmax=321235201.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.52
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60278/ft1_filtered_4FGL_J2338.0-0230_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/60278/ft2_4FGL_J2338.0-0230_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/60278/ltcube_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.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/60278/ft2_4FGL_J2338.0-0230_daily_bin315.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60278/ft1_filtered_4FGL_J2338.0-0230_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/60278/ft2_4FGL_J2338.0-0230_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/60278/ltcube_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.fits outfile=/scratch/kocevski/60278/expmap_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.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/60278/ltcube_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.fits
.....................!
real 191.14
user 185.22
sys 5.57

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/60278/ft1_filtered_4FGL_J2338.0-0230_daily_bin315.fits scfile=/scratch/kocevski/60278/ft2_4FGL_J2338.0-0230_daily_bin315.fits outfile=/scratch/kocevski/60278/cmap_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.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/60278/ft1_filtered_4FGL_J2338.0-0230_daily_bin315.fits scfile=/scratch/kocevski/60278/ft2_4FGL_J2338.0-0230_daily_bin315.fits outfile=/scratch/kocevski/60278/cmap_HighResolution_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.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/60278/ft1_filtered_4FGL_J2338.0-0230_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/60278/ft2_4FGL_J2338.0-0230_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60278/Model_4FGL_J2338.0-0230_daily_bin315.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/60278/ft1_filtered_4FGL_J2338.0-0230_daily_bin315.fits.....................!
real 57.15
user 55.70
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27672       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11478E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.390       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11641E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7883       1.0000         .10000E-03   10000.    
    12 'norm      '    .65411       1.0000         .10000E-03   10000.    
    13 'norm      '    10.322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6316       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    104.17       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.420       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2252       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3738       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=   5515.407     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3286 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27543        5.7310       -.12284E-05   -.12353E-03
   2  Prefactor     .10000E-03    20.601        .41230E-05** at limit **
   3  Prefactor     .10000E-03    6.0961        .73061E-07** at limit **
   4  Prefactor     .10000E-03    2.1544        .11315E-09** at limit **
   5  norm          .10000E-03    2.2961       -.60325E-07** at limit **
   6  Prefactor     .10000E-03    6.4709       -.52594E-07** at limit **
   7  norm          .10000E-03    1.5417       -.32258E-07** at limit **
   8  norm          10.390        22.384        .48314E-07    .84660E-04
   9  Prefactor     .10001E-03    140.46       -.69693E-04** at limit **
  10  Prefactor     .10000E-03    46.414       -.52153E-04** at limit **
  11  Prefactor     8.7904        11.616       -.15325E-05    .20414E-03
  12  norm          .65340        1.1614        .79794E-07   -.44689E-03
  13  norm          10.324        8.6164       -.36358E-05    .13053E-03
  14  Prefactor     .10000E-03    5.6952       -.47165E-07** at limit **
  15  Prefactor     .10000E-03    70.079        .48315E-04** at limit **
  16  Prefactor     .10000E-03    58.159       -.31730E-05** at limit **
  17  Prefactor     9.6357        11.295       -.42176E-06   -.96475E-04
  18  Prefactor     .10000E-03    29.240        .14281E-04** at limit **
  19  norm          .10000E-03    17.413        .31724E-05** at limit **
  20  Prefactor     .10000E-03    19.350       -.98746E-05** at limit **
  21  Prefactor     .10000E-03    1.2196        .57590E-07** at limit **
  22  Prefactor     104.17        65.341       -.30295E-05   -.10208E-03
  23  Prefactor     .10000E-03    66.155        .35020E-04** at limit **
  24  Prefactor     20.420        19.457       -.28861E-07   -.76493E-05
  25  Prefactor     .10000E-03    2.5854       -.82337E-08** at limit **
  26  Normalizat    1.2248        .25320        .18245E-05    .17365E-03
  27  Prefactor     1.3739        .19277        .48087E-06    .23081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.275426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.3898
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 8.7904
  norm       = 0.653404
  norm       = 10.3238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.63574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.168
  Prefactor  = 0.000100001
  Prefactor  = 20.4197
  Prefactor  = 0.0001
  Normalizat = 1.22485
  Prefactor  = 1.37393
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.407     FROM HESSE     STATUS=OK           482 CALLS     3768 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27543        26.402        .34562E-02   -1.5603    
   2  Prefactor     .10000E-03    20.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1022        .17908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1595        .10645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4025        .21952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5535        .90032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.390        22.406        .12431E-03   -1.5063    
   9  Prefactor     .10001E-03    144.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7904        11.592        .13521E-03   -1.5115    
  12  norm          .65340        1.0766        .10001E-02   -1.5546    
  13  norm          10.324        8.5794        .12471E-03   -1.5065    
  14  Prefactor     .10000E-03    5.7071        .17309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    70.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    58.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6357        11.242        .12912E-03   -1.5087    
  18  Prefactor     .10000E-03    29.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.2211        .80064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     104.17        65.541        .39397E-04   -1.3663    
  23  Prefactor     .10000E-03    66.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.420        19.482        .88636E-04   -1.4804    
  25  Prefactor     .10000E-03    2.5905        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2248        .29747        .32014E-03   -.85838    
  27  Prefactor     1.3739        .22807        .23593E-03   -.81135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72691e-08
Minuit parameter uncertainties:
  1  5.39474
  2  2.95096e-06
  3  4.9232e-06
  4  2.06594e-06
  5  9.8897e-06
  6  4.28998e-06
  7  2.45336e-06
  8  22.4236
  9  0.00244702
  10  0.000224351
  11  11.5945
  12  1.07658
  13  8.58037
  14  6.1893e-06
  15  6.26133e-05
  16  9.5261e-06
  17  11.2444
  18  7.66434e-05
  19  1.57168e-05
  20  9.82716e-06
  21  1.23278e-06
  22  65.5867
  23  0.000441012
  24  19.4879
  25  1.53356e-06
  26  0.297883
  27  0.228236
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.233e-06  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.374e+00  2.282e-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.225e+00  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/60278/likelihoodResults_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5515.41019344
delta logL = -0.00327559096786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5515.40691735
delta logL = 4.99410816701e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4745       1.0000          .0000       10.000    
     3 'Normalizat'    1.2248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3739       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=   5515.407     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      254 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.465        .81187E-02** at limit **
   2  Index         1.8655        8.1708        .50000       -.10882E-06
   3  Normalizat    1.2248        .21280E-01    .32014E-03   -.45152E-03
   4  Prefactor     1.3739        .16552E-01    .23593E-03   -.60332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86553
  Normalizat = 1.22485
  Prefactor  = 1.37393
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.407     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.35        .92621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8655        7.7920        .50000       -.67756    
   3  Normalizat    1.2248        .65868E-01    .64028E-04   -.85838    
   4  Prefactor     1.3739        .51237E-01    .47187E-04   -.81135    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.4437e-10
Minuit parameter uncertainties:
  1  4.8177e-06
  2  672.453
  3  0.0658725
  4  0.0512385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60278': 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) = 5515.40690754
delta logL = 1.03106103779e-05

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.374e+00  5.124e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.225e+00  6.587e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.509 -2.511

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/60278/cmap_HighResolution_320976001_321235201_4FGL_J2338.0-0230_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-30 02:19:42.629307', job_id='60278', GAL2='1.37', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632993582.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='315' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:19:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 60278: <4FGL_J2338.0-0230_daily_bin315> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin315> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:05:48 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:05:51 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:05:51 2021
Terminated at Thu Sep 30 02:19:43 2021
Results reported at Thu Sep 30 02:19:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin315 354.509 -2.5106 320976001 321235201 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 :                                   685.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

