aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 141 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 = 7476
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1664
RA = 352.763, Dec = -21.7953
tmin = 670636801, tmax = 670896001
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='316867', job_status='RUN', time_executed='2022-04-06 00:38:33.011152', time_epoch_executed='1649230713.01' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316867/ft1_4FGL_J2331.0-2147_daily_bin1664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316867/ft2_4FGL_J2331.0-2147_daily_bin1664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316867/ft1_4FGL_J2331.0-2147_daily_bin1664.fits outfile=/scratch/kocevski/316867/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1664.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=670636801.0 tmax=670896001.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.40
user 5.16
sys 0.20

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

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

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/316867/ft1_filtered_4FGL_J2331.0-2147_daily_bin1664.fits" evtable="EVENTS" scfile=/scratch/kocevski/316867/ft2_4FGL_J2331.0-2147_daily_bin1664.fits sctable="SC_DATA" outfile=/scratch/kocevski/316867/ltcube_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.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/316867/ft2_4FGL_J2331.0-2147_daily_bin1664.fits
.....................!
real 12.06
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316867/ft1_filtered_4FGL_J2331.0-2147_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316867/ft2_4FGL_J2331.0-2147_daily_bin1664.fits sctable="SC_DATA" expcube=/scratch/kocevski/316867/ltcube_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.fits outfile=/scratch/kocevski/316867/expmap_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.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/316867/ltcube_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.fits
.....................!
real 190.33
user 185.11
sys 4.86

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/316867/ft1_filtered_4FGL_J2331.0-2147_daily_bin1664.fits scfile=/scratch/kocevski/316867/ft2_4FGL_J2331.0-2147_daily_bin1664.fits outfile=/scratch/kocevski/316867/cmap_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/316867/ft1_filtered_4FGL_J2331.0-2147_daily_bin1664.fits scfile=/scratch/kocevski/316867/ft2_4FGL_J2331.0-2147_daily_bin1664.fits outfile=/scratch/kocevski/316867/cmap_HighResolution_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.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/316867/ft1_filtered_4FGL_J2331.0-2147_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316867/ft2_4FGL_J2331.0-2147_daily_bin1664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/316867/Model_4FGL_J2331.0-2147_daily_bin1664.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/316867/ft1_filtered_4FGL_J2331.0-2147_daily_bin1664.fits.....................!
real 48.99
user 47.54
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11514E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    133.40       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.094       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1814       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .53603       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5870       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12128E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.538       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2582       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .52229       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=   6253.582     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2398 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.4531        .90712E-02** at limit **
   2  norm          .10000E-03    1.8072        .90712E-02** at limit **
   3  Prefactor     133.43        52.021        .87166E-03   -.37628E-03
   4  norm          .10000E-03    2.1429        .90712E-02** at limit **
   5  Prefactor     12.948        12.602        .27828E-02    .12196E-03
   6  Prefactor     13.094        8.6396        .27674E-02    .13271E-03
   7  norm          .10000E-03    .21571        .17050E-01** at limit **
   8  Prefactor     14.663        9.5215        .26149E-02   -.17581E-03
   9  Prefactor     .10000E-03    2.0238        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.6525        .90712E-02** at limit **
  11  Prefactor     .10000E-03    21.939        .90712E-02** at limit **
  12  norm          5.1826        3.2923        .44151E-02    .92148E-03
  13  Prefactor     .10021E-03    34.434        .90712E-02** at limit **
  14  Prefactor     11.950        10.894        .28971E-02    .32304E-03
  15  Prefactor     .10000E-03    15.562        .90712E-02** at limit **
  16  Prefactor     .10001E-03    48.153        .90712E-02** at limit **
  17  norm          .53587        .48051        .98721E-02   -.58307E-03
  18  norm          2.5875        2.8701        .63427E-02   -.77347E-04
  19  Prefactor     .10024E-03    33.512        .90712E-02** at limit **
  20  Prefactor     17.420        48.046        .23909E-02    .60859E-04
  21  Normalizat    1.2579        .16062        .33599E-01    .13643E-03
  22  Prefactor     .52257        .15107        .66055E-01   -.16389E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 133.429
  norm       = 0.0001
  Prefactor  = 12.9483
  Prefactor  = 13.0935
  norm       = 0.0001
  Prefactor  = 14.6631
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 5.1826
  Prefactor  = 0.00010021
  Prefactor  = 11.9496
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.535871
  norm       = 2.58748
  Prefactor  = 0.000100245
  Prefactor  = 17.4198
  Normalizat = 1.25795
  Prefactor  = 0.522569
 **********
 **   18 **HESSE 
 **********

 FCN=   6253.582     FROM HESSE     STATUS=OK           338 CALLS     2736 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.4557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8445        .20576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     133.43        51.554        .34866E-04   -1.3393    
   4  norm          .10000E-03    2.1886        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.948        12.625        .11131E-03   -1.4988    
   6  Prefactor     13.094        8.2267        .11070E-03   -1.4984    
   7  norm          .10000E-03    .27704        .66494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.663        9.5211        .10460E-03   -1.4942    
   9  Prefactor     .10000E-03    2.0253        .10982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.6532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1826        3.2939        .10820E-03   -1.5253    
  13  Prefactor     .10021E-03    34.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.950        10.886        .11589E-03   -1.5016    
  15  Prefactor     .10000E-03    15.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    48.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .53587        .46956        .45470E-03   -1.5562    
  18  norm          2.5875        2.9331        .12456E-03   -1.5386    
  19  Prefactor     .10024E-03    33.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.420        48.294        .95637E-04   -1.4873    
  21  Normalizat    1.2579        .18242        .20170E-03   -.84831    
  22  Prefactor     .52257        .17005        .29235E-03   -1.1095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52873e-08
