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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin1486
RA = 354.509, Dec = -2.5106
tmin = 624499201, tmax = 624758401
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='68119', job_status='RUN', time_executed='2021-09-30 02:25:49.897535', time_epoch_executed='1632993949.9' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='1486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68119/ft1_4FGL_J2338.0-0230_daily_bin1486.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68119/ft2_4FGL_J2338.0-0230_daily_bin1486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68119/ft1_4FGL_J2338.0-0230_daily_bin1486.fits outfile=/scratch/kocevski/68119/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1486.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=624499201.0 tmax=624758401.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.50
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68119/ft2_4FGL_J2338.0-0230_daily_bin1486.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/68119/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin1486.fits evtable="EVENTS" outfile="/scratch/kocevski/68119/ft1_filtered_4FGL_J2338.0-0230_daily_bin1486.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68119/ft1_filtered_4FGL_J2338.0-0230_daily_bin1486.fits" evtable="EVENTS" scfile=/scratch/kocevski/68119/ft2_4FGL_J2338.0-0230_daily_bin1486.fits sctable="SC_DATA" outfile=/scratch/kocevski/68119/ltcube_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.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/68119/ft2_4FGL_J2338.0-0230_daily_bin1486.fits
.....................!
real 11.93
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68119/ft1_filtered_4FGL_J2338.0-0230_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/68119/ft2_4FGL_J2338.0-0230_daily_bin1486.fits sctable="SC_DATA" expcube=/scratch/kocevski/68119/ltcube_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.fits outfile=/scratch/kocevski/68119/expmap_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.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/68119/ltcube_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.fits
.....................!
real 191.60
user 186.34
sys 4.96

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/68119/ft1_filtered_4FGL_J2338.0-0230_daily_bin1486.fits scfile=/scratch/kocevski/68119/ft2_4FGL_J2338.0-0230_daily_bin1486.fits outfile=/scratch/kocevski/68119/cmap_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68119/ft1_filtered_4FGL_J2338.0-0230_daily_bin1486.fits scfile=/scratch/kocevski/68119/ft2_4FGL_J2338.0-0230_daily_bin1486.fits outfile=/scratch/kocevski/68119/cmap_HighResolution_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8236       1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38892       1.0000         .10000E-03   10000.    
     8 'norm      '    107.12       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.397       1.0000         .10000E-03   10000.    
    12 'norm      '    .27962       1.0000         .10000E-03   10000.    
    13 'norm      '    .10673E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3518       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.523       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.285       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.6365       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0489       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84622       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=   5820.101     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3235 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0045       -.12030E-05** at limit **
   2  Prefactor     .10000E-03    19.857       -.13837E-06** at limit **
   3  Prefactor     .10001E-03    32.442        .56354E-05** at limit **
   4  Prefactor     4.8476        7.1740        .28307E-06    .23159E-03
   5  norm          .10000E-03    1.4200        .45287E-07** at limit **
   6  Prefactor     .10000E-03    5.3707        .16042E-07** at limit **
   7  norm          .36333        3.3474       -.46371E-06    .29775E-03
   8  norm          107.12        23.319        .79018E-07    .15542E-04
   9  Prefactor     .10000E-03    13.987       -.31334E-06** at limit **
  10  Prefactor     .10001E-03    26.554       -.54982E-05** at limit **
  11  Prefactor     18.398        11.146        .60783E-07    .84885E-04
  12  norm          .27963        .54323        .28345E-07   -.75226E-04
  13  norm          .10000E-03    5.9967       -.23222E-06** at limit **
  14  Prefactor     5.3524        6.7847        .26947E-07   -.98221E-05
  15  Prefactor     .10000E-03    16.494        .25490E-05** at limit **
  16  Prefactor     .10000E-03    98.040       -.18454E-05** at limit **
  17  Prefactor     .10000E-03    8.2471       -.10616E-06** at limit **
  18  Prefactor     30.524        27.277        .29261E-06    .13892E-04
  19  norm          .10000E-03    6.6294        .10209E-05** at limit **
  20  Prefactor     54.284        55.241       -.45424E-06   -.18491E-04
  21  Prefactor     .10000E-03    1.6974        .16045E-07** at limit **
  22  Prefactor     .10000E-03    9.2060        .73149E-06** at limit **
  23  Prefactor     .10000E-03    19.453        .40386E-06** at limit **
  24  Prefactor     .10000E-03    13.287       -.13789E-05** at limit **
  25  Prefactor     6.6367        6.7583        .19599E-05   -.12154E-02
  26  Normalizat    1.0491        .19999       -.56731E-06    .57774E-04
  27  Prefactor     .84606        .14439       -.89218E-07    .35784E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 4.84761
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.363327
  norm       = 107.122
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 18.3981
  norm       = 0.279627
  norm       = 0.0001
  Prefactor  = 5.35243
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 30.5244
  norm       = 0.0001
  Prefactor  = 54.2843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.63668
  Normalizat = 1.04907
  Prefactor  = 0.846058
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.101     FROM HESSE     STATUS=OK           480 CALLS     3715 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    34.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8476        9.2531        .18317E-03   -1.5268    
   5  norm          .10000E-03    1.4389        .88663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3812        .17263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .36333        26.812        .20649E-02   -1.5587    
   8  norm          107.12        23.329        .38857E-04   -1.3634    
   9  Prefactor     .10000E-03    14.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    28.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.398        11.152        .93378E-04   -1.4850    
  12  norm          .27963        .54264        .41341E-04   -1.5602    
  13  norm          .10000E-03    6.0741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3524        6.7803        .17372E-03   -1.5245    
  15  Prefactor     .10000E-03    16.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    98.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.524        27.304        .72522E-04   -1.4602    
  19  norm          .10000E-03    6.6892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.284        55.311        .54440E-04   -1.4233    
  21  Prefactor     .10000E-03    1.7081        .97022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.6367        8.0872        .77885E-03   -1.5193    
  26  Normalizat    1.0491        .23656        .27330E-03   -.91404    
  27  Prefactor     .84606        .16985        .22422E-03   -.98052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13391e-09
