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


Performing analysis on: 4FGL_J2338.0-0230_daily_bin530
RA = 354.509, Dec = -2.5106
tmin = 376704001, tmax = 376963201
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='61945', job_status='RUN', time_executed='2021-09-30 02:15:24.234577', time_epoch_executed='1632993324.23' WHERE source_name='4FGL J2338.0-0230' and cadence='daily' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61945/ft1_4FGL_J2338.0-0230_daily_bin530.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61945/ft2_4FGL_J2338.0-0230_daily_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61945/ft1_4FGL_J2338.0-0230_daily_bin530.fits outfile=/scratch/kocevski/61945/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin530.fits ra=354.509 dec=-2.5106 rad=12.0 tmin=376704001.0 tmax=376963201.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.42
user 3.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61945/ft2_4FGL_J2338.0-0230_daily_bin530.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/61945/ft1_filteredMKT_4FGL_J2338.0-0230_daily_bin530.fits evtable="EVENTS" outfile="/scratch/kocevski/61945/ft1_filtered_4FGL_J2338.0-0230_daily_bin530.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61945/ft1_filtered_4FGL_J2338.0-0230_daily_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/61945/ft2_4FGL_J2338.0-0230_daily_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/61945/ltcube_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.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/61945/ft2_4FGL_J2338.0-0230_daily_bin530.fits
.....................!
real 11.54
user 11.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61945/ft1_filtered_4FGL_J2338.0-0230_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/61945/ft2_4FGL_J2338.0-0230_daily_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/61945/ltcube_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.fits outfile=/scratch/kocevski/61945/expmap_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.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/61945/ltcube_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.fits
.....................!
real 189.60
user 184.37
sys 4.90

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/61945/ft1_filtered_4FGL_J2338.0-0230_daily_bin530.fits scfile=/scratch/kocevski/61945/ft2_4FGL_J2338.0-0230_daily_bin530.fits outfile=/scratch/kocevski/61945/cmap_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61945/ft1_filtered_4FGL_J2338.0-0230_daily_bin530.fits scfile=/scratch/kocevski/61945/ft2_4FGL_J2338.0-0230_daily_bin530.fits outfile=/scratch/kocevski/61945/cmap_HighResolution_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/61945/ft1_filtered_4FGL_J2338.0-0230_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/61945/ft2_4FGL_J2338.0-0230_daily_bin530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61945/Model_4FGL_J2338.0-0230_daily_bin530.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/61945/ft1_filtered_4FGL_J2338.0-0230_daily_bin530.fits.....................!
real 55.92
user 53.98
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.655       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9978       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2466       1.0000         .10000E-03   10000.    
     8 'norm      '    44.200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9763       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.731       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2877       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    101.42       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7093       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    105.75       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7451       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .59706       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79629       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1923       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=   5445.464     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3271 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4478        .30689E-06** at limit **
   2  Prefactor     57.659        73.417        .19152E-06    .74015E-05
   3  Prefactor     .10000E-03    23.355       -.68815E-06** at limit **
   4  Prefactor     3.9990        11.236        .67303E-06    .60531E-05
   5  norm          .10000E-03    1.6348        .74013E-07** at limit **
   6  Prefactor     .10000E-03    13.758        .10502E-05** at limit **
   7  norm          5.2470        5.8480        .62390E-07    .90418E-04
   8  norm          44.202        19.169        .12991E-06    .37357E-05
   9  Prefactor     3.9761        32.775        .89175E-06   -.69973E-05
  10  Prefactor     .10000E-03    53.325       -.95030E-06** at limit **
  11  Prefactor     10.726        10.460        .10627E-06   -.11251E-04
  12  norm          3.2879        1.4138        .30256E-07   -.49014E-04
  13  norm          .10000E-03    4.6489       -.23972E-08** at limit **
  14  Prefactor     .10000E-03    3.2652       -.25259E-07** at limit **
  15  Prefactor     .10000E-03    21.308       -.58101E-06** at limit **
  16  Prefactor     101.42        123.61        .52985E-06    .14022E-04
  17  Prefactor     .10000E-03    4.0386        .99137E-08** at limit **
  18  Prefactor     8.7021        26.509       -.65369E-06   -.54181E-04
  19  norm          .10000E-03    10.900       -.71256E-06** at limit **
  20  Prefactor     .10000E-03    32.192        .17472E-05** at limit **
  21  Prefactor     .10000E-03    1.8509        .40845E-07** at limit **
  22  Prefactor     105.75        47.215        .31960E-06    .76267E-04
  23  Prefactor     6.7444        15.890        .33370E-05   -.10637E-03
  24  Prefactor     .10000E-03    4.3133        .22194E-07** at limit **
  25  Prefactor     .60328        10.514        .63245E-06   -.90926E-04
  26  Normalizat    .79608        .24025       -.14051E-05   -.42255E-04
  27  Prefactor     1.1924        .17285       -.16278E-07   -.79861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 57.6588
  Prefactor  = 0.0001
  Prefactor  = 3.999
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.24702
  norm       = 44.2022
  Prefactor  = 3.97606
  Prefactor  = 0.0001
  Prefactor  = 10.7256
  norm       = 3.28787
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.423
  Prefactor  = 0.0001
  Prefactor  = 8.70209
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 105.753
  Prefactor  = 6.74445
  Prefactor  = 0.0001
  Prefactor  = 0.603277
  Normalizat = 0.796078
  Prefactor  = 1.19237
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.464     FROM HESSE     STATUS=OK           484 CALLS     3755 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     57.659        73.080        .52834E-04   -1.4188    
   3  Prefactor     .10000E-03    23.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9990        11.068        .20171E-03   -1.5308    
   5  norm          .10000E-03    5.3811        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2470        5.7913        .13816E-03   -1.5250    
   8  norm          44.202        19.161        .60303E-04   -1.4377    
   9  Prefactor     3.9761        32.752        .20227E-03   -1.5309    
  10  Prefactor     .10000E-03    53.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.726        10.446        .12230E-03   -1.5053    
  12  norm          3.2879        1.4118        .54342E-04   -1.5345    
  13  norm          .10000E-03    4.7099        .15498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2697        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     101.42        123.75        .19961E-03   -1.3690    
  17  Prefactor     .10000E-03    4.0443        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7021        26.709        .13583E-03   -1.5118    
  19  norm          .10000E-03    11.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8635        .98023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     105.75        47.482        .39105E-04   -1.3648    
  23  Prefactor     6.7444        16.154        .77248E-03   -1.5189    
  24  Prefactor     .10000E-03    4.3159        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .60328        44.698        .42438E-02   -1.5553    
  26  Normalizat    .79608        .26799        .33260E-03   -1.0021    
  27  Prefactor     1.1924        .19632        .21360E-03   -.86566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52295e-08
