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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1249
RA = 352.763, Dec = -21.7953
tmin = 563068801, tmax = 563328001
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='7869', job_status='RUN', time_executed='2021-09-29 22:56:50.326850', time_epoch_executed='1632981410.33' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7869/ft1_4FGL_J2331.0-2147_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7869/ft2_4FGL_J2331.0-2147_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7869/ft1_4FGL_J2331.0-2147_daily_bin1249.fits outfile=/scratch/kocevski/7869/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1249.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=563068801.0 tmax=563328001.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.53
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7869/ft1_filtered_4FGL_J2331.0-2147_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/7869/ft2_4FGL_J2331.0-2147_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/7869/ltcube_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.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/7869/ft2_4FGL_J2331.0-2147_daily_bin1249.fits
.....................!
real 11.85
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7869/ft1_filtered_4FGL_J2331.0-2147_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/7869/ft2_4FGL_J2331.0-2147_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/7869/ltcube_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.fits outfile=/scratch/kocevski/7869/expmap_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.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/7869/ltcube_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.fits
.....................!
real 188.88
user 184.78
sys 3.79

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/7869/ft1_filtered_4FGL_J2331.0-2147_daily_bin1249.fits scfile=/scratch/kocevski/7869/ft2_4FGL_J2331.0-2147_daily_bin1249.fits outfile=/scratch/kocevski/7869/cmap_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7869/ft1_filtered_4FGL_J2331.0-2147_daily_bin1249.fits scfile=/scratch/kocevski/7869/ft2_4FGL_J2331.0-2147_daily_bin1249.fits outfile=/scratch/kocevski/7869/cmap_HighResolution_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/7869/ft1_filtered_4FGL_J2331.0-2147_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/7869/ft2_4FGL_J2331.0-2147_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7869/Model_4FGL_J2331.0-2147_daily_bin1249.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/7869/ft1_filtered_4FGL_J2331.0-2147_daily_bin1249.fits.....................!
real 50.96
user 49.62
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.076       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.260       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5571       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.907       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16856E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .98092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6047       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49970E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5959       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11680E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34383E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12930       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19717E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19225E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3193       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62860       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=   6589.910     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2099 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.491        23.323        .38810E-06    .17831E-04
   2  norm          1.0981        2.2412        .10421E-05    .21914E-03
   3  Prefactor     41.225        46.622       -.25715E-05   -.58169E-04
   4  norm          6.5643        4.1757       -.44845E-06   -.74716E-03
   5  Prefactor     16.859        13.124       -.33810E-06   -.56419E-03
   6  Prefactor     .10005E-03    6.9222        .38015E-05** at limit **
   7  norm          .98099        .54938       -.42660E-06   -.29454E-02
   8  Prefactor     7.5096        11.528       -.16230E-06   -.45200E-04
   9  Prefactor     .10000E-03    2.7969        .96043E-07** at limit **
  10  Prefactor     .10000E-03    10.686        .35726E-07** at limit **
  11  Prefactor     7.6192        24.987       -.54765E-06   -.13786E-04
  12  norm          .10000E-03    1.1291       -.30247E-06** at limit **
  13  Prefactor     .10000E-03    19.364       -.12861E-07** at limit **
  14  Prefactor     .10000E-03    4.3953        .91227E-08** at limit **
  15  Prefactor     24.000        26.771       -.24654E-05   -.81626E-04
  16  Prefactor     .10000E-03    107.34       -.25715E-05** at limit **
  17  norm          .12881        .40384        .30514E-06   -.10762E-02
  18  norm          6.9950        4.1961       -.18936E-06   -.47660E-04
  19  Prefactor     .10000E-03    10.430        .36855E-08** at limit **
  20  Prefactor     .10000E-03    61.872        .30555E-07** at limit **
  21  Normalizat    1.3183        .16556       -.24967E-06   -.26332E-03
  22  Prefactor     .62893        .15992       -.59439E-08   -.89061E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.4914
  norm       = 1.09813
  Prefactor  = 41.2245
  norm       = 6.56433
  Prefactor  = 16.8593
  Prefactor  = 0.000100053
  norm       = 0.980987
  Prefactor  = 7.50959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.61922
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9999
  Prefactor  = 0.0001
  norm       = 0.128813
  norm       = 6.99495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31832
  Prefactor  = 0.628932
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.910     FROM HESSE     STATUS=OK           344 CALLS     2443 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.491        23.329        .87246E-04   -1.4780    
   2  norm          1.0981        1.8348        .14473E-02   -1.5498    
   3  Prefactor     41.225        44.604        .63970E-04   -1.4423    
   4  norm          6.5643        4.1730        .12112E-03   -1.5195    
   5  Prefactor     16.859        13.145        .97405E-04   -1.4887    
   6  Prefactor     .10005E-03    22.374        .35144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .98099        .54699        .39777E-04   -1.5510    
   8  Prefactor     7.5096        11.530        .14542E-03   -1.5160    
   9  Prefactor     .10000E-03    2.8025        .13252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.711        .21158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6192        24.992        .14551E-03   -1.5156    
  12  norm          .10000E-03    1.1443        .83914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.392        .20657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4000        .16621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.000        26.901        .82085E-04   -1.4728    
  16  Prefactor     .10000E-03    107.81        .21331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .12881        .38450        .80224E-04   -1.5636    
  18  norm          6.9950        4.0797        .11362E-03   -1.5179    
  19  Prefactor     .10000E-03    10.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.236        .18238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3183        .19726        .21384E-03   -.83021    
  22  Prefactor     .62893        .18922        .28875E-03   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94943e-09
