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


Performing analysis on: 4FGL_J1321.1+2216_weekly_bin760
RA = 200.296, Dec = 22.2808
tmin = 698630401, tmax = 699235201
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='23627', job_status='RUN', time_executed='2023-02-28 01:18:47.561033', time_epoch_executed='1677575927.56' WHERE source_name='4FGL J1321.1+2216' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23627

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23627/ft1_4FGL_J1321.1+2216_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23627/ft2_4FGL_J1321.1+2216_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23627/ft1_4FGL_J1321.1+2216_weekly_bin760.fits outfile=/scratch/kocevski/23627/ft1_filteredMKT_4FGL_J1321.1+2216_weekly_bin760.fits ra=200.296 dec=22.2808 rad=12.0 tmin=698630401.0 tmax=699235201.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.18
user 5.91
sys 0.25

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

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

Number of photons that the gtmktime cut: 764

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23627/ft1_filtered_4FGL_J1321.1+2216_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/23627/ft2_4FGL_J1321.1+2216_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/23627/ltcube_698630401_699235201_4FGL_J1321.1+2216_weekly_bin760.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/23627/ft2_4FGL_J1321.1+2216_weekly_bin760.fits
.....................!
real 28.36
user 27.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23627/ft1_filtered_4FGL_J1321.1+2216_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/23627/ft2_4FGL_J1321.1+2216_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/23627/ltcube_698630401_699235201_4FGL_J1321.1+2216_weekly_bin760.fits outfile=/scratch/kocevski/23627/expmap_698630401_699235201_4FGL_J1321.1+2216_weekly_bin760.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/23627/ltcube_698630401_699235201_4FGL_J1321.1+2216_weekly_bin760.fits
.....................!
real 192.42
user 186.63
sys 5.36

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/23627/ft1_filtered_4FGL_J1321.1+2216_weekly_bin760.fits scfile=/scratch/kocevski/23627/ft2_4FGL_J1321.1+2216_weekly_bin760.fits outfile=/scratch/kocevski/23627/cmap_698630401_699235201_4FGL_J1321.1+2216_weekly_bin760.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23627/ft1_filtered_4FGL_J1321.1+2216_weekly_bin760.fits scfile=/scratch/kocevski/23627/ft2_4FGL_J1321.1+2216_weekly_bin760.fits outfile=/scratch/kocevski/23627/cmap_HighResolution_698630401_699235201_4FGL_J1321.1+2216_weekly_bin760.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.59
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17764E-08   1.0000          .0000       .10000E+07
     2 'norm      '    .16901E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .24652E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .36858E-03   1.0000          .0000       .10000E+07
     5 'norm      '    48.136       1.0000          .0000       .10000E+07
     6 'norm      '    .95596E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .77800       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32677E-01   1.0000          .0000       .10000E+07
     9 'norm      '    21.584       1.0000          .0000       .10000E+07
    10 'Prefactor '    .31888E-02   1.0000          .0000       .10000E+07
    11 'norm      '    6.0480       1.0000          .0000       .10000E+07
    12 'Prefactor '    .42879E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .83670E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10400       1.0000          .0000       .10000E+07
    15 'Prefactor '    .59597E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    6.3924       1.0000          .0000       .10000E+07
    17 'Prefactor '    .81730E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .89528       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2364       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=   8575.719     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1098 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88263E-08    7.0638        .51232E-07** at limit **
   2  norm          .27756E-09    2.9946        .23098E-06** at limit **
   3  Prefactor     .71887E-07    40.757       -.51369E-06** at limit **
   4  norm          .81046E-08    2.7398        .78827E-06** at limit **
   5  norm          48.132        6.8992        .64151E-07    .29832E-02
   6  norm          .42799E-07    3.7960       -.50953E-08** at limit **
   7  norm          1.0135        11.831       -.13679E-05    .38405E-01
   8  Prefactor     .19373E-07    1.5917       -.13677E-06** at limit **
   9  norm          21.599        6.5280        .12629E-06    .36315E-01
  10  Prefactor     .14438E-06    8.4479       -.10234E-06** at limit **
  11  norm          6.0287        6.1549       -.18529E-06   -.24555E-01
  12  Prefactor     .16837E-06    11.072        .91130E-06** at limit **
  13  Prefactor     .26895E-06    6.4114       -.61451E-06** at limit **
  14  Prefactor     .35560E-06    23.062        .12550E-05** at limit **
  15  Prefactor     .17691E-06    2.9117       -.50696E-07** at limit **
  16  Prefactor     6.2992        6.0749       -.25140E-07   -.41740E-03
  17  Prefactor     .18541E-07    6.4331        .56424E-06** at limit **
  18  Normalizat    .89548        .19190        .12459E-04    .32980E-04
  19  Prefactor     1.2364        .18435       -.78029E-05    .22889E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82627e-09
  norm       = 2.77556e-10
  Prefactor  = 7.18869e-08
  norm       = 8.10463e-09
  norm       = 48.1318
  norm       = 4.27991e-08
  norm       = 1.01347
  Prefactor  = 1.93734e-08
  norm       = 21.5992
  Prefactor  = 1.44385e-07
  norm       = 6.0287
  Prefactor  = 1.68365e-07
  Prefactor  = 2.68952e-07
  Prefactor  = 3.55604e-07
  Prefactor  = 1.76914e-07
  Prefactor  = 6.29918
  Prefactor  = 1.85407e-08
  Normalizat = 0.895477
  Prefactor  = 1.23643
 **********
 **   18 **HESSE 
 **********

 FCN=   8575.719     FROM HESSE     STATUS=OK           316 CALLS     1414 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88263E-08    7.8247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .27756E-09    3.0506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71887E-07    40.744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .81046E-08    2.8029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          48.132        7.0144        .14414E-03   -1.5569    
   6  norm          .42799E-07    4.5268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0135        42.848        .54589E-03   -1.5688    
   8  Prefactor     .19373E-07    5.8539        .11887E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.599        9.2749        .21530E-03   -1.5615    
  10  Prefactor     .14438E-06    10.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.0287        9.7257        .40803E-03   -1.5659    
  12  Prefactor     .16837E-06    12.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26895E-06    8.9712        .10285E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .35560E-06    31.021        .13823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .17691E-06    5.5239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2992        6.0723        .39675E-03   -1.5658    
  17  Prefactor     .18541E-07    8.7644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .89548        .15991        .64535E-01   -.96619    
  19  Prefactor     1.2364        .15228        .54405E-01   -.85217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53567e-07
