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


Performing analysis on: 4FGL_J1321.1+2216_weekly_bin757
RA = 200.296, Dec = 22.2808
tmin = 696816001, tmax = 697420801
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='265765', job_status='RUN', time_executed='2023-02-07 01:18:16.758798', time_epoch_executed='1675761496.76' WHERE source_name='4FGL J1321.1+2216' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265765

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265765/ft1_4FGL_J1321.1+2216_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265765/ft1_4FGL_J1321.1+2216_weekly_bin757.fits outfile=/scratch/kocevski/265765/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin757.fits ra=200.296 dec=22.2808 rad=12.0 tmin=696816001.0 tmax=697420801.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 7.74
user 7.35
sys 0.31

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

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

Number of photons that the gtmktime cut: 1457

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/265765/ltcube_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.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/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits
.....................!
real 34.62
user 33.78
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/265765/ltcube_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.fits outfile=/scratch/kocevski/265765/expmap_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.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/265765/ltcube_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.fits
.....................!
real 192.88
user 186.43
sys 5.73

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/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits scfile=/scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits outfile=/scratch/kocevski/265765/cmap_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits scfile=/scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits outfile=/scratch/kocevski/265765/cmap_HighResolution_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.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.60
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265765/Model_4FGL_J1321.1+2216_weekly_bin757.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/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits.....................!
real 116.39
user 114.36
sys 1.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits', '/scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits', expMap='/scratch/kocevski/265765/expmap_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.fits', expCube='/scratch/kocevski/265765/ltcube_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265765/Model_4FGL_J1321.1+2216_weekly_bin757.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/265765/ft1_filtered_4FGL_J1321.1+2216_weekly_bin757.fits
Spacecraft file(s): /scratch/kocevski/265765/ft2_4FGL_J1321.1+2216_weekly_bin757.fits
Exposure map: /scratch/kocevski/265765/expmap_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.fits
Exposure cube: /scratch/kocevski/265765/ltcube_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265765/Model_4FGL_J1321.1+2216_weekly_bin757.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) = 16126.500125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8223       1.0000          .0000       .10000E+07
     2 'norm      '    .56482       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.8721       1.0000          .0000       .10000E+07
     4 'norm      '    .32169E-06   1.0000          .0000       .10000E+07
     5 'norm      '    38.472       1.0000          .0000       .10000E+07
     6 'norm      '    13.339       1.0000          .0000       .10000E+07
     7 'norm      '    8.0109       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0877       1.0000          .0000       .10000E+07
     9 'norm      '    63.210       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44268E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .68878E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16003E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .56063E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12378E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.743       1.0000          .0000       .10000E+07
    16 'Prefactor '    .31375E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97999E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    .68817       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3245       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=   16126.27     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     1097 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8174        3.9611       -.24999E-07   -.16308E-03
   2  norm          .56336        2.5342       -.18304E-06   -.15374E-03
   3  Prefactor     8.8244        6.8798       -.44935E-07   -.57787E-02
   4  norm           .0000        .50081       -.51346E-07** at limit **
   5  norm          38.455        3.7951        .79735E-08    .11515E-02
   6  norm          13.320        2.2336        .85268E-08   -.26362E-02
   7  norm          7.9800        1.2870        .45615E-08    .45721E-01
   8  Prefactor     4.1151        1.1567        .49624E-08   -.76057E-03
   9  norm          63.229        2.1357        .37463E-09   -.81314E-01
  10  Prefactor     .44409E-09    8.5969        .15636E-06** at limit **
  11  norm          .11102E-09    2.2997       -.10258E-06** at limit **
  12  Prefactor     .41300E-07    6.3917       -.32392E-07** at limit **
  13  Prefactor     .44409E-09    3.8344        .18545E-06** at limit **
  14  Prefactor     .28866E-07    7.9677       -.47742E-07** at limit **
  15  Prefactor     11.737        3.2722       -.40759E-07   -.98032E-03
  16  Prefactor      .0000        3.1759       -.78503E-07** at limit **
  17  Prefactor     .60113E-01    .57984       -.18703E-08** at limit **
  18  Normalizat    .68840        .14167        .35376E-05   -.21156E-05
  19  Prefactor     1.3245        .13944       -.14143E-05   -.69903E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81739
  norm       = 0.563365
  Prefactor  = 8.82436
  norm       = 0
  norm       = 38.4548
  norm       = 13.3204
  norm       = 7.98003
  Prefactor  = 4.11509
  norm       = 63.2295
  Prefactor  = 4.44089e-10
  norm       = 1.11022e-10
  Prefactor  = 4.13003e-08
  Prefactor  = 4.44089e-10
  Prefactor  = 2.88658e-08
  Prefactor  = 11.7371
  Prefactor  = 0
  Prefactor  = 0.0601126
  Normalizat = 0.688401
  Prefactor  = 1.32454
 **********
 **   18 **HESSE 
 **********

 FCN=   16126.27     FROM HESSE     STATUS=OK           316 CALLS     1413 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8174        3.9839        .77315E-03   -1.5681    
   2  norm          .56336        2.5565        .72440E-03   -1.5693    
   3  Prefactor     8.8244        7.0235        .33626E-03   -1.5649    
   4  norm           .0000        .50653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          38.455        6.2932        .16124E-03   -1.5584    
   6  norm          13.320        9.3922        .27399E-03   -1.5635    
   7  norm          7.9800        10.136        .35401E-03   -1.5651    
   8  Prefactor     4.1151        9.1792        .49841E-03   -1.5667    
   9  norm          63.229        8.0074        .12579E-03   -1.5549    
  10  Prefactor     .44409E-09    8.6282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .11102E-09    2.3400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .41300E-07    14.665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .44409E-09    3.8446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28866E-07    13.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.737        3.2774        .29208E-03   -1.5639    
  16  Prefactor      .0000        3.2427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .60113E-01    2.3520        .10916E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .68840        .12303        .73347E-01   -1.0435    
  19  Prefactor     1.3245        .11759        .54406E-01   -.82580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90408e-06
