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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1741
RA = 350.478, Dec = 32.0737
tmin = 690595201, tmax = 690854401
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='28125', job_status='RUN', time_executed='2022-11-23 01:09:33.301319', time_epoch_executed='1669194573.3' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28125/ft1_4FGL_J2321.9+3204_daily_bin1741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28125/ft1_4FGL_J2321.9+3204_daily_bin1741.fits outfile=/scratch/kocevski/28125/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1741.fits ra=350.478 dec=32.0737 rad=12.0 tmin=690595201.0 tmax=690854401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.92
user 2.68
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.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/28125/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1741.fits evtable="EVENTS" outfile="/scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.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.33
sys 0.16

Number of photons that the gtmktime cut: 1142

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits" evtable="EVENTS" scfile=/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits sctable="SC_DATA" outfile=/scratch/kocevski/28125/ltcube_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.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/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits
.....................!
real 14.20
user 13.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits evtable="EVENTS" scfile=/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits sctable="SC_DATA" expcube=/scratch/kocevski/28125/ltcube_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.fits outfile=/scratch/kocevski/28125/expmap_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.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/28125/ltcube_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.fits
.....................!
real 193.04
user 186.52
sys 5.69

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 J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits scfile=/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits outfile=/scratch/kocevski/28125/cmap_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.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=350.478 yref=32.0737 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits scfile=/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits outfile=/scratch/kocevski/28125/cmap_HighResolution_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.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=350.478 yref=32.0737 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits evtable="EVENTS" scfile=/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28125/Model_4FGL_J2321.9+3204_daily_bin1741.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/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits.....................!
real 128.80
user 127.21
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits', '/scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits', expMap='/scratch/kocevski/28125/expmap_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.fits', expCube='/scratch/kocevski/28125/ltcube_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28125/Model_4FGL_J2321.9+3204_daily_bin1741.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/28125/ft1_filtered_4FGL_J2321.9+3204_daily_bin1741.fits
Spacecraft file(s): /scratch/kocevski/28125/ft2_4FGL_J2321.9+3204_daily_bin1741.fits
Exposure map: /scratch/kocevski/28125/expmap_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.fits
Exposure cube: /scratch/kocevski/28125/ltcube_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28125/Model_4FGL_J2321.9+3204_daily_bin1741.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) = 11970.0528746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1622       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.1365       1.0000          .0000       .10000E+07
     3 'norm      '    .58790       1.0000          .0000       .10000E+07
     4 'norm      '    1.1674       1.0000          .0000       .10000E+07
     5 'Prefactor '    .25715E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .59830E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20584E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .18707E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.316       1.0000          .0000       .10000E+07
    10 'Prefactor '    .55231E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    202.24       1.0000          .0000       .10000E+07
    12 'norm      '    2.7335       1.0000          .0000       .10000E+07
    13 'norm      '    1.9188       1.0000          .0000       .10000E+07
    14 'Prefactor '    15.801       1.0000          .0000       .10000E+07
    15 'norm      '    .58093       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.0684       1.0000          .0000       .10000E+07
    17 'Prefactor '    .35890E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .53050E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0934       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11969.48     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1227 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1446        8.5939        .20511E-07   -.20524E-01
   2  Prefactor     3.1125        5.9643       -.15573E-06   -.41266E-02
   3  norm          .58706        .71290       -.13460E-07   -.53963E-02
   4  norm          1.1664        1.9479       -.83584E-08   -.91210E-03
   5  Prefactor     .22204E-09    4.9671        .80175E-07** at limit **
   6  Prefactor     .55511E-10    1.3670       -.44960E-07** at limit **
   7  Prefactor     .76383E-07    51.365       -.29906E-06** at limit **
   8  norm           .0000        .39029       -.25571E-07** at limit **
   9  Prefactor     16.536        24.275       -.51668E-07    .65451E-01
  10  Prefactor     .72164E-09    7.7713        .91997E-07** at limit **
  11  Prefactor     197.97        50.665        .52598E-07    .91717E-01
  12  norm          2.7179        3.8402       -.15569E-07   -.50155E-02
  13  norm          1.9152        4.3647        .39543E-07    .10913E-02
  14  Prefactor     16.204        9.1634       -.31501E-07    .11499    
  15  norm          .57737        1.9768       -.65574E-07   -.31105E-02
  16  Prefactor     5.9360        8.7465       -.82886E-08    .51774E-01
  17  Prefactor     .22204E-09    14.625        .25755E-06** at limit **
  18  Prefactor     .49960E-09    2.9172        .10631E-06** at limit **
  19  Normalizat    1.0935        .22506        .91620E-07   -.15717E-03
  20  Prefactor     1.1497        .10873       -.18985E-06   -.35385E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14456
  Prefactor  = 3.1125
  norm       = 0.587059
  norm       = 1.16642
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 7.63833e-08
  norm       = 0
  Prefactor  = 16.536
  Prefactor  = 7.21645e-10
  Prefactor  = 197.974
  norm       = 2.71793
  norm       = 1.91517
  Prefactor  = 16.2036
  norm       = 0.577369
  Prefactor  = 5.936
  Prefactor  = 2.22045e-10
  Prefactor  = 4.996e-10
  Normalizat = 1.09348
  Prefactor  = 1.14968
 **********
 **   18 **HESSE 
 **********

 FCN=   11969.48     FROM HESSE     STATUS=OK           337 CALLS     1564 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1446        8.6261        .44223E-03   -1.5663    
   2  Prefactor     3.1125        5.9844        .57216E-03   -1.5673    
   3  norm          .58706        .72467        .70319E-03   -1.5693    
   4  norm          1.1664        1.9971        .10631E-02   -1.5686    
   5  Prefactor     .22204E-09    4.9641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    1.3655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .76383E-07    10.046        .16999E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .38769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.536        27.418        .25566E-03   -1.5627    
  10  Prefactor     .72164E-09    7.7160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     197.97        51.075        .70325E-04   -1.5427    
  12  norm          2.7179        4.1957        .61561E-03   -1.5675    
  13  norm          1.9152        4.4031        .74991E-03   -1.5680    
  14  Prefactor     16.204        21.270        .25170E-03   -1.5627    
  15  norm          .57737        1.9823        .70953E-03   -1.5693    
  16  Prefactor     5.9360        23.009        .40734E-03   -1.5659    
  17  Prefactor     .22204E-09    14.623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .49960E-09    2.9203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0935        .20818        .87212E-01   -.89962    
  20  Prefactor     1.1497        .95405E-01    .35958E-01   -.87894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86736e-06
