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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1754
RA = 200.296, Dec = 22.2808
tmin = 693964801, tmax = 694224001
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='643462', job_status='RUN', time_executed='2023-01-01 01:14:47.992144', time_epoch_executed='1672564487.99' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643462/ft1_4FGL_J1321.1+2216_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643462/ft2_4FGL_J1321.1+2216_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643462/ft1_4FGL_J1321.1+2216_daily_bin1754.fits outfile=/scratch/kocevski/643462/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1754.fits ra=200.296 dec=22.2808 rad=12.0 tmin=693964801.0 tmax=694224001.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.92
user 3.69
sys 0.21

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

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

Number of photons that the gtmktime cut: 593

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643462/ft1_filtered_4FGL_J1321.1+2216_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/643462/ft2_4FGL_J1321.1+2216_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/643462/ltcube_693964801_694224001_4FGL_J1321.1+2216_daily_bin1754.fits outfile=/scratch/kocevski/643462/expmap_693964801_694224001_4FGL_J1321.1+2216_daily_bin1754.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/643462/ltcube_693964801_694224001_4FGL_J1321.1+2216_daily_bin1754.fits
.....................!
real 191.79
user 187.20
sys 4.12

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/643462/ft1_filtered_4FGL_J1321.1+2216_daily_bin1754.fits scfile=/scratch/kocevski/643462/ft2_4FGL_J1321.1+2216_daily_bin1754.fits outfile=/scratch/kocevski/643462/cmap_693964801_694224001_4FGL_J1321.1+2216_daily_bin1754.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643462/ft1_filtered_4FGL_J1321.1+2216_daily_bin1754.fits scfile=/scratch/kocevski/643462/ft2_4FGL_J1321.1+2216_daily_bin1754.fits outfile=/scratch/kocevski/643462/cmap_HighResolution_693964801_694224001_4FGL_J1321.1+2216_daily_bin1754.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51659       1.0000          .0000       .10000E+07
     2 'norm      '    .20379E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.538       1.0000          .0000       .10000E+07
     4 'norm      '    .89880E-05   1.0000          .0000       .10000E+07
     5 'norm      '    20.005       1.0000          .0000       .10000E+07
     6 'norm      '    7.7225       1.0000          .0000       .10000E+07
     7 'norm      '    11.609       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22229E-03   1.0000          .0000       .10000E+07
     9 'norm      '    24.268       1.0000          .0000       .10000E+07
    10 'Prefactor '    .18738E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .66536E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    13.105       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13994E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .58785E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.3012       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23931E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.6385       1.0000          .0000       .10000E+07
    18 'Normalizat'    .90579       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98282       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=   6429.916     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1093 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44048        1.5610       -.10696E-06   -.39678E-02
   2  norm           .0000        2.4293        .10029E-06** at limit **
   3  Prefactor     11.448        8.2696        .93738E-07    .75673E-01
   4  norm           .0000        1.1843        .91001E-07** at limit **
   5  norm          19.951        6.5188        .12552E-06    .13668E-01
   6  norm          7.6865        9.2979       -.54228E-07   -.15437E-01
   7  norm          11.564        1.0844        .20468E-07   -.32164E-02
   8  Prefactor     .12399E-05    13.969        .23426E-06** at limit **
   9  norm          24.170        3.8068        .10850E-06   -.10112    
  10  Prefactor     .17597E-07    30.889        .69409E-07** at limit **
  11  norm          .22538E-07    38.402        .14154E-05** at limit **
  12  Prefactor     12.975        2.3609        .39075E-07    .18535E-01
  13  Prefactor     .11102E-09    5.9861        .43109E-07** at limit **
  14  Prefactor     .85665E-06    13.388       -.27970E-06** at limit **
  15  Prefactor     2.2972        2.7711       -.74311E-08   -.64915E-03
  16  Prefactor     .32196E-08    10.685       -.91730E-07** at limit **
  17  Prefactor     1.6360        7.3538       -.88924E-06   -.12491E-01
  18  Normalizat    .90715        .18596       -.33490E-05   -.66364E-05
  19  Prefactor     .98260        .18577        .33931E-05    .78923E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.44048
  norm       = 0
  Prefactor  = 11.4479
  norm       = 0
  norm       = 19.9514
  norm       = 7.68646
  norm       = 11.5636
  Prefactor  = 1.2399e-06
  norm       = 24.1697
  Prefactor  = 1.7597e-08
  norm       = 2.25375e-08
  Prefactor  = 12.9755
  Prefactor  = 1.11022e-10
  Prefactor  = 8.56648e-07
  Prefactor  = 2.29724
  Prefactor  = 3.21965e-09
  Prefactor  = 1.63595
  Normalizat = 0.907147
  Prefactor  = 0.982601
 **********
 **   18 **HESSE 
 **********

 FCN=   6429.916     FROM HESSE     STATUS=OK           314 CALLS     1407 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44048        5.7487        .77058E-02   -1.5695    
   2  norm           .0000        2.4247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.448        12.300        .29467E-03   -1.5640    
   4  norm           .0000        1.1847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.951        6.6440        .22365E-03   -1.5619    
   6  norm          7.6865        9.4844        .36061E-03   -1.5653    
   7  norm          11.564        12.815        .29378E-03   -1.5640    
   8  Prefactor     .12399E-05    19.461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.170        8.2168        .20304E-03   -1.5610    
  10  Prefactor     .17597E-07    30.952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .22538E-07    4.1027        .97402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.975        12.387        .27644E-03   -1.5636    
  13  Prefactor     .11102E-09    5.9929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .85665E-06    17.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2972        2.7961        .67622E-03   -1.5678    
  16  Prefactor     .32196E-08    10.736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6360        9.1942        .82527E-03   -1.5682    
  18  Normalizat    .90715        .16660        .44976E-01   -.96209    
  19  Prefactor     .98260        .15905        .46052E-01   -.93312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28537e-07
