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 139 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1731
RA = 352.763, Dec = -21.7953
tmin = 688003201, tmax = 688262401
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='551305', job_status='RUN', time_executed='2022-10-24 00:43:02.288483', time_epoch_executed='1666597382.29' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551305

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551305/ft1_4FGL_J2331.0-2147_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551305/ft1_4FGL_J2331.0-2147_daily_bin1731.fits outfile=/scratch/kocevski/551305/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1731.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=688003201.0 tmax=688262401.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.59
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits" evtable="EVENTS" scfile=/scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits sctable="SC_DATA" outfile=/scratch/kocevski/551305/ltcube_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.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/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits
.....................!
real 11.89
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/551305/ltcube_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.fits outfile=/scratch/kocevski/551305/expmap_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.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/551305/ltcube_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.fits
.....................!
real 190.59
user 185.50
sys 4.70

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/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits scfile=/scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits outfile=/scratch/kocevski/551305/cmap_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits scfile=/scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits outfile=/scratch/kocevski/551305/cmap_HighResolution_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.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.66
user 0.38
sys 0.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551305/Model_4FGL_J2331.0-2147_daily_bin1731.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/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits......................!
real 38.02
user 36.32
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits', '/scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits', expMap='/scratch/kocevski/551305/expmap_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.fits', expCube='/scratch/kocevski/551305/ltcube_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551305/Model_4FGL_J2331.0-2147_daily_bin1731.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  0.000e+00  1.000e+06 ( 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 -5.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/551305/ft1_filtered_4FGL_J2331.0-2147_daily_bin1731.fits
Spacecraft file(s): /scratch/kocevski/551305/ft2_4FGL_J2331.0-2147_daily_bin1731.fits
Exposure map: /scratch/kocevski/551305/expmap_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.fits
Exposure cube: /scratch/kocevski/551305/ltcube_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551305/Model_4FGL_J2331.0-2147_daily_bin1731.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) = 4122.56075182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34248E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .21433E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .50302E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .41545E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11542E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    26.833       1.0000          .0000       .10000E+07
     7 'norm      '    .59369       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.5749       1.0000          .0000       .10000E+07
     9 'Prefactor '    .47845E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .62249E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .92003E-01   1.0000          .0000       .10000E+07
    12 'norm      '    3.6031       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21176E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .10023E-04   1.0000          .0000       .10000E+07
    15 'norm      '    9.6529       1.0000          .0000       .10000E+07
    16 'Prefactor '    29.668       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42224E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74448       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4122.503     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1377 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10991E-07    42.759       -.87614E-07** at limit **
   2  norm           .0000        1.0352       -.30961E-08** at limit **
   3  Prefactor     .41522E-07    16.447        .58163E-08** at limit **
   4  norm           .0000        1.5782        .12089E-07** at limit **
   5  Prefactor      .0000        6.2190       -.19425E-06** at limit **
   6  Prefactor     26.620        15.575       -.75345E-08   -.70155E-03
   7  norm          .59879        .75219       -.41377E-07    .94454E-03
   8  Prefactor     8.5604        1.1448        .19921E-08   -.69792E-01
   9  Prefactor      .0000        9.4679        .23193E-06** at limit **
  10  Prefactor     .83267E-08    24.290        .29686E-07** at limit **
  11  Prefactor     .94369E-09    37.160       -.88565E-06** at limit **
  12  norm          3.6033        3.0917       -.48072E-07   -.29640E-03
  13  Prefactor      .0000        12.312       -.11929E-06** at limit **
  14  norm           .0000        1.2984       -.15993E-06** at limit **
  15  norm          9.6492        4.8373       -.67668E-07   -.11320E-02
  16  Prefactor     30.098        3.3357       -.25178E-08   -.31661E-02
  17  Prefactor      .0000        30.423        .38752E-06** at limit **
  18  Normalizat    1.0520        .24205        .10196E-05   -.85257E-07
  19  Prefactor     .74416        .22725        .29890E-05    .11349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09912e-08
  norm       = 0
  Prefactor  = 4.15223e-08
  norm       = 0
  Prefactor  = 0
  Prefactor  = 26.6202
  norm       = 0.598787
  Prefactor  = 8.56038
  Prefactor  = 0
  Prefactor  = 8.32667e-09
  Prefactor  = 9.4369e-10
  norm       = 3.60326
  Prefactor  = 0
  norm       = 0
  norm       = 9.64921
  Prefactor  = 30.0984
  Prefactor  = 0
  Normalizat = 1.05202
  Prefactor  = 0.744161
 **********
 **   18 **HESSE 
 **********

 FCN=   4122.503     FROM HESSE     STATUS=OK           308 CALLS     1685 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10991E-07    43.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.0377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41522E-07    40.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.5758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        6.2054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.620        15.675        .19308E-03   -1.5605    
   7  norm          .59879        .77208        .69795E-03   -1.5692    
   8  Prefactor     8.5604        8.6271        .34208E-03   -1.5649    
   9  Prefactor      .0000        9.4932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83267E-08    40.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .94369E-09    37.041        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6033        3.0900        .53207E-03   -1.5670    
  13  Prefactor      .0000        12.050        .16961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .38389        .19833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6492        5.2589        .32230E-03   -1.5646    
  16  Prefactor     30.098        29.970        .18362E-03   -1.5598    
  17  Prefactor      .0000        30.280        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0520        .20436        .40460E-01   -.91308    
  19  Prefactor     .74416        .19236        .42990E-01   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46083e-08
