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


Performing analysis on: 4FGL_J2321.9+3204_weekly_bin763
RA = 350.478, Dec = 32.0737
tmin = 700444801, tmax = 701049601
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='449381', job_status='RUN', time_executed='2023-03-21 03:05:50.851482', time_epoch_executed='1679393150.85' WHERE source_name='4FGL J2321.9+3204' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449381

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449381/ft1_4FGL_J2321.9+3204_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449381/ft1_4FGL_J2321.9+3204_weekly_bin763.fits outfile=/scratch/kocevski/449381/ft1_filteredMKT_4FGL_J2321.9+3204_weekly_bin763.fits ra=350.478 dec=32.0737 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.66
user 9.31
sys 0.31

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

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

Number of photons that the gtmktime cut: 1283

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449381/ft1_filtered_4FGL_J2321.9+3204_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/449381/ltcube_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.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/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits
.....................!
real 26.57
user 26.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449381/ft1_filtered_4FGL_J2321.9+3204_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/449381/ltcube_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.fits outfile=/scratch/kocevski/449381/expmap_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.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/449381/ltcube_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.fits
.....................!
real 190.64
user 185.72
sys 4.54

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/449381/ft1_filtered_4FGL_J2321.9+3204_weekly_bin763.fits scfile=/scratch/kocevski/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits outfile=/scratch/kocevski/449381/cmap_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449381/ft1_filtered_4FGL_J2321.9+3204_weekly_bin763.fits scfile=/scratch/kocevski/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits outfile=/scratch/kocevski/449381/cmap_HighResolution_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.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.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449381/ft1_filtered_4FGL_J2321.9+3204_weekly_bin763.fits', '/scratch/kocevski/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits', expMap='/scratch/kocevski/449381/expmap_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.fits', expCube='/scratch/kocevski/449381/ltcube_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449381/Model_4FGL_J2321.9+3204_weekly_bin763.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/449381/ft1_filtered_4FGL_J2321.9+3204_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/449381/ft2_4FGL_J2321.9+3204_weekly_bin763.fits
Exposure map: /scratch/kocevski/449381/expmap_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.fits
Exposure cube: /scratch/kocevski/449381/ltcube_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449381/Model_4FGL_J2321.9+3204_weekly_bin763.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) = 13557.533275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18449E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11049E-04   1.0000          .0000       .10000E+07
     3 'norm      '    5.3522       1.0000          .0000       .10000E+07
     4 'norm      '    .10003E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48696E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4304       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.359       1.0000          .0000       .10000E+07
     8 'norm      '    .39911       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17402E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.149       1.0000          .0000       .10000E+07
    11 'Prefactor '    52.624       1.0000          .0000       .10000E+07
    12 'norm      '    3.2228       1.0000          .0000       .10000E+07
    13 'norm      '    13.002       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16699E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .10436E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    19.357       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15418E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.8580       1.0000          .0000       .10000E+07
    19 'Normalizat'    .96943       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97678       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=   13557.53     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1503 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.4962        .68257E-06** at limit **
   2  Prefactor     .55511E-10    4.8707       -.75617E-06** at limit **
   3  norm          5.3539        1.1933       -.64950E-07   -.64249E-02
   4  norm          .11102E-09    .96897        .43614E-07** at limit **
   5  Prefactor     .11102E-09    6.9610       -.16453E-06** at limit **
   6  Prefactor     3.4273        4.6471       -.16090E-06    .34933E-02
   7  Prefactor     15.379        1.0787       -.19157E-07    .13826E-01
   8  norm          .39967        .77893        .78796E-07   -.14432E-01
   9  Prefactor     .11102E-09    2.4016        .61184E-06** at limit **
  10  Prefactor     10.223        7.6065        .81043E-06    .34740E-03
  11  Prefactor     52.842        6.0043       -.38411E-06    .41843E-01
  12  norm          3.2228        2.8370        .21653E-08   -.20970E-02
  13  norm          13.033        7.8113       -.15390E-05   -.12147E-02
  14  Prefactor      .0000        4.1294        .82325E-06** at limit **
  15  norm          .55511E-10    .33598       -.11058E-06** at limit **
  16  Prefactor     19.782        24.204       -.23116E-05   -.64186E-02
  17  Prefactor     .83267E-09    38.899       -.48163E-06** at limit **
  18  Prefactor     3.8734        5.6568        .85756E-08   -.11973E-02
  19  Normalizat    .96860        .18167        .14718E-05   -.23995E-03
  20  Prefactor     .97683        .88499E-01    .22703E-06   -.17773E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 5.35388
  norm       = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 3.42726
  Prefactor  = 15.3786
  norm       = 0.399668
  Prefactor  = 1.11022e-10
  Prefactor  = 10.2227
  Prefactor  = 52.8423
  norm       = 3.2228
  norm       = 13.0332
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 19.7823
  Prefactor  = 8.32667e-10
  Prefactor  = 3.87343
  Normalizat = 0.968597
  Prefactor  = 0.976827
 **********
 **   18 **HESSE 
 **********

 FCN=   13557.53     FROM HESSE     STATUS=OK           333 CALLS     1836 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        4.8633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    4.8425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3539        1.1936        .43417E-03   -1.5662    
   4  norm          .11102E-09    .96848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    6.9556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4273        4.6440        .54588E-03   -1.5671    
   7  Prefactor     15.379        14.330        .25530E-03   -1.5630    
   8  norm          .39967        .80249        .89590E-03   -1.5695    
   9  Prefactor     .11102E-09    4.8381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.223        7.6273        .31428E-03   -1.5644    
  11  Prefactor     52.842        26.563        .13786E-03   -1.5563    
  12  norm          3.2228        2.8422        .56404E-03   -1.5672    
  13  norm          13.033        7.8078        .27753E-03   -1.5636    
  14  Prefactor      .0000        4.1284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    .33590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.782        24.563        .22737E-03   -1.5619    
  17  Prefactor     .83267E-09    38.883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8734        5.6658        .51353E-03   -1.5669    
  19  Normalizat    .96860        .15620        .78741E-01   -.94090    
  20  Prefactor     .97683        .75603E-01    .45976E-01   -.93506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51341e-07
