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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1511
RA = 352.839, Dec = -15.9777
tmin = 630979201, tmax = 631238401
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='15530', job_status='RUN', time_executed='2021-09-29 23:23:58.911465', time_epoch_executed='1632983038.91' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15530/ft1_4FGL_J2331.3-1558_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15530/ft1_4FGL_J2331.3-1558_daily_bin1511.fits outfile=/scratch/kocevski/15530/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1511.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=630979201.0 tmax=631238401.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 2.84
user 2.63
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.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/15530/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1511.fits evtable="EVENTS" outfile="/scratch/kocevski/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/15530/ltcube_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.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/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits
.....................!
real 12.51
user 12.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/15530/ltcube_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.fits outfile=/scratch/kocevski/15530/expmap_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.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/15530/ltcube_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.fits
.....................!
real 192.52
user 186.39
sys 5.75

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/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits scfile=/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits outfile=/scratch/kocevski/15530/cmap_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits scfile=/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits outfile=/scratch/kocevski/15530/cmap_HighResolution_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15530/Model_4FGL_J2331.3-1558_daily_bin1511.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/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits.....................!
real 61.54
user 60.10
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits', '/scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits', expMap='/scratch/kocevski/15530/expmap_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.fits', expCube='/scratch/kocevski/15530/ltcube_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15530/Model_4FGL_J2331.3-1558_daily_bin1511.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/15530/ft1_filtered_4FGL_J2331.3-1558_daily_bin1511.fits
Spacecraft file(s): /scratch/kocevski/15530/ft2_4FGL_J2331.3-1558_daily_bin1511.fits
Exposure map: /scratch/kocevski/15530/expmap_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.fits
Exposure cube: /scratch/kocevski/15530/ltcube_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15530/Model_4FGL_J2331.3-1558_daily_bin1511.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) = 7948.77449637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.886       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7441       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.444       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0887       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    26.694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83808       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=   7948.390     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2368 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7262        .88250E-06** at limit **
   2  norm          .10000E-03    7.6405        .65242E-06** at limit **
   3  Prefactor     53.898        32.438        .23708E-06    .22226E-03
   4  norm          1.3247        2.5102        .24164E-06   -.75759E-04
   5  Prefactor     8.2576        28.154       -.22527E-05   -.21567E-04
   6  Prefactor     8.3834        7.5384       -.17026E-07    .19350E-05
   7  Prefactor     .10000E-03    3.4457        .12418E-06** at limit **
   8  Prefactor     .10000E-03    14.813        .27596E-06** at limit **
   9  Prefactor     .10000E-03    6.9977       -.45553E-06** at limit **
  10  Prefactor     .10000E-03    1.8971        .49495E-07** at limit **
  11  norm          .10000E-03    1.1811       -.52955E-07** at limit **
  12  norm          1.7447        1.8962        .58024E-07   -.43146E-04
  13  Prefactor     .10000E-03    11.649       -.17870E-07** at limit **
  14  Prefactor     .10000E-03    5.6879       -.62343E-06** at limit **
  15  Prefactor     16.441        18.742        .61249E-06    .56738E-04
  16  Prefactor     7.0768        30.168       -.41155E-05   -.80176E-04
  17  Prefactor     .10000E-03    101.23        .50650E-06** at limit **
  18  norm          .10000E-03    .12511       -.15789E-07** at limit **
  19  norm          26.694        5.3546       -.84029E-08    .16495E-04
  20  Prefactor     10.326        6.2804        .96188E-06   -.60276E-03
  21  Normalizat    1.0818        .15904       -.45349E-06    .72247E-05
  22  Prefactor     .83802        .14465        .96097E-07   -.32242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.8982
  norm       = 1.32472
  Prefactor  = 8.25756
  Prefactor  = 8.38336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.74475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4409
  Prefactor  = 7.07683
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.694
  Prefactor  = 10.326
  Normalizat = 1.0818
  Prefactor  = 0.838022
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.390     FROM HESSE     STATUS=OK           342 CALLS     2710 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.6812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.898        31.910        .54641E-04   -1.4238    
   4  norm          1.3247        2.3733        .89813E-04   -1.5478    
   5  Prefactor     8.2576        27.815        .13952E-03   -1.5133    
   6  Prefactor     8.3834        7.5379        .13845E-03   -1.5129    
   7  Prefactor     .10000E-03    3.4565        .16163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9040        .11994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1896        .94599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7447        1.8840        .12280E-03   -1.5444    
  13  Prefactor     .10000E-03    11.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.441        18.759        .98766E-04   -1.4897    
  16  Prefactor     7.0768        31.928        .15067E-03   -1.5176    
  17  Prefactor     .10000E-03    101.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .12946        .61074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          26.694        5.3276        .77537E-04   -1.4674    
  20  Prefactor     10.326        6.5186        .62339E-03   -1.5065    
  21  Normalizat    1.0818        .18204        .24368E-03   -.90338    
  22  Prefactor     .83802        .16538        .25520E-03   -.98342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00758e-10
Minuit parameter uncertainties:
  1  4.00712e-05
  2  4.17094e-05
  3  31.9199
  4  2.37346
  5  27.859
  6  7.53878
  7  4.3608e-06
  8  3.13052e-05
  9  2.69148e-05
  10  3.19592e-06
  11  2.03746e-07
  12  1.88407
  13  2.18444e-07
  14  3.21621e-05
  15  18.7657
  16  30.0898
  17  0.00010222
  18  3.6906e-08
  19  5.32768
  20  6.51906
  21  0.182141
  22  0.165481
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  3.216e-05  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.380e-01  1.655e-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:  1.082e+00  1.821e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15530/likelihoodResults_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.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) = 7948.39041253
delta logL = -0.000829704628813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7948.38958294
delta logL = -1.14544491225e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5167       1.0000          .0000       10.000    
     3 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83808       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=   7948.390     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10276E-03    4.1570        .18142E-01** at limit **
   2  Index         2.4323        6.5753        .50000        .29802E-04
   3  Normalizat    1.0818        .31478E-02    .24368E-03    .83044E-04
   4  Prefactor     .83802        .29537E-02    .25519E-03    .68427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102761
  Index      = 2.43226
  Normalizat = 1.0818
  Prefactor  = 0.838022
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.390     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10276E-03    53.965        .21812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4323        5.5202        .50000       -.53932    
   3  Normalizat    1.0818        .11358E-01    .97472E-05   -.90338    
   4  Prefactor     .83802        .10658E-01    .10208E-04   -.98342    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.08834e-09
Minuit parameter uncertainties:
  1  0.0244366
  2  279.4
  3  0.0113579
  4  0.0106576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15530': 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) = 7948.38958219
delta logL = 6.41216502117e-07

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.028e-04  2.444e-02  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.432e+00  2.794e+02  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.380e-01  1.066e-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:  1.082e+00  1.136e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/15530/cmap_HighResolution_630979201_631238401_4FGL_J2331.3-1558_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-29 23:35:45.549541', job_id='15530', GAL2='0.84', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632983745.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1511' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 15530: <4FGL_J2331.3-1558_daily_bin1511> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1511> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 23:20:44 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:20:45 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:20:45 2021
Terminated at Wed Sep 29 23:35:46 2021
Results reported at Wed Sep 29 23:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1511 352.839 -15.9777 630979201 631238401 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 :                                   690.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

