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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1749
RA = 352.763, Dec = -21.7953
tmin = 692668801, tmax = 692928001
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='965459', job_status='RUN', time_executed='2022-12-17 01:37:06.450264', time_epoch_executed='1671269826.45' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/965459

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/965459/ft1_4FGL_J2331.0-2147_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/965459/ft2_4FGL_J2331.0-2147_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/965459/ft1_4FGL_J2331.0-2147_daily_bin1749.fits outfile=/scratch/kocevski/965459/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1749.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=692668801.0 tmax=692928001.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.65
user 3.42
sys 0.21

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

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

Number of photons that the gtmktime cut: 379

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/965459/ft1_filtered_4FGL_J2331.0-2147_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/965459/ft2_4FGL_J2331.0-2147_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/965459/ltcube_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.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/965459/ft2_4FGL_J2331.0-2147_daily_bin1749.fits
.....................!
real 12.30
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/965459/ft1_filtered_4FGL_J2331.0-2147_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/965459/ft2_4FGL_J2331.0-2147_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/965459/ltcube_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.fits outfile=/scratch/kocevski/965459/expmap_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.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/965459/ltcube_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.fits
.....................!
real 191.86
user 186.28
sys 5.09

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/965459/ft1_filtered_4FGL_J2331.0-2147_daily_bin1749.fits scfile=/scratch/kocevski/965459/ft2_4FGL_J2331.0-2147_daily_bin1749.fits outfile=/scratch/kocevski/965459/cmap_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.763 yref=-21.7953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/965459/ft1_filtered_4FGL_J2331.0-2147_daily_bin1749.fits scfile=/scratch/kocevski/965459/ft2_4FGL_J2331.0-2147_daily_bin1749.fits outfile=/scratch/kocevski/965459/cmap_HighResolution_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/965459/ft1_filtered_4FGL_J2331.0-2147_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/965459/ft2_4FGL_J2331.0-2147_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/965459/Model_4FGL_J2331.0-2147_daily_bin1749.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/965459/ft1_filtered_4FGL_J2331.0-2147_daily_bin1749.fits......................!
real 39.31
user 38.00
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79722E-02   1.0000          .0000       .10000E+07
     2 'norm      '    3.8482       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22180       1.0000          .0000       .10000E+07
     4 'norm      '    2.4066       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54333E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    32.602       1.0000          .0000       .10000E+07
     7 'norm      '    .26040E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4293       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21059E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    18.139       1.0000          .0000       .10000E+07
    11 'Prefactor '    .46196E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .49644E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    28.977       1.0000          .0000       .10000E+07
    14 'norm      '    .71780       1.0000          .0000       .10000E+07
    15 'norm      '    .21649E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    85.179       1.0000          .0000       .10000E+07
    17 'Prefactor '    .54294       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.5486       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .17699       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=   4281.154     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     1481 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        16.714       -.22588E-06** at limit **
   2  norm          3.8418        2.8366       -.36658E-07   -.12972E-02
   3  Prefactor     .33307E-09    49.725       -.10865E-06** at limit **
   4  norm          2.4121        3.0460       -.79800E-07    .14817E-02
   5  Prefactor     .16653E-09    16.079       -.76541E-07** at limit **
   6  Prefactor     32.662        11.643       -.14386E-06    .11803E-02
   7  norm          .11102E-09    1.6261        .18388E-07** at limit **
   8  Prefactor     3.4674        9.1597       -.12842E-06    .16654E-02
   9  Prefactor     .16653E-09    5.9281       -.22755E-07** at limit **
  10  Prefactor     18.176        5.2581       -.48360E-06   -.93896E-01
  11  Prefactor     .52236E-07    103.98       -.39831E-05** at limit **
  12  norm          .11102E-09    1.4114        .50012E-07** at limit **
  13  Prefactor     29.001        20.330       -.20080E-05    .30254E-01
  14  norm          .71833        .50064        .31203E-07   -.14618E-01
  15  norm           .0000        2.0864        .11663E-07** at limit **
  16  Prefactor     87.776        59.484       -.49865E-05   -.26328E-03
  17  Prefactor     .50426E-05    3550.2        .76605E-04** at limit **
  18  Normalizat    1.5477        .23359        .79853E-05   -.11520E-02
  19  Prefactor     .17709        .20623        .92010E-06   -.37021E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 3.84176
  Prefactor  = 3.33067e-10
  norm       = 2.41208
  Prefactor  = 1.66533e-10
  Prefactor  = 32.6623
  norm       = 1.11022e-10
  Prefactor  = 3.46744
  Prefactor  = 1.66533e-10
  Prefactor  = 18.1765
  Prefactor  = 5.2236e-08
  norm       = 1.11022e-10
  Prefactor  = 29.0007
  norm       = 0.718329
  norm       = 0
  Prefactor  = 87.7758
  Prefactor  = 5.04263e-06
  Normalizat = 1.54774
  Prefactor  = 0.177085
 **********
 **   18 **HESSE 
 **********

 FCN=   4281.154     FROM HESSE     STATUS=OK           320 CALLS     1801 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        16.705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8418        2.8386        .51420E-03   -1.5669    
   3  Prefactor     .33307E-09    49.606        .11400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4121        3.0556        .65970E-03   -1.5677    
   5  Prefactor     .16653E-09    16.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.662        13.841        .17516E-03   -1.5594    
   7  norm          .11102E-09    .56413        .23145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4674        9.2148        .54597E-03   -1.5671    
   9  Prefactor     .16653E-09    5.8891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.176        21.085        .23489E-03   -1.5623    
  11  Prefactor     .52236E-07    103.46        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .11102E-09    1.4106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.001        21.530        .18580E-03   -1.5600    
  14  norm          .71833        .50224        .59275E-04   -1.5691    
  15  norm           .0000        2.0767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.776        62.682        .10836E-03   -1.5521    
  17  Prefactor     .50426E-05    133.04        .12464E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5477        .26008        .42564E-01   -.76446    
  19  Prefactor     .17709        .23310        .10533       -1.3039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45651e-07
