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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1083
RA = 352.763, Dec = -21.7953
tmin = 520041601, tmax = 520300801
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='7601', job_status='RUN', time_executed='2021-09-29 22:57:40.986275', time_epoch_executed='1632981460.99' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7601

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7601/ft1_4FGL_J2331.0-2147_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7601/ft2_4FGL_J2331.0-2147_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7601/ft1_4FGL_J2331.0-2147_daily_bin1083.fits outfile=/scratch/kocevski/7601/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1083.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=520041601.0 tmax=520300801.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.34
user 4.05
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7601/ft1_filtered_4FGL_J2331.0-2147_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/7601/ft2_4FGL_J2331.0-2147_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/7601/ltcube_520041601_520300801_4FGL_J2331.0-2147_daily_bin1083.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/7601/ft2_4FGL_J2331.0-2147_daily_bin1083.fits
.....................!
real 12.23
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7601/ft1_filtered_4FGL_J2331.0-2147_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/7601/ft2_4FGL_J2331.0-2147_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/7601/ltcube_520041601_520300801_4FGL_J2331.0-2147_daily_bin1083.fits outfile=/scratch/kocevski/7601/expmap_520041601_520300801_4FGL_J2331.0-2147_daily_bin1083.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/7601/ltcube_520041601_520300801_4FGL_J2331.0-2147_daily_bin1083.fits
.....................!
real 191.00
user 185.52
sys 5.07

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/7601/ft1_filtered_4FGL_J2331.0-2147_daily_bin1083.fits scfile=/scratch/kocevski/7601/ft2_4FGL_J2331.0-2147_daily_bin1083.fits outfile=/scratch/kocevski/7601/cmap_520041601_520300801_4FGL_J2331.0-2147_daily_bin1083.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7601/ft1_filtered_4FGL_J2331.0-2147_daily_bin1083.fits scfile=/scratch/kocevski/7601/ft2_4FGL_J2331.0-2147_daily_bin1083.fits outfile=/scratch/kocevski/7601/cmap_HighResolution_520041601_520300801_4FGL_J2331.0-2147_daily_bin1083.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7601/ft1_filtered_4FGL_J2331.0-2147_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/7601/ft2_4FGL_J2331.0-2147_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7601/Model_4FGL_J2331.0-2147_daily_bin1083.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/7601/ft1_filtered_4FGL_J2331.0-2147_daily_bin1083.fits.....................!
real 50.91
user 49.55
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83826       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13875E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.125       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4050       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.565       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8486       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73784       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0507       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=   6536.118     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2090 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80755        64.755        .73038E-05   -.89872E-04
   2  norm          .10000E-03    1.1721        .91488E-07** at limit **
   3  Prefactor     .10000E-03    50.858       -.27244E-05** at limit **
   4  norm          11.577        5.3773       -.33570E-07   -.17634E-03
   5  Prefactor     .10001E-03    21.167        .54740E-05** at limit **
   6  Prefactor     11.123        10.158       -.80379E-06   -.20249E-03
   7  norm          1.0521        .65151       -.37357E-07   -.65553E-03
   8  Prefactor     6.5555        5.7612       -.56760E-07   -.64105E-05
   9  Prefactor     .10000E-03    2.5258        .17779E-06** at limit **
  10  Prefactor     .10000E-03    11.899       -.19699E-08** at limit **
  11  Prefactor     .10000E-03    15.710       -.37862E-06** at limit **
  12  norm          7.4049        3.7908       -.65101E-07   -.87066E-05
  13  Prefactor     .10000E-03    147.48        .19374E-05** at limit **
  14  Prefactor     .10000E-03    19.719        .81251E-06** at limit **
  15  Prefactor     12.563        23.592       -.25284E-07   -.86447E-05
  16  Prefactor     .10000E-03    38.090        .43766E-05** at limit **
  17  norm          5.8486        .92502        .74638E-08   -.52111E-03
  18  norm          .10000E-03    1.1570       -.36345E-07** at limit **
  19  Prefactor     18.892        39.438        .49709E-06   -.79989E-05
  20  Prefactor     .10000E-03    47.978       -.69888E-06** at limit **
  21  Normalizat    .73780        .16784        .24219E-06   -.15913E-03
  22  Prefactor     1.0508        .16827        .55968E-07   -.15572E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.807549
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.5773
  Prefactor  = 0.000100006
  Prefactor  = 11.1232
  norm       = 1.0521
  Prefactor  = 6.55552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.40493
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.563
  Prefactor  = 0.000100001
  norm       = 5.84864
  norm       = 0.0001
  Prefactor  = 18.8919
  Prefactor  = 0.0001
  Normalizat = 0.737799
  Prefactor  = 1.05076
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.118     FROM HESSE     STATUS=OK           346 CALLS     2436 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80755        169.47        .78429E-02   -1.5528    
   2  norm          .10000E-03    2.9580        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.577        5.3684        .11483E-03   -1.5027    
   5  Prefactor     .10001E-03    26.184        .38323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.123        10.206        .12011E-03   -1.5041    
   7  norm          1.0521        .65236        .42368E-04   -1.5503    
   8  Prefactor     6.5555        5.7646        .15674E-03   -1.5196    
   9  Prefactor     .10000E-03    2.5343        .12558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4049        3.7859        .10399E-03   -1.5164    
  13  Prefactor     .10000E-03    148.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.563        23.579        .11300E-03   -1.4999    
  16  Prefactor     .10000E-03    37.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8486        .92555        .29706E-04   -1.5224    
  18  norm          .10000E-03    1.1596        .84893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.892        39.480        .92136E-04   -1.4838    
  20  Prefactor     .10000E-03    48.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73780        .19870        .27091E-03   -1.0242    
  22  Prefactor     1.0508        .19970        .23629E-03   -.91056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79747e-10
