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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1762
RA = 352.763, Dec = -21.7953
tmin = 696038401, tmax = 696297601
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='123384', job_status='RUN', time_executed='2023-01-25 01:47:23.912722', time_epoch_executed='1674640043.91' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123384/ft1_4FGL_J2331.0-2147_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123384/ft2_4FGL_J2331.0-2147_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123384/ft1_4FGL_J2331.0-2147_daily_bin1762.fits outfile=/scratch/kocevski/123384/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1762.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=696038401.0 tmax=696297601.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.69
user 3.43
sys 0.23

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

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

Number of photons that the gtmktime cut: 400

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123384/ft1_filtered_4FGL_J2331.0-2147_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/123384/ft2_4FGL_J2331.0-2147_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/123384/ltcube_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.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/123384/ft2_4FGL_J2331.0-2147_daily_bin1762.fits
.....................!
real 15.22
user 14.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123384/ft1_filtered_4FGL_J2331.0-2147_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/123384/ft2_4FGL_J2331.0-2147_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/123384/ltcube_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.fits outfile=/scratch/kocevski/123384/expmap_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.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/123384/ltcube_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.fits
.....................!
real 192.18
user 186.18
sys 5.45

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/123384/ft1_filtered_4FGL_J2331.0-2147_daily_bin1762.fits scfile=/scratch/kocevski/123384/ft2_4FGL_J2331.0-2147_daily_bin1762.fits outfile=/scratch/kocevski/123384/cmap_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.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/123384/ft1_filtered_4FGL_J2331.0-2147_daily_bin1762.fits scfile=/scratch/kocevski/123384/ft2_4FGL_J2331.0-2147_daily_bin1762.fits outfile=/scratch/kocevski/123384/cmap_HighResolution_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.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.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/123384/ft1_filtered_4FGL_J2331.0-2147_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/123384/ft2_4FGL_J2331.0-2147_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/123384/Model_4FGL_J2331.0-2147_daily_bin1762.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/123384/ft1_filtered_4FGL_J2331.0-2147_daily_bin1762.fits....................!
real 41.98
user 40.59
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10061E-02   1.0000          .0000       .10000E+07
     2 'norm      '    10.024       1.0000          .0000       .10000E+07
     3 'Prefactor '    .66391       1.0000          .0000       .10000E+07
     4 'norm      '    .50376E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .69641E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .46696E-03   1.0000          .0000       .10000E+07
     7 'norm      '    4.7315       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19680E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22559E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38765E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .48915E-02   1.0000          .0000       .10000E+07
    12 'norm      '    3.9260       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.594       1.0000          .0000       .10000E+07
    14 'norm      '    .13620E-05   1.0000          .0000       .10000E+07
    15 'norm      '    3.4924       1.0000          .0000       .10000E+07
    16 'Prefactor '    64.701       1.0000          .0000       .10000E+07
    17 'Prefactor '    93.790       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.6031       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .50335       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=   4529.970     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1455 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17044E-05    36.505        .18037E-05** at limit **
   2  norm          10.049        4.5262        .59566E-06   -.99437E-02
   3  Prefactor     .27686E-04    185.04        .40094E-05** at limit **
   4  norm          .52736E-08    18.796        .46214E-07** at limit **
   5  Prefactor     .23648E-07    19.417        .12963E-05** at limit **
   6  Prefactor      .0000        5.8183       -.21254E-06** at limit **
   7  norm          4.7348        1.1336        .14927E-06   -.22066E-01
   8  Prefactor     .11102E-09    6.5262        .54816E-06** at limit **
   9  Prefactor     .55511E-10    5.8330       -.31778E-06** at limit **
  10  Prefactor     .27558E-05    41.805       -.67702E-05** at limit **
  11  Prefactor     .22260E-07    22.126       -.34097E-05** at limit **
  12  norm          3.9045        5.7774       -.15748E-06    .23274E-02
  13  Prefactor     10.568        15.974        .17194E-06    .11885E-02
  14  norm           .0000        .43225        .23017E-07** at limit **
  15  norm          3.4976        4.5803        .79189E-07    .59094E-03
  16  Prefactor     65.189        13.611       -.49752E-06    .32192    
  17  Prefactor     95.794        93.703        .33722E-05   -.25308E-01
  18  Normalizat    1.6028        .27275       -.84313E-06    .57287E-06
  19  Prefactor     .50326        .23996        .18707E-05    .46087E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70441e-06
  norm       = 10.0487
  Prefactor  = 2.76863e-05
  norm       = 5.27356e-09
  Prefactor  = 2.36478e-08
  Prefactor  = 0
  norm       = 4.73475
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 2.7558e-06
  Prefactor  = 2.226e-08
  norm       = 3.90452
  Prefactor  = 10.5678
  norm       = 0
  norm       = 3.49756
  Prefactor  = 65.1888
  Prefactor  = 95.7935
  Normalizat = 1.60281
  Prefactor  = 0.503257
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.970     FROM HESSE     STATUS=OK           306 CALLS     1761 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17044E-05    36.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.049        4.5321        .31625E-03   -1.5645    
   3  Prefactor     .27686E-04    189.25        .63687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .52736E-08    18.323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .23648E-07    19.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.8201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7348        1.1360        .46234E-03   -1.5664    
   8  Prefactor     .11102E-09    6.5312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    5.8282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27558E-05    42.175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22260E-07    22.130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9045        5.7653        .50890E-03   -1.5668    
  13  Prefactor     10.568        15.979        .30758E-03   -1.5643    
  14  norm           .0000        .42425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4976        4.6331        .54080E-03   -1.5671    
  16  Prefactor     65.189        62.213        .12433E-03   -1.5546    
  17  Prefactor     95.794        96.932        .10326E-03   -1.5512    
  18  Normalizat    1.6028        .23366        .51084E-01   -.74929    
  19  Prefactor     .50326        .20878        .78738E-01   -1.1183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72581e-06