Minuit parameter uncertainties:
  1  23.3392
  2  1.83487
  3  44.6404
  4  4.17316
  5  13.1468
  6  0.0021769
  7  0.546995
  8  11.5334
  9  5.20251e-06
  10  3.82615e-06
  11  25.0264
  12  2.707e-05
  13  1.18074e-06
  14  3.62838e-07
  15  26.9143
  16  0.000331325
  17  0.384507
  18  4.07989
  19  7.51978e-09
  20  3.8616e-05
  21  0.197369
  22  0.189411
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.707e-05  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:  6.289e-01  1.894e-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.318e+00  1.974e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7869/likelihoodResults_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.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) = 6589.91419996
delta logL = -0.00412304972633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6589.91007673
delta logL = 1.83636075235e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4135       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62899       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=   6589.910     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      242 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    64.641        .85213E-02** at limit **
   2  alpha         1.9923        3.4534        .16473       -.15776E-06
   3  Normalizat    1.3183        .29656E-01    .21383E-03   -.36187E-03
   4  Prefactor     .62893        .28808E-01    .28875E-03   -.24403E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.99231
  Normalizat = 1.31832
  Prefactor  = 0.62893
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.910     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3729        .92310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9923        3.5351        .65893E-02   -.20450    
   3  Normalizat    1.3183        .19359        .42767E-04   -.83021    
   4  Prefactor     .62893        .18794        .11550E-04   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62105e-10
Minuit parameter uncertainties:
  1  5.86439e-06
  2  120.892
  3  0.1937
  4  0.188131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7869': 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) = 6589.91006968
delta logL = 7.23497760191e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  5.864e-06  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.992e+00  1.209e+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:  6.289e-01  1.881e-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.318e+00  1.937e-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/7869/cmap_HighResolution_563068801_563328001_4FGL_J2331.0-2147_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-29 23:07:28.075859', job_id='7869', GAL2='0.63', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632982048.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='7.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1249' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:07:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 7869: <4FGL_J2331.0-2147_daily_bin1249> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1249> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 22:56:11 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:56:13 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:56:13 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_bin1249 352.763 -21.7953 563068801 563328001 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 :                                   593.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            677 sec.

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

