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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1777
RA = 200.296, Dec = 22.2808
tmin = 699926401, tmax = 700185601
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='914637', job_status='RUN', time_executed='2023-03-11 00:41:11.030104', time_epoch_executed='1678524071.03' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914637

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914637/ft1_4FGL_J1321.1+2216_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914637/ft2_4FGL_J1321.1+2216_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914637/ft1_4FGL_J1321.1+2216_daily_bin1777.fits outfile=/scratch/kocevski/914637/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1777.fits ra=200.296 dec=22.2808 rad=12.0 tmin=699926401.0 tmax=700185601.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.64
user 3.44
sys 0.19

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

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

Number of photons that the gtmktime cut: 561

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914637/ft1_filtered_4FGL_J1321.1+2216_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/914637/ft2_4FGL_J1321.1+2216_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/914637/ltcube_699926401_700185601_4FGL_J1321.1+2216_daily_bin1777.fits outfile=/scratch/kocevski/914637/expmap_699926401_700185601_4FGL_J1321.1+2216_daily_bin1777.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/914637/ltcube_699926401_700185601_4FGL_J1321.1+2216_daily_bin1777.fits
.....................!
real 189.77
user 185.24
sys 4.18

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/914637/ft1_filtered_4FGL_J1321.1+2216_daily_bin1777.fits scfile=/scratch/kocevski/914637/ft2_4FGL_J1321.1+2216_daily_bin1777.fits outfile=/scratch/kocevski/914637/cmap_699926401_700185601_4FGL_J1321.1+2216_daily_bin1777.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914637/ft1_filtered_4FGL_J1321.1+2216_daily_bin1777.fits scfile=/scratch/kocevski/914637/ft2_4FGL_J1321.1+2216_daily_bin1777.fits outfile=/scratch/kocevski/914637/cmap_HighResolution_699926401_700185601_4FGL_J1321.1+2216_daily_bin1777.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63090       1.0000          .0000       .10000E+07
     2 'norm      '    1.2077       1.0000          .0000       .10000E+07
     3 'Prefactor '    .32409E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.0074       1.0000          .0000       .10000E+07
     5 'norm      '    13.542       1.0000          .0000       .10000E+07
     6 'norm      '    1.4657       1.0000          .0000       .10000E+07
     7 'norm      '    12.587       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.9916       1.0000          .0000       .10000E+07
     9 'norm      '    9.3649       1.0000          .0000       .10000E+07
    10 'Prefactor '    74.453       1.0000          .0000       .10000E+07
    11 'norm      '    3.4365       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.1347       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.9617       1.0000          .0000       .10000E+07
    14 'Prefactor '    63.477       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.1638       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.1280       1.0000          .0000       .10000E+07
    17 'Prefactor '    .76254E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1611       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86911       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=   6431.132     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1459 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66045        9.4441       -.30979E-06   -.13764E-01
   2  norm          1.1844        4.2669        .11068E-07   -.38743E-03
   3  Prefactor     .15310E-06    47.227       -.14988E-05** at limit **
   4  norm          1.0171        3.3299        .55630E-06    .32900E-02
   5  norm          13.752        7.4198        .25379E-07    .19757E-01
   6  norm          1.2897        8.9370       -.26149E-06   -.37407E-02
   7  norm          12.532        8.6931        .27744E-07   -.12887E-01
   8  Prefactor     7.0198        17.089       -.39612E-06   -.61832E-01
   9  norm          9.3750        7.1895       -.50120E-08    .10009E-01
  10  Prefactor     75.354        29.789       -.10812E-06    .13335    
  11  norm          3.4521        8.6034       -.35073E-06   -.89670E-02
  12  Prefactor     1.2576        47.085        .63414E-06   -.56939E-03
  13  Prefactor     5.0035        16.137        .23344E-06    .15576E-01
  14  Prefactor     64.797        47.823        .32233E-06   -.51214E-01
  15  Prefactor     8.2181        4.4806        .49836E-07   -.46894E-04
  16  Prefactor     2.1558        12.662        .12286E-06    .30182E-02
  17  Prefactor     .30531E-08    23.043        .12936E-05** at limit **
  18  Normalizat    1.1593        .22690        .22952E-05    .70517E-04
  19  Prefactor     .86911        .21119        .11486E-05    .52757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.660454
  norm       = 1.1844
  Prefactor  = 1.531e-07
  norm       = 1.01712
  norm       = 13.7517
  norm       = 1.28967
  norm       = 12.5316
  Prefactor  = 7.01985
  norm       = 9.37503
  Prefactor  = 75.354
  norm       = 3.45208
  Prefactor  = 1.2576
  Prefactor  = 5.00354
  Prefactor  = 64.7966
  Prefactor  = 8.21805
  Prefactor  = 2.15582
  Prefactor  = 3.05311e-09
  Normalizat = 1.15931
  Prefactor  = 0.869107
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.132     FROM HESSE     STATUS=OK           316 CALLS     1775 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66045        9.4609        .66504E-03   -1.5692    
   2  norm          1.1844        4.3210        .10301E-02   -1.5686    
   3  Prefactor     .15310E-06    46.942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0171        3.3563        .44025E-03   -1.5688    
   5  norm          13.752        8.0331        .27193E-03   -1.5634    
   6  norm          1.2897        9.8485        .88785E-03   -1.5685    
   7  norm          12.532        18.516        .28208E-03   -1.5637    
   8  Prefactor     7.0198        21.369        .37917E-03   -1.5655    
   9  norm          9.3750        7.4065        .32725E-03   -1.5647    
  10  Prefactor     75.354        42.110        .11590E-03   -1.5534    
  11  norm          3.4521        8.7064        .54537E-03   -1.5671    
  12  Prefactor     1.2576        49.797        .10940E-02   -1.5686    
  13  Prefactor     5.0035        18.259        .45126E-03   -1.5663    
  14  Prefactor     64.797        51.553        .12552E-03   -1.5547    
  15  Prefactor     8.2181        4.4787        .35065E-03   -1.5651    
  16  Prefactor     2.1558        12.697        .70654E-03   -1.5679    
  17  Prefactor     .30531E-08    22.872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1593        .18890        .55996E-01   -.87870    
  19  Prefactor     .86911        .17686        .44610E-01   -.97229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27639e-06
