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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1754
RA = 352.763, Dec = -21.7953
tmin = 693964801, tmax = 694224001
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='660016', job_status='RUN', time_executed='2023-01-01 02:09:34.124545', time_epoch_executed='1672567774.12' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660016/ft1_4FGL_J2331.0-2147_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660016/ft2_4FGL_J2331.0-2147_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660016/ft1_4FGL_J2331.0-2147_daily_bin1754.fits outfile=/scratch/kocevski/660016/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1754.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=693964801.0 tmax=694224001.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.96
user 3.68
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660016/ft2_4FGL_J2331.0-2147_daily_bin1754.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/660016/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/660016/ft1_filtered_4FGL_J2331.0-2147_daily_bin1754.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.51
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 657

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660016/ft1_filtered_4FGL_J2331.0-2147_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/660016/ft2_4FGL_J2331.0-2147_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/660016/ltcube_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.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/660016/ft2_4FGL_J2331.0-2147_daily_bin1754.fits
.....................!
real 13.47
user 13.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660016/ft1_filtered_4FGL_J2331.0-2147_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/660016/ft2_4FGL_J2331.0-2147_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/660016/ltcube_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.fits outfile=/scratch/kocevski/660016/expmap_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.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/660016/ltcube_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.fits
.....................!
real 192.74
user 186.38
sys 5.54

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/660016/ft1_filtered_4FGL_J2331.0-2147_daily_bin1754.fits scfile=/scratch/kocevski/660016/ft2_4FGL_J2331.0-2147_daily_bin1754.fits outfile=/scratch/kocevski/660016/cmap_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.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.61
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660016/ft1_filtered_4FGL_J2331.0-2147_daily_bin1754.fits scfile=/scratch/kocevski/660016/ft2_4FGL_J2331.0-2147_daily_bin1754.fits outfile=/scratch/kocevski/660016/cmap_HighResolution_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15755E-03   1.0000          .0000       .10000E+07
     2 'norm      '    5.0157       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22194E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .65242E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .20235E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .27588E-02   1.0000          .0000       .10000E+07
     7 'norm      '    3.2384       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35340       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.3030       1.0000          .0000       .10000E+07
    10 'Prefactor '    .99738E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    14.628       1.0000          .0000       .10000E+07
    12 'norm      '    .10647E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .60341E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .26257E-07   1.0000          .0000       .10000E+07
    15 'norm      '    3.7127       1.0000          .0000       .10000E+07
    16 'Prefactor '    .24317E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .45834E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1116       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .78107       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=   7147.503     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1176 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23266E-05    10.231        .15766E-07** at limit **
   2  norm          5.0166        2.5441        .23534E-06    .77333E-03
   3  Prefactor     .16653E-09    65.272       -.60659E-06** at limit **
   4  norm          .44409E-09    1.4060        .14428E-07** at limit **
   5  Prefactor     .11269E-07    4.7816        .96234E-08** at limit **
   6  Prefactor     .53514E-05    5.0796        .36238E-08** at limit **
   7  norm          3.2396        .84364        .35697E-07    .12931E-02
   8  Prefactor     .44974        22.756       -.42903E-06   -.25308E-01
   9  Prefactor     1.2971        20.256       -.73742E-07   -.17458E-02
  10  Prefactor     .78493E-07    33.589       -.49271E-07** at limit **
  11  Prefactor     14.988        3.4244        .38649E-07   -.47055E-01
  12  norm          .20217E-06    6.0094       -.10031E-06** at limit **
  13  Prefactor     .79936E-07    3.8947       -.12404E-06** at limit **
  14  norm           .0000        .12880       -.54028E-07** at limit **
  15  norm          3.7140        3.0059        .17931E-06   -.53431E-03
  16  Prefactor     .29421E-08    5.6686       -.18885E-06** at limit **
  17  Prefactor     .68429E-06    8.8073       -.28818E-06** at limit **
  18  Normalizat    1.1112        .17198       -.40482E-05    .26359E-04
  19  Prefactor     .78116        .17314        .48999E-05    .91818E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32664e-06
  norm       = 5.01664
  Prefactor  = 1.66533e-10
  norm       = 4.44089e-10
  Prefactor  = 1.12688e-08
  Prefactor  = 5.35144e-06
  norm       = 3.23955
  Prefactor  = 0.449742
  Prefactor  = 1.29713
  Prefactor  = 7.84928e-08
  Prefactor  = 14.9876
  norm       = 2.02172e-07
  Prefactor  = 7.99361e-08
  norm       = 0
  norm       = 3.714
  Prefactor  = 2.94209e-09
  Prefactor  = 6.84286e-07
  Normalizat = 1.11116
  Prefactor  = 0.781163
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.503     FROM HESSE     STATUS=OK           304 CALLS     1480 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23266E-05    13.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0166        2.5480        .44877E-03   -1.5663    
   3  Prefactor     .16653E-09    65.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .44409E-09    1.4043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11269E-07    4.9251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .53514E-05    12.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2396        .86739        .56261E-03   -1.5672    
   8  Prefactor     .44974        4.1674        .95097E-02   -1.5695    
   9  Prefactor     1.2971        21.177        .96711E-03   -1.5685    
  10  Prefactor     .78493E-07    33.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.988        45.656        .26162E-03   -1.5631    
  12  norm          .20217E-06    1.5264        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .79936E-07    6.8324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .12746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7140        3.0235        .52385E-03   -1.5669    
  16  Prefactor     .29421E-08    7.7040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .68429E-06    9.7473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1112        .15148        .37547E-01   -.89394    
  19  Prefactor     .78116        .14952        .43470E-01   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36425e-06
