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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1423
RA = 352.763, Dec = -21.7953
tmin = 608169601, tmax = 608428801
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='9052', job_status='RUN', time_executed='2021-09-29 23:03:08.258192', time_epoch_executed='1632981788.26' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9052/ft1_4FGL_J2331.0-2147_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9052/ft2_4FGL_J2331.0-2147_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9052/ft1_4FGL_J2331.0-2147_daily_bin1423.fits outfile=/scratch/kocevski/9052/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1423.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=608169601.0 tmax=608428801.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.70
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9052/ft1_filtered_4FGL_J2331.0-2147_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/9052/ft2_4FGL_J2331.0-2147_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/9052/ltcube_608169601_608428801_4FGL_J2331.0-2147_daily_bin1423.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/9052/ft2_4FGL_J2331.0-2147_daily_bin1423.fits
.....................!
real 12.10
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9052/ft1_filtered_4FGL_J2331.0-2147_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/9052/ft2_4FGL_J2331.0-2147_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/9052/ltcube_608169601_608428801_4FGL_J2331.0-2147_daily_bin1423.fits outfile=/scratch/kocevski/9052/expmap_608169601_608428801_4FGL_J2331.0-2147_daily_bin1423.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/9052/ltcube_608169601_608428801_4FGL_J2331.0-2147_daily_bin1423.fits
.....................!
real 189.39
user 184.48
sys 4.60

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/9052/ft1_filtered_4FGL_J2331.0-2147_daily_bin1423.fits scfile=/scratch/kocevski/9052/ft2_4FGL_J2331.0-2147_daily_bin1423.fits outfile=/scratch/kocevski/9052/cmap_608169601_608428801_4FGL_J2331.0-2147_daily_bin1423.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9052/ft1_filtered_4FGL_J2331.0-2147_daily_bin1423.fits scfile=/scratch/kocevski/9052/ft2_4FGL_J2331.0-2147_daily_bin1423.fits outfile=/scratch/kocevski/9052/cmap_HighResolution_608169601_608428801_4FGL_J2331.0-2147_daily_bin1423.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9052/ft1_filtered_4FGL_J2331.0-2147_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/9052/ft2_4FGL_J2331.0-2147_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9052/Model_4FGL_J2331.0-2147_daily_bin1423.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/9052/ft1_filtered_4FGL_J2331.0-2147_daily_bin1423.fits.....................!
real 51.73
user 50.36
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9803       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.284       1.0000         .10000E-03   10000.    
     4 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3312       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.163       1.0000         .10000E-03   10000.    
    12 'norm      '    22.318       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.984       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32387       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93775       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1667       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=   6521.141     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2035 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    28.079       -.93001E-05** at limit **
   2  norm          2.9855        2.4311        .11067E-06   -.28268E-04
   3  Prefactor     47.129        42.411       -.11475E-05   -.57656E-04
   4  norm          .10000E-03    1.1697        .73265E-08** at limit **
   5  Prefactor     .10000E-03    3.8977        .13357E-07** at limit **
   6  Prefactor     .10000E-03    3.7528        .23726E-07** at limit **
   7  norm          1.3310        .51002        .60377E-08   -.10656E-04
   8  Prefactor     3.3017        5.1563        .22639E-05   -.16551E-02
   9  Prefactor     .10000E-03    7.6484       -.18069E-07** at limit **
  10  Prefactor     .10000E-03    11.861        .86267E-07** at limit **
  11  Prefactor     11.158        26.617        .39792E-05    .11221E-03
  12  norm          22.317        5.2457       -.68901E-06   -.98685E-03
  13  Prefactor     .10000E-03    19.812       -.16396E-05** at limit **
  14  Prefactor     .10000E-03    5.4263       -.26862E-08** at limit **
  15  Prefactor     41.979        29.865        .13828E-05    .64018E-04
  16  Prefactor     .10001E-03    24.579        .81733E-05** at limit **
  17  norm          .32422        .70573       -.10569E-06   -.83139E-03
  18  norm          6.2260        5.9601        .57767E-06    .22708E-03
  19  Prefactor     .10000E-03    37.655        .31915E-05** at limit **
  20  Prefactor     .10000E-03    10.515       -.27324E-07** at limit **
  21  Normalizat    .93821        .17865       -.15100E-06    .21388E-04
  22  Prefactor     1.1663        .18097       -.10243E-06    .20718E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 2.98554
  Prefactor  = 47.1289
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33104
  Prefactor  = 3.30174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1577
  norm       = 22.3171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9787
  Prefactor  = 0.000100006
  norm       = 0.324222
  norm       = 6.22602
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.938214
  Prefactor  = 1.16627
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.141     FROM HESSE     STATUS=OK           336 CALLS     2371 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    28.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9855        2.4373        .10218E-03   -1.5362    
   3  Prefactor     47.129        42.583        .58312E-04   -1.4334    
   4  norm          .10000E-03    1.1768        .85272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9045        .15566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7957        .15244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3310        .50740        .34463E-04   -1.5477    
   8  Prefactor     3.3017        7.6069        .11141E-02   -1.5345    
   9  Prefactor     .10000E-03    7.9250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.158        26.673        .11991E-03   -1.5040    
  12  norm          22.317        5.2885        .84361E-04   -1.4763    
  13  Prefactor     .10000E-03    19.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.979        29.888        .61867E-04   -1.4411    
  16  Prefactor     .10001E-03    25.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32422        .65073        .73201E-04   -1.5594    
  18  norm          6.2260        5.6267        .14090E-03   -1.5209    
  19  Prefactor     .10000E-03    37.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93821        .21193        .26774E-03   -.95130    
  22  Prefactor     1.1663        .21507        .24969E-03   -.87376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71155e-09
