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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin550
RA = 354.509, Dec = -2.5106
tmin = 381888001, tmax = 382147201
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='61976', job_status='RUN', time_executed='2021-09-30 02:15:37.621536', time_epoch_executed='1632993337.62' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61976/ft1_4FGL_J2338.0-0230_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61976/ft2_4FGL_J2338.0-0230_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61976/ft1_4FGL_J2338.0-0230_daily_bin550.fits outfile=/scratch/kocevski/61976/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin550.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=381888001.0 tmax=382147201.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 4.79
user 4.58
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61976/ft1_filtered_4FGL_J2338.0-0230_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/61976/ft2_4FGL_J2338.0-0230_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/61976/ltcube_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.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/61976/ft2_4FGL_J2338.0-0230_daily_bin550.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61976/ft1_filtered_4FGL_J2338.0-0230_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/61976/ft2_4FGL_J2338.0-0230_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/61976/ltcube_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.fits outfile=/scratch/kocevski/61976/expmap_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.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/61976/ltcube_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.fits
.....................!
real 192.31
user 187.96
sys 3.98

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/61976/ft1_filtered_4FGL_J2338.0-0230_daily_bin550.fits scfile=/scratch/kocevski/61976/ft2_4FGL_J2338.0-0230_daily_bin550.fits outfile=/scratch/kocevski/61976/cmap_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61976/ft1_filtered_4FGL_J2338.0-0230_daily_bin550.fits scfile=/scratch/kocevski/61976/ft2_4FGL_J2338.0-0230_daily_bin550.fits outfile=/scratch/kocevski/61976/cmap_HighResolution_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/61976/ft1_filtered_4FGL_J2338.0-0230_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/61976/ft2_4FGL_J2338.0-0230_daily_bin550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61976/Model_4FGL_J2338.0-0230_daily_bin550.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/61976/ft1_filtered_4FGL_J2338.0-0230_daily_bin550.fits.....................!
real 50.55
user 49.27
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.625       1.0000         .10000E-03   10000.    
     7 'norm      '    .95540       1.0000         .10000E-03   10000.    
     8 'norm      '    .30715E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4917       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5052       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.042       1.0000         .10000E-03   10000.    
    16 'Prefactor '    188.59       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.441       1.0000         .10000E-03   10000.    
    19 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.653       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12761E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0361       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82500       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=   4975.194     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3325 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.222        .13213E-06** at limit **
   2  Prefactor     .10000E-03    234.66        .17428E-05** at limit **
   3  Prefactor     1.0460        13.023        .89966E-06   -.17646E-03
   4  Prefactor     .10000E-03    5.5767       -.33919E-07** at limit **
   5  norm          .10000E-03    2.2938       -.41046E-07** at limit **
   6  Prefactor     13.635        19.593        .17206E-06   -.95789E-05
   7  norm          .95242        5.9538        .19361E-07   -.21076E-03
   8  norm          .10001E-03    8.8455        .59454E-06** at limit **
   9  Prefactor     1.4924        4.4740        .16797E-05   -.11622E-02
  10  Prefactor     .10000E-03    21.651       -.55499E-05** at limit **
  11  Prefactor     .10000E-03    3.5050        .22905E-07** at limit **
  12  norm          1.5053        1.0424        .66534E-07   -.28386E-03
  13  norm          .10000E-03    2.6129        .87411E-08** at limit **
  14  Prefactor     .10000E-03    3.4820       -.18267E-07** at limit **
  15  Prefactor     18.004        42.782       -.17263E-04   -.71610E-04
  16  Prefactor     188.57        205.36       -.10783E-04   -.30742E-04
  17  Prefactor     4.1316        13.718        .46577E-05   -.10369E-03
  18  Prefactor     33.435        27.606        .69624E-06    .99642E-07
  19  norm          .10000E-03    23.986        .12737E-04** at limit **
  20  Prefactor     .10000E-03    25.965       -.80624E-05** at limit **
  21  Prefactor     .10000E-03    2.5463       -.59842E-07** at limit **
  22  Prefactor     26.650        40.891        .93222E-07   -.31408E-04
  23  Prefactor     .10000E-03    72.140        .16121E-05** at limit **
  24  Prefactor     .10000E-03    6.0974       -.16759E-07** at limit **
  25  Prefactor     .10000E-03    3.9597       -.37249E-09** at limit **
  26  Normalizat    1.0362        .20977       -.88939E-06   -.13322E-03
  27  Prefactor     .82491        .14920        .68370E-06   -.23640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.04601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6349
  norm       = 0.952418
  norm       = 0.000100006
  Prefactor  = 1.49241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50527
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0041
  Prefactor  = 188.57
  Prefactor  = 4.13157
  Prefactor  = 33.4351
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0362
  Prefactor  = 0.824908
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.194     FROM HESSE     STATUS=OK           482 CALLS     3807 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    237.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0460        79.954        .46772E-02   -1.5503    
   4  Prefactor     .10000E-03    5.5875        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3398        .20763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.635        18.373        .10851E-03   -1.4969    
   7  norm          .95242        5.2554        .26644E-03   -1.5513    
   8  norm          .10001E-03    32.701        .40402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4924        19.780        .17548E-02   -1.5464    
  10  Prefactor     .10000E-03    21.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5145        .12895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5053        1.0343        .55734E-04   -1.5463    
  13  norm          .10000E-03    2.6395        .11132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4876        .12853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.004        42.954        .94293E-04   -1.4859    
  16  Prefactor     188.57        205.34        .14703E-03   -1.2953    
  17  Prefactor     4.1316        13.510        .19839E-03   -1.5301    
  18  Prefactor     33.435        27.606        .69295E-04   -1.4551    
  19  norm          .10000E-03    23.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5704        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.650        40.865        .77596E-04   -1.4675    
  23  Prefactor     .10000E-03    73.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.1021        .17010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.0938        .27408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0362        .24059        .25627E-03   -.91827    
  27  Prefactor     .82491        .17316        .21274E-03   -.98817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14846e-08
