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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1566
RA = 352.763, Dec = -21.7953
tmin = 645235201, tmax = 645494401
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='9258', job_status='RUN', time_executed='2021-09-29 23:03:02.152884', time_epoch_executed='1632981782.15' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9258/ft1_4FGL_J2331.0-2147_daily_bin1566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9258/ft1_4FGL_J2331.0-2147_daily_bin1566.fits outfile=/scratch/kocevski/9258/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1566.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=645235201.0 tmax=645494401.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.77
user 2.55
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.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/9258/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1566.fits evtable="EVENTS" outfile="/scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits" evtable="EVENTS" scfile=/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits sctable="SC_DATA" outfile=/scratch/kocevski/9258/ltcube_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.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/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits
.....................!
real 12.64
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits sctable="SC_DATA" expcube=/scratch/kocevski/9258/ltcube_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.fits outfile=/scratch/kocevski/9258/expmap_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.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/9258/ltcube_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.fits
.....................!
real 190.80
user 185.31
sys 4.99

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

Setting source of interest to:
4FGL J2331.0-2147 @ 352.763 -21.7953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits scfile=/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits outfile=/scratch/kocevski/9258/cmap_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.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.763 yref=-21.7953 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits scfile=/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits outfile=/scratch/kocevski/9258/cmap_HighResolution_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.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.763 yref=-21.7953 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9258/Model_4FGL_J2331.0-2147_daily_bin1566.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/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits.....................!
real 44.63
user 43.31
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits', '/scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits', expMap='/scratch/kocevski/9258/expmap_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.fits', expCube='/scratch/kocevski/9258/ltcube_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/9258/Model_4FGL_J2331.0-2147_daily_bin1566.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.0-2147'

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.017e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/9258/ft1_filtered_4FGL_J2331.0-2147_daily_bin1566.fits
Spacecraft file(s): /scratch/kocevski/9258/ft2_4FGL_J2331.0-2147_daily_bin1566.fits
Exposure map: /scratch/kocevski/9258/expmap_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.fits
Exposure cube: /scratch/kocevski/9258/ltcube_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/9258/Model_4FGL_J2331.0-2147_daily_bin1566.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) = 5388.34007338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.348       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1714       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.744       1.0000         .10000E-03   10000.    
     7 'norm      '    .17870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3412       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6449       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.955       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.511       1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.119       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12041E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98074       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85612       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5388.294     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2397 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.653        .10810E-05** at limit **
   2  norm          .10000E-03    2.0655       -.65152E-06** at limit **
   3  Prefactor     66.319        52.734       -.31521E-05   -.37217E-03
   4  norm          .10000E-03    2.9080       -.74747E-08** at limit **
   5  Prefactor     3.1704        11.418        .14189E-05    .11919E-04
   6  Prefactor     14.745        12.891       -.19600E-05   -.22247E-03
   7  norm          .17867        .45940        .12101E-05   -.21784E-02
   8  Prefactor     .42817        5.2336       -.14511E-05    .24333E-03
   9  Prefactor     9.3395        12.755        .86151E-06    .17041E-03
  10  Prefactor     .10000E-03    14.561       -.63863E-06** at limit **
  11  Prefactor     .10000E-03    17.095        .22257E-06** at limit **
  12  norm          3.6448        3.1980        .34896E-07   -.45215E-04
  13  Prefactor     13.192        31.168       -.46634E-06   -.16448E-04
  14  Prefactor     .10000E-03    5.7186       -.13081E-07** at limit **
  15  Prefactor     .10000E-03    10.745       -.78404E-06** at limit **
  16  Prefactor     81.932        65.681       -.39060E-05   -.30309E-03
  17  norm          .10000E-03    .20872       -.11731E-07** at limit **
  18  norm          13.513        4.9471       -.25521E-07    .26562E-04
  19  Prefactor     68.124        57.194        .11163E-05    .10049E-03
  20  Prefactor     .10000E-03    265.57        .85778E-06** at limit **
  21  Normalizat    .98073        .17826        .78115E-06   -.50864E-05
  22  Prefactor     .85615        .17273       -.57248E-06    .71118E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 66.3187
  norm       = 0.0001
  Prefactor  = 3.17036
  Prefactor  = 14.745
  norm       = 0.178671
  Prefactor  = 0.428169
  Prefactor  = 9.33953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.64481
  Prefactor  = 13.1925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.932
  norm       = 0.0001
  norm       = 13.5128
  Prefactor  = 68.1244
  Prefactor  = 0.0001
  Normalizat = 0.980733
  Prefactor  = 0.856146
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.294     FROM HESSE     STATUS=OK           344 CALLS     2741 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0818        .20325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     66.319        54.742        .49273E-04   -1.4077    
   4  norm          .10000E-03    2.9359        .12182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1704        11.339        .22757E-03   -1.5352    
   6  Prefactor     14.745        12.928        .10431E-03   -1.4940    
   7  norm          .17867        .48975        .19760E-03   -1.5623    
   8  Prefactor     .42817        12.203        .31781E-02   -1.5577    
   9  Prefactor     9.3395        12.811        .13113E-03   -1.5097    
  10  Prefactor     .10000E-03    14.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6448        3.1933        .11726E-03   -1.5326    
  13  Prefactor     13.192        31.180        .11028E-03   -1.4981    
  14  Prefactor     .10000E-03    5.7259        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     81.932        68.005        .22184E-03   -1.3895    
  17  norm          .10000E-03    .25935        .61802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.513        4.6939        .89350E-04   -1.4973    
  19  Prefactor     68.124        57.477        .48632E-04   -1.4055    
  20  Prefactor     .10000E-03    268.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98073        .20927        .23260E-03   -.93679    
  22  Prefactor     .85615        .20259        .24650E-03   -.97691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70383e-09
