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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin675
RA = 352.763, Dec = -21.7953
tmin = 414288001, tmax = 414547201
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='5958', job_status='RUN', time_executed='2021-09-29 22:53:00.254294', time_epoch_executed='1632981180.25' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5958/ft1_4FGL_J2331.0-2147_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5958/ft2_4FGL_J2331.0-2147_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5958/ft1_4FGL_J2331.0-2147_daily_bin675.fits outfile=/scratch/kocevski/5958/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin675.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=414288001.0 tmax=414547201.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 5.51
user 5.26
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5958/ft1_filtered_4FGL_J2331.0-2147_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/5958/ft2_4FGL_J2331.0-2147_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/5958/ltcube_414288001_414547201_4FGL_J2331.0-2147_daily_bin675.fits outfile=/scratch/kocevski/5958/expmap_414288001_414547201_4FGL_J2331.0-2147_daily_bin675.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/5958/ltcube_414288001_414547201_4FGL_J2331.0-2147_daily_bin675.fits
.....................!
real 190.13
user 185.45
sys 4.33

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/5958/ft1_filtered_4FGL_J2331.0-2147_daily_bin675.fits scfile=/scratch/kocevski/5958/ft2_4FGL_J2331.0-2147_daily_bin675.fits outfile=/scratch/kocevski/5958/cmap_414288001_414547201_4FGL_J2331.0-2147_daily_bin675.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5958/ft1_filtered_4FGL_J2331.0-2147_daily_bin675.fits scfile=/scratch/kocevski/5958/ft2_4FGL_J2331.0-2147_daily_bin675.fits outfile=/scratch/kocevski/5958/cmap_HighResolution_414288001_414547201_4FGL_J2331.0-2147_daily_bin675.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.014       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15101E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18280E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    79.024       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.190       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2155       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.865       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .48933       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1644       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=   2448.883     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2402 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.010        43.327       -.25203E-05    .38297E-05
   2  norm          4.0845        3.8695        .16288E-06    .81119E-04
   3  Prefactor     .10000E-03    257.02       -.19124E-04** at limit **
   4  norm          .10000E-03    4.9048        .57108E-07** at limit **
   5  Prefactor     13.121        27.312       -.13905E-05   -.18070E-03
   6  Prefactor     .10000E-03    35.341        .32447E-05** at limit **
   7  norm          .10000E-03    .53610        .28998E-06** at limit **
   8  Prefactor     18.645        23.357        .57628E-05   -.81582E-05
   9  Prefactor     21.832        25.809       -.35295E-05   -.18531E-03
  10  Prefactor     .10000E-03    25.779       -.43908E-06** at limit **
  11  Prefactor     79.010        78.621       -.11847E-04   -.10956E-05
  12  norm          .10000E-03    2.4256        .44642E-07** at limit **
  13  Prefactor     24.122        136.38       -.45366E-04   -.56263E-05
  14  Prefactor     16.182        40.713        .21597E-04    .22545E-04
  15  Prefactor     .10000E-03    60.333       -.36560E-04** at limit **
  16  Prefactor     .10000E-03    64.771        .40048E-04** at limit **
  17  norm          1.2155        .84548       -.88269E-07   -.60995E-04
  18  norm          .10000E-03    4.6278       -.60162E-07** at limit **
  19  Prefactor     49.554        49.476       -.55464E-05    .46810E-05
  20  Prefactor     21.849        70.060       -.21967E-04    .17793E-05
  21  Normalizat    .48919        .25420        .36034E-05   -.35584E-03
  22  Prefactor     1.1646        .25755        .85199E-07    .56979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 38.0105
  norm       = 4.08452
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.121
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 18.6448
  Prefactor  = 21.8319
  Prefactor  = 0.0001
  Prefactor  = 79.01
  norm       = 0.0001
  Prefactor  = 24.1219
  Prefactor  = 16.182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21547
  norm       = 0.0001
  Prefactor  = 49.5539
  Prefactor  = 21.8488
  Normalizat = 0.489185
  Prefactor  = 1.16455
 **********
 **   18 **HESSE 
 **********

 FCN=   2448.883     FROM HESSE     STATUS=OK           342 CALLS     2744 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.010        43.310        .65006E-04   -1.4474    
   2  norm          4.0845        3.8663        .91273E-04   -1.5304    
   3  Prefactor     .10000E-03    258.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.9364        .10685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.121        26.690        .11049E-03   -1.4983    
   6  Prefactor     .10000E-03    35.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .58083        .66971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.645        23.375        .92732E-04   -1.4844    
   9  Prefactor     21.832        25.690        .85696E-04   -1.4773    
  10  Prefactor     .10000E-03    25.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     79.010        78.422        .45176E-04   -1.3928    
  12  norm          .10000E-03    2.4584        .75242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.122        134.04        .81508E-04   -1.4725    
  14  Prefactor     16.182        40.458        .99540E-04   -1.4903    
  15  Prefactor     .10000E-03    60.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    64.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2155        .83617        .36060E-04   -1.5487    
  18  norm          .10000E-03    4.6654        .10367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.554        49.435        .56960E-04   -1.4299    
  20  Prefactor     21.849        69.895        .85660E-04   -1.4773    
  21  Normalizat    .48919        .28450        .14913E-02   -1.1292    
  22  Prefactor     1.1646        .29222        .20931E-03   -.87429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42078e-09
