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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1055
RA = 352.839, Dec = -15.9777
tmin = 512784001, tmax = 513043201
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='13805', job_status='RUN', time_executed='2021-09-29 23:17:03.817328', time_epoch_executed='1632982623.82' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13805/ft1_4FGL_J2331.3-1558_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13805/ft1_4FGL_J2331.3-1558_daily_bin1055.fits outfile=/scratch/kocevski/13805/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1055.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.38
user 4.10
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.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/13805/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/13805/ft1_filtered_4FGL_J2331.3-1558_daily_bin1055.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/13805/ft1_filtered_4FGL_J2331.3-1558_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/13805/ltcube_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.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/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.fits
.....................!
real 11.92
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13805/ft1_filtered_4FGL_J2331.3-1558_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/13805/ltcube_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.fits outfile=/scratch/kocevski/13805/expmap_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.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/13805/ltcube_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.fits
.....................!
real 190.80
user 185.86
sys 4.63

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/13805/ft1_filtered_4FGL_J2331.3-1558_daily_bin1055.fits scfile=/scratch/kocevski/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.fits outfile=/scratch/kocevski/13805/cmap_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.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/13805/ft1_filtered_4FGL_J2331.3-1558_daily_bin1055.fits scfile=/scratch/kocevski/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.fits outfile=/scratch/kocevski/13805/cmap_HighResolution_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13805/ft1_filtered_4FGL_J2331.3-1558_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/13805/ft2_4FGL_J2331.3-1558_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13805/Model_4FGL_J2331.3-1558_daily_bin1055.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/13805/ft1_filtered_4FGL_J2331.3-1558_daily_bin1055.fits.....................!
real 44.84
user 43.54
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9915       1.0000         .10000E-03   10000.    
     2 'norm      '    51.134       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.821       1.0000         .10000E-03   10000.    
     4 'norm      '    12.548       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.366       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.662       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8985       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.135       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.353       1.0000         .10000E-03   10000.    
    18 'norm      '    .59735       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1508       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70050       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=   4993.276     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2355 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9924        6.6404        .11608E-06   -.53277E-04
   2  norm          51.147        48.881       -.24421E-05   -.13755E-04
   3  Prefactor     22.029        55.893       -.34175E-05    .86041E-05
   4  norm          12.530        4.8078        .41309E-06   -.32444E-03
   5  Prefactor     .10000E-03    21.472        .22523E-07** at limit **
   6  Prefactor     15.362        11.852        .24745E-06   -.14780E-05
   7  Prefactor     7.4401        9.4791        .87477E-06   -.59044E-04
   8  Prefactor     .10000E-03    27.137       -.60852E-07** at limit **
   9  Prefactor     .10000E-03    10.417        .17920E-07** at limit **
  10  Prefactor     24.664        13.497        .34199E-06   -.34553E-04
  11  norm          5.8974        7.9523       -.60447E-07   -.18158E-03
  12  norm          3.1310        3.2007       -.26938E-06   -.24856E-03
  13  Prefactor     .10000E-03    22.828        .17648E-06** at limit **
  14  Prefactor     14.137        17.151        .84052E-06   -.42307E-04
  15  Prefactor     .10000E-03    42.664       -.59274E-06** at limit **
  16  Prefactor     .10000E-03    65.461       -.89132E-07** at limit **
  17  Prefactor     75.456        120.66        .83199E-04   -.11232E-04
  18  norm          .59736        .51340        .73171E-07   -.17788E-03
  19  norm          .10000E-03    2.7341        .66680E-07** at limit **
  20  Prefactor     .10000E-03    6.6506        .15186E-06** at limit **
  21  Normalizat    1.1506        .20588       -.51165E-05    .20902E-03
  22  Prefactor     .70061        .18117        .16145E-05   -.20835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.99239
  norm       = 51.1471
  Prefactor  = 22.0291
  norm       = 12.5298
  Prefactor  = 0.0001
  Prefactor  = 15.3623
  Prefactor  = 7.44009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.664
  norm       = 5.89744
  norm       = 3.13096
  Prefactor  = 0.0001
  Prefactor  = 14.1373
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 75.4564
  norm       = 0.597364
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15059
  Prefactor  = 0.700607
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.276     FROM HESSE     STATUS=OK           344 CALLS     2699 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9924        6.6350        .18000E-03   -1.5261    
   2  norm          51.147        48.918        .56084E-04   -1.4276    
   3  Prefactor     22.029        62.410        .85746E-04   -1.4769    
   4  norm          12.530        5.3737        .43378E-04   -1.5000    
   5  Prefactor     .10000E-03    21.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.362        11.856        .10218E-03   -1.4924    
   7  Prefactor     7.4401        9.4722        .14703E-03   -1.5162    
   8  Prefactor     .10000E-03    27.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.664        13.504        .80663E-04   -1.4714    
  11  norm          5.8974        7.9523        .16535E-03   -1.5222    
  12  norm          3.1310        3.2017        .12248E-03   -1.5354    
  13  Prefactor     .10000E-03    22.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.137        17.160        .10654E-03   -1.4956    
  15  Prefactor     .10000E-03    42.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     75.456        120.67        .23128E-03   -1.3968    
  18  norm          .59736        .49303        .44967E-03   -1.5553    
  19  norm          .10000E-03    2.7606        .11387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7535        .17787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1506        .24423        .25132E-03   -.88144    
  22  Prefactor     .70061        .21428        .28222E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17672e-09
