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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1751
RA = 352.763, Dec = -21.7953
tmin = 693187201, tmax = 693446401
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='90117', job_status='RUN', time_executed='2022-12-23 01:31:40.573539', time_epoch_executed='1671787900.57' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90117

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90117/ft1_4FGL_J2331.0-2147_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90117/ft2_4FGL_J2331.0-2147_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90117/ft1_4FGL_J2331.0-2147_daily_bin1751.fits outfile=/scratch/kocevski/90117/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1751.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=693187201.0 tmax=693446401.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.63
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90117/ft1_filtered_4FGL_J2331.0-2147_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/90117/ft2_4FGL_J2331.0-2147_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/90117/ltcube_693187201_693446401_4FGL_J2331.0-2147_daily_bin1751.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/90117/ft2_4FGL_J2331.0-2147_daily_bin1751.fits
.....................!
real 11.98
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90117/ft1_filtered_4FGL_J2331.0-2147_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/90117/ft2_4FGL_J2331.0-2147_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/90117/ltcube_693187201_693446401_4FGL_J2331.0-2147_daily_bin1751.fits outfile=/scratch/kocevski/90117/expmap_693187201_693446401_4FGL_J2331.0-2147_daily_bin1751.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/90117/ltcube_693187201_693446401_4FGL_J2331.0-2147_daily_bin1751.fits
.....................!
real 191.83
user 185.83
sys 5.67

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/90117/ft1_filtered_4FGL_J2331.0-2147_daily_bin1751.fits scfile=/scratch/kocevski/90117/ft2_4FGL_J2331.0-2147_daily_bin1751.fits outfile=/scratch/kocevski/90117/cmap_693187201_693446401_4FGL_J2331.0-2147_daily_bin1751.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90117/ft1_filtered_4FGL_J2331.0-2147_daily_bin1751.fits scfile=/scratch/kocevski/90117/ft2_4FGL_J2331.0-2147_daily_bin1751.fits outfile=/scratch/kocevski/90117/cmap_HighResolution_693187201_693446401_4FGL_J2331.0-2147_daily_bin1751.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10408E-03   1.0000          .0000       .10000E+07
     2 'norm      '    4.3092       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.742       1.0000          .0000       .10000E+07
     4 'norm      '    .16102E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .59603E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.977       1.0000          .0000       .10000E+07
     7 'norm      '    2.3105       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13191E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14262E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.9893       1.0000          .0000       .10000E+07
    11 'Prefactor '    20.682       1.0000          .0000       .10000E+07
    12 'norm      '    4.8552       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12378E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .42794E-06   1.0000          .0000       .10000E+07
    15 'norm      '    7.5545       1.0000          .0000       .10000E+07
    16 'Prefactor '    36.012       1.0000          .0000       .10000E+07
    17 'Prefactor '    .51845       1.0000          .0000       .10000E+07
    18 'Normalizat'    .84108       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0175       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=   5868.335     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2062 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28311E-08    10.883        .93541E-06** at limit **
   2  norm          4.3155        2.7910        .15000E-06   -.51988E-02
   3  Prefactor     18.760        2.5021        .13584E-05   -.20851E-01
   4  norm          .59952E-08    24.256        .38398E-05** at limit **
   5  Prefactor     .16653E-09    14.282       -.22627E-05** at limit **
   6  Prefactor     19.669        7.7568        .17189E-05    .53587E-01
   7  norm          2.3269        .84750       -.17935E-06    .27278E-01
   8  Prefactor     .12212E-08    6.4483       -.37658E-05** at limit **
   9  Prefactor     .34583E-07    5.8488       -.46241E-06** at limit **
  10  Prefactor     8.0113        1.2534        .92698E-07   -.11694E-01
  11  Prefactor     21.227        44.173        .22334E-04   -.50783E-01
  12  norm          4.8810        3.1934        .10372E-05   -.49201E-02
  13  Prefactor     .36360E-07    6.3010       -.58984E-05** at limit **
  14  norm           .0000        .21551        .10462E-05** at limit **
  15  norm          7.5541        3.6356        .20844E-05   -.35925E-02
  16  Prefactor     36.312        21.906        .80362E-05    .13510    
  17  Prefactor     .80991E-07    71.926        .25784E-04** at limit **
  18  Normalizat    .84152        .20679       -.31046E-04   -.55319E-03
  19  Prefactor     1.0170        .20721        .75121E-05   -.43523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83107e-09
  norm       = 4.31551
  Prefactor  = 18.7596
  norm       = 5.9952e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 19.6688
  norm       = 2.32694
  Prefactor  = 1.22125e-09
  Prefactor  = 3.45834e-08
  Prefactor  = 8.0113
  Prefactor  = 21.2269
  norm       = 4.88101
  Prefactor  = 3.63598e-08
  norm       = 0
  norm       = 7.5541
  Prefactor  = 36.3121
  Prefactor  = 8.09908e-08
  Normalizat = 0.841524
  Prefactor  = 1.01697
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.335     FROM HESSE     STATUS=OK           312 CALLS     2374 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28311E-08    10.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3155        3.1480        .48505E-03   -1.5666    
   3  Prefactor     18.760        60.185        .23107E-03   -1.5621    
   4  norm          .59952E-08    2.2222        .59010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    14.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.669        12.658        .22381E-03   -1.5619    
   7  norm          2.3269        .94376        .67471E-03   -1.5677    
   8  Prefactor     .12212E-08    6.5116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .34583E-07    7.1748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.0113        18.971        .35449E-03   -1.5651    
  11  Prefactor     21.227        51.808        .21996E-03   -1.5616    
  12  norm          4.8810        3.1958        .45629E-03   -1.5664    
  13  Prefactor     .36360E-07    7.5799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .21289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.5541        3.6500        .36463E-03   -1.5653    
  16  Prefactor     36.312        41.088        .16666E-03   -1.5587    
  17  Prefactor     .80991E-07    71.496        .76875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .84152        .17561        .44144E-01   -.98546    
  19  Prefactor     1.0170        .17560        .42403E-01   -.92166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32244e-06
