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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin405
RA = 352.839, Dec = -15.9777
tmin = 344304001, tmax = 344563201
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='10908', job_status='RUN', time_executed='2021-09-29 23:05:59.851130', time_epoch_executed='1632981959.85' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10908/ft1_4FGL_J2331.3-1558_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10908/ft1_4FGL_J2331.3-1558_daily_bin405.fits outfile=/scratch/kocevski/10908/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin405.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=344304001.0 tmax=344563201.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.39
user 3.18
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.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/10908/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin405.fits evtable="EVENTS" outfile="/scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/10908/ltcube_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.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/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits
.....................!
real 11.84
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/10908/ltcube_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.fits outfile=/scratch/kocevski/10908/expmap_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.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/10908/ltcube_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.fits
.....................!
real 191.38
user 185.85
sys 5.10

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits scfile=/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits outfile=/scratch/kocevski/10908/cmap_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.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=352.839 yref=-15.9777 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits scfile=/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits outfile=/scratch/kocevski/10908/cmap_HighResolution_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.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=352.839 yref=-15.9777 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10908/Model_4FGL_J2331.3-1558_daily_bin405.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/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits.....................!
real 40.64
user 39.29
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits', '/scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits', expMap='/scratch/kocevski/10908/expmap_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.fits', expCube='/scratch/kocevski/10908/ltcube_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10908/Model_4FGL_J2331.3-1558_daily_bin405.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10908/ft1_filtered_4FGL_J2331.3-1558_daily_bin405.fits
Spacecraft file(s): /scratch/kocevski/10908/ft2_4FGL_J2331.3-1558_daily_bin405.fits
Exposure map: /scratch/kocevski/10908/expmap_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.fits
Exposure cube: /scratch/kocevski/10908/ltcube_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10908/Model_4FGL_J2331.3-1558_daily_bin405.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) = 4323.76110284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9559       1.0000         .10000E-03   10000.    
     2 'norm      '    49.990       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7657       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.438       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.875       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9035       1.0000         .10000E-03   10000.    
    19 'norm      '    28.231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1367       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95755       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4323.753     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2383 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9565        8.6086       -.70933E-06   -.34917E-04
   2  norm          49.992        43.753        .22735E-06    .14152E-05
   3  Prefactor     .10000E-03    5.0791        .20311E-06** at limit **
   4  norm          .10000E-03    .41782        .90203E-07** at limit **
   5  Prefactor     15.826        22.280        .19329E-06   -.28319E-04
   6  Prefactor     .10000E-03    4.7167        .21478E-06** at limit **
   7  Prefactor     .10000E-03    9.3558        .85786E-06** at limit **
   8  Prefactor     .10000E-03    22.802       -.30811E-06** at limit **
   9  Prefactor     2.8325        65.030        .26794E-05    .10633E-04
  10  Prefactor     .10000E-03    4.2160       -.49488E-06** at limit **
  11  norm          13.440        8.7928       -.14093E-06    .20893E-04
  12  norm          2.5988        3.7896        .45797E-06    .68745E-05
  13  Prefactor     64.881        63.142        .29809E-06   -.10412E-05
  14  Prefactor     .10000E-03    7.6749        .27656E-06** at limit **
  15  Prefactor     .10000E-03    28.345        .62897E-06** at limit **
  16  Prefactor     6.5671        268.50       -.20186E-04   -.26908E-04
  17  Prefactor     .10000E-03    94.299        .89866E-06** at limit **
  18  norm          4.9032        1.3496       -.80811E-08   -.10502E-03
  19  norm          28.236        10.574       -.13948E-07   -.30833E-04
  20  Prefactor     5.1374        8.6028        .62707E-05    .59552E-04
  21  Normalizat    .95762        .23368       -.55811E-06   -.68638E-04
  22  Prefactor     .83643        .20824       -.18059E-05   -.34809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.95645
  norm       = 49.9915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83247
  Prefactor  = 0.0001
  norm       = 13.4405
  norm       = 2.59883
  Prefactor  = 64.8807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56707
  Prefactor  = 0.0001
  norm       = 4.90318
  norm       = 28.2357
  Prefactor  = 5.13737
  Normalizat = 0.957623
  Prefactor  = 0.83643
 **********
 **   18 **HESSE 
 **********

 FCN=   4323.753     FROM HESSE     STATUS=OK           344 CALLS     2727 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9565        8.6126        .13393E-03   -1.5109    
   2  norm          49.992        43.758        .56719E-04   -1.4293    
   3  Prefactor     .10000E-03    5.0834        .14468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .42006        .82150E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.826        22.048        .10068E-03   -1.4912    
   6  Prefactor     .10000E-03    4.7215        .13948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8325        64.774        .24473E-03   -1.5371    
  10  Prefactor     .10000E-03    4.2171        .13174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.440        8.7879        .10927E-03   -1.4975    
  12  norm          2.5988        3.7743        .14742E-03   -1.5386    
  13  Prefactor     64.881        63.133        .49825E-04   -1.4095    
  14  Prefactor     .10000E-03    7.6783        .17790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5671        282.90        .15346E-02   -1.5195    
  17  Prefactor     .10000E-03    94.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9032        1.3609        .34275E-04   -1.5265    
  19  norm          28.236        10.677        .75401E-04   -1.4645    
  20  Prefactor     5.1374        8.6442        .88693E-03   -1.5255    
  21  Normalizat    .95762        .27346        .27193E-03   -.94464    
  22  Prefactor     .83643        .24290        .25986E-03   -.98399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08789e-10