Minuit parameter uncertainties:
  1  6.63602
  2  48.9567
  3  62.5957
  4  5.37389
  5  3.4991e-05
  6  11.8577
  7  9.47408
  8  3.27625e-05
  9  7.17919e-06
  10  13.5056
  11  7.95368
  12  3.2019
  13  1.67108e-05
  14  17.1664
  15  0.000495137
  16  8.5701e-05
  17  121.06
  18  0.493031
  19  1.18102e-05
  20  3.96658e-05
  21  0.244472
  22  0.214534
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.414e+01  1.717e+01  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:  7.006e-01  2.145e-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.151e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 352.839 -15.978
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 8.96e-06 +/- 1.09e-05

TS (Fixed Index): 1.18
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13805/likelihoodResults_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.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): 0
logL (Free Index) = 4993.02224263
delta logL = 0.25416033835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4993.00525757
delta logL = 0.271145395382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.456       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7991       1.0000          .0000       10.000    
     3 'Normalizat'    1.1748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68729       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=   4993.005     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      252 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.461        21.678        .47931E-03    .31783E-05
   2  Index         1.7993        .87073        .11754E-01   -.65714E-05
   3  Normalizat    1.1748        .23408        .24900E-03   -.43374E-05
   4  Prefactor     .68733        .21022        .28455E-03    .53017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4608
  Index      = 1.79933
  Normalizat = 1.17476
  Prefactor  = 0.687328
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.005     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.461        21.916        .19172E-04   -1.4872    
   2  Index         1.7993        .88030        .47015E-03   -.69467    
   3  Normalizat    1.1748        .23427        .99601E-05   -.87386    
   4  Prefactor     .68733        .21040        .11382E-04   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19995e-11
Minuit parameter uncertainties:
  1  21.9265
  2  0.88819
  3  0.23448
  4  0.210647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13805': 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): 0
logL (Free Index) = 4993.00525745
delta logL = 0.271145514824

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.746e+01  2.193e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  1.799e+00  8.882e-01  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:  6.873e-01  2.106e-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.175e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 352.839 -15.978
Photon Index (Free Index): 1.80 +/- 0.89
Photon Flux (Free Index): 1.38e-08 +/- 2.50e-08
Energy Flux (Free Index): 1.66e-05 +/- 2.93e-05

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/13805/cmap_HighResolution_512784001_513043201_4FGL_J2331.3-1558_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='1.66e-05', photon_flux_error='3.92e-08', dlogl='2.71e-01', energy_flux='8.96e-06', photon_flux2='1.38e-08', job_status='DONE', time_completed='2021-09-29 23:26:24.446630', photon_index_error2='0.89', photon_index2='1.80', ts='1.18', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='2.93e-05', EG='1.15', time_epoch_completed='1632983184.45', return_code='0', job_id='13805', GAL2='0.69', EG2='1.17', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='2.50e-08', ts2='1.72', photon_index='2.54' WHERE bin_id='1055' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:26:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 13805: <4FGL_J2331.3-1558_daily_bin1055> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1055> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:15:20 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:15:21 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:15:21 2021
Terminated at Wed Sep 29 23:26:25 2021
Results reported at Wed Sep 29 23:26:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1055 352.839 -15.9777 512784001 513043201 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 :                                   549.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

