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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1618
RA = 352.763, Dec = -21.7953
tmin = 658713601, tmax = 658972801
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='502697', job_status='RUN', time_executed='2021-12-08 09:37:36.049827', time_epoch_executed='1638985056.05' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502697/ft1_4FGL_J2331.0-2147_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502697/ft1_4FGL_J2331.0-2147_daily_bin1618.fits outfile=/scratch/kocevski/502697/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1618.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=658713601.0 tmax=658972801.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.03
user 2.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.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/502697/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/502697/ltcube_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.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/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits
.....................!
real 15.41
user 15.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/502697/ltcube_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.fits outfile=/scratch/kocevski/502697/expmap_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.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/502697/ltcube_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.fits
.....................!
real 191.00
user 186.26
sys 4.30

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/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits scfile=/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits outfile=/scratch/kocevski/502697/cmap_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits scfile=/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits outfile=/scratch/kocevski/502697/cmap_HighResolution_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/502697/Model_4FGL_J2331.0-2147_daily_bin1618.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/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits.....................!
real 61.33
user 59.91
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits', '/scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits', expMap='/scratch/kocevski/502697/expmap_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.fits', expCube='/scratch/kocevski/502697/ltcube_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/502697/Model_4FGL_J2331.0-2147_daily_bin1618.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/502697/ft1_filtered_4FGL_J2331.0-2147_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/502697/ft2_4FGL_J2331.0-2147_daily_bin1618.fits
Exposure map: /scratch/kocevski/502697/expmap_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.fits
Exposure cube: /scratch/kocevski/502697/ltcube_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/502697/Model_4FGL_J2331.0-2147_daily_bin1618.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) = 8438.38439226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.104       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6459       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7653       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.9560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.932       1.0000         .10000E-03   10000.    
    17 'norm      '    .33459       1.0000         .10000E-03   10000.    
    18 'norm      '    33.327       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98757       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87196       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=   8438.382     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2330 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.104        19.286       -.12546E-06   -.25967E-04
   2  norm          3.3753        1.8684       -.40828E-07    .39455E-03
   3  Prefactor     .10001E-03    29.195       -.62215E-05** at limit **
   4  norm          5.9004        4.1138        .38725E-06    .87044E-03
   5  Prefactor     .10000E-03    13.345       -.30726E-05** at limit **
   6  Prefactor     5.6440        8.6270       -.13174E-05    .48456E-03
   7  norm          .10000E-03    .24407       -.18807E-06** at limit **
   8  Prefactor     .10000E-03    3.1427        .48263E-07** at limit **
   9  Prefactor     6.7638        8.4338        .31060E-05   -.85553E-03
  10  Prefactor     .10000E-03    7.1961       -.24881E-06** at limit **
  11  Prefactor     .10000E-03    23.673        .41611E-05** at limit **
  12  norm          6.9562        3.1836        .10476E-06   -.11152E-04
  13  Prefactor     .10000E-03    11.560        .23699E-05** at limit **
  14  Prefactor     .10000E-03    5.9829        .12093E-06** at limit **
  15  Prefactor     11.412        25.145       -.11754E-05   -.83782E-04
  16  Prefactor     42.929        55.080       -.14132E-05   -.75074E-04
  17  norm          .33442        .43506        .29006E-07   -.15680E-03
  18  norm          33.329        6.2536       -.17842E-07   -.66361E-04
  19  Prefactor     .10000E-03    16.663       -.21270E-05** at limit **
  20  Prefactor     .10001E-03    22.931        .43454E-05** at limit **
  21  Normalizat    .98759        .14732        .13186E-06    .10668E-03
  22  Prefactor     .87195        .14360       -.36443E-06    .14546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.1035
  norm       = 3.37528
  Prefactor  = 0.000100011
  norm       = 5.90044
  Prefactor  = 0.000100003
  Prefactor  = 5.64398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.76378
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 6.95625
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.4124
  Prefactor  = 42.9288
  norm       = 0.334421
  norm       = 33.3291
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Normalizat = 0.987589
  Prefactor  = 0.871952
 **********
 **   18 **HESSE 
 **********

 FCN=   8438.382     FROM HESSE     STATUS=OK           346 CALLS     2676 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.104        19.290        .94131E-04   -1.4857    
   2  norm          3.3753        1.8687        .90507E-04   -1.5341    
   3  Prefactor     .10001E-03    30.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9004        4.0968        .13222E-03   -1.5222    
   5  Prefactor     .10000E-03    13.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6440        8.4537        .16906E-03   -1.5233    
   7  norm          .10000E-03    .37284        .81096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1569        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7638        9.8758        .77131E-03   -1.5188    
  10  Prefactor     .10000E-03    7.2071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.9562        3.1753        .10080E-03   -1.5180    
  13  Prefactor     .10000E-03    11.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.412        25.196        .11858E-03   -1.5032    
  16  Prefactor     42.929        55.228        .61183E-04   -1.4397    
  17  norm          .33442        .39179        .59740E-03   -1.5592    
  18  norm          33.329        5.9899        .69412E-04   -1.4553    
  19  Prefactor     .10000E-03    16.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    23.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98759        .17372        .23871E-03   -.93447    
  22  Prefactor     .87195        .16880        .25230E-03   -.97128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46084e-09
