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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1724
RA = 352.763, Dec = -21.7953
tmin = 686188801, tmax = 686448001
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='707987', job_status='RUN', time_executed='2022-10-03 01:21:29.096123', time_epoch_executed='1664785289.1' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707987

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707987/ft1_4FGL_J2331.0-2147_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707987/ft1_4FGL_J2331.0-2147_daily_bin1724.fits outfile=/scratch/kocevski/707987/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1724.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=686188801.0 tmax=686448001.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.68
user 4.36
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.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/707987/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1724.fits evtable="EVENTS" outfile="/scratch/kocevski/707987/ft1_filtered_4FGL_J2331.0-2147_daily_bin1724.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 402

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707987/ft1_filtered_4FGL_J2331.0-2147_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/707987/ltcube_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.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/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.fits
.....................!
real 15.82
user 15.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707987/ft1_filtered_4FGL_J2331.0-2147_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707987/ltcube_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.fits outfile=/scratch/kocevski/707987/expmap_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.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/707987/ltcube_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.fits
.....................!
real 193.27
user 187.45
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/707987/ft1_filtered_4FGL_J2331.0-2147_daily_bin1724.fits scfile=/scratch/kocevski/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.fits outfile=/scratch/kocevski/707987/cmap_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.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.58
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707987/ft1_filtered_4FGL_J2331.0-2147_daily_bin1724.fits scfile=/scratch/kocevski/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.fits outfile=/scratch/kocevski/707987/cmap_HighResolution_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707987/ft1_filtered_4FGL_J2331.0-2147_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707987/ft2_4FGL_J2331.0-2147_daily_bin1724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707987/Model_4FGL_J2331.0-2147_daily_bin1724.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/707987/ft1_filtered_4FGL_J2331.0-2147_daily_bin1724.fits.....................!
real 41.09
user 39.65
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    40.055       1.0000          .0000       .10000E+07
     2 'norm      '    1.3326       1.0000          .0000       .10000E+07
     3 'Prefactor '    69.777       1.0000          .0000       .10000E+07
     4 'norm      '    3.2066       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14331E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    34.320       1.0000          .0000       .10000E+07
     7 'norm      '    .21261E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23851E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22573E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .26806E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .92910E-05   1.0000          .0000       .10000E+07
    12 'norm      '    1.1358       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.4475       1.0000          .0000       .10000E+07
    14 'norm      '    .87103E-05   1.0000          .0000       .10000E+07
    15 'norm      '    27.913       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26329E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14337E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    .91537       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83994       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=   4573.141     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     1482 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          40.647        6.1020        .14069E-07   -.18514    
   2  norm          .93047        3.2999       -.45884E-06   -.89356E-03
   3  Prefactor     83.732        82.672        .82444E-06   -.10903E-02
   4  norm          3.2200        3.1326        .40251E-07    .12875E-03
   5  Prefactor      .0000        7.4192        .55610E-08** at limit **
   6  Prefactor     33.796        10.894       -.48034E-07   -.10475E-02
   7  norm           .0000        .33483       -.52877E-07** at limit **
   8  Prefactor      .0000        6.4633        .36614E-07** at limit **
   9  Prefactor      .0000        7.5920       -.36878E-07** at limit **
  10  Prefactor      .0000        20.052        .45179E-06** at limit **
  11  Prefactor     .32067E-05    100.84       -.36649E-06** at limit **
  12  norm          1.1644        3.3984        .76934E-08   -.53570E-04
  13  Prefactor     4.4333        9.0937        .36772E-07   -.36090E-04
  14  norm           .0000        1.9767       -.79530E-08** at limit **
  15  norm          27.893        7.5625       -.50191E-07    .52801E-04
  16  Prefactor     .72164E-08    40.081        .12478E-06** at limit **
  17  Prefactor     .77716E-09    22.163        .10315E-06** at limit **
  18  Normalizat    .91208        .22967       -.19860E-05    .33430E-05
  19  Prefactor     .84112        .22020        .33969E-05    .18723E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 40.6475
  norm       = 0.930469
  Prefactor  = 83.7316
  norm       = 3.22001
  Prefactor  = 0
  Prefactor  = 33.7962
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.20666e-06
  norm       = 1.16439
  Prefactor  = 4.43332
  norm       = 0
  norm       = 27.8931
  Prefactor  = 7.21645e-09
  Prefactor  = 7.77156e-10
  Normalizat = 0.912075
  Prefactor  = 0.841125
 **********
 **   18 **HESSE 
 **********

 FCN=   4573.141     FROM HESSE     STATUS=OK           308 CALLS     1790 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          40.647        42.669        .15802E-03   -1.5580    
   2  norm          .93047        3.4994        .95056E-03   -1.5689    
   3  Prefactor     83.732        86.124        .11972E-03   -1.5525    
   4  norm          3.2200        3.1485        .56553E-03   -1.5672    
   5  Prefactor      .0000        7.4304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.796        10.960        .17072E-03   -1.5592    
   7  norm           .0000        .33276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        6.4419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        7.5879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        20.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .32067E-05    103.35        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1644        3.4054        .10930E-02   -1.5686    
  13  Prefactor     4.4333        9.1012        .47724E-03   -1.5666    
  14  norm           .0000        .43501        .23804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.893        8.4385        .18931E-03   -1.5602    
  16  Prefactor     .72164E-08    40.265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .77716E-09    22.277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .91208        .19640        .45098E-01   -.96037    
  19  Prefactor     .84112        .18781        .44235E-01   -.98230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57194e-06
