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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1757
RA = 352.763, Dec = -21.7953
tmin = 694742401, tmax = 695001601
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='230948', job_status='RUN', time_executed='2023-01-10 02:54:25.933245', time_epoch_executed='1673348065.93' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230948

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230948/ft1_4FGL_J2331.0-2147_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230948/ft2_4FGL_J2331.0-2147_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230948/ft1_4FGL_J2331.0-2147_daily_bin1757.fits outfile=/scratch/kocevski/230948/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1757.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=694742401.0 tmax=695001601.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 2.94
user 2.70
sys 0.21

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

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

Number of photons that the gtmktime cut: 584

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230948/ft1_filtered_4FGL_J2331.0-2147_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/230948/ft2_4FGL_J2331.0-2147_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/230948/ltcube_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.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/230948/ft2_4FGL_J2331.0-2147_daily_bin1757.fits
.....................!
real 15.12
user 14.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230948/ft1_filtered_4FGL_J2331.0-2147_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/230948/ft2_4FGL_J2331.0-2147_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/230948/ltcube_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.fits outfile=/scratch/kocevski/230948/expmap_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.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/230948/ltcube_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.fits
.....................!
real 191.92
user 185.72
sys 5.68

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/230948/ft1_filtered_4FGL_J2331.0-2147_daily_bin1757.fits scfile=/scratch/kocevski/230948/ft2_4FGL_J2331.0-2147_daily_bin1757.fits outfile=/scratch/kocevski/230948/cmap_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230948/ft1_filtered_4FGL_J2331.0-2147_daily_bin1757.fits scfile=/scratch/kocevski/230948/ft2_4FGL_J2331.0-2147_daily_bin1757.fits outfile=/scratch/kocevski/230948/cmap_HighResolution_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85342E-04   1.0000          .0000       .10000E+07
     2 'norm      '    8.8882       1.0000          .0000       .10000E+07
     3 'Prefactor '    .63651       1.0000          .0000       .10000E+07
     4 'norm      '    .81063E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.3838       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0882       1.0000          .0000       .10000E+07
     7 'norm      '    2.7006       1.0000          .0000       .10000E+07
     8 'Prefactor '    .70499E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3473       1.0000          .0000       .10000E+07
    10 'Prefactor '    .55881E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    31.703       1.0000          .0000       .10000E+07
    12 'norm      '    2.4526       1.0000          .0000       .10000E+07
    13 'Prefactor '    17.553       1.0000          .0000       .10000E+07
    14 'norm      '    .24124       1.0000          .0000       .10000E+07
    15 'norm      '    5.2218       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.5202       1.0000          .0000       .10000E+07
    17 'Prefactor '    .82095E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    .88159       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86924       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=   6452.217     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1434 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24780E-06    10.409        .31824E-07** at limit **
   2  norm          8.9140        3.6482       -.22947E-07   -.61119E-02
   3  Prefactor     .52667E-05    209.05       -.16108E-06** at limit **
   4  norm          .55511E-10    39.776       -.44402E-05** at limit **
   5  Prefactor     3.3509        12.546       -.16729E-05   -.16983E-01
   6  Prefactor     2.1520        22.933        .37321E-05    .14451E-01
   7  norm          2.7003        1.1486       -.81837E-07   -.43056E-01
   8  Prefactor     .55511E-10    3.0606        .26150E-07** at limit **
   9  Prefactor     4.3138        13.410       -.15547E-05   -.19883E-01
  10  Prefactor     .38858E-09    8.6227       -.10512E-06** at limit **
  11  Prefactor     32.285        12.739       -.36466E-06    .94786E-01
  12  norm          2.4547        2.6851        .23494E-06    .43021E-02
  13  Prefactor     17.655        2.6172        .25415E-06    .10016E-01
  14  norm          .24183        .48447        .95705E-07** at limit **
  15  norm          5.2137        4.4005       -.21862E-06   -.25209E-03
  16  Prefactor     7.8980        13.884        .28062E-05   -.35053E-01
  17  Prefactor     .31319E-06    12.021        .62664E-06** at limit **
  18  Normalizat    .88124        .17587        .34872E-06   -.13185E-03
  19  Prefactor     .86917        .17562       -.11118E-05   -.28549E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.47802e-07
  norm       = 8.91397
  Prefactor  = 5.26673e-06
  norm       = 5.55112e-11
  Prefactor  = 3.35088
  Prefactor  = 2.15201
  norm       = 2.70026
  Prefactor  = 5.55112e-11
  Prefactor  = 4.31379
  Prefactor  = 3.88578e-10
  Prefactor  = 32.2849
  norm       = 2.45466
  Prefactor  = 17.6548
  norm       = 0.241831
  norm       = 5.21369
  Prefactor  = 7.898
  Prefactor  = 3.13194e-07
  Normalizat = 0.881239
  Prefactor  = 0.869171
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.217     FROM HESSE     STATUS=OK           316 CALLS     1750 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24780E-06    10.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.9140        3.6687        .33596E-03   -1.5648    
   3  Prefactor     .52667E-05    215.18        .66019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    4.3414        .52848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3509        13.805        .54979E-03   -1.5671    
   6  Prefactor     2.1520        38.197        .71416E-03   -1.5679    
   7  norm          2.7003        1.1478        .61962E-03   -1.5675    
   8  Prefactor     .55511E-10    3.0630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3138        15.144        .48286E-03   -1.5666    
  10  Prefactor     .38858E-09    8.6350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.285        37.379        .17763E-03   -1.5594    
  12  norm          2.4547        2.6902        .65287E-03   -1.5677    
  13  Prefactor     17.655        16.312        .23878E-03   -1.5624    
  14  norm          .24183        .55736        .11084E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2137        4.7996        .43965E-03   -1.5662    
  16  Prefactor     7.8980        26.968        .36547E-03   -1.5652    
  17  Prefactor     .31319E-06    12.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .88124        .15475        .44666E-01   -.97123    
  19  Prefactor     .86917        .15198        .44612E-01   -.97227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08543e-07