Minuit parameter uncertainties:
  1  19.2963
  2  1.86869
  3  0.00114728
  4  4.09701
  5  0.000399294
  6  8.45552
  7  3.76599e-06
  8  2.19066e-06
  9  9.87817
  10  2.3303e-05
  11  0.000665876
  12  3.17533
  13  0.00027134
  14  7.20192e-06
  15  25.2199
  16  55.2943
  17  0.391797
  18  5.98999
  19  0.000292564
  20  0.000705305
  21  0.173821
  22  0.168898
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.956e+00  3.175e+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.720e-01  1.689e-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.876e-01  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.20
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.13e-05

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) = 8438.38115752
delta logL = 0.000847162473292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8438.38047626
delta logL = 0.00152842455282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0917       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4057       1.0000          .0000       5.0000    
     3 'Normalizat'    .98969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87046       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8438.380     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      233 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0913        4.0879        .10223E-03    .19227E-02
   2  alpha         2.4058        .50961        .10853E-01    .16393E-03
   3  Normalizat    .98969        .17115        .23850E-03   -.19325E-03
   4  Prefactor     .87045        .16897        .25249E-03   -.42188E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.09131
  alpha      = 2.40575
  Normalizat = 0.989693
  Prefactor  = 0.870453
 **********
 **   18 **HESSE 
 **********

 FCN=   8438.380     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0913        3.9212        .40894E-05   -1.5175    
   2  alpha         2.4058        .48856        .43413E-03   -.37708E-01
   3  Normalizat    .98969        .17092        .95399E-05   -.93377    
   4  Prefactor     .87045        .16885        .50498E-04   -.97181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56009e-10
Minuit parameter uncertainties:
  1  3.92135
  2  0.491729
  3  0.17101
  4  0.168948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502697': 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) = 8438.38047624
delta logL = 0.0015284461897

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.091e+00  3.921e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.406e+00  4.917e-01  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.705e-01  1.689e-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.897e-01  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.16
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.41 +/- 0.49
Photon Flux (Free Index): 7.32e-08 +/- 4.07e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.15e-05

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/502697/cmap_HighResolution_658713601_658972801_4FGL_J2331.0-2147_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='2.50e-05', photon_flux_error='3.40e-08', dlogl='1.53e-03', energy_flux='2.48e-05', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-12-08 09:48:14.012411', photon_index_error2='0.49', photon_index2='2.41', ts='9.20', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='0.99', time_epoch_completed='1638985694.01', return_code='0', job_id='502697', GAL2='0.87', EG2='0.99', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.07e-08', ts2='9.16', photon_index='2.43' WHERE bin_id='1618' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:48:14 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 502697: <4FGL_J2331.0-2147_daily_bin1618> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1618> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:35:21 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:36:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:36:02 2021
Terminated at Wed Dec  8 09:48:14 2021
Results reported at Wed Dec  8 09:48:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1618 352.763 -21.7953 658713601 658972801 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 :                                   637.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            773 sec.

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

