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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1758
RA = 200.296, Dec = 22.2808
tmin = 695001601, tmax = 695260801
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='366429', job_status='RUN', time_executed='2023-01-13 00:49:15.319883', time_epoch_executed='1673599755.32' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366429/ft1_4FGL_J1321.1+2216_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366429/ft2_4FGL_J1321.1+2216_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366429/ft1_4FGL_J1321.1+2216_daily_bin1758.fits outfile=/scratch/kocevski/366429/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1758.fits ra=200.296 dec=22.2808 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.76
user 2.53
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366429/ft2_4FGL_J1321.1+2216_daily_bin1758.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/366429/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/366429/ft1_filtered_4FGL_J1321.1+2216_daily_bin1758.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.51
user 0.32
sys 0.18

Number of photons that the gtmktime cut: 960

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366429/ft1_filtered_4FGL_J1321.1+2216_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/366429/ft2_4FGL_J1321.1+2216_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/366429/ltcube_695001601_695260801_4FGL_J1321.1+2216_daily_bin1758.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/366429/ft2_4FGL_J1321.1+2216_daily_bin1758.fits
.....................!
real 16.47
user 15.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366429/ft1_filtered_4FGL_J1321.1+2216_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366429/ft2_4FGL_J1321.1+2216_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/366429/ltcube_695001601_695260801_4FGL_J1321.1+2216_daily_bin1758.fits outfile=/scratch/kocevski/366429/expmap_695001601_695260801_4FGL_J1321.1+2216_daily_bin1758.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/366429/ltcube_695001601_695260801_4FGL_J1321.1+2216_daily_bin1758.fits
.....................!
real 191.98
user 185.84
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/366429/ft1_filtered_4FGL_J1321.1+2216_daily_bin1758.fits scfile=/scratch/kocevski/366429/ft2_4FGL_J1321.1+2216_daily_bin1758.fits outfile=/scratch/kocevski/366429/cmap_695001601_695260801_4FGL_J1321.1+2216_daily_bin1758.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366429/ft1_filtered_4FGL_J1321.1+2216_daily_bin1758.fits scfile=/scratch/kocevski/366429/ft2_4FGL_J1321.1+2216_daily_bin1758.fits outfile=/scratch/kocevski/366429/cmap_HighResolution_695001601_695260801_4FGL_J1321.1+2216_daily_bin1758.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94613E-04   1.0000          .0000       .10000E+07
     2 'norm      '    3.5934       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4727       1.0000          .0000       .10000E+07
     4 'norm      '    .94369E-09   1.0000          .0000       .10000E+07
     5 'norm      '    69.342       1.0000          .0000       .10000E+07
     6 'norm      '    .41910E-02   1.0000          .0000       .10000E+07
     7 'norm      '    22.850       1.0000          .0000       .10000E+07
     8 'Prefactor '    .94413E-05   1.0000          .0000       .10000E+07
     9 'norm      '    132.29       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48650E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .74141E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .62786E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    35.931       1.0000          .0000       .10000E+07
    14 'Prefactor '    .29775       1.0000          .0000       .10000E+07
    15 'Prefactor '    .24036E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.4450       1.0000          .0000       .10000E+07
    17 'Prefactor '    .14264E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    .68917       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3365       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=   10097.07     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1084 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6826        .51647E-07** at limit **
   2  norm          3.5981        3.5104        .94723E-07   -.71168E-03
   3  Prefactor     4.4846        1.6563       -.23395E-07   -.84204E-02
   4  norm           .0000        .81143        .10169E-07** at limit **
   5  norm          69.352        7.5437       -.44354E-07   -.89008E-02
   6  norm          .46130E-06    3.7344        .33397E-07** at limit **
   7  norm          22.766        2.9797        .21024E-06   -.20731E-01
   8  Prefactor     .97256E-07    3.1643       -.18918E-06** at limit **
   9  norm          132.33        1.8210       -.30724E-07   -.45756E-01
  10  Prefactor     .25313E-07    5.6493       -.68709E-06** at limit **
  11  norm          .46629E-08    4.8748       -.54597E-07** at limit **
  12  Prefactor     .10751E-05    4.0309       -.91838E-06** at limit **
  13  Prefactor     36.452        16.658       -.90269E-06    .73614E-01
  14  Prefactor     .10799E-05    169.43        .73642E-05** at limit **
  15  Prefactor     .72164E-09    3.7296        .22268E-06** at limit **
  16  Prefactor     4.4596        1.1446       -.63522E-07    .16788E-02
  17  Prefactor     .22204E-09    2.8747       -.78636E-07** at limit **
  18  Normalizat    .68843        .18562        .84580E-05   -.22980E-04
  19  Prefactor     1.3369        .18487       -.96863E-05   -.85451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 3.59807
  Prefactor  = 4.48461
  norm       = 0
  norm       = 69.3517
  norm       = 4.61298e-07
  norm       = 22.766
  Prefactor  = 9.72555e-08
  norm       = 132.334
  Prefactor  = 2.53131e-08
  norm       = 4.66294e-09
  Prefactor  = 1.07508e-06
  Prefactor  = 36.4517
  Prefactor  = 1.07991e-06
  Prefactor  = 7.21645e-10
  Prefactor  = 4.45964
  Prefactor  = 2.22045e-10
  Normalizat = 0.688434
  Prefactor  = 1.3369
 **********
 **   18 **HESSE 
 **********

 FCN=   10097.07     FROM HESSE     STATUS=OK           312 CALLS     1396 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5981        3.5199        .53282E-03   -1.5670    
   3  Prefactor     4.4846        8.9625        .47586E-03   -1.5666    
   4  norm           .0000        .81087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          69.352        7.5858        .12010E-03   -1.5541    
   6  norm          .46130E-06    8.8202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.766        19.447        .20925E-03   -1.5613    
   8  Prefactor     .97256E-07    8.7904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          132.33        13.590        .86950E-04   -1.5478    
  10  Prefactor     .25313E-07    5.7460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .46629E-08    4.8918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10751E-05    8.4041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.452        19.095        .16685E-03   -1.5587    
  14  Prefactor     .10799E-05    18.880        .16141E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .72164E-09    3.7121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4596        10.108        .47738E-03   -1.5666    
  17  Prefactor     .22204E-09    2.8857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .68843        .15866        .77255E-01   -1.0435    
  19  Prefactor     1.3369        .15596        .57507E-01   -.82216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63061e-07
