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


Performing analysis on: 4FGL_J1321.1+2216_weekly_bin741
RA = 200.296, Dec = 22.2808
tmin = 687139201, tmax = 687744001
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='389195', job_status='RUN', time_executed='2022-10-18 01:15:51.702057', time_epoch_executed='1666080951.7' WHERE source_name='4FGL J1321.1+2216' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389195

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389195/ft1_4FGL_J1321.1+2216_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389195/ft2_4FGL_J1321.1+2216_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389195/ft1_4FGL_J1321.1+2216_weekly_bin741.fits outfile=/scratch/kocevski/389195/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin741.fits ra=200.296 dec=22.2808 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.58
user 6.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389195/ft2_4FGL_J1321.1+2216_weekly_bin741.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/389195/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/389195/ft1_filtered_4FGL_J1321.1+2216_weekly_bin741.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.37
sys 0.13

Number of photons that the gtmktime cut: 1905

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389195/ft1_filtered_4FGL_J1321.1+2216_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/389195/ft2_4FGL_J1321.1+2216_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/389195/ltcube_687139201_687744001_4FGL_J1321.1+2216_weekly_bin741.fits outfile=/scratch/kocevski/389195/expmap_687139201_687744001_4FGL_J1321.1+2216_weekly_bin741.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/389195/ltcube_687139201_687744001_4FGL_J1321.1+2216_weekly_bin741.fits
.....................!
real 190.56
user 185.14
sys 5.04

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/389195/ft1_filtered_4FGL_J1321.1+2216_weekly_bin741.fits scfile=/scratch/kocevski/389195/ft2_4FGL_J1321.1+2216_weekly_bin741.fits outfile=/scratch/kocevski/389195/cmap_687139201_687744001_4FGL_J1321.1+2216_weekly_bin741.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.296 yref=22.2808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389195/ft1_filtered_4FGL_J1321.1+2216_weekly_bin741.fits scfile=/scratch/kocevski/389195/ft2_4FGL_J1321.1+2216_weekly_bin741.fits outfile=/scratch/kocevski/389195/cmap_HighResolution_687139201_687744001_4FGL_J1321.1+2216_weekly_bin741.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.57
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31730E-06   1.0000          .0000       .10000E+07
     2 'norm      '    5.9353       1.0000          .0000       .10000E+07
     3 'Prefactor '    .38425E-06   1.0000          .0000       .10000E+07
     4 'norm      '    1.2522       1.0000          .0000       .10000E+07
     5 'norm      '    46.298       1.0000          .0000       .10000E+07
     6 'norm      '    37.680       1.0000          .0000       .10000E+07
     7 'norm      '    17.273       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10025E-02   1.0000          .0000       .10000E+07
     9 'norm      '    58.612       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23093E-04   1.0000          .0000       .10000E+07
    11 'norm      '    8.0385       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.116       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4467       1.0000          .0000       .10000E+07
    14 'Prefactor '    39.165       1.0000          .0000       .10000E+07
    15 'Prefactor '    13.110       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.6350       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10138E-05   1.0000          .0000       .10000E+07
    18 'Normalizat'    .86347       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1891       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=   20924.02     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1113 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .59422        .11138E-06** at limit **
   2  norm          5.9409        2.8820        .73844E-07   -.25522E-02
   3  Prefactor     .16653E-09    3.2102        .54465E-06** at limit **
   4  norm          1.2532        1.6628       -.62129E-06   -.50949E-02
   5  norm          46.297        3.8732       -.14298E-07   -.27414E-01
   6  norm          37.694        2.2967       -.67286E-07    .54200E-01
   7  norm          17.278        1.2363        .42153E-07    .16994E-01
   8  Prefactor     .22760E-08    9.5298        .24411E-06** at limit **
   9  norm          58.582        4.6347        .13639E-06   -.43538E-01
  10  Prefactor     .16653E-08    6.3150       -.39970E-06** at limit **
  11  norm          8.0439        5.0146       -.28174E-06    .90118E-02
  12  Prefactor     11.060        7.7736        .80660E-06   -.64700E-01
  13  Prefactor     5.4744        3.5521        .47372E-06    .12528    
  14  Prefactor     41.592        36.408       -.65677E-06   -.21043E-02
  15  Prefactor     13.104        3.2054        .30532E-07    .28143E-02
  16  Prefactor     1.6346        5.1186        .30290E-05    .22633E-03
  17  Prefactor     .27756E-09    2.7117        .51542E-06** at limit **
  18  Normalizat    .86399        .13898       -.29416E-05   -.49789E-04
  19  Prefactor     1.1881        .13073       -.29311E-06   -.12324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.94085
  Prefactor  = 1.66533e-10
  norm       = 1.25319
  norm       = 46.2966
  norm       = 37.694
  norm       = 17.278
  Prefactor  = 2.27596e-09
  norm       = 58.582
  Prefactor  = 1.66533e-09
  norm       = 8.04394
  Prefactor  = 11.0598
  Prefactor  = 5.47445
  Prefactor  = 41.5923
  Prefactor  = 13.1037
  Prefactor  = 1.63458
  Prefactor  = 2.77556e-10
  Normalizat = 0.863995
  Prefactor  = 1.18813
 **********
 **   18 **HESSE 
 **********

 FCN=   20924.02     FROM HESSE     STATUS=OK           314 CALLS     1427 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .59385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9409        2.8882        .41194E-03   -1.5659    
   3  Prefactor     .16653E-09    3.2140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2532        1.6935        .99855E-03   -1.5686    
   5  norm          46.297        6.6659        .14698E-03   -1.5572    
   6  norm          37.694        11.509        .16293E-03   -1.5585    
   7  norm          17.278        11.446        .24072E-03   -1.5625    
   8  Prefactor     .22760E-08    9.4802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          58.582        8.5140        .13063E-03   -1.5555    
  10  Prefactor     .16653E-08    6.3140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.0439        7.3437        .35339E-03   -1.5651    
  12  Prefactor     11.060        10.364        .30024E-03   -1.5641    
  13  Prefactor     5.4744        9.1006        .43032E-03   -1.5661    
  14  Prefactor     41.592        36.231        .15981E-03   -1.5579    
  15  Prefactor     13.104        3.2020        .27639E-03   -1.5636    
  16  Prefactor     1.6346        5.1426        .82641E-03   -1.5682    
  17  Prefactor     .27756E-09    2.7109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .86399        .11552        .71728E-01   -.97737    
  19  Prefactor     1.1881        .10833        .61236E-01   -.86697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5805e-07
