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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin527
RA = 354.509, Dec = -2.5106
tmin = 375926401, tmax = 376185601
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='61939', job_status='RUN', time_executed='2021-09-30 02:14:56.074334', time_epoch_executed='1632993296.07' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61939/ft1_4FGL_J2338.0-0230_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61939/ft2_4FGL_J2338.0-0230_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61939/ft1_4FGL_J2338.0-0230_daily_bin527.fits outfile=/scratch/kocevski/61939/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin527.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=375926401.0 tmax=376185601.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.43
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61939/ft1_filtered_4FGL_J2338.0-0230_daily_bin527.fits" evtable="EVENTS" scfile=/scratch/kocevski/61939/ft2_4FGL_J2338.0-0230_daily_bin527.fits sctable="SC_DATA" outfile=/scratch/kocevski/61939/ltcube_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.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/61939/ft2_4FGL_J2338.0-0230_daily_bin527.fits
.....................!
real 11.69
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61939/ft1_filtered_4FGL_J2338.0-0230_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/61939/ft2_4FGL_J2338.0-0230_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/61939/ltcube_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.fits outfile=/scratch/kocevski/61939/expmap_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.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/61939/ltcube_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.fits
.....................!
real 191.01
user 186.62
sys 4.03

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/61939/ft1_filtered_4FGL_J2338.0-0230_daily_bin527.fits scfile=/scratch/kocevski/61939/ft2_4FGL_J2338.0-0230_daily_bin527.fits outfile=/scratch/kocevski/61939/cmap_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61939/ft1_filtered_4FGL_J2338.0-0230_daily_bin527.fits scfile=/scratch/kocevski/61939/ft2_4FGL_J2338.0-0230_daily_bin527.fits outfile=/scratch/kocevski/61939/cmap_HighResolution_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/61939/ft1_filtered_4FGL_J2338.0-0230_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/61939/ft2_4FGL_J2338.0-0230_daily_bin527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61939/Model_4FGL_J2338.0-0230_daily_bin527.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/61939/ft1_filtered_4FGL_J2338.0-0230_daily_bin527.fits.....................!
real 50.52
user 48.66
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5412       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .50230       1.0000         .10000E-03   10000.    
     8 'norm      '    18.168       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0499       1.0000         .10000E-03   10000.    
    12 'norm      '    .39184       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
    19 'norm      '    15.746       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14579E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.829       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.386       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10883E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74680       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1828       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=   4876.701     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3290 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4785        9.8856       -.55356E-06   -.18949E-04
   2  Prefactor     .10000E-03    23.605        .99912E-06** at limit **
   3  Prefactor     4.2928        14.201        .34805E-06   -.27645E-03
   4  Prefactor     .10000E-03    1.5541       -.12107E-07** at limit **
   5  norm          2.5403        2.9682       -.23898E-06   -.45407E-04
   6  Prefactor     .10000E-03    17.419       -.70146E-06** at limit **
   7  norm          .50407        3.6200       -.33958E-06   -.22799E-03
   8  norm          18.163        17.775       -.48542E-06    .10748E-04
   9  Prefactor     14.375        23.148       -.18742E-05   -.83785E-05
  10  Prefactor     .10000E-03    26.897       -.65428E-05** at limit **
  11  Prefactor     2.0518        4.3321        .11088E-05   -.11928E-02
  12  norm          .39293        .98149       -.19272E-06   -.39821E-03
  13  norm          .10000E-03    2.5378       -.22090E-06** at limit **
  14  Prefactor     .10000E-03    5.5640        .36118E-07** at limit **
  15  Prefactor     .10000E-03    82.020        .48945E-05** at limit **
  16  Prefactor     .10000E-03    84.952       -.45900E-05** at limit **
  17  Prefactor     .10000E-03    17.404       -.61802E-06** at limit **
  18  Prefactor     10.024        27.214       -.23077E-05   -.68587E-05
  19  norm          15.784        19.560       -.20559E-05   -.99841E-04
  20  Prefactor     .10000E-03    22.329        .41482E-05** at limit **
  21  Prefactor     .10001E-03    2.6497        .56596E-06** at limit **
  22  Prefactor     41.813        47.883       -.12166E-04   -.78261E-04
  23  Prefactor     16.366        25.878       -.41532E-05   -.31832E-04
  24  Prefactor     .10000E-03    6.9119       -.19142E-07** at limit **
  25  Prefactor     .10000E-03    13.832        .15091E-06** at limit **
  26  Normalizat    .74709        .21820        .26686E-05   -.50738E-04
  27  Prefactor     1.1827        .16792        .95124E-06   -.37041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47848
  Prefactor  = 0.0001
  Prefactor  = 4.29279
  Prefactor  = 0.0001
  norm       = 2.5403
  Prefactor  = 0.0001
  norm       = 0.504067
  norm       = 18.1626
  Prefactor  = 14.3747
  Prefactor  = 0.0001
  Prefactor  = 2.05184
  norm       = 0.392931
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0244
  norm       = 15.7844
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 41.8126
  Prefactor  = 16.3665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.747095
  Prefactor  = 1.18266
 **********
 **   18 **HESSE 
 **********

 FCN=   4876.701     FROM HESSE     STATUS=OK           486 CALLS     3776 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4785        9.8798        .17161E-03   -1.5240    
   2  Prefactor     .10000E-03    23.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2928        14.578        .97207E-03   -1.5294    
   4  Prefactor     .10000E-03    1.5542        .84967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5403        2.9450        .11521E-03   -1.5389    
   6  Prefactor     .10000E-03    17.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .50407        3.7929        .25580E-03   -1.5566    
   8  norm          18.163        17.784        .93966E-04   -1.4855    
   9  Prefactor     14.375        23.183        .10562E-03   -1.4950    
  10  Prefactor     .10000E-03    26.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0518        9.5017        .14437E-02   -1.5421    
  12  norm          .39293        .95238        .10196E-03   -1.5583    
  13  norm          .10000E-03    2.5508        .10865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5878        .16084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    82.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    84.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.024        27.248        .12650E-03   -1.5075    
  19  norm          15.784        19.030        .10093E-03   -1.4913    
  20  Prefactor     .10000E-03    22.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    34.212        .20815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     41.813        48.149        .61981E-04   -1.4414    
  23  Prefactor     16.366        25.868        .98943E-04   -1.4899    
  24  Prefactor     .10000E-03    6.9478        .17931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .74709        .24337        .31029E-03   -1.0206    
  27  Prefactor     1.1827        .18990        .19850E-03   -.86867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11095e-09