Minuit parameter uncertainties:
  1  4.99942
  2  4.32104
  3  0.00536175
  4  3.35635
  5  8.03311
  6  7.12779
  7  18.5163
  8  21.3696
  9  7.40649
  10  42.1103
  11  8.70648
  12  15.8273
  13  18.2587
  14  51.5535
  15  4.47865
  16  10.4638
  17  0.000526458
  18  0.18901
  19  0.176981
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  9.375e+00  7.406e+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:  8.691e-01  1.770e-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.159e+00  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.32e-05

TS (Fixed Index): 3.82
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914637/likelihoodResults_699926401_700185601_4FGL_J1321.1+2216_daily_bin1777.txt

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) = 6431.12751984
delta logL = 0.00474794910588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6431.1272615
delta logL = 0.00500629398448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5026       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2304       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86800       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=   6431.127     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      261 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5029        6.9656        .12994E-04   -.13020E-01
   2  alpha         2.2304        .50818        .14049E-01   -.16123E-03
   3  Normalizat    1.1612        .21380        .24744E-03    .77004E-04
   4  Prefactor     .86807        .20285        .26754E-03    .76617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.5029
  alpha      = 2.23039
  Normalizat = 1.16117
  Prefactor  = 0.868074
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.127     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5029        6.9300        .51976E-06   -1.5646    
   2  alpha         2.2304        .50556        .56196E-03   -.10806    
   3  Normalizat    1.1612        .21403        .98977E-05   -.87811    
   4  Prefactor     .86807        .20305        .10701E-04   -.97266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73314e-09
Minuit parameter uncertainties:
  1  6.93005
  2  0.509108
  3  0.214194
  4  0.203231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914637': 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) = 6431.12726143
delta logL = 0.00500635894605

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  9.503e+00  6.930e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.230e+00  5.091e-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:  8.681e-01  2.032e-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.161e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.23 +/- 0.51
Photon Flux (Free Index): 4.46e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/914637/cmap_HighResolution_699926401_700185601_4FGL_J1321.1+2216_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='1.71e-05', photon_flux_error='3.67e-08', dlogl='5.01e-03', energy_flux='1.67e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2023-03-11 00:50:24.531126', photon_index_error2='0.51', photon_index2='2.23', ts='3.82', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.30e-05', EG='1.16', time_epoch_completed='1678524624.53', return_code='0', job_id='914637', GAL2='0.87', EG2='1.16', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='3.72e-08', ts2='3.83', photon_index='2.28' WHERE bin_id='1777' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:50:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 914637: <4FGL_J1321.1+2216_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1777> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Mar 11 00:40:25 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:40:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:40:31 2023
Terminated at Sat Mar 11 00:50:25 2023
Results reported at Sat Mar 11 00:50:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1777 200.296 22.2808 699926401 700185601 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 :                                   556.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            600 sec.

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