Minuit parameter uncertainties:
  1  3.39113e-05
  2  73.1935
  3  0.000140575
  4  11.0735
  5  1.42844e-05
  6  0.000135322
  7  5.79192
  8  19.1637
  9  22.8399
  10  0.000302443
  11  10.4477
  12  1.41184
  13  1.6558e-06
  14  2.13567e-06
  15  0.000125679
  16  124.069
  17  7.80972e-07
  18  26.7452
  19  0.000110852
  20  0.000458863
  21  1.64604e-06
  22  47.4988
  23  16.1644
  24  1.1735e-06
  25  10.3929
  26  0.268438
  27  0.196436
Done.

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

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  1.646e-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.192e+00  1.964e-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.961e-01  2.684e-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: 8.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61945/likelihoodResults_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.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) = 5445.4661595
delta logL = -0.00252921626088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5445.46363023
delta logL = 5.60739863431e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4773       1.0000          .0000       10.000    
     3 'Normalizat'    .79605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1924       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=   5445.464     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.335        .98726E-02** at limit **
   2  Index         2.0968        7.7307        .50000       -.20350E-05
   3  Normalizat    .79608        .12986E-01    .33260E-03    .89350E-04
   4  Prefactor     1.1924        .10069E-01    .21360E-03    .15371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09679
  Normalizat = 0.796078
  Prefactor  = 1.19237
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.464     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.96        .10400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0968        8.9437        .50000       -.61952    
   3  Normalizat    .79608        .45549E-01    .13304E-04   -1.0021    
   4  Prefactor     1.1924        .35316E-01    .42720E-04   -.86566    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4976e-07
Minuit parameter uncertainties:
  1  0.000301548
  2  630.198
  3  0.045551
  4  0.0353163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61945': 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) = 5445.46362734
delta logL = 2.9476805139e-06

Extracting fit parameters...

4FGL J2338.0-0230
   Spectrum: PowerLaw
462    Prefactor:  1.000e-04  3.015e-04  1.000e-04  1.000e+04 ( 1.000e-12)
463        Index:  2.097e+00  6.302e+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.192e+00  3.532e-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:  7.961e-01  4.555e-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/61945/cmap_HighResolution_376704001_376963201_4FGL_J2338.0-0230_daily_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-30 02:26:32.494015', job_id='61945', GAL2='1.19', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632993992.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.95e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='530' AND source_name='4FGL J2338.0-0230' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:26:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 61945: <4FGL_J2338.0-0230_daily_bin530> in cluster <slac> Done

Job <4FGL_J2338.0-0230_daily_bin530> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:11:27 2021
Job was executed on host(s) <bullet0281>, 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:26:32 2021
Results reported at Thu Sep 30 02:26:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2338.0-0230_daily_bin530 354.509 -2.5106 376704001 376963201 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 :                                   666.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