Minuit parameter uncertainties:
  1  1.9511e-06
  2  2.88821
  3  4.44053e-05
  4  1.69345
  5  6.66595
  6  11.5091
  7  11.4458
  8  0.000292599
  9  8.51396
  10  0.000206675
  11  7.34368
  12  10.364
  13  9.10063
  14  36.2314
  15  3.20202
  16  5.14266
  17  5.66295e-05
  18  0.11555
  19  0.10835
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.858e+01  8.514e+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.188e+00  1.083e-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:  8.640e-01  1.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 170.03
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.90e-07 +/- 4.22e-08
Energy Flux (Fixed Index): 1.04e-04 +/- 1.52e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20924.0164654
delta logL = 0.00222455918265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20924.0158435
delta logL = 0.00284647982335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    58.358       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2912       1.0000          .0000       5.0000    
     3 'Normalizat'    .86188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1895       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=   20924.02     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          58.358        12.407        .13091E-03    .15170E-01
   2  alpha         2.2912        .19771        .14626        .12170E-03
   3  Normalizat    .86181        .11247        .71806E-01    .66497E-04
   4  Prefactor     1.1895        .10852        .61205E-01    .13676E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 58.3582
  alpha      = 2.29123
  Normalizat = 0.861806
  Prefactor  = 1.18953
 **********
 **   18 **HESSE 
 **********

 FCN=   20924.02     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          58.358        7.9852        .52365E-05   -1.5555    
   2  alpha         2.2912        .13063        .63021E-02   -.83607E-01
   3  Normalizat    .86181        .13426        .31775E-03   -.97815    
   4  Prefactor     1.1895        .12959        .27067E-03   -.86654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36269e-10
Minuit parameter uncertainties:
  1  7.98515
  2  0.130692
  3  0.134313
  4  0.129627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389195': 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) = 20924.0158433
delta logL = 0.00284667160668

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.836e+01  7.985e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.291e+00  1.307e-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.190e+00  1.296e-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:  8.618e-01  1.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 169.62
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.29 +/- 0.13
Photon Flux (Free Index): 2.92e-07 +/- 4.43e-08
Energy Flux (Free Index): 1.04e-04 +/- 1.49e-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/389195/cmap_HighResolution_687139201_687744001_4FGL_J1321.1+2216_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.90e-07', energy_flux2='1.04e-04', photon_flux_error='4.22e-08', dlogl='2.85e-03', energy_flux='1.04e-04', photon_flux2='2.92e-07', job_status='DONE', time_completed='2022-10-18 01:30:46.715277', photon_index_error2='0.13', photon_index2='2.29', ts='170.03', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.86', time_epoch_completed='1666081846.72', return_code='0', job_id='389195', GAL2='1.19', EG2='0.86', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.43e-08', ts2='169.62', photon_index='2.28' WHERE bin_id='741' AND source_name='4FGL J1321.1+2216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:30:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 389195: <4FGL_J1321.1+2216_weekly_bin741> in cluster <slac> Done

Job <4FGL_J1321.1+2216_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:15:30 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:15:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:15:31 2022
Terminated at Tue Oct 18 01:30:47 2022
Results reported at Tue Oct 18 01:30:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_weekly_bin741 200.296 22.2808 687139201 687744001 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 :                                   896.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