Minuit parameter uncertainties:
  1  0.00138844
  2  9.46547e-08
  3  0.00258038
  4  9.92749e-07
  5  1.98948e-05
  6  15.6752
  7  0.772082
  8  8.62709
  9  4.66702e-06
  10  0.00115665
  11  0.000369226
  12  3.09
  13  9.5992e-06
  14  9.23402e-07
  15  5.25893
  16  29.9704
  17  2.81172e-05
  18  0.204514
  19  0.192531
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.603e+00  3.090e+00  0.000e+00  1.000e+06 ( 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 -5.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:  7.442e-01  1.925e-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.052e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.10e-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) = 4118.67801366
delta logL = 3.8245183586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4118.08408411
delta logL = 4.4184479016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65204       1.0000          .0000       .10000E+07
     2 'alpha     '    .32369       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73733       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=   4118.084     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65034        .85773        .64690E-03   -.75955E-02
   2  alpha         .32267        .49367        .35691        .24008E-04
   3  Normalizat    1.0790        .19933        .38925E-01   -.31234E-04
   4  Prefactor     .73723        .19232        .42896E-01   -.14843E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.650335
  alpha      = 0.322675
  Normalizat = 1.07896
  Prefactor  = 0.737233
 **********
 **   18 **HESSE 
 **********

 FCN=   4118.084     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65034        1.2985        .45176E-05   -1.5692    
   2  alpha         .32267        .64473        .17568E-01   -1.0571    
   3  Normalizat    1.0790        .23250        .22171E-03   -.90430    
   4  Prefactor     .73723        .22432        .25279E-03   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99718e-11
Minuit parameter uncertainties:
  1  1.29848
  2  0.678739
  3  0.232721
  4  0.2246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551305': 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) = 4118.08408187
delta logL = 4.4184501439

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.503e-01  1.298e+00  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  3.227e-01  6.787e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00 -5.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:  7.372e-01  2.246e-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.079e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.98
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 0.32 +/- 0.68
Photon Flux (Free Index): 5.97e-09 +/- 5.77e-09
Energy Flux (Free Index): 1.10e-04 +/- 1.24e-04

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/551305/cmap_HighResolution_688003201_688262401_4FGL_J2331.0-2147_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='1.10e-04', photon_flux_error='3.31e-08', dlogl='4.42e+00', energy_flux='1.28e-05', photon_flux2='5.97e-09', job_status='DONE', time_completed='2022-10-24 00:50:01.799104', photon_index_error2='0.68', photon_index2='0.32', ts='4.17', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.24e-04', EG='1.05', time_epoch_completed='1666597801.8', return_code='0', job_id='551305', GAL2='0.74', EG2='1.08', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='5.77e-09', ts2='12.98', photon_index='2.43' WHERE bin_id='1731' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 00:50:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 551305: <4FGL_J2331.0-2147_daily_bin1731> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1731> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Oct 24 00:40:33 2022
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 00:40:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 00:40:34 2022
Terminated at Mon Oct 24 00:50:02 2022
Results reported at Mon Oct 24 00:50:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1731 352.763 -21.7953 688003201 688262401 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 :                                   421.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            569 sec.

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

