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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1750
RA = 200.296, Dec = 22.2808
tmin = 692928001, tmax = 693187201
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='13393', job_status='RUN', time_executed='2022-12-20 00:56:12.150960', time_epoch_executed='1671526572.15' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13393/ft1_4FGL_J1321.1+2216_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13393/ft2_4FGL_J1321.1+2216_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13393/ft1_4FGL_J1321.1+2216_daily_bin1750.fits outfile=/scratch/kocevski/13393/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1750.fits ra=200.296 dec=22.2808 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.48
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13393/ft2_4FGL_J1321.1+2216_daily_bin1750.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/13393/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/13393/ft1_filtered_4FGL_J1321.1+2216_daily_bin1750.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 618

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13393/ft1_filtered_4FGL_J1321.1+2216_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/13393/ft2_4FGL_J1321.1+2216_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/13393/ltcube_692928001_693187201_4FGL_J1321.1+2216_daily_bin1750.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/13393/ft2_4FGL_J1321.1+2216_daily_bin1750.fits
.....................!
real 12.15
user 11.73
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13393/ft1_filtered_4FGL_J1321.1+2216_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/13393/ft2_4FGL_J1321.1+2216_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/13393/ltcube_692928001_693187201_4FGL_J1321.1+2216_daily_bin1750.fits outfile=/scratch/kocevski/13393/expmap_692928001_693187201_4FGL_J1321.1+2216_daily_bin1750.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/13393/ltcube_692928001_693187201_4FGL_J1321.1+2216_daily_bin1750.fits
.....................!
real 192.41
user 186.09
sys 5.29

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/13393/ft1_filtered_4FGL_J1321.1+2216_daily_bin1750.fits scfile=/scratch/kocevski/13393/ft2_4FGL_J1321.1+2216_daily_bin1750.fits outfile=/scratch/kocevski/13393/cmap_692928001_693187201_4FGL_J1321.1+2216_daily_bin1750.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13393/ft1_filtered_4FGL_J1321.1+2216_daily_bin1750.fits scfile=/scratch/kocevski/13393/ft2_4FGL_J1321.1+2216_daily_bin1750.fits outfile=/scratch/kocevski/13393/cmap_HighResolution_692928001_693187201_4FGL_J1321.1+2216_daily_bin1750.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21435E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .69661E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.0571       1.0000          .0000       .10000E+07
     4 'norm      '    5.2241       1.0000          .0000       .10000E+07
     5 'norm      '    22.243       1.0000          .0000       .10000E+07
     6 'norm      '    9.6770       1.0000          .0000       .10000E+07
     7 'norm      '    31.022       1.0000          .0000       .10000E+07
     8 'Prefactor '    .42085E-03   1.0000          .0000       .10000E+07
     9 'norm      '    22.429       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.875       1.0000          .0000       .10000E+07
    11 'norm      '    1.9242       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11199E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32602       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.3361       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1910       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19402E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    17.495       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3960       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71375       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=   6609.545     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1121 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    4.1235        .74473E-07** at limit **
   2  norm          .12212E-08    10.703        .63893E-07** at limit **
   3  Prefactor     6.0586        5.0132       -.20782E-08    .85081E-02
   4  norm          5.2241        3.5760        .84067E-07   -.53388E-03
   5  norm          22.245        5.5972       -.12224E-07   -.84584E-02
   6  norm          9.6823        6.8187        .45461E-08    .11589E-01
   7  norm          31.024        1.1797        .29833E-09    .57409E-02
   8  Prefactor     .22204E-09    12.297        .86076E-07** at limit **
   9  norm          22.537        8.0261        .23594E-07    .17665E-01
  10  Prefactor     15.469        23.832        .41264E-06    .82301E-03
  11  norm          2.0278        9.1985        .10832E-06   -.49701E-02
  12  Prefactor     .55511E-10    5.6244       -.24632E-06** at limit **
  13  Prefactor     .29657        .74551       -.32842E-07    .29438E-02
  14  Prefactor     3.8274        69.738       -.18141E-05    .36906E-03
  15  Prefactor     1.1932        3.1685       -.12306E-07    .10514E-03
  16  Prefactor     .55511E-10    4.1052        .22367E-08** at limit **
  17  Prefactor     17.540        2.0149        .67668E-08    .49612E-02
  18  Normalizat    1.3953        .20646       -.15574E-05   -.10359E-04
  19  Prefactor     .71373        .19639        .25748E-05   -.67288E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 1.22125e-09
  Prefactor  = 6.05859
  norm       = 5.2241
  norm       = 22.2454
  norm       = 9.68231
  norm       = 31.0243
  Prefactor  = 2.22045e-10
  norm       = 22.5372
  Prefactor  = 15.4692
  norm       = 2.02784
  Prefactor  = 5.55112e-11
  Prefactor  = 0.29657
  Prefactor  = 3.8274
  Prefactor  = 1.19325
  Prefactor  = 5.55112e-11
  Prefactor  = 17.5399
  Normalizat = 1.39525
  Prefactor  = 0.713732
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.545     FROM HESSE     STATUS=OK           318 CALLS     1439 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    4.1217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .12212E-08    10.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0586        12.640        .40772E-03   -1.5659    
   4  norm          5.2241        3.5903        .43955E-03   -1.5662    
   5  norm          22.245        7.3053        .21209E-03   -1.5614    
   6  norm          9.6823        11.312        .32189E-03   -1.5646    
   7  norm          31.024        18.120        .17957E-03   -1.5597    
   8  Prefactor     .22204E-09    12.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.537        10.319        .21120E-03   -1.5613    
  10  Prefactor     15.469        23.913        .25943E-03   -1.5629    
  11  norm          2.0278        14.530        .74869E-03   -1.5679    
  12  Prefactor     .55511E-10    5.6377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29657        9.1812        .98613E-02   -1.5697    
  14  Prefactor     3.8274        69.959        .48350E-03   -1.5669    
  15  Prefactor     1.1932        3.1971        .10432E-02   -1.5686    
  16  Prefactor     .55511E-10    4.1111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.540        13.704        .23918E-03   -1.5624    
  18  Normalizat    1.3953        .17913        .52299E-01   -.80766    
  19  Prefactor     .71373        .16947        .68022E-01   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66015e-07
