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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1774
RA = 352.763, Dec = -21.7953
tmin = 699148801, tmax = 699408001
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='700328', job_status='RUN', time_executed='2023-03-02 01:50:59.467648', time_epoch_executed='1677750659.47' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700328/ft1_4FGL_J2331.0-2147_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700328/ft2_4FGL_J2331.0-2147_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700328/ft1_4FGL_J2331.0-2147_daily_bin1774.fits outfile=/scratch/kocevski/700328/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1774.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=699148801.0 tmax=699408001.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.80
user 2.59
sys 0.20

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

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

Number of photons that the gtmktime cut: 107

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700328/ft1_filtered_4FGL_J2331.0-2147_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/700328/ft2_4FGL_J2331.0-2147_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/700328/ltcube_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.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/700328/ft2_4FGL_J2331.0-2147_daily_bin1774.fits
.....................!
real 12.94
user 12.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700328/ft1_filtered_4FGL_J2331.0-2147_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/700328/ft2_4FGL_J2331.0-2147_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/700328/ltcube_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.fits outfile=/scratch/kocevski/700328/expmap_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.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/700328/ltcube_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.fits
.....................!
real 190.56
user 185.77
sys 4.44

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/700328/ft1_filtered_4FGL_J2331.0-2147_daily_bin1774.fits scfile=/scratch/kocevski/700328/ft2_4FGL_J2331.0-2147_daily_bin1774.fits outfile=/scratch/kocevski/700328/cmap_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700328/ft1_filtered_4FGL_J2331.0-2147_daily_bin1774.fits scfile=/scratch/kocevski/700328/ft2_4FGL_J2331.0-2147_daily_bin1774.fits outfile=/scratch/kocevski/700328/cmap_HighResolution_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700328/ft1_filtered_4FGL_J2331.0-2147_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/700328/ft2_4FGL_J2331.0-2147_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700328/Model_4FGL_J2331.0-2147_daily_bin1774.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/700328/ft1_filtered_4FGL_J2331.0-2147_daily_bin1774.fits......................!
real 21.52
user 20.19
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68943E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .25499E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.570       1.0000          .0000       .10000E+07
     4 'norm      '    .29310E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11221E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    80.933       1.0000          .0000       .10000E+07
     7 'norm      '    .49905E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .28400E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .50938E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .74722E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    116.38       1.0000          .0000       .10000E+07
    12 'norm      '    17.074       1.0000          .0000       .10000E+07
    13 'Prefactor '    .60328E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .16159E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .34143E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .49918E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15434E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4858       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86748       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=   1262.418     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     1882 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        39.340        .42118E-03** at limit **
   2  norm           .0000        71.152        .16699E-02** at limit **
   3  Prefactor     10433.        8308.1        .29427E-03   -.66644E-06
   4  norm          .55511E-09    32.220        .16487E-02** at limit **
   5  Prefactor     .21649E-08    80.562        .42118E-03** at limit **
   6  Prefactor     .10547E-08    114.11        .11116E-03** at limit **
   7  norm           .0000        2.5953        .42118E-03** at limit **
   8  Prefactor      .0000        60.581        .16536E-02** at limit **
   9  Prefactor      .0000        35.080        .42118E-03** at limit **
  10  Prefactor      .0000        72.960        .14665E-02** at limit **
  11  Prefactor     112.70        144.55        .92702E-04    .21912E-03
  12  norm          16.156        14.724        .24211E-03   -.16509E-03
  13  Prefactor     .12212E-08    48.061        .42118E-03** at limit **
  14  norm          .11102E-09    .92807        .42118E-03** at limit **
  15  norm          .56052E-01    7.4558        .11037E-01** at limit **
  16  Prefactor      .0000        71.109        .15544E-02** at limit **
  17  Prefactor      .0000        60.511        .17358E-02** at limit **
  18  Normalizat    1.3513        .46127        .57784E-01    .63067E-04
  19  Prefactor     .92814        .43590        .66361E-01    .24358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 10433.3
  norm       = 5.55112e-10
  Prefactor  = 2.16493e-09
  Prefactor  = 1.05471e-09
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 112.698
  norm       = 16.1557
  Prefactor  = 1.22125e-09
  norm       = 1.11022e-10
  norm       = 0.0560525
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.35135
  Prefactor  = 0.928137
 **********
 **   18 **HESSE 
 **********

 FCN=   1262.418     FROM HESSE     STATUS=OK           256 CALLS     2138 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        39.345        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        71.153        .29273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10433.        8379.4        .11771E-04   -1.3662    
   4  norm          .55511E-09    32.224        .19698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21649E-08    80.562        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10547E-08    114.11        .22233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.5957        .55902E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        60.584        .27012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        35.080        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        72.999        .29331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     112.70        144.63        .37081E-05   -1.5496    
  12  norm          16.156        14.729        .96845E-05   -1.5628    
  13  Prefactor     .12212E-08    48.071        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11102E-09    .93556        .33356E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .56052E-01    657.10        .17934E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        71.165        .29264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        60.586        .26995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3513        .57780        .25553E-03   -.82046    
  19  Prefactor     .92814        .53870        .29355E-03   -.95165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07545e-10