Minuit parameter uncertainties:
  1  0.000923676
  2  2.43742
  3  42.6101
  4  4.88328e-07
  5  1.17468e-06
  6  2.9767e-06
  7  0.507403
  8  7.60917
  9  2.5267e-06
  10  7.70757e-06
  11  26.7013
  12  5.28858
  13  0.000126428
  14  2.04786e-06
  15  29.8982
  16  0.000761787
  17  0.650742
  18  5.62719
  19  0.000348621
  20  2.22015e-06
  21  0.212121
  22  0.215232
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.232e+01  5.289e+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.166e+00  2.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.382e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.75
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.39e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 7.95e-05 +/- 1.88e-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) = 6521.06069884
delta logL = 0.08060957005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6521.05739949
delta logL = 0.0839089226447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.219       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5455       1.0000          .0000       5.0000    
     3 'Normalizat'    .91844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1802       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=   6521.057     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      231 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.208        62.131        .22269E-02    .77821E-03
   2  alpha         2.5458        2.0338        .12356        .62607E-04
   3  Normalizat    .91845        .18403        .45137E-01    .13066E-04
   4  Prefactor     1.1802        .13833        .56175E-01    .29677E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2081
  alpha      = 2.54578
  Normalizat = 0.918449
  Prefactor  = 1.18022
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.057     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.208        7.3459        .39470E-03   -1.4809    
   2  alpha         2.5458        .29005        .53251E-02    .18313E-01
   3  Normalizat    .91845        .21465        .27011E-03   -.95815    
   4  Prefactor     1.1802        .21672        .24839E-03   -.86942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10806e-09
Minuit parameter uncertainties:
  1  7.34627
  2  0.290702
  3  0.214847
  4  0.216886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9052': 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) = 6521.05739835
delta logL = 0.0839100549974

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.021e+01  7.346e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.546e+00  2.907e-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.180e+00  2.169e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.184e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.04
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.55 +/- 0.29
Photon Flux (Free Index): 2.55e-07 +/- 6.84e-08
Energy Flux (Free Index): 7.64e-05 +/- 1.93e-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/9052/cmap_HighResolution_608169601_608428801_4FGL_J2331.0-2147_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.39e-07', energy_flux2='7.64e-05', photon_flux_error='5.67e-08', dlogl='8.39e-02', energy_flux='7.95e-05', photon_flux2='2.55e-07', job_status='DONE', time_completed='2021-09-29 23:12:13.708601', photon_index_error2='0.29', photon_index2='2.55', ts='51.75', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='0.94', time_epoch_completed='1632982333.71', return_code='0', job_id='9052', GAL2='1.18', EG2='0.92', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.84e-08', ts2='52.04', photon_index='2.43' WHERE bin_id='1423' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:12:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 9052: <4FGL_J2331.0-2147_daily_bin1423> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1423> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:17 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:00:19 2021
Terminated at Wed Sep 29 23:12:14 2021
Results reported at Wed Sep 29 23:12:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1423 352.763 -21.7953 608169601 608428801 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 :                                   541.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