Minuit parameter uncertainties:
  1  3.03936e-06
  2  6.39605e-06
  3  18.3147
  4  1.47728e-06
  5  4.30139e-06
  6  18.3802
  7  4.47489
  8  0.000891942
  9  10.8704
  10  8.10653e-05
  11  9.0074e-07
  12  1.03427
  13  8.96883e-07
  14  1.48956e-06
  15  43.0275
  16  206.129
  17  13.5205
  18  27.6161
  19  6.10646e-05
  20  0.000129791
  21  1.08616e-05
  22  40.9082
  23  3.30007e-05
  24  2.74795e-06
  25  1.01452e-06
  26  0.240841
  27  0.173272
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.086e-05  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.249e-01  1.733e-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.036e+00  2.408e-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: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61976/likelihoodResults_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.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) = 4975.19589174
delta logL = -0.00185222539312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4975.19403966
delta logL = -1.47721948451e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4974       1.0000          .0000       10.000    
     3 'Normalizat'    1.0362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82496       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4975.194     FROM MIGRAD    STATUS=FAILED        85 CALLS      232 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    121.07        .10985E-02** at limit **
   2  Index         2.5643        5.6491        .50000       -.19799E-04
   3  Normalizat    1.0362        .36177E-01    .25627E-03   -.58114E-05
   4  Prefactor     .82491        .27235E-01    .21274E-03   -.45424E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4975.194     FROM SIMPLEX   STATUS=PROGRESS     134 CALLS      366 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    121.07        .22201E-03** at limit **
   2  Index         2.5642        5.6491        .42827E-04   -.19799E-04
   3  Normalizat    1.0362        .36177E-01    .15747E-05   -.58114E-05
   4  Prefactor     .82491        .27235E-01    .90443E-06   -.45424E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4975.194     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      414 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    280.43        .21970E-03** at limit **
   2  Index         2.8990        6.4438        .50000        .14422E-06
   3  Normalizat    1.0362        .59325E-01    .10251E-04    .33272E-05
   4  Prefactor     .82491        .44556E-01    .85095E-05   -.21910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.89903
  Normalizat = 1.0362
  Prefactor  = 0.824909
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.194     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4983        .43940E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8990        5.1878        .50000       -.43366    
   3  Normalizat    1.0362        .22492        .20502E-05   -.91827    
   4  Prefactor     .82491        .16937        .17019E-05   -.98817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17884e-11
Minuit parameter uncertainties:
  1  1.62656e-05
  2  142.17
  3  0.225128
  4  0.169478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61976': 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) = 4975.19403839
delta logL = 1.12799261842e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.627e-05  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.899e+00  1.422e+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:  8.249e-01  1.695e-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.036e+00  2.251e-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/61976/cmap_HighResolution_381888001_382147201_4FGL_J2338.0-0230_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-30 02:26:26.126502', job_id='61976', GAL2='0.82', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632993986.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='550' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 61976: <4FGL_J2338.0-0230_daily_bin550> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin550> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:11:29 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:11:31 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:11:31 2021
Terminated at Thu Sep 30 02:26:26 2021
Results reported at Thu Sep 30 02:26:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin550 354.509 -2.5106 381888001 382147201 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 :                                   646.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

