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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1746
RA = 352.763, Dec = -21.7953
tmin = 691891201, tmax = 692150401
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='743831', job_status='RUN', time_executed='2022-12-08 01:58:51.329905', time_epoch_executed='1670493531.33' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743831/ft1_4FGL_J2331.0-2147_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743831/ft2_4FGL_J2331.0-2147_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743831/ft1_4FGL_J2331.0-2147_daily_bin1746.fits outfile=/scratch/kocevski/743831/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1746.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.74
user 4.45
sys 0.25

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

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

Number of photons that the gtmktime cut: 323

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743831/ft1_filtered_4FGL_J2331.0-2147_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/743831/ft2_4FGL_J2331.0-2147_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/743831/ltcube_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.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/743831/ft2_4FGL_J2331.0-2147_daily_bin1746.fits
.....................!
real 12.37
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743831/ft1_filtered_4FGL_J2331.0-2147_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/743831/ft2_4FGL_J2331.0-2147_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/743831/ltcube_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.fits outfile=/scratch/kocevski/743831/expmap_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.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/743831/ltcube_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.fits
.....................!
real 191.68
user 185.56
sys 5.19

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/743831/ft1_filtered_4FGL_J2331.0-2147_daily_bin1746.fits scfile=/scratch/kocevski/743831/ft2_4FGL_J2331.0-2147_daily_bin1746.fits outfile=/scratch/kocevski/743831/cmap_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.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/743831/ft1_filtered_4FGL_J2331.0-2147_daily_bin1746.fits scfile=/scratch/kocevski/743831/ft2_4FGL_J2331.0-2147_daily_bin1746.fits outfile=/scratch/kocevski/743831/cmap_HighResolution_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/743831/ft1_filtered_4FGL_J2331.0-2147_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/743831/ft2_4FGL_J2331.0-2147_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743831/Model_4FGL_J2331.0-2147_daily_bin1746.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/743831/ft1_filtered_4FGL_J2331.0-2147_daily_bin1746.fits.....................!
real 36.53
user 35.05
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.493       1.0000          .0000       .10000E+07
     2 'norm      '    6.5970       1.0000          .0000       .10000E+07
     3 'Prefactor '    45.900       1.0000          .0000       .10000E+07
     4 'norm      '    .21628E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19541E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19104E-03   1.0000          .0000       .10000E+07
     7 'norm      '    3.6065       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.2870       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.9871       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10963E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .38566E-04   1.0000          .0000       .10000E+07
    12 'norm      '    6.7810       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.231       1.0000          .0000       .10000E+07
    14 'norm      '    .41989E-06   1.0000          .0000       .10000E+07
    15 'norm      '    8.8126       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11628E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14865E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1395       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .70934       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=   3703.205     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1451 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.701        15.096       -.18119E-05    .10843    
   2  norm          6.6159        4.7449        .31864E-06   -.21260E-02
   3  Prefactor     44.657        103.62       -.71337E-06    .22619E-01
   4  norm           .0000        2.6997       -.15986E-05** at limit **
   5  Prefactor     .27756E-09    11.201       -.42850E-07** at limit **
   6  Prefactor     .55511E-09    15.725       -.83956E-06** at limit **
   7  norm          3.6097        1.3031       -.29896E-06    .50242E-02
   8  Prefactor     1.2011        16.875       -.23291E-05   -.41112E-03
   9  Prefactor     7.9249        12.290        .37360E-05    .11321E-01
  10  Prefactor     .16653E-09    10.390       -.33443E-05** at limit **
  11  Prefactor     .88202E-06    25.997       -.50222E-05** at limit **
  12  norm          6.6568        4.9459        .86303E-06   -.11162E-02
  13  Prefactor     12.124        10.109        .25769E-05    .11678    
  14  norm           .0000        .39043       -.13589E-06** at limit **
  15  norm          8.8064        5.7636       -.36966E-06   -.15798E-02
  16  Prefactor     .83356E-06    26.827        .50335E-05** at limit **
  17  Prefactor     .16653E-09    43.712        .43186E-05** at limit **
  18  Normalizat    1.1407        .28000        .17987E-04   -.18100E-03
  19  Prefactor     .70957        .26597       -.52364E-04   -.18406E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.701
  norm       = 6.61589
  Prefactor  = 44.6569
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 5.55112e-10
  norm       = 3.60971
  Prefactor  = 1.20115
  Prefactor  = 7.92488
  Prefactor  = 1.66533e-10
  Prefactor  = 8.82017e-07
  norm       = 6.65679
  Prefactor  = 12.1236
  norm       = 0
  norm       = 8.80642
  Prefactor  = 8.33555e-07
  Prefactor  = 1.66533e-10
  Normalizat = 1.14067
  Prefactor  = 0.70957
 **********
 **   18 **HESSE 
 **********

 FCN=   3703.205     FROM HESSE     STATUS=OK           310 CALLS     1761 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.701        58.620        .23262E-03   -1.5621    
   2  norm          6.6159        4.7319        .39047E-03   -1.5657    
   3  Prefactor     44.657        106.32        .14762E-03   -1.5574    
   4  norm           .0000        2.7042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27756E-09    11.193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-09    15.750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6097        1.5423        .53181E-03   -1.5670    
   8  Prefactor     1.2011        16.891        .97653E-03   -1.5686    
   9  Prefactor     7.9249        24.406        .35454E-03   -1.5652    
  10  Prefactor     .16653E-09    10.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .88202E-06    35.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.6568        4.9580        .38507E-03   -1.5656    
  13  Prefactor     12.124        19.282        .28618E-03   -1.5638    
  14  norm           .0000        .38045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.8064        5.8052        .33741E-03   -1.5649    
  16  Prefactor     .83356E-06    34.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-09    43.870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1407        .23069        .52879E-01   -.88457    
  19  Prefactor     .70957        .21856        .62757E-01   -1.0315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92233e-06