Minuit parameter uncertainties:
  1  0.000179094
  2  7.20244e-05
  3  51.5714
  4  3.72332e-06
  5  12.6271
  6  8.22741
  7  6.71403e-06
  8  9.52209
  9  6.52015e-07
  10  0.000202678
  11  0.000299427
  12  3.29403
  13  0.00538516
  14  10.8881
  15  0.000122902
  16  0.00149161
  17  0.469562
  18  2.93324
  19  0.00573622
  20  48.4025
  21  0.182518
  22  0.170216
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.183e+00  3.294e+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:  5.226e-01  1.702e-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.258e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.61
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.56e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.17e-05

TS (Fixed Index): 3.61
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/316867/likelihoodResults_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.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): 0
logL (Free Index) = 6252.01968855
delta logL = 1.56198778715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6251.99368182
delta logL = 1.58799452325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0497       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8259       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57896       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=   6251.994     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      247 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0459        6.8015        .79659E-02    .23905E-02
   2  alpha         3.8285        4.0155        .20706        .13236E-03
   3  Normalizat    1.1783        .54270E-01    .35439E-01   -.31519E-03
   4  Prefactor     .57932        .52768E-01    .62977E-01   -.61341E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04587
  alpha      = 3.82847
  Normalizat = 1.17835
  Prefactor  = 0.579324
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.994     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0459        1.7025        .35683E-04   -1.5503    
   2  alpha         3.8285        .89157        .89519E-03    .56024    
   3  Normalizat    1.1783        .17964        .20700E-03   -.87275    
   4  Prefactor     .57932        .17173        .27865E-03   -1.0846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03548e-10
Minuit parameter uncertainties:
  1  1.70255
  2  0.920256
  3  0.179733
  4  0.171884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316867': 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) = 6251.9936738
delta logL = 1.58800254267

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.046e+00  1.703e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  3.828e+00  9.203e-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:  5.793e-01  1.719e-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.178e+00  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.97
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 3.83 +/- 0.92
Photon Flux (Free Index): 1.11e-07 +/- 5.30e-08
Energy Flux (Free Index): 1.84e-05 +/- 8.87e-06

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/316867/cmap_HighResolution_670636801_670896001_4FGL_J2331.0-2147_daily_bin1664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-05', comment='SUCCESS', photon_flux='5.56e-08', energy_flux2='1.84e-05', photon_flux_error='3.53e-08', dlogl='1.59e+00', energy_flux='1.85e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2022-04-06 00:48:50.287496', photon_index_error2='0.92', photon_index2='3.83', ts='3.61', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='8.87e-06', EG='1.26', time_epoch_completed='1649231330.29', return_code='0', job_id='316867', GAL2='0.58', EG2='1.18', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.30e-08', ts2='6.97', photon_index='2.43' WHERE bin_id='1664' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr  6 00:48:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 316867: <4FGL_J2331.0-2147_daily_bin1664> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1664> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr  6 00:35:57 2022
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:36:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:36:00 2022
Terminated at Wed Apr  6 00:48:51 2022
Results reported at Wed Apr  6 00:48:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1664 352.763 -21.7953 670636801 670896001 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 :                                   619.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            774 sec.

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