Minuit parameter uncertainties:
  1  0.000524947
  2  5.95342e-05
  3  0.00342321
  4  0.000301584
  5  7.01437
  6  0.000880126
  7  13.1797
  8  0.000673312
  9  9.27494
  10  0.00251593
  11  9.72569
  12  0.00291916
  13  0.00310662
  14  0.00664283
  15  0.00197712
  16  6.07235
  17  0.000805778
  18  0.15999
  19  0.152329
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.160e+01  9.275e+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.236e+00  1.523e-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.955e-01  1.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.97
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.59e-08
Energy Flux (Fixed Index): 3.85e-05 +/- 1.65e-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) = 8575.71297983
delta logL = 0.00555273826831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8575.71229718
delta logL = 0.00623538773834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.822       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2436       1.0000          .0000       5.0000    
     3 'Normalizat'    .89916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2342       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=   8575.712     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.822        8.4317        .85651E-05    .55164E-02
   2  alpha         2.2436        .33890        .10731E-01    .66433E-04
   3  Normalizat    .89911        .19158        .28495E-03   -.24178E-04
   4  Prefactor     1.2342        .18450        .24073E-03   -.29658E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.822
  alpha      = 2.24362
  Normalizat = 0.89911
  Prefactor  = 1.23422
 **********
 **   18 **HESSE 
 **********

 FCN=   8575.712     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.822        8.3829        .34260E-06   -1.5615    
   2  alpha         2.2436        .33674        .42925E-03   -.10273    
   3  Normalizat    .89911        .19174        .11398E-04   -.96491    
   4  Prefactor     1.2342        .18465        .96292E-05   -.85285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39916e-10
Minuit parameter uncertainties:
  1  8.38294
  2  0.337781
  3  0.191884
  4  0.184746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23627': 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) = 8575.71229714
delta logL = 0.00623542982612

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.182e+01  8.383e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.244e+00  3.378e-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.234e+00  1.847e-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.991e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.00
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.24 +/- 0.34
Photon Flux (Free Index): 1.04e-07 +/- 4.81e-08
Energy Flux (Free Index): 3.92e-05 +/- 1.59e-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/23627/cmap_HighResolution_698630401_699235201_4FGL_J1321.1+2216_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.92e-05', photon_flux_error='4.59e-08', dlogl='6.24e-03', energy_flux='3.85e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2023-02-28 01:28:20.550220', photon_index_error2='0.34', photon_index2='2.24', ts='13.97', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.90', time_epoch_completed='1677576500.55', return_code='0', job_id='23627', GAL2='1.23', EG2='0.90', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='4.81e-08', ts2='14.00', photon_index='2.28' WHERE bin_id='760' AND source_name='4FGL J1321.1+2216' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:28:20 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 23627: <4FGL_J1321.1+2216_weekly_bin760> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_weekly_bin760 200.296 22.2808 698630401 699235201 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 :                                   574.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

