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


Performing analysis on: 4FGL_J1321.1+2216_weekly_bin762
RA = 200.296, Dec = 22.2808
tmin = 699840001, tmax = 700444801
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='998043', job_status='RUN', time_executed='2023-03-14 03:16:55.633043', time_epoch_executed='1678789015.63' WHERE source_name='4FGL J1321.1+2216' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998043

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998043/ft1_4FGL_J1321.1+2216_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998043/ft2_4FGL_J1321.1+2216_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998043/ft1_4FGL_J1321.1+2216_weekly_bin762.fits outfile=/scratch/kocevski/998043/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin762.fits ra=200.296 dec=22.2808 rad=12.0 tmin=699840001.0 tmax=700444801.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.03
user 7.73
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998043/ft2_4FGL_J1321.1+2216_weekly_bin762.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/998043/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/998043/ft1_filtered_4FGL_J1321.1+2216_weekly_bin762.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.55
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1300

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998043/ft1_filtered_4FGL_J1321.1+2216_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/998043/ft2_4FGL_J1321.1+2216_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/998043/ltcube_699840001_700444801_4FGL_J1321.1+2216_weekly_bin762.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/998043/ft2_4FGL_J1321.1+2216_weekly_bin762.fits
.....................!
real 26.87
user 26.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998043/ft1_filtered_4FGL_J1321.1+2216_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/998043/ft2_4FGL_J1321.1+2216_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/998043/ltcube_699840001_700444801_4FGL_J1321.1+2216_weekly_bin762.fits outfile=/scratch/kocevski/998043/expmap_699840001_700444801_4FGL_J1321.1+2216_weekly_bin762.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/998043/ltcube_699840001_700444801_4FGL_J1321.1+2216_weekly_bin762.fits
.....................!
real 190.77
user 185.79
sys 4.33

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/998043/ft1_filtered_4FGL_J1321.1+2216_weekly_bin762.fits scfile=/scratch/kocevski/998043/ft2_4FGL_J1321.1+2216_weekly_bin762.fits outfile=/scratch/kocevski/998043/cmap_699840001_700444801_4FGL_J1321.1+2216_weekly_bin762.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998043/ft1_filtered_4FGL_J1321.1+2216_weekly_bin762.fits scfile=/scratch/kocevski/998043/ft2_4FGL_J1321.1+2216_weekly_bin762.fits outfile=/scratch/kocevski/998043/cmap_HighResolution_699840001_700444801_4FGL_J1321.1+2216_weekly_bin762.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32967E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .64004       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.5106       1.0000          .0000       .10000E+07
     4 'norm      '    2.7485       1.0000          .0000       .10000E+07
     5 'norm      '    14.251       1.0000          .0000       .10000E+07
     6 'norm      '    4.7553       1.0000          .0000       .10000E+07
     7 'norm      '    3.0358       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10434E-03   1.0000          .0000       .10000E+07
     9 'norm      '    19.785       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.177       1.0000          .0000       .10000E+07
    11 'norm      '    .75244E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.409       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.9723       1.0000          .0000       .10000E+07
    14 'Prefactor '    19.301       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.1159       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.890       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.351       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93622       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=   14872.15     FROM MIGRAD    STATUS=CONVERGED     85 CALLS     1085 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    2.1265        .78043E-07** at limit **
   2  norm          .63753        3.1181       -.11654E-06   -.12770E-02
   3  Prefactor     1.5618        4.1313        .73896E-07    .17600E-01
   4  norm          2.7504        2.5233       -.37837E-07   -.47049E-02
   5  norm          14.250        4.1236       -.27518E-07   -.13263E-01
   6  norm          4.7456        4.9793        .53994E-07    .77135E-02
   7  norm          2.9986        3.0275       -.27327E-07    .32187E-01
   8  Prefactor     .71609E-08    5.3238       -.13510E-06** at limit **
   9  norm          19.824        5.3373       -.29359E-07   -.17043E-01
  10  Prefactor     16.715        12.178       -.11119E-06   -.20460E-01
  11  norm          .19540E-07    5.8877       -.16046E-07** at limit **
  12  Prefactor     12.025        6.6831        .71755E-07   -.51663E-03
  13  Prefactor     7.3548        10.154       -.14627E-06    .96540E-02
  14  Prefactor     19.306        1.2022        .22440E-08    .32486E-01
  15  Prefactor     4.1253        2.6125        .32074E-07    .65159E-02
  16  Prefactor     10.938        1.0485       -.15738E-08   -.19980E-02
  17  Prefactor     10.403        2.4657        .30687E-07   -.10547    
  18  Normalizat    1.0916        .14169       -.18975E-06    .45278E-03
  19  Prefactor     .93514        .13280        .13929E-05    .59007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  norm       = 0.63753
  Prefactor  = 1.56182
  norm       = 2.75039
  norm       = 14.2496
  norm       = 4.7456
  norm       = 2.9986
  Prefactor  = 7.16094e-09
  norm       = 19.8237
  Prefactor  = 16.7151
  norm       = 1.95399e-08
  Prefactor  = 12.025
  Prefactor  = 7.35478
  Prefactor  = 19.3059
  Prefactor  = 4.12532
  Prefactor  = 10.938
  Prefactor  = 10.4027
  Normalizat = 1.0916
  Prefactor  = 0.935139
 **********
 **   18 **HESSE 
 **********

 FCN=   14872.15     FROM HESSE     STATUS=OK           316 CALLS     1401 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    2.1224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .63753        3.1343        .65716E-03   -1.5692    
   3  Prefactor     1.5618        9.0677        .86992E-03   -1.5683    
   4  norm          2.7504        2.5473        .61380E-03   -1.5675    
   5  norm          14.250        4.8536        .26506E-03   -1.5632    
   6  norm          4.7456        5.9591        .46116E-03   -1.5664    
   7  norm          2.9986        10.661        .58212E-03   -1.5673    
   8  Prefactor     .71609E-08    5.4293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.824        5.5368        .22489E-03   -1.5619    
  10  Prefactor     16.715        17.309        .24875E-03   -1.5626    
  11  norm          .19540E-07    6.1276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.025        13.555        .28412E-03   -1.5639    
  13  Prefactor     7.3548        15.674        .37970E-03   -1.5654    
  14  Prefactor     19.306        24.896        .22770E-03   -1.5620    
  15  Prefactor     4.1253        2.6194        .49665E-03   -1.5667    
  16  Prefactor     10.938        8.1213        .30336E-03   -1.5642    
  17  Prefactor     10.403        7.6737        .31118E-03   -1.5643    
  18  Normalizat    1.0916        .12340        .57644E-01   -.90022    
  19  Prefactor     .93514        .11405        .45465E-01   -.94924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9808e-06