Minuit parameter uncertainties:
  1  0.00016542
  2  4.57829e-05
  3  54.7841
  4  1.55629e-05
  5  11.347
  6  12.9302
  7  0.489762
  8  4.57213
  9  12.8151
  10  0.000109988
  11  3.8969e-05
  12  3.19341
  13  31.2183
  14  2.44132e-06
  15  0.000113997
  16  68.0698
  17  3.07773e-07
  18  4.694
  19  57.5237
  20  0.000356542
  21  0.209444
  22  0.202764
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.645e+00  3.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.561e-01  2.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.807e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.14e-05

TS (Fixed Index): 2.07
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9258/likelihoodResults_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.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) = 5388.29052643
delta logL = 0.00356831122281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5388.28760754
delta logL = 0.00648720727622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3390       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5432       1.0000          .0000       5.0000    
     3 'Normalizat'    .97640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85911       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5388.288     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      206 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3437        75.287        .55374E-02    .32713E-03
   2  alpha         2.5410        3.3596        .30319        .43468E-04
   3  Normalizat    .97616        .70554E-01    .45871E-01    .10263E-04
   4  Prefactor     .85950        .59930E-01    .44482E-01    .12324E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.3437
  alpha      = 2.54098
  Normalizat = 0.976162
  Prefactor  = 0.859505
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.288     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3437        4.5023        .11086E-03   -1.5342    
   2  alpha         2.5410        1.0424        .15404E-01    .16393E-01
   3  Normalizat    .97616        .20492        .23307E-03   -.93833    
   4  Prefactor     .85950        .20265        .24608E-03   -.97571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5184e-12
Minuit parameter uncertainties:
  1  4.5028
  2  1.07521
  3  0.205082
  4  0.202827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9258': 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) = 5388.287602
delta logL = 0.00649274422358

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.344e+00  4.503e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.541e+00  1.075e+00  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.595e-01  2.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.762e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.54 +/- 1.08
Photon Flux (Free Index): 4.18e-08 +/- 4.24e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.19e-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/9258/cmap_HighResolution_645235201_645494401_4FGL_J2331.0-2147_daily_bin1566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='1.26e-05', photon_flux_error='3.42e-08', dlogl='6.49e-03', energy_flux='1.30e-05', photon_flux2='4.18e-08', job_status='DONE', time_completed='2021-09-29 23:12:25.381194', photon_index_error2='1.08', photon_index2='2.54', ts='2.07', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.19e-05', EG='0.98', time_epoch_completed='1632982345.38', return_code='0', job_id='9258', GAL2='0.86', EG2='0.98', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.24e-08', ts2='2.08', photon_index='2.43' WHERE bin_id='1566' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 9258: <4FGL_J2331.0-2147_daily_bin1566> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1566> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:30 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:33 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:00:33 2021
Terminated at Wed Sep 29 23:12:25 2021
Results reported at Wed Sep 29 23:12:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1566 352.763 -21.7953 645235201 645494401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.0-2147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            715 sec.

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