Minuit parameter uncertainties:
  1  9.88275
  2  5.05009e-07
  3  14.5901
  4  6.64023e-07
  5  2.94515
  6  4.29193e-05
  7  2.76537
  8  17.789
  9  23.1979
  10  0.00013088
  11  8.83292
  12  0.952415
  13  6.45382e-06
  14  5.65117e-06
  15  0.000267832
  16  0.000110264
  17  0.000127568
  18  27.2819
  19  19.0373
  20  3.9948e-05
  21  0.000965087
  22  48.1937
  23  25.8853
  24  5.77198e-06
  25  9.44581e-05
  26  0.243719
  27  0.190006
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  9.651e-04  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.183e+00  1.900e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  7.471e-01  2.437e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61939/likelihoodResults_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.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) = 4876.70099127
delta logL = -0.000139195627526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4874.26665058
delta logL = 2.43420149603

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     '    9.0911       1.0000          .0000       10.000    
     3 'Normalizat'    .60287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2580       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=   4874.267     FROM MIGRAD    STATUS=CONVERGED    301 CALLS      592 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20385E-01    .13076E-03** at limit **
   2  Index         9.0912        8.5497        .76923E-03   -.69020E-05
   3  Normalizat    .60296        .15592        .34204E-03    .44217E-03
   4  Prefactor     1.2581        .12270        .19314E-03    .91642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.09117
  Normalizat = 0.602958
  Prefactor  = 1.25807
 **********
 **   18 **HESSE 
 **********

 FCN=   4874.267     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      625 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13169E-01    .16723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.0912        8.4799        .30769E-04    .95833    
   3  Normalizat    .60296        .13441        .13681E-04   -1.0786    
   4  Prefactor     1.2581        .10600        .38628E-04   -.84563    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.40576e-09
Minuit parameter uncertainties:
  1  1.9324e-07
  2  4.51112
  3  0.134482
  4  0.10602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61939': 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) = 4874.26664128
delta logL = 2.4342107934

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.932e-07  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  9.091e+00  4.511e+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:  1.258e+00  1.060e-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:  6.030e-01  1.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 354.509 -2.511
Photon Index (Free Index): 9.09 +/- 4.51
Photon Flux (Free Index): 1.08e-07 +/- 8.98e-07
Energy Flux (Free Index): 1.23e-05 +/- 1.02e-04

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/61939/cmap_HighResolution_375926401_376185601_4FGL_J2338.0-0230_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='2.43e+00', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-30 02:25:48.492567', photon_index_error2='4.51', photon_index2='9.09', ts='-0.00', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.02e-04', EG='0.75', time_epoch_completed='1632993948.49', return_code='0', job_id='61939', GAL2='1.26', EG2='0.60', return_code2='102', photon_flux_error2='8.98e-07', ts2='5.20', photon_index='2.49' WHERE bin_id='527' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:25:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 61939: <4FGL_J2338.0-0230_daily_bin527> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin527 354.509 -2.5106 375926401 376185601 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 :                                   651.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