Minuit parameter uncertainties:
  1  8.61377
  2  43.7858
  3  4.4003e-06
  4  8.51634e-07
  5  22.0598
  6  4.36479e-06
  7  1.9184e-05
  8  3.60926e-05
  9  27.1229
  10  1.09628e-05
  11  8.78874
  12  3.77469
  13  63.1982
  14  2.93932e-06
  15  3.21357e-06
  16  86.6444
  17  0.000227531
  18  1.36087
  19  10.678
  20  8.64633
  21  0.273863
  22  0.243208
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  2.939e-06  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  8.364e-01  2.432e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.576e-01  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10908/likelihoodResults_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.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) = 4323.75386579
delta logL = -0.000617634105765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4323.75324871
delta logL = -5.60669832339e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5210       1.0000          .0000       10.000    
     3 'Normalizat'    .95784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   4323.753     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.085        .18104E-01** at limit **
   2  Index         1.7671        8.2424        .50000       -.27057E-07
   3  Normalizat    .95762        .10894E-01    .27192E-03   -.30296E-03
   4  Prefactor     .83643        .98464E-02    .25986E-03   -.31459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76706
  Normalizat = 0.957623
  Prefactor  = 0.836429
 **********
 **   18 **HESSE 
 **********

 FCN=   4323.753     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    379.77        .21514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7671        5.7260        .50000       -.70310    
   3  Normalizat    .95762        .33624E-01    .54384E-04   -.94464    
   4  Prefactor     .83643        .30391E-01    .51972E-04   -.98399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27222e-10
Minuit parameter uncertainties:
  1  5.01047e-05
  2  1128.32
  3  0.0336244
  4  0.0303916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10908': 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) = 4323.75324609
delta logL = 2.05931519304e-06

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  5.010e-05  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  1.767e+00  1.128e+03  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  8.364e-01  3.039e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.576e-01  3.362e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.839 -15.978

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/10908/cmap_HighResolution_344304001_344563201_4FGL_J2331.3-1558_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-29 23:14:54.122999', job_id='10908', GAL2='0.84', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632982494.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='405' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:14:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 10908: <4FGL_J2331.3-1558_daily_bin405> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin405> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:05:49 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:05:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:05:51 2021
Terminated at Wed Sep 29 23:14:54 2021
Results reported at Wed Sep 29 23:14:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin405 352.839 -15.9777 344304001 344563201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.3-1558 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            545 sec.

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