Minuit parameter uncertainties:
  1  0.000352884
  2  3.14797
  3  60.1868
  4  0.00023125
  5  9.26029e-05
  6  12.6584
  7  0.943763
  8  0.000176771
  9  0.000995964
  10  18.9709
  11  51.8093
  12  3.19578
  13  0.00105017
  14  4.91059e-07
  15  3.64996
  16  41.0879
  17  0.00481238
  18  0.17573
  19  0.175701
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  4.881e+00  3.196e+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:  1.017e+00  1.757e-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:  8.415e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.23e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.14e-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) = 5868.2683307
delta logL = 0.0664315514141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5868.26529907
delta logL = 0.069463179987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6089       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1883       1.0000          .0000       5.0000    
     3 'Normalizat'    .85492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0079       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=   5868.265     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      293 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6130        4.0407        .11659E-04   -.29907E-02
   2  alpha         2.1892        .64834        .14904E-01   -.31389E-04
   3  Normalizat    .85493        .20113        .24653E-03    .70693E-04
   4  Prefactor     1.0078        .20620        .23575E-03    .13102E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.61297
  alpha      = 2.18915
  Normalizat = 0.854929
  Prefactor  = 1.0078
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.265     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6130        3.9726        .46634E-06   -1.5661    
   2  alpha         2.1892        .63705        .59614E-03   -.12466    
   3  Normalizat    .85493        .20115        .98613E-05   -.98062    
   4  Prefactor     1.0078        .20629        .94301E-05   -.92470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13436e-10
Minuit parameter uncertainties:
  1  3.97257
  2  0.644269
  3  0.201322
  4  0.206455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90117': 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) = 5868.26529691
delta logL = 0.0694653392829

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  5.613e+00  3.973e+00  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  2.189e+00  6.443e-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:  1.008e+00  2.065e-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:  8.549e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.19 +/- 0.64
Photon Flux (Free Index): 4.35e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.35e-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/90117/cmap_HighResolution_693187201_693446401_4FGL_J2331.0-2147_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.23e-08', energy_flux2='1.90e-05', photon_flux_error='3.42e-08', dlogl='6.95e-02', energy_flux='1.74e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2022-12-23 01:40:15.045570', photon_index_error2='0.64', photon_index2='2.19', ts='4.05', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.84', time_epoch_completed='1671788415.05', return_code='0', job_id='90117', GAL2='1.01', EG2='0.85', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.83e-08', ts2='4.17', photon_index='2.43' WHERE bin_id='1751' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:40:15 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 90117: <4FGL_J2331.0-2147_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 01:30:24 2022
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:30:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:30:25 2022
Terminated at Fri Dec 23 01:40:15 2022
Results reported at Fri Dec 23 01:40:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1751 352.763 -21.7953 693187201 693446401 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 :                                   517.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            591 sec.

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