Minuit parameter uncertainties:
  1  3.43734e-05
  2  2.82718
  3  7.52654
  4  2.54729
  5  4.85363
  6  5.95911
  7  10.6613
  8  0.000393891
  9  5.53677
  10  17.3086
  11  0.000692011
  12  13.5555
  13  15.6746
  14  24.896
  15  2.61939
  16  8.12132
  17  7.67368
  18  0.123437
  19  0.114081
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.982e+01  5.537e+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:  9.351e-01  1.141e-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.092e+00  1.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.75
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.82e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 9.88e-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) = 14872.0888674
delta logL = 0.0639846747654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14872.0860755
delta logL = 0.0667765287872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.297       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3819       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94166       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14872.09     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      282 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.298        5.5713        .91089E-05    .71889E-03
   2  alpha         2.3816        .27827        .10840E-01    .18427E-04
   3  Normalizat    1.0813        .14104        .25596E-03    .14106E-03
   4  Prefactor     .94135        .13188        .25875E-03    .25922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.2977
  alpha      = 2.38163
  Normalizat = 1.08129
  Prefactor  = 0.941352
 **********
 **   18 **HESSE 
 **********

 FCN=   14872.09     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.298        5.5145        .36436E-06   -1.5620    
   2  alpha         2.3816        .27521        .43360E-03   -.47367E-01
   3  Normalizat    1.0813        .14114        .10238E-04   -.90355    
   4  Prefactor     .94135        .13198        .10350E-04   -.94711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82896e-11
Minuit parameter uncertainties:
  1  5.51455
  2  0.275775
  3  0.14119
  4  0.132028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998043': 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) = 14872.0860722
delta logL = 0.066779835046

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.930e+01  5.515e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.382e+00  2.758e-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:  9.414e-01  1.320e-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.081e+00  1.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.79
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.38 +/- 0.28
Photon Flux (Free Index): 1.07e-07 +/- 3.66e-08
Energy Flux (Free Index): 3.43e-05 +/- 9.60e-06

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/998043/cmap_HighResolution_699840001_700444801_4FGL_J1321.1+2216_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.82e-08', energy_flux2='3.43e-05', photon_flux_error='2.74e-08', dlogl='6.68e-02', energy_flux='3.54e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2023-03-14 03:29:09.841198', photon_index_error2='0.28', photon_index2='2.38', ts='29.75', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='9.60e-06', EG='1.09', time_epoch_completed='1678789749.84', return_code='0', job_id='998043', GAL2='0.94', EG2='1.08', return_code2='0', energy_flux_error='9.88e-06', photon_flux_error2='3.66e-08', ts2='29.79', photon_index='2.28' WHERE bin_id='762' AND source_name='4FGL J1321.1+2216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 03:29:09 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 998043: <4FGL_J1321.1+2216_weekly_bin762> in cluster <slac> Done

Job <4FGL_J1321.1+2216_weekly_bin762> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Mar 14 03:15:27 2023
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 03:15:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 03:15:28 2023
Terminated at Tue Mar 14 03:29:10 2023
Results reported at Tue Mar 14 03:29:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_weekly_bin762 200.296 22.2808 699840001 700444801 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 :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