Minuit parameter uncertainties:
  1  42.6694
  2  3.49939
  3  86.125
  4  3.14848
  5  1.26678e-05
  6  10.9598
  7  8.52197e-10
  8  7.35344e-06
  9  5.3505e-06
  10  3.70439e-05
  11  0.0364098
  12  3.40544
  13  9.10125
  14  1.08978e-07
  15  8.43848
  16  0.00107989
  17  0.000265024
  18  0.196557
  19  0.18795
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.411e-01  1.879e-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:  9.121e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/707987/likelihoodResults_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.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) = 4573.13863132
delta logL = 0.00251708408814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4573.13810353
delta logL = 0.00304487629001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2775       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2763       1.0000          .0000       5.0000    
     3 'Normalizat'    .91437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83946       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=   4573.138     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2737        294.70        .20812E-04   -.88166E-03
   2  alpha         2.2765        2.8671        .50000       -.16129E-05
   3  Normalizat    .91441        .86580E-01    .24536E-03   -.18719E-04
   4  Prefactor     .83947        .62844E-01    .24727E-03   -.13931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27365
  alpha      = 2.27646
  Normalizat = 0.914407
  Prefactor  = 0.839468
 **********
 **   18 **HESSE 
 **********

 FCN=   4573.138     FROM HESSE     STATUS=OK            27 CALLS      265 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2737        3.8576        .83248E-06   -1.5685    
   2  alpha         2.2765        1.7834        .36064E-01   -.89535E-01
   3  Normalizat    .91441        .22621        .98143E-05   -.95956    
   4  Prefactor     .83947        .22012        .98906E-05   -.98289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42086e-11
Minuit parameter uncertainties:
  1  3.85762
  2  1.98792
  3  0.226442
  4  0.22035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707987': 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) = 4573.13810295
delta logL = 0.00304545131985

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.274e+00  3.858e+00  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  2.276e+00  1.988e+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:  8.395e-01  2.204e-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:  9.144e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/707987/cmap_HighResolution_686188801_686448001_4FGL_J2331.0-2147_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2022-10-03 01:29:27.125845', job_id='707987', GAL2='0.84', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1664785767.13', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.05e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1724' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:29:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 707987: <4FGL_J2331.0-2147_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:51 2022
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:18:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:18:34 2022
Terminated at Mon Oct  3 01:29:27 2022
Results reported at Mon Oct  3 01:29:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1724 352.763 -21.7953 686188801 686448001 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 :                                   479.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            816 sec.

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