Minuit parameter uncertainties:
  1  0.0158674
  2  4.53214
  3  0.144776
  4  0.000620799
  5  0.00135517
  6  1.86002e-05
  7  1.13602
  8  5.91419e-05
  9  3.32794e-05
  10  0.0215618
  11  0.00140337
  12  5.76529
  13  15.9792
  14  1.10954e-06
  15  4.63314
  16  62.2141
  17  96.9334
  18  0.233816
  19  0.209096
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.905e+00  5.765e+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:  5.033e-01  2.091e-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.603e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/123384/likelihoodResults_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.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) = 4527.76004308
delta logL = 2.20980972338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4527.71236988
delta logL = 2.25748292559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89196       1.0000          .0000       .10000E+07
     2 'alpha     '    4.2691       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62042       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=   4527.712     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      298 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88773        7.3562        .46318E-03   -.31980E-01
   2  alpha         4.2717        4.4357        .21755       -.88448E-04
   3  Normalizat    1.4061        .89463E-01    .53671E-01   -.21271E-03
   4  Prefactor     .62063        .83621E-01    .71391E-01   -.97388E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.887727
  alpha      = 4.27166
  Normalizat = 1.40612
  Prefactor  = 0.620631
 **********
 **   18 **HESSE 
 **********

 FCN=   4527.712     FROM HESSE     STATUS=OK            29 CALLS      327 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88773        1.7553        .29657E-05   -1.5689    
   2  alpha         4.2717        1.0014        .97673E-03    .78760    
   3  Normalizat    1.4061        .27769        .23730E-03   -.80452    
   4  Prefactor     .62063        .24740        .31601E-03   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14581e-10
Minuit parameter uncertainties:
  1  1.75525
  2  1.06495
  3  0.277987
  4  0.247834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123384': 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) = 4527.71236611
delta logL = 2.25748668851

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  8.877e-01  1.755e+00  0.000e+00  1.000e+06 ( 1.000e-12)
419        alpha:  4.272e+00  1.065e+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:  6.206e-01  2.478e-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.406e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.48
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 4.27 +/- 1.06
Photon Flux (Free Index): 2.13e-07 +/- 1.11e-07
Energy Flux (Free Index): 3.24e-05 +/- 1.71e-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/123384/cmap_HighResolution_696038401_696297601_4FGL_J2331.0-2147_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-05', comment='SUCCESS', energy_flux2='3.24e-05', dlogl='2.26e+00', photon_flux2='2.13e-07', job_status='DONE', time_completed='2023-01-25 01:55:16.603099', photon_index_error2='1.06', photon_index2='4.27', ts='0.55', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.71e-05', EG='1.60', time_epoch_completed='1674640516.6', return_code='0', job_id='123384', GAL2='0.62', EG2='1.41', return_code2='0', photon_flux_error2='1.11e-07', ts2='5.48', photon_index='2.43' WHERE bin_id='1762' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:55:16 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 123384: <4FGL_J2331.0-2147_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1762> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan 25 01:45:21 2023
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:46:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:46:37 2023
Terminated at Wed Jan 25 01:55:17 2023
Results reported at Wed Jan 25 01:55:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1762 352.763 -21.7953 696038401 696297601 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            596 sec.

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