Minuit parameter uncertainties:
  1  2.49502e-05
  2  0.000224515
  3  12.6398
  4  3.59032
  5  7.30529
  6  11.312
  7  18.1197
  8  0.000101989
  9  10.3192
  10  23.9127
  11  10.8563
  12  4.25713e-05
  13  3.30023
  14  32.7272
  15  3.1971
  16  2.4219e-05
  17  13.704
  18  0.179213
  19  0.169596
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.254e+01  1.032e+01  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:  7.137e-01  1.696e-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.395e+00  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.51
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 5.11e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 1.84e-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) = 6609.40043031
delta logL = 0.145054666408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6609.3922798
delta logL = 0.153205173909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.186       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5399       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73287       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=   6609.392     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.176        113.43        .22265E-03    .17860E-02
   2  alpha         2.5397        3.7620        .25539        .75353E-04
   3  Normalizat    1.3654        .13847        .52748E-01    .13206E-04
   4  Prefactor     .73315        .93839E-01    .67218E-01   -.56039E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 20.176
  alpha      = 2.53967
  Normalizat = 1.36536
  Prefactor  = 0.733148
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.392     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.176        9.8068        .89059E-05   -1.5618    
   2  alpha         2.5397        .49301        .10138E-01    .15869E-01
   3  Normalizat    1.3654        .21158        .23322E-03   -.81636    
   4  Prefactor     .73315        .19922        .29741E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32217e-11
Minuit parameter uncertainties:
  1  9.80677
  2  0.496266
  3  0.211717
  4  0.199416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13393': 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) = 6609.39227482
delta logL = 0.15321015834

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.018e+01  9.807e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.540e+00  4.963e-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:  7.331e-01  1.994e-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.365e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.85
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.54 +/- 0.50
Photon Flux (Free Index): 1.34e-07 +/- 6.21e-08
Energy Flux (Free Index): 3.71e-05 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/13393/cmap_HighResolution_692928001_693187201_4FGL_J1321.1+2216_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.71e-05', photon_flux_error='5.11e-08', dlogl='1.53e-01', energy_flux='4.02e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2022-12-20 01:04:25.902351', photon_index_error2='0.50', photon_index2='2.54', ts='14.51', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.40', time_epoch_completed='1671527065.9', return_code='0', job_id='13393', GAL2='0.73', EG2='1.37', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='6.21e-08', ts2='14.85', photon_index='2.28' WHERE bin_id='1750' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:04:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 13393: <4FGL_J1321.1+2216_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1750> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec 20 00:55:13 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:55:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:55:15 2022
Terminated at Tue Dec 20 01:04:26 2022
Results reported at Tue Dec 20 01:04:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1750 200.296 22.2808 692928001 693187201 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 :                                   495.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            553 sec.

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