Minuit parameter uncertainties:
  1  3.18257
  2  7.80559e-06
  3  12.2996
  4  2.52663e-06
  5  6.64398
  6  9.48445
  7  12.8153
  8  0.00982435
  9  8.21681
  10  0.00147489
  11  0.000607789
  12  12.3872
  13  5.13473e-05
  14  0.00768809
  15  2.79609
  16  0.000371132
  17  7.75663
  18  0.166695
  19  0.159125
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.417e+01  8.217e+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:  9.826e-01  1.591e-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:  9.071e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.03
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 4.07e-08
Energy Flux (Fixed Index): 4.31e-05 +/- 1.47e-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) = 6429.18501739
delta logL = 0.730636254228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6429.17388448
delta logL = 0.741769164814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.450       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9131       1.0000          .0000       5.0000    
     3 'Normalizat'    .94237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96356       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=   6429.174     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.450        8.9621        .19826E-03    .37856E-01
   2  alpha         1.9131        .29730        .21260       -.26885E-04
   3  Normalizat    .94239        .15876        .45441E-01    .65465E-04
   4  Prefactor     .96356        .15779        .45810E-01   -.93341E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.4501
  alpha      = 1.91309
  Normalizat = 0.942385
  Prefactor  = 0.963555
 **********
 **   18 **HESSE 
 **********

 FCN=   6429.174     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.450        8.5825        .79306E-05   -1.5607    
   2  alpha         1.9131        .29822        .89349E-02   -.23698    
   3  Normalizat    .94239        .18554        .24084E-03   -.94986    
   4  Prefactor     .96356        .18413        .23839E-03   -.93954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14141e-09
Minuit parameter uncertainties:
  1  8.58248
  2  0.298973
  3  0.185667
  4  0.184251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643462': 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) = 6429.17388448
delta logL = 0.741769167251

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.545e+01  8.582e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  1.913e+00  2.990e-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:  9.636e-01  1.843e-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:  9.424e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.43
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.91 +/- 0.30
Photon Flux (Free Index): 8.92e-08 +/- 3.89e-08
Energy Flux (Free Index): 5.64e-05 +/- 2.48e-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/643462/cmap_HighResolution_693964801_694224001_4FGL_J1321.1+2216_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='5.64e-05', photon_flux_error='4.07e-08', dlogl='7.42e-01', energy_flux='4.31e-05', photon_flux2='8.92e-08', job_status='DONE', time_completed='2023-01-01 01:22:58.219319', photon_index_error2='0.30', photon_index2='1.91', ts='32.03', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.48e-05', EG='0.91', time_epoch_completed='1672564978.22', return_code='0', job_id='643462', GAL2='0.96', EG2='0.94', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='3.89e-08', ts2='33.43', photon_index='2.28' WHERE bin_id='1754' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:22:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 643462: <4FGL_J1321.1+2216_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1754> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jan  1 01:10:18 2023
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:11:11 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:11:11 2023
Terminated at Sun Jan  1 01:22:59 2023
Results reported at Sun Jan  1 01:22:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1754 200.296 22.2808 693964801 694224001 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 :                                   492.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            761 sec.

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

