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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1689
RA = 352.763, Dec = -21.7953
tmin = 677116801, tmax = 677376001
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='994268', job_status='RUN', time_executed='2022-06-20 01:05:59.552684', time_epoch_executed='1655712359.55' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994268/ft1_4FGL_J2331.0-2147_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994268/ft1_4FGL_J2331.0-2147_daily_bin1689.fits outfile=/scratch/kocevski/994268/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1689.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=677116801.0 tmax=677376001.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/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.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/994268/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1689.fits evtable="EVENTS" outfile="/scratch/kocevski/994268/ft1_filtered_4FGL_J2331.0-2147_daily_bin1689.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994268/ft1_filtered_4FGL_J2331.0-2147_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/994268/ltcube_677116801_677376001_4FGL_J2331.0-2147_daily_bin1689.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/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits
.....................!
real 14.89
user 14.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994268/ft1_filtered_4FGL_J2331.0-2147_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/994268/ltcube_677116801_677376001_4FGL_J2331.0-2147_daily_bin1689.fits outfile=/scratch/kocevski/994268/expmap_677116801_677376001_4FGL_J2331.0-2147_daily_bin1689.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/994268/ltcube_677116801_677376001_4FGL_J2331.0-2147_daily_bin1689.fits
.....................!
real 190.70
user 185.15
sys 4.96

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/994268/ft1_filtered_4FGL_J2331.0-2147_daily_bin1689.fits scfile=/scratch/kocevski/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits outfile=/scratch/kocevski/994268/cmap_677116801_677376001_4FGL_J2331.0-2147_daily_bin1689.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994268/ft1_filtered_4FGL_J2331.0-2147_daily_bin1689.fits scfile=/scratch/kocevski/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits outfile=/scratch/kocevski/994268/cmap_HighResolution_677116801_677376001_4FGL_J2331.0-2147_daily_bin1689.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.60
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994268/ft1_filtered_4FGL_J2331.0-2147_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994268/ft2_4FGL_J2331.0-2147_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994268/Model_4FGL_J2331.0-2147_daily_bin1689.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/994268/ft1_filtered_4FGL_J2331.0-2147_daily_bin1689.fits.....................!
real 52.32
user 50.85
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.176       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1561       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3289       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.013       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4568       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.513       1.0000         .10000E-03   10000.    
    11 'Prefactor '    110.17       1.0000         .10000E-03   10000.    
    12 'norm      '    19.638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.219       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2592       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0195       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0421       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=   6549.784     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2405 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.164        29.113       -.48110E-05   -.60631E-06
   2  norm          2.1562        2.1129       -.15908E-07    .28211E-03
   3  Prefactor     .10000E-03    112.52       -.19082E-04** at limit **
   4  norm          3.3279        3.8004       -.39385E-07   -.11296E-03
   5  Prefactor     .10000E-03    11.295       -.31866E-07** at limit **
   6  Prefactor     40.016        16.019       -.39650E-06    .38279E-04
   7  norm          1.4569        1.0547        .69730E-07   -.39651E-03
   8  Prefactor     18.519        12.535       -.57068E-06   -.14415E-05
   9  Prefactor     .10000E-03    6.3921        .10301E-05** at limit **
  10  Prefactor     23.510        24.025       -.74377E-06    .40159E-05
  11  Prefactor     110.13        61.062       -.29041E-04    .91491E-06
  12  norm          19.639        4.8938       -.58998E-06   -.54126E-04
  13  Prefactor     38.220        47.663        .11976E-05    .17178E-04
  14  Prefactor     .10000E-03    6.3555       -.11686E-05** at limit **
  15  Prefactor     .10000E-03    22.506        .18072E-05** at limit **
  16  Prefactor     .10000E-03    49.679        .46306E-04** at limit **
  17  norm          .10000E-03    .22201       -.14700E-07** at limit **
  18  norm          10.495        4.7568       -.20558E-06   -.11755E-05
  19  Prefactor     .10000E-03    42.500       -.36409E-04** at limit **
  20  Prefactor     6.2713        59.151        .21760E-04    .12053E-04
  21  Normalizat    1.0190        .19522        .32796E-05   -.42506E-04
  22  Prefactor     1.0427        .19040       -.30729E-06    .15047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.1636
  norm       = 2.1562
  Prefactor  = 0.0001
  norm       = 3.32792
  Prefactor  = 0.0001
  Prefactor  = 40.0162
  norm       = 1.45692
  Prefactor  = 18.5191
  Prefactor  = 0.0001
  Prefactor  = 23.5095
  Prefactor  = 110.132
  norm       = 19.6388
  Prefactor  = 38.2202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4947
  Prefactor  = 0.0001
  Prefactor  = 6.27132
  Normalizat = 1.01896
  Prefactor  = 1.0427
 **********
 **   18 **HESSE 
 **********

 FCN=   6549.784     FROM HESSE     STATUS=OK           350 CALLS     2755 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.164        29.120        .78300E-04   -1.4685    
   2  norm          2.1562        2.1132        .11331E-03   -1.5414    
   3  Prefactor     .10000E-03    113.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3279        3.7900        .16066E-03   -1.5343    
   5  Prefactor     .10000E-03    11.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.016        16.199        .63367E-04   -1.4442    
   7  norm          1.4569        1.0526        .53462E-04   -1.5467    
   8  Prefactor     18.519        12.539        .93067E-04   -1.4847    
   9  Prefactor     .10000E-03    6.4034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.510        24.028        .82607E-04   -1.4738    
  11  Prefactor     110.13        61.136        .19160E-03   -1.3605    
  12  norm          19.639        4.8973        .85279E-04   -1.4821    
  13  Prefactor     38.220        47.688        .64832E-04   -1.4471    
  14  Prefactor     .10000E-03    6.3582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .39172        .68655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.495        4.4240        .10539E-03   -1.5060    
  19  Prefactor     .10000E-03    42.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2713        59.262        .16045E-03   -1.5207    
  21  Normalizat    1.0190        .23310        .27118E-03   -.92398    
  22  Prefactor     1.0427        .22712        .27009E-03   -.91319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64229e-10
