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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1380
RA = 352.839, Dec = -15.9777
tmin = 597024001, tmax = 597283201
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='15321', job_status='RUN', time_executed='2021-09-29 23:23:55.352545', time_epoch_executed='1632983035.35' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15321/ft1_4FGL_J2331.3-1558_daily_bin1380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15321/ft2_4FGL_J2331.3-1558_daily_bin1380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15321/ft1_4FGL_J2331.3-1558_daily_bin1380.fits outfile=/scratch/kocevski/15321/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1380.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=597024001.0 tmax=597283201.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.58
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15321/ft1_filtered_4FGL_J2331.3-1558_daily_bin1380.fits" evtable="EVENTS" scfile=/scratch/kocevski/15321/ft2_4FGL_J2331.3-1558_daily_bin1380.fits sctable="SC_DATA" outfile=/scratch/kocevski/15321/ltcube_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.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/15321/ft2_4FGL_J2331.3-1558_daily_bin1380.fits
.....................!
real 12.31
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15321/ft1_filtered_4FGL_J2331.3-1558_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/15321/ft2_4FGL_J2331.3-1558_daily_bin1380.fits sctable="SC_DATA" expcube=/scratch/kocevski/15321/ltcube_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.fits outfile=/scratch/kocevski/15321/expmap_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.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/15321/ltcube_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.fits
.....................!
real 192.49
user 187.15
sys 5.02

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/15321/ft1_filtered_4FGL_J2331.3-1558_daily_bin1380.fits scfile=/scratch/kocevski/15321/ft2_4FGL_J2331.3-1558_daily_bin1380.fits outfile=/scratch/kocevski/15321/cmap_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.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/15321/ft1_filtered_4FGL_J2331.3-1558_daily_bin1380.fits scfile=/scratch/kocevski/15321/ft2_4FGL_J2331.3-1558_daily_bin1380.fits outfile=/scratch/kocevski/15321/cmap_HighResolution_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15321/ft1_filtered_4FGL_J2331.3-1558_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/15321/ft2_4FGL_J2331.3-1558_daily_bin1380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15321/Model_4FGL_J2331.3-1558_daily_bin1380.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/15321/ft1_filtered_4FGL_J2331.3-1558_daily_bin1380.fits.....................!
real 52.96
user 51.65
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1893       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.067       1.0000         .10000E-03   10000.    
     4 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    118.26       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25183       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0210       1.0000         .10000E-03   10000.    
    12 'norm      '    .10358E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2282       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    80.133       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    22.395       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0010       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=   6100.978     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2576 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1844        13.118       -.13661E-04   -.20290E-03
   2  norm          .10000E-03    12.807       -.69624E-08** at limit **
   3  Prefactor     23.999        29.861       -.23816E-05    .14717E-03
   4  norm          .10000E-03    1.2431       -.97896E-07** at limit **
   5  Prefactor     118.46        66.741        .36040E-05    .20754E-03
   6  Prefactor     .17593E-01    13.190       -.14474E-05    .44481E-04
   7  Prefactor     .10000E-03    23.708       -.40907E-06** at limit **
   8  Prefactor     76.825        73.806       -.48535E-05   -.26208E-05
   9  Prefactor     .10000E-03    15.322       -.34545E-06** at limit **
  10  Prefactor     .10000E-03    18.407        .85966E-06** at limit **
  11  norm          9.0198        7.9330        .42053E-06   -.11761E-03
  12  norm          .10000E-03    1.8608       -.36988E-06** at limit **
  13  Prefactor     9.1686        57.938        .44252E-04    .88611E-05
  14  Prefactor     .10000E-03    6.6401       -.44129E-06** at limit **
  15  Prefactor     .10000E-03    36.453        .48536E-05** at limit **
  16  Prefactor     80.093        86.801       -.76216E-05    .71123E-05
  17  Prefactor     .10000E-03    34.959       -.42257E-05** at limit **
  18  norm          .10000E-03    .24789       -.11696E-06** at limit **
  19  norm          22.394        6.4472       -.39639E-06    .21164E-03
  20  Prefactor     .10000E-03    5.7297        .31451E-06** at limit **
  21  Normalizat    1.2358        .20548       -.91452E-06    .25775E-03
  22  Prefactor     1.0013        .18571        .11767E-05    .16586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18437
  norm       = 0.0001
  Prefactor  = 23.9989
  norm       = 0.0001
  Prefactor  = 118.458
  Prefactor  = 0.0175926
  Prefactor  = 0.0001
  Prefactor  = 76.825
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.01978
  norm       = 0.0001
  Prefactor  = 9.16863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.0925
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.3936
  Prefactor  = 0.0001
  Normalizat = 1.23581
  Prefactor  = 1.00135
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.978     FROM HESSE     STATUS=OK           346 CALLS     2922 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1844        13.587        .27816E-03   -1.5412    
   2  norm          .10000E-03    12.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.999        27.050        .81652E-04   -1.4728    
   4  norm          .10000E-03    2.5558        .13230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     118.46        66.426        .37003E-04   -1.3527    
   6  Prefactor     .17593E-01    19.220        .79680E-01   -1.5682    
   7  Prefactor     .10000E-03    24.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     76.825        73.678        .45801E-04   -1.3953    
   9  Prefactor     .10000E-03    15.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0198        7.9273        .13344E-03   -1.5107    
  12  norm          .10000E-03    4.0918        .20602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1686        56.764        .13193E-03   -1.5102    
  14  Prefactor     .10000E-03    6.6514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     80.093        86.784        .44865E-04   -1.3916    
  17  Prefactor     .10000E-03    34.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .40104        .73006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          22.394        6.2461        .84642E-04   -1.4761    
  20  Prefactor     .10000E-03    5.7925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2358        .23956        .26809E-03   -.85503    
  22  Prefactor     1.0013        .21612        .27019E-03   -.92685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4074e-10