Minuit parameter uncertainties:
  1  1.19517e-05
  2  7.63769e-05
  3  8388.95
  4  0.000267395
  5  0.000835604
  6  0.000695903
  7  9.43371e-06
  8  3.07458e-05
  9  2.32215e-05
  10  3.84391e-06
  11  144.63
  12  14.7286
  13  0.000482971
  14  1.79591e-05
  15  12.1392
  16  3.14717e-05
  17  6.37868e-05
  18  0.580606
  19  0.541843
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.616e+01  1.473e+01  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:  9.281e-01  5.418e-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.351e+00  5.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 1.58e-07
Energy Flux (Fixed Index): 5.76e-05 +/- 5.25e-05

TS (Fixed Index): 1.99
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 5.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700328/likelihoodResults_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.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) = 1262.12362325
delta logL = 0.293982538265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1262.10941562
delta logL = 0.308190168956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3073       1.0000          .0000       .10000E+07
     2 'alpha     '    3.3765       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0287       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=   1262.109     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2996        168.47        .39944E-03    .18225E-03
   2  alpha         3.3774        3.7352        .17676        .11107E-04
   3  Normalizat    1.2298        .24019        .60038E-01    .26211E-05
   4  Prefactor     1.0289        .22616        .63450E-01    .34243E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.29956
  alpha      = 3.37738
  Normalizat = 1.22981
  Prefactor  = 1.02886
 **********
 **   18 **HESSE 
 **********

 FCN=   1262.109     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2996        18.843        .70134E-05   -1.5658    
   2  alpha         3.3774        1.7562        .75715E-02    .35859    
   3  Normalizat    1.2298        .59299        .26553E-03   -.85687    
   4  Prefactor     1.0289        .57622        .28064E-03   -.91774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66912e-09
Minuit parameter uncertainties:
  1  18.8431
  2  1.98599
  3  0.596288
  4  0.579727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700328': 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) = 1262.10941545
delta logL = 0.308190342317

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  6.300e+00  1.884e+01  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  3.377e+00  1.986e+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:  1.029e+00  5.797e-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.230e+00  5.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 3.38 +/- 1.99
Photon Flux (Free Index): 3.02e-07 +/- 3.04e-07
Energy Flux (Free Index): 5.70e-05 +/- 4.89e-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/700328/cmap_HighResolution_699148801_699408001_4FGL_J2331.0-2147_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-04', comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='5.70e-05', photon_flux_error='1.58e-07', dlogl='3.08e-01', energy_flux='5.76e-05', photon_flux2='3.02e-07', job_status='DONE', time_completed='2023-03-02 01:56:53.245287', photon_index_error2='1.99', photon_index2='3.38', ts='1.99', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='5.45e-07', energy_flux_error2='4.89e-05', EG='1.35', time_epoch_completed='1677751013.25', return_code='0', job_id='700328', GAL2='1.03', EG2='1.23', return_code2='0', energy_flux_error='5.25e-05', photon_flux_error2='3.04e-07', ts2='2.64', photon_index='2.43' WHERE bin_id='1774' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:56:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 700328: <4FGL_J2331.0-2147_daily_bin1774> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1774> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Mar  2 01:50:14 2023
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 01:50:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 01:50:15 2023
Terminated at Thu Mar  2 01:56:54 2023
Results reported at Thu Mar  2 01:56:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1774 352.763 -21.7953 699148801 699408001 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 :                                   356.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             353.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   398 sec.
    Turnaround time :                            400 sec.

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

