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


Performing analysis on: 4FGL_J1321.1+2216_weekly_bin759
RA = 200.296, Dec = 22.2808
tmin = 698025601, tmax = 698630401
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='591017', job_status='RUN', time_executed='2023-02-21 03:38:02.466562', time_epoch_executed='1676979482.47' WHERE source_name='4FGL J1321.1+2216' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591017

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591017/ft1_4FGL_J1321.1+2216_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591017/ft1_4FGL_J1321.1+2216_weekly_bin759.fits outfile=/scratch/kocevski/591017/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin759.fits ra=200.296 dec=22.2808 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.61
user 8.20
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.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/591017/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.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.64
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 950

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/591017/ltcube_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.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/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits
.....................!
real 27.48
user 26.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/591017/ltcube_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.fits outfile=/scratch/kocevski/591017/expmap_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.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/591017/ltcube_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.fits
.....................!
real 190.40
user 184.93
sys 5.03

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits scfile=/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits outfile=/scratch/kocevski/591017/cmap_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.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=200.296 yref=22.2808 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits scfile=/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits outfile=/scratch/kocevski/591017/cmap_HighResolution_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.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=200.296 yref=22.2808 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/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591017/Model_4FGL_J1321.1+2216_weekly_bin759.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/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits.....................!
real 76.31
user 74.90
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits', '/scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits', expMap='/scratch/kocevski/591017/expmap_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.fits', expCube='/scratch/kocevski/591017/ltcube_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591017/Model_4FGL_J1321.1+2216_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/591017/ft1_filtered_4FGL_J1321.1+2216_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/591017/ft2_4FGL_J1321.1+2216_weekly_bin759.fits
Exposure map: /scratch/kocevski/591017/expmap_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.fits
Exposure cube: /scratch/kocevski/591017/ltcube_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591017/Model_4FGL_J1321.1+2216_weekly_bin759.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) = 10406.854114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24878E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .87662E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.364       1.0000          .0000       .10000E+07
     4 'norm      '    .86515       1.0000          .0000       .10000E+07
     5 'norm      '    37.587       1.0000          .0000       .10000E+07
     6 'norm      '    7.1618       1.0000          .0000       .10000E+07
     7 'norm      '    12.951       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83569E-03   1.0000          .0000       .10000E+07
     9 'norm      '    40.462       1.0000          .0000       .10000E+07
    10 'Prefactor '    11.962       1.0000          .0000       .10000E+07
    11 'norm      '    .70892       1.0000          .0000       .10000E+07
    12 'Prefactor '    .37923E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0041       1.0000          .0000       .10000E+07
    14 'Prefactor '    .30324E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.4585       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14145E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .56136E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10406.80     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1119 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    2.8771       -.72575E-06** at limit **
   2  norm           .0000        1.7314       -.36933E-06** at limit **
   3  Prefactor     10.357        10.623        .24245E-05    .13972E-02
   4  norm          .84881        1.8967       -.69187E-08   -.25806E-02
   5  norm          37.539        4.5178       -.69791E-07   -.29240E-01
   6  norm          7.1227        3.0727        .41458E-06    .15467E-01
   7  norm          12.935        1.9791        .39624E-06    .37996E-01
   8  Prefactor     .33307E-09    5.7194        .13013E-05** at limit **
   9  norm          40.511        5.6683        .35379E-07   -.35960E-01
  10  Prefactor     12.450        18.947        .51588E-05   -.58461E-02
  11  norm          .70352        2.3730        .85021E-06    .70097E-02
  12  Prefactor     .55511E-10    11.911        .10207E-05** at limit **
  13  Prefactor     .48095        114.30       -.39535E-04    .28690E-02
  14  Prefactor     .61062E-09    40.462        .29707E-05** at limit **
  15  Prefactor     7.4589        3.6754        .64971E-07   -.10631E-02
  16  Prefactor     .61062E-09    3.7061        .66335E-06** at limit **
  17  Prefactor      .0000        7.0614        .14157E-06** at limit **
  18  Normalizat    1.0078        .17655        .19815E-04    .12106E-03
  19  Prefactor     1.1320        .16780       -.29746E-04    .21123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  norm       = 0
  Prefactor  = 10.3574
  norm       = 0.848808
  norm       = 37.5392
  norm       = 7.12272
  norm       = 12.9348
  Prefactor  = 3.33067e-10
  norm       = 40.5114
  Prefactor  = 12.4497
  norm       = 0.703518
  Prefactor  = 5.55112e-11
  Prefactor  = 0.480951
  Prefactor  = 6.10623e-10
  Prefactor  = 7.45891
  Prefactor  = 6.10623e-10
  Prefactor  = 0
  Normalizat = 1.00784
  Prefactor  = 1.13199
 **********
 **   18 **HESSE 
 **********

 FCN=   10406.80     FROM HESSE     STATUS=OK           308 CALLS     1427 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    2.8764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.7479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.357        10.699        .31099E-03   -1.5644    
   4  norm          .84881        1.9110        .48200E-03   -1.5690    
   5  norm          37.539        7.2678        .16313E-03   -1.5585    
   6  norm          7.1227        9.3819        .37459E-03   -1.5655    
   7  norm          12.935        13.783        .27808E-03   -1.5636    
   8  Prefactor     .33307E-09    5.7288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          40.511        8.5009        .15722E-03   -1.5581    
  10  Prefactor     12.450        19.041        .28939E-03   -1.5637    
  11  norm          .70352        7.2144        .59987E-03   -1.5691    
  12  Prefactor     .55511E-10    11.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .48095        118.30        .43910E-03   -1.5694    
  14  Prefactor     .61062E-09    40.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4589        3.6674        .36699E-03   -1.5653    
  16  Prefactor     .61062E-09    3.7124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        7.0385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0078        .14978        .46247E-01   -.92768    
  19  Prefactor     1.1320        .14145        .57390E-01   -.88451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59416e-07