Minuit parameter uncertainties:
  1  43.346
  2  3.86654
  3  0.000385065
  4  2.15392e-05
  5  26.7142
  6  0.000789021
  7  2.55858e-05
  8  23.3867
  9  25.7032
  10  3.42761e-05
  11  78.525
  12  8.06353e-06
  13  114.118
  14  40.5267
  15  0.000214609
  16  4.25715e-05
  17  0.836174
  18  5.29368e-06
  19  49.4762
  20  70.1587
  21  0.285346
  22  0.292629
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  8.064e-06  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.165e+00  2.926e-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:  4.892e-01  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/5958/likelihoodResults_414288001_414547201_4FGL_J2331.0-2147_daily_bin675.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): 102
logL (Free Index) = 2448.88465433
delta logL = -0.00190202066642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2448.88275316
delta logL = -8.52601715451e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10597E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4089       1.0000          .0000       5.0000    
     3 'Normalizat'    .48933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1644       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=   2448.883     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      235 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    194.97        .77114E-02** at limit **
   2  alpha         1.7904        3.1331        .16474        .29328E-08
   3  Normalizat    .48920        .46824E-01    .29825E-03    .17298E-03
   4  Prefactor     1.1645        .49498E-01    .20931E-03    .35099E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.79038
  Normalizat = 0.489197
  Prefactor  = 1.16454
 **********
 **   18 **HESSE 
 **********

 FCN=   2448.883     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5472        .90656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7904        3.1582        .65898E-02   -.28780    
   3  Normalizat    .48920        .26953        .11930E-04   -1.1292    
   4  Prefactor     1.1645        .28522        .41862E-04   -.87429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76393e-10
Minuit parameter uncertainties:
  1  2.87458e-05
  2  185.319
  3  0.270251
  4  0.285592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5958': 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) = 2448.88274608
delta logL = 6.22404513706e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.875e-05  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.790e+00  1.853e+02  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.165e+00  2.856e-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:  4.892e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

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/5958/cmap_HighResolution_414288001_414547201_4FGL_J2331.0-2147_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-29 23:00:16.241650', job_id='5958', GAL2='1.16', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1632981616.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='6.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='675' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:00:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 5958: <4FGL_J2331.0-2147_daily_bin675> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin675> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 22:50:34 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:50:36 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:50:36 2021
Terminated at Wed Sep 29 23:00:16 2021
Results reported at Wed Sep 29 23:00:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin675 352.763 -21.7953 414288001 414547201 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 :                                   433.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   580 sec.
    Turnaround time :                            582 sec.

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