Minuit parameter uncertainties:
  1  1.71358e-05
  2  3.82301e-05
  3  1.19361
  4  2.13418e-05
  5  5.4443e-05
  6  4.64402
  7  14.3302
  8  0.80249
  9  4.46831e-05
  10  7.62732
  11  26.5631
  12  2.84225
  13  7.80783
  14  1.33963e-05
  15  6.52531e-06
  16  24.5635
  17  0.000359823
  18  5.66584
  19  0.156275
  20  0.075611
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  3.223e+00  2.842e+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:  9.768e-01  7.561e-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:  9.686e-01  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 8.82e-06 +/- 7.78e-06

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) = 13557.3759504
delta logL = 0.153315996751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13557.3666397
delta logL = 0.162626682242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8053       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6753       1.0000          .0000       5.0000    
     3 'Normalizat'    .97567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97608       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=   13557.37     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8038        2.7832        .60710E-03   -.16501E-02
   2  alpha         1.6751        .63424        .44416       -.48050E-04
   3  Normalizat    .97566        .15103        .78490E-01    .41887E-04
   4  Prefactor     .97609        .74175E-01    .45967E-01    .90916E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 2.80381
  alpha      = 1.67513
  Normalizat = 0.975662
  Prefactor  = 0.976088
 **********
 **   18 **HESSE 
 **********

 FCN=   13557.37     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8038        3.0060        .17768E-04   -1.5674    
   2  alpha         1.6751        .79380        .28981E-01   -.33625    
   3  Normalizat    .97566        .17550        .34739E-03   -.93850    
   4  Prefactor     .97609        .86524E-01    .17006E-03   -.93531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07572e-12
Minuit parameter uncertainties:
  1  3.00597
  2  0.809583
  3  0.175602
  4  0.0865362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449381': 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) = 13557.3666396
delta logL = 0.162626805044

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.804e+00  3.006e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  1.675e+00  8.096e-01  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:  9.761e-01  8.654e-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:  9.757e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.68 +/- 0.81
Photon Flux (Free Index): 1.10e-08 +/- 1.59e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.17e-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/449381/cmap_HighResolution_700444801_701049601_4FGL_J2321.9+3204_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='1.08e-05', photon_flux_error='1.73e-08', dlogl='1.63e-01', energy_flux='8.82e-06', photon_flux2='1.10e-08', job_status='DONE', time_completed='2023-03-21 03:19:36.938284', photon_index_error2='0.81', photon_index2='1.68', ts='4.52', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.97', time_epoch_completed='1679393976.94', return_code='0', job_id='449381', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='7.78e-06', photon_flux_error2='1.59e-08', ts2='4.85', photon_index='2.14' WHERE bin_id='763' AND source_name='4FGL J2321.9+3204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 03:19:36 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 449381: <4FGL_J2321.9+3204_weekly_bin763> in cluster <slac> Done

Job <4FGL_J2321.9+3204_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 03:05:21 2023
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 03:05:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 03:05:23 2023
Terminated at Tue Mar 21 03:19:37 2023
Results reported at Tue Mar 21 03:19:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_weekly_bin763 350.478 32.0737 700444801 701049601 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 :                                   824.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