Minuit parameter uncertainties:
  1  0.0111651
  2  2.54803
  3  0.000212114
  4  4.92261e-05
  5  0.000470663
  6  0.0163247
  7  0.867395
  8  2.73809
  9  10.4823
  10  0.00325282
  11  45.6571
  12  0.00111095
  13  0.00147796
  14  3.43882e-07
  15  3.02352
  16  0.000301931
  17  0.00516533
  18  0.151537
  19  0.149602
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.022e-07  1.111e-03  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.812e-01  1.496e-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.111e+00  1.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/660016/likelihoodResults_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.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) = 7147.50441428
delta logL = -0.00106159411189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7147.50276717
delta logL = 0.000585513991609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42360E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    3.1126       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78104       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=   7147.503     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      266 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39665E-01    2.3964        .38694E-02** at limit **
   2  alpha         3.1139        3.3953        .42833        .28401E-04
   3  Normalizat    1.1101        .80932E-02    .37596E-01   -.10386E-04
   4  Prefactor     .78145        .82282E-02    .43470E-01    .34766E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0396652
  alpha      = 3.11388
  Normalizat = 1.11009
  Prefactor  = 0.781445
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.503     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      303 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39665E-01    341.06        .11498E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1139        3.8658        .50000        .24809    
   3  Normalizat    1.1101        .25895E-01    .21397E-03   -.89429    
   4  Prefactor     .78145        .26575E-01    .25346E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07896e-07
Minuit parameter uncertainties:
  1  7.35659
  2  36.2199
  3  0.0258953
  4  0.0265757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660016': 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) = 7147.50276131
delta logL = 0.000591367461311

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.967e-02  7.357e+00  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  3.114e+00  3.622e+01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.814e-01  2.658e-02  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.110e+00  2.590e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/660016/cmap_HighResolution_693964801_694224001_4FGL_J2331.0-2147_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-05', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2023-01-01 02:18:29.957076', job_id='660016', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1672568309.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.91e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1754' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 02:18:29 PST 2023


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

Job <4FGL_J2331.0-2147_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 02:05:16 2023
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 02:05:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 02:05:38 2023
Terminated at Sun Jan  1 02:18:30 2023
Results reported at Sun Jan  1 02:18:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1754 352.763 -21.7953 693964801 694224001 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 :                                   537.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            794 sec.

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