Minuit parameter uncertainties:
  1  7.65604e-06
  2  3.51994
  3  8.96257
  4  9.56071e-07
  5  7.58585
  6  0.00403421
  7  19.4467
  8  0.00184899
  9  13.5896
  10  0.000762483
  11  0.000301223
  12  0.00601173
  13  19.0951
  14  0.00903087
  15  0.000102176
  16  10.1085
  17  5.0752e-05
  18  0.158764
  19  0.156011
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.323e+02  1.359e+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:  1.337e+00  1.560e-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.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 375.75
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.56e-07 +/- 6.73e-08
Energy Flux (Fixed Index): 2.36e-04 +/- 2.42e-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) = 10092.9258659
delta logL = 4.14124863591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10092.068659
delta logL = 4.99845560202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    152.88       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9637       1.0000          .0000       5.0000    
     3 'Normalizat'    .78849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2700       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=   10092.07     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          152.88        17.283        .80884E-04    .20030E-01
   2  alpha         1.9637        .10176        .83320E-01    .26449E-04
   3  Normalizat    .78848        .15540        .72876E-01    .36116E-04
   4  Prefactor     1.2700        .15332        .58769E-01    .21384E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 152.878
  alpha      = 1.96374
  Normalizat = 0.788479
  Prefactor  = 1.26998
 **********
 **   18 **HESSE 
 **********

 FCN=   10092.07     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          152.88        16.296        .32354E-05   -1.5461    
   2  alpha         1.9637        .96760E-01    .36622E-03   -.21618    
   3  Normalizat    .78848        .18634        .32254E-03   -1.0050    
   4  Prefactor     1.2700        .18394        .25986E-03   -.84204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97975e-10
Minuit parameter uncertainties:
  1  16.2958
  2  0.0967851
  3  0.186489
  4  0.18403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366429': 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) = 10092.068659
delta logL = 4.99845561891

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.529e+02  1.630e+01  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  1.964e+00  9.679e-02  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.270e+00  1.840e-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:  7.885e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 381.07
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.96 +/- 0.10
Photon Flux (Free Index): 5.58e-07 +/- 6.65e-08
Energy Flux (Free Index): 3.22e-04 +/- 4.98e-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/366429/cmap_HighResolution_695001601_695260801_4FGL_J1321.1+2216_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.56e-07', energy_flux2='3.22e-04', photon_flux_error='6.73e-08', dlogl='5.00e+00', energy_flux='2.36e-04', photon_flux2='5.58e-07', job_status='DONE', time_completed='2023-01-13 00:59:05.569913', photon_index_error2='0.10', photon_index2='1.96', ts='375.75', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='4.98e-05', EG='0.69', time_epoch_completed='1673600345.57', return_code='0', job_id='366429', GAL2='1.27', EG2='0.79', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='6.65e-08', ts2='381.07', photon_index='2.28' WHERE bin_id='1758' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:59:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 366429: <4FGL_J1321.1+2216_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1758> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Jan 13 00:45:22 2023
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:47:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:47:13 2023
Terminated at Fri Jan 13 00:59:06 2023
Results reported at Fri Jan 13 00:59:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1758 200.296 22.2808 695001601 695260801 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 :                                   592.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            824 sec.

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