Minuit parameter uncertainties:
  1  0.00328549
  2  3.66875
  3  0.0673311
  4  2.55346e-05
  5  13.6027
  6  18.1329
  7  1.14782
  8  2.8016e-05
  9  15.144
  10  0.000117928
  11  37.3792
  12  2.69016
  13  16.3117
  14  0.557358
  15  4.79959
  16  26.9689
  17  0.00398589
  18  0.154824
  19  0.152056
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.455e+00  2.690e+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:  8.692e-01  1.521e-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.812e-01  1.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.63e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 8.75e-06 +/- 9.59e-06

TS (Fixed Index): 1.07
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 8.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230948/likelihoodResults_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.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) = 6451.52970483
delta logL = 0.687022296428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6451.49774873
delta logL = 0.718978398241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78651       1.0000          .0000       .10000E+07
     2 'alpha     '    3.7309       1.0000          .0000       5.0000    
     3 'Normalizat'    .82427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90514       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=   6451.498     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      242 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78116        8.7929        .53946E-03    .85947E-02
   2  alpha         3.7359        4.2469        .32470        .58025E-04
   3  Normalizat    .82373        .44636E-01    .43926E-01    .10941E-04
   4  Prefactor     .90558        .43717E-01    .45070E-01    .88210E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.781161
  alpha      = 3.73586
  Normalizat = 0.823732
  Prefactor  = 0.905584
 **********
 **   18 **HESSE 
 **********

 FCN=   6451.498     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78116        17.271        .46759E-05   -1.5690    
   2  alpha         3.7359        4.2015        .12946E-01    .51708    
   3  Normalizat    .82373        .21253        .23838E-03   -.99194    
   4  Prefactor     .90558        .20756        .23194E-03   -.95946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54664e-07
Minuit parameter uncertainties:
  1  7.34618
  2  5.6717
  3  0.212748
  4  0.207738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230948': 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): 102
logL (Free Index) = 6451.49773836
delta logL = 0.718988767599

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.812e-01  7.346e+00  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  3.736e+00  5.672e+00  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:  9.056e-01  2.077e-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.237e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 3.74 +/- 5.67
Photon Flux (Free Index): 7.03e-08 +/- 7.29e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.16e-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/230948/cmap_HighResolution_694742401_695001601_4FGL_J2331.0-2147_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', comment='SUCCESS', photon_flux='2.63e-08', energy_flux2='1.19e-05', photon_flux_error='2.88e-08', dlogl='7.19e-01', energy_flux='8.75e-06', photon_flux2='7.03e-08', job_status='DONE', time_completed='2023-01-10 03:03:13.085530', photon_index_error2='5.67', photon_index2='3.74', ts='1.07', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.80e-08', energy_flux_error2='1.16e-05', EG='0.88', time_epoch_completed='1673348593.09', return_code='0', job_id='230948', GAL2='0.91', EG2='0.82', return_code2='102', energy_flux_error='9.59e-06', photon_flux_error2='7.29e-08', ts2='2.60', photon_index='2.43' WHERE bin_id='1757' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 03:03:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 230948: <4FGL_J2331.0-2147_daily_bin1757> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jan 10 02:50:20 2023
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 02:51:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 02:51:20 2023
Terminated at Tue Jan 10 03:03:13 2023
Results reported at Tue Jan 10 03:03:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1757 352.763 -21.7953 694742401 695001601 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 :                                   529.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            773 sec.

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