Minuit parameter uncertainties:
  1  6.95965e-05
  2  5.29982e-06
  3  10.6992
  4  1.91099
  5  7.2678
  6  9.38193
  7  13.7832
  8  8.37958e-05
  9  8.50095
  10  19.0407
  11  4.50576
  12  5.0056e-05
  13  15.086
  14  0.000309493
  15  3.66742
  16  9.68539e-05
  17  1.94441e-06
  18  0.149843
  19  0.141493
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  4.051e+01  8.501e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.132e+00  1.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.008e+00  1.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 82.48
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.01e-07 +/- 4.21e-08
Energy Flux (Fixed Index): 7.23e-05 +/- 1.52e-05

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) = 10406.2847444
delta logL = 0.517965172656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10406.1948053
delta logL = 0.607904280363

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10406.19     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      223 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.472        10.586        .15169E-03   -.17688E-04
   2  alpha         2.0610        .22475        .17221        .21039E-04
   3  Normalizat    1.0413        .14309        .60918E-01    .19600E-04
   4  Prefactor     1.1109        .13841        .57857E-01    .10533E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 43.4723
  alpha      = 2.061
  Normalizat = 1.04134
  Prefactor  = 1.11091
 **********
 **   18 **HESSE 
 **********

 FCN=   10406.19     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .80E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.472        8.9595        .60674E-05   -1.5576    
   2  alpha         2.0610        .19619        .73639E-02   -.17652    
   3  Normalizat    1.0413        .17167        .26942E-03   -.91658    
   4  Prefactor     1.1109        .16601        .25584E-03   -.89119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96189e-14
Minuit parameter uncertainties:
  1  8.95947
  2  0.196396
  3  0.171766
  4  0.16609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591017': 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) = 10406.1948037
delta logL = 0.607905888108

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  4.347e+01  8.959e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.061e+00  1.964e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.111e+00  1.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.041e+00  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.45
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.06 +/- 0.20
Photon Flux (Free Index): 1.73e-07 +/- 4.30e-08
Energy Flux (Free Index): 8.45e-05 +/- 2.23e-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/591017/cmap_HighResolution_698025601_698630401_4FGL_J1321.1+2216_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-07', energy_flux2='8.45e-05', photon_flux_error='4.21e-08', dlogl='6.08e-01', energy_flux='7.23e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2023-02-21 03:48:48.559509', photon_index_error2='0.20', photon_index2='2.06', ts='82.48', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.01', time_epoch_completed='1676980128.56', return_code='0', job_id='591017', GAL2='1.11', EG2='1.04', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.30e-08', ts2='83.45', photon_index='2.28' WHERE bin_id='759' AND source_name='4FGL J1321.1+2216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:48:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 591017: <4FGL_J1321.1+2216_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1321.1+2216_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:35:23 2023
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:35:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:35:24 2023
Terminated at Tue Feb 21 03:48:48 2023
Results reported at Tue Feb 21 03:48:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_weekly_bin759 200.296 22.2808 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1321.1+2216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