Minuit parameter uncertainties:
  1  3.98391
  2  2.40022
  3  7.02352
  4  5.5585e-07
  5  6.29323
  6  9.39219
  7  10.1362
  8  9.1792
  9  8.00743
  10  0.0001255
  11  3.20727e-05
  12  0.00155698
  13  8.26589e-05
  14  0.00127178
  15  3.27741
  16  1.36671e-05
  17  0.75203
  18  0.123082
  19  0.117618
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  6.323e+01  8.007e+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.325e+00  1.176e-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:  6.884e-01  1.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 191.33
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.13e-07 +/- 3.97e-08
Energy Flux (Fixed Index): 1.13e-04 +/- 1.43e-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) = 16126.2535694
delta logL = 0.0121717731708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16126.2500896
delta logL = 0.0156515762392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    62.557       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3049       1.0000          .0000       5.0000    
     3 'Normalizat'    .68285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3282       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=   16126.25     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          62.557        13.134        .12644E-03   -.23286E-02
   2  alpha         2.3049        .19559        .12668        .53074E-04
   3  Normalizat    .68284        .12164        .73611E-01   -.20439E-03
   4  Prefactor     1.3282        .11850        .54341E-01   -.36220E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 62.557
  alpha      = 2.3049
  Normalizat = 0.682845
  Prefactor  = 1.32824
 **********
 **   18 **HESSE 
 **********

 FCN=   16126.25     FROM HESSE     STATUS=OK            27 CALLS      234 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          62.557        8.7607        .50577E-05   -1.5550    
   2  alpha         2.3049        .13286        .55052E-03   -.78121E-01
   3  Normalizat    .68284        .14417        .32585E-03   -1.0457    
   4  Prefactor     1.3282        .14073        .24025E-03   -.82471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46779e-11
Minuit parameter uncertainties:
  1  8.7607
  2  0.132925
  3  0.144246
  4  0.140773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265765': 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) = 16126.2500896
delta logL = 0.0156515772433

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  6.256e+01  8.761e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.305e+00  1.329e-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.328e+00  1.408e-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:  6.828e-01  1.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 189.65
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.30 +/- 0.13
Photon Flux (Free Index): 3.18e-07 +/- 4.72e-08
Energy Flux (Free Index): 1.11e-04 +/- 1.62e-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/265765/cmap_HighResolution_696816001_697420801_4FGL_J1321.1+2216_weekly_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-07', energy_flux2='1.11e-04', photon_flux_error='3.97e-08', dlogl='1.57e-02', energy_flux='1.13e-04', photon_flux2='3.18e-07', job_status='DONE', time_completed='2023-02-07 01:31:26.796092', photon_index_error2='0.13', photon_index2='2.30', ts='191.33', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.69', time_epoch_completed='1675762286.8', return_code='0', job_id='265765', GAL2='1.33', EG2='0.68', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.72e-08', ts2='189.65', photon_index='2.28' WHERE bin_id='757' AND source_name='4FGL J1321.1+2216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 01:31:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 265765: <4FGL_J1321.1+2216_weekly_bin757> in cluster <slac> Done

Job <4FGL_J1321.1+2216_weekly_bin757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb  7 01:15:29 2023
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 01:16:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 01:16:44 2023
Terminated at Tue Feb  7 01:31:27 2023
Results reported at Tue Feb  7 01:31:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_weekly_bin757 200.296 22.2808 696816001 697420801 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 :                                   789.00 sec.
    Max Memory :                                 1188 MB
    Average Memory :                             311.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            958 sec.

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