Minuit parameter uncertainties:
  1  29.1356
  2  2.11324
  3  4.25583e-05
  4  3.79031
  5  1.17138e-05
  6  16.201
  7  1.05263
  8  12.5408
  9  4.84381e-06
  10  24.0381
  11  61.1708
  12  4.89737
  13  47.7353
  14  1.46421e-05
  15  9.24559e-06
  16  2.81591e-05
  17  1.14392e-06
  18  4.42409
  19  2.74792e-05
  20  38.6064
  21  0.233338
  22  0.227328
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.964e+01  4.897e+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.043e+00  2.273e-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:  1.019e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.97
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.11e-07 +/- 5.25e-08
Energy Flux (Fixed Index): 7.00e-05 +/- 1.75e-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) = 6549.60301904
delta logL = 0.18126025838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6549.60225503
delta logL = 0.182024276436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.137       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2742       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0271       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=   6549.602     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.134        78.177        .21283E-02    .54323E-03
   2  alpha         2.2744        3.5780        .15033        .64354E-04
   3  Normalizat    1.0424        .24078        .60794E-01    .12467E-04
   4  Prefactor     1.0272        .18598        .61480E-01    .10592E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1343
  alpha      = 2.27436
  Normalizat = 1.0424
  Prefactor  = 1.02723
 **********
 **   18 **HESSE 
 **********

 FCN=   6549.602     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.134        6.8756        .42566E-03   -1.4767    
   2  alpha         2.2744        .26572        .63994E-02   -.90379E-01
   3  Normalizat    1.0424        .22588        .26887E-03   -.91623    
   4  Prefactor     1.0272        .22482        .27189E-03   -.91827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32811e-12
Minuit parameter uncertainties:
  1  6.87589
  2  0.266228
  3  0.226088
  4  0.225026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994268': 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) = 6549.60225464
delta logL = 0.182024665611

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.213e+01  6.876e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.274e+00  2.662e-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.027e+00  2.250e-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:  1.042e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.94
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.27 +/- 0.27
Photon Flux (Free Index): 1.91e-07 +/- 5.85e-08
Energy Flux (Free Index): 7.52e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/994268/cmap_HighResolution_677116801_677376001_4FGL_J2331.0-2147_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.11e-07', energy_flux2='7.52e-05', photon_flux_error='5.25e-08', dlogl='1.82e-01', energy_flux='7.00e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2022-06-20 01:15:41.774139', photon_index_error2='0.27', photon_index2='2.27', ts='47.97', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.02', time_epoch_completed='1655712941.77', return_code='0', job_id='994268', GAL2='1.03', EG2='1.04', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='5.85e-08', ts2='47.94', photon_index='2.43' WHERE bin_id='1689' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:15:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 994268: <4FGL_J2331.0-2147_daily_bin1689> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 01:00:42 2022
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 01:03:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 01:03:56 2022
Terminated at Mon Jun 20 01:15:42 2022
Results reported at Mon Jun 20 01:15:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1689 352.763 -21.7953 677116801 677376001 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 :                                   584.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            900 sec.

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