Minuit parameter uncertainties:
  1  0.000100931
  2  1.74706e-05
  3  0.000996837
  4  9.25578
  5  1.81647e-07
  6  4.375e-06
  7  6.24437
  8  23.3314
  9  3.86369e-05
  10  0.000970213
  11  11.1528
  12  0.542648
  13  1.54267e-05
  14  6.78131
  15  0.000348113
  16  0.000609557
  17  1.05843e-05
  18  27.3148
  19  8.80953e-05
  20  55.3632
  21  8.54491e-07
  22  7.35721e-05
  23  5.47617e-05
  24  0.000167341
  25  8.0885
  26  0.236801
  27  0.169954
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  8.545e-07  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:  8.461e-01  1.700e-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.049e+00  2.368e-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: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68119/likelihoodResults_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.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) = 5820.10340142
delta logL = -0.0027781850431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5820.10062337
delta logL = -1.39074472827e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4893       1.0000          .0000       10.000    
     3 'Normalizat'    1.0492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84602       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=   5820.101     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    118.46        .97030E-03** at limit **
   2  Index         2.4761        6.1720        .50000        .45163E-05
   3  Normalizat    1.0491        .45333E-01    .27330E-03   -.31947E-04
   4  Prefactor     .84606        .33951E-01    .22422E-03   -.78084E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 2.4761
  Normalizat = 1.04907
  Prefactor  = 0.846059
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.101     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    378.49        .19406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4761        7.2337        .50000       -.52913    
   3  Normalizat    1.0491        .14210        .10932E-04   -.91404    
   4  Prefactor     .84606        .10577        .89687E-05   -.98052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06603e-08
Minuit parameter uncertainties:
  1  0.00582478
  2  1613.06
  3  0.142148
  4  0.105791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68119': 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) = 5820.10062322
delta logL = 1.09876054921e-08

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  5.825e-03  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.476e+00  1.613e+03  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:  8.461e-01  1.058e-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.049e+00  1.421e-01  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/68119/cmap_HighResolution_624499201_624758401_4FGL_J2338.0-0230_daily_bin1486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-30 02:37:38.535287', job_id='68119', GAL2='0.85', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632994658.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1486' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:37:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 68119: <4FGL_J2338.0-0230_daily_bin1486> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin1486 354.509 -2.5106 624499201 624758401 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 :                                   674.00 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             300.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