Minuit parameter uncertainties:
  1  8.62617
  2  5.98443
  3  0.724672
  4  1.99712
  5  6.32793e-05
  6  1.49168e-05
  7  0.00175206
  8  5.16976e-06
  9  27.4183
  10  0.000148176
  11  51.0751
  12  4.19572
  13  4.40309
  14  21.2697
  15  1.98229
  16  23.0092
  17  0.000116191
  18  7.53105e-05
  19  0.208337
  20  0.0954197
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.718e+00  4.196e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.150e+00  9.542e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.093e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28125/likelihoodResults_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.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) = 11967.999523
delta logL = 1.48005777358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11967.9649639
delta logL = 1.51461684789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90509       1.0000          .0000       .10000E+07
     2 'alpha     '    4.0982       1.0000          .0000       5.0000    
     3 'Normalizat'    .97958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11967.96     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      297 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90259        7.4467        .45409E-03    .10848E-01
   2  alpha         4.1001        4.3852        .41879        .89361E-04
   3  Normalizat    .97959        .61309E-01    .91376E-01    .24441E-04
   4  Prefactor     1.1816        .28765E-01    .35079E-01   -.30197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.902588
  alpha      = 4.10013
  Normalizat = 0.979595
  Prefactor  = 1.18161
 **********
 **   18 **HESSE 
 **********

 FCN=   11967.96     FROM HESSE     STATUS=OK            31 CALLS      328 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90259        2.1219        .57128E-05   -1.5689    
   2  alpha         4.1001        1.2854        .18257E-02    .69457    
   3  Normalizat    .97959        .23426        .40467E-03   -.93717    
   4  Prefactor     1.1816        .11006        .17869E-03   -.86899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31066e-11
Minuit parameter uncertainties:
  1  2.12195
  2  1.40813
  3  0.234505
  4  0.110079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28125': 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) = 11967.9649619
delta logL = 1.51461885422

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  9.026e-01  2.122e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  4.100e+00  1.408e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.182e+00  1.101e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.796e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 350.478 32.074
Photon Index (Free Index): 4.10 +/- 1.41
Photon Flux (Free Index): 1.10e-07 +/- 6.79e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.02e-05

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/28125/cmap_HighResolution_690595201_690854401_4FGL_J2321.9+3204_daily_bin1741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', comment='SUCCESS', energy_flux2='1.71e-05', dlogl='1.51e+00', photon_flux2='1.10e-07', job_status='DONE', time_completed='2022-11-23 01:22:13.276205', photon_index_error2='1.41', photon_index2='4.10', ts='0.71', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='7.62e-08', energy_flux_error2='1.02e-05', EG='1.09', time_epoch_completed='1669195333.28', return_code='0', job_id='28125', GAL2='1.18', EG2='0.98', return_code2='0', photon_flux_error2='6.79e-08', ts2='4.11', photon_index='2.14' WHERE bin_id='1741' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 23 01:22:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 28125: <4FGL_J2321.9+3204_daily_bin1741> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1741> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Nov 23 01:05:38 2022
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov 23 01:09:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov 23 01:09:07 2022
Terminated at Wed Nov 23 01:22:14 2022
Results reported at Wed Nov 23 01:22:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1741 350.478 32.0737 690595201 690854401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.9+3204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            996 sec.

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