Minuit parameter uncertainties:
  1  58.622
  2  4.73191
  3  106.325
  4  5.54259e-06
  5  0.000114418
  6  0.000186262
  7  1.54231
  8  9.00854
  9  24.4067
  10  7.65209e-05
  11  0.0112218
  12  4.95799
  13  19.282
  14  4.27197e-06
  15  5.80523
  16  0.0107552
  17  0.000174962
  18  0.230898
  19  0.218825
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.657e+00  4.958e+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.096e-01  2.188e-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.141e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.14e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/743831/likelihoodResults_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.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) = 3703.02810768
delta logL = 0.176633787923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3703.02603863
delta logL = 0.178702835521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7855       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0571       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68969       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=   3703.026     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      280 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7852        6.6906        .12502E-04    .80084E-02
   2  alpha         2.0572        .59778        .11796E-01    .84909E-04
   3  Normalizat    1.1647        .27387        .23171E-03   -.51960E-04
   4  Prefactor     .68967        .26298        .28107E-03   -.97885E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.78516
  alpha      = 2.05717
  Normalizat = 1.16472
  Prefactor  = 0.689672
 **********
 **   18 **HESSE 
 **********

 FCN=   3703.026     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7852        6.6233        .50010E-06   -1.5649    
   2  alpha         2.0572        .59169        .47186E-03   -.17807    
   3  Normalizat    1.1647        .27405        .92682E-05   -.87700    
   4  Prefactor     .68967        .26316        .11243E-04   -1.0393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95141e-10
Minuit parameter uncertainties:
  1  6.62327
  2  0.597551
  3  0.274392
  4  0.263638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743831': 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) = 3703.02603862
delta logL = 0.178702843104

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.785e+00  6.623e+00  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  2.057e+00  5.976e-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:  6.897e-01  2.636e-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.165e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.06 +/- 0.60
Photon Flux (Free Index): 5.80e-08 +/- 5.08e-08
Energy Flux (Free Index): 3.03e-05 +/- 2.48e-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/743831/cmap_HighResolution_691891201_692150401_4FGL_J2331.0-2147_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-05', comment='SUCCESS', photon_flux='7.14e-08', energy_flux2='3.03e-05', photon_flux_error='5.31e-08', dlogl='1.79e-01', energy_flux='2.37e-05', photon_flux2='5.80e-08', job_status='DONE', time_completed='2022-12-08 02:06:12.595987', photon_index_error2='0.60', photon_index2='2.06', ts='2.57', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='2.48e-05', EG='1.14', time_epoch_completed='1670493972.6', return_code='0', job_id='743831', GAL2='0.69', EG2='1.16', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='5.08e-08', ts2='2.92', photon_index='2.43' WHERE bin_id='1746' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 02:06:12 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 743831: <4FGL_J2331.0-2147_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1746> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec  8 01:55:23 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:55:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:55:24 2022
Terminated at Thu Dec  8 02:06:13 2022
Results reported at Thu Dec  8 02:06:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1746 352.763 -21.7953 691891201 692150401 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 :                                   442.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            650 sec.

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