Minuit parameter uncertainties:
  1  10.8993
  2  1.06321e-06
  3  27.0641
  4  1.55383e-05
  5  66.4682
  6  1.16005
  7  9.8162e-05
  8  73.7657
  9  8.58884e-05
  10  0.00029091
  11  7.92827
  12  7.48951e-05
  13  45.6906
  14  0.000115064
  15  5.60924e-05
  16  86.9217
  17  1.92673e-06
  18  7.45143e-06
  19  6.24626
  20  7.79237e-05
  21  0.239773
  22  0.216303
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  1.151e-04  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:  1.001e+00  2.163e-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.236e+00  2.398e-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: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15321/likelihoodResults_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.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) = 6100.97905355
delta logL = -0.00071464314351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6100.97833906
delta logL = -1.51339918375e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5183       1.0000          .0000       10.000    
     3 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0013       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=   6100.978     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10296E-03    6.4270        .18142E-01** at limit **
   2  Index         2.4275        7.6523        .50000        .24806E-04
   3  Normalizat    1.2358        .48153E-02    .26809E-03   -.51482E-04
   4  Prefactor     1.0014        .44462E-02    .27018E-03   -.50535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102963
  Index      = 2.42753
  Normalizat = 1.23581
  Prefactor  = 1.00135
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.978     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10296E-03    70.022        .20671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4275        8.6075        .50000       -.54042    
   3  Normalizat    1.2358        .16020E-01    .10723E-04   -.85503    
   4  Prefactor     1.0014        .14792E-01    .10807E-04   -.92685    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8983e-09
Minuit parameter uncertainties:
  1  0.0288412
  2  339.524
  3  0.0160202
  4  0.0147925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15321': 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) = 6100.97833838
delta logL = 5.33404090675e-07

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.030e-04  2.884e-02  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.428e+00  3.395e+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:  1.001e+00  1.479e-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.236e+00  1.602e-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/15321/cmap_HighResolution_597024001_597283201_4FGL_J2331.3-1558_daily_bin1380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-09-29 23:36:39.360194', job_id='15321', GAL2='1.00', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632983799.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1380' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:36:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 15321: <4FGL_J2331.3-1558_daily_bin1380> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1380> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 23:20:25 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:20:28 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:28 2021
Terminated at Wed Sep 29 23:36:40 2021
Results reported at Wed Sep 29 23:36:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1380 352.839 -15.9777 597024001 597283201 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 :                                   621.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             234.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            975 sec.

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