Minuit parameter uncertainties:
  1  9.24808e-06
  2  2.83864
  3  0.000256882
  4  3.05561
  5  0.000103268
  6  13.8408
  7  1.70265e-05
  8  9.21483
  9  6.17486e-05
  10  21.085
  11  0.0046495
  12  2.38317e-05
  13  21.5301
  14  0.502241
  15  4.01431e-06
  16  62.6828
  17  0.0518037
  18  0.260306
  19  0.234335
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.771e-01  2.343e-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.548e+00  2.603e-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: 5.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/965459/likelihoodResults_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.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): 102
logL (Free Index) = 4281.14870968
delta logL = 0.00513375838636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4281.12218762
delta logL = 0.0316558190789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31742E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.5327       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .18578       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4281.122     FROM MIGRAD    STATUS=FAILED        99 CALLS      313 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31559E-01    23.842        .37665E-04** at limit **
   2  alpha         4.5354        2.7323        .10601        .11874E-03
   3  Normalizat    1.5331        .11810        .18885E-03   -.51166E-03
   4  Prefactor     .18550        .10233        .45545E-03    .83620E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4281.122     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      404 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31559E-01    23.842        .60823E-05** at limit **
   2  alpha         4.5354        2.7323        .61348E-02    .11874E-03
   3  Normalizat    1.5331        .11810        .18780E-03   -.51166E-03
   4  Prefactor     .18550        .10233        .18818E-03    .83620E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4281.122     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31558E-01    1.1678        .75331E-05** at limit **
   2  alpha         4.5354        3.6684        .21202E-01   -.44135E-05
   3  Normalizat    1.5331        .23478        .37770E-04   -.50929E-03
   4  Prefactor     .18550        .20786        .18218E-04    .83995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0315579
  alpha      = 4.5354
  Normalizat = 1.53305
  Prefactor  = 0.185496
 **********
 **   18 **HESSE 
 **********

 FCN=   4281.122     FROM HESSE     STATUS=OK            23 CALLS      459 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31558E-01    .43638        .30132E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5354        4.7621        .84809E-03    .95128    
   3  Normalizat    1.5331        .23496        .75540E-05   -.76854    
   4  Prefactor     .18550        .20832        .36436E-05   -1.2976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95779e-09
Minuit parameter uncertainties:
  1  0.234702
  2  3.52313
  3  0.235128
  4  0.209154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/965459': 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) = 4281.12218611
delta logL = 0.0316573273312

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.156e-02  2.347e-01  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  4.535e+00  3.523e+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.855e-01  2.092e-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.533e+00  2.351e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/965459/cmap_HighResolution_692668801_692928001_4FGL_J2331.0-2147_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2022-12-17 01:44:53.541681', job_id='965459', GAL2='0.19', fit_tolerance='1e-08', EG2='1.53', EG='1.55', time_epoch_completed='1671270293.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.18', dlogl='3.17e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1749' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:44:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 965459: <4FGL_J2331.0-2147_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Dec 17 01:35:18 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:35:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:35:20 2022
Terminated at Sat Dec 17 01:44:54 2022
Results reported at Sat Dec 17 01:44:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1749 352.763 -21.7953 692668801 692928001 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 :                                   469.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            576 sec.

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