Minuit parameter uncertainties:
  1  23.4629
  2  2.13779e-05
  3  0.00032155
  4  5.3686
  5  0.000763033
  6  10.2081
  7  0.652363
  8  5.76507
  9  6.17914e-06
  10  4.88441e-06
  11  1.66256e-05
  12  3.78607
  13  0.000558203
  14  8.05693e-05
  15  23.5963
  16  0.00032433
  17  0.925549
  18  3.15684e-07
  19  39.5341
  20  1.9189e-05
  21  0.198897
  22  0.199845
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.405e+00  3.786e+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:  1.051e+00  1.998e-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:  7.378e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.07
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.94e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.35e-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) = 6536.06034286
delta logL = 0.0573607659053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6536.05525969
delta logL = 0.0624439426174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3793       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6345       1.0000          .0000       5.0000    
     3 'Normalizat'    .71973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0635       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=   6536.055     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      288 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3797        4.7856        .92187E-04   -.79370E-03
   2  alpha         2.6343        .61707        .99616E-02   -.79709E-04
   3  Normalizat    .71986        .20060        .27389E-03    .14939E-03
   4  Prefactor     1.0633        .20181        .23504E-03    .39174E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.37973
  alpha      = 2.63431
  Normalizat = 0.719862
  Prefactor  = 1.06333
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.055     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3797        4.4559        .36875E-05   -1.5203    
   2  alpha         2.6343        .57448        .39846E-03    .53751E-01
   3  Normalizat    .71986        .19987        .10956E-04   -1.0311    
   4  Prefactor     1.0633        .20134        .47007E-04   -.90647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51031e-10
Minuit parameter uncertainties:
  1  4.45616
  2  0.579674
  3  0.200075
  4  0.201487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7601': 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) = 6536.05525914
delta logL = 0.0624444918794

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.380e+00  4.456e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.634e+00  5.797e-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:  1.063e+00  2.015e-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:  7.199e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.15
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.63 +/- 0.58
Photon Flux (Free Index): 9.16e-08 +/- 5.45e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.24e-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/7601/cmap_HighResolution_520041601_520300801_4FGL_J2331.0-2147_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.94e-08', energy_flux2='2.56e-05', photon_flux_error='4.06e-08', dlogl='6.24e-02', energy_flux='2.64e-05', photon_flux2='9.16e-08', job_status='DONE', time_completed='2021-09-29 23:07:27.634823', photon_index_error2='0.58', photon_index2='2.63', ts='8.07', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.74', time_epoch_completed='1632982047.63', return_code='0', job_id='7601', GAL2='1.06', EG2='0.72', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.45e-08', ts2='8.15', photon_index='2.43' WHERE bin_id='1083' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:07:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 7601: <4FGL_J2331.0-2147_daily_bin1083> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1083> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:55:46 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:55:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:55:48 2021
Terminated at Wed Sep 29 23:07:28 2021
Results reported at Wed Sep 29 23:07:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1083 352.763 -21.7953 520041601 520300801 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 :                                   554.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

