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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1755
RA = 200.296, Dec = 22.2808
tmin = 694224001, tmax = 694483201
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='823716', job_status='RUN', time_executed='2023-01-04 01:03:24.754521', time_epoch_executed='1672823004.75' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823716/ft1_4FGL_J1321.1+2216_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823716/ft2_4FGL_J1321.1+2216_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823716/ft1_4FGL_J1321.1+2216_daily_bin1755.fits outfile=/scratch/kocevski/823716/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1755.fits ra=200.296 dec=22.2808 rad=12.0 tmin=694224001.0 tmax=694483201.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.04
user 2.83
sys 0.17

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

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

Number of photons that the gtmktime cut: 792

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823716/ft1_filtered_4FGL_J1321.1+2216_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/823716/ft2_4FGL_J1321.1+2216_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/823716/ltcube_694224001_694483201_4FGL_J1321.1+2216_daily_bin1755.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/823716/ft2_4FGL_J1321.1+2216_daily_bin1755.fits
.....................!
real 17.33
user 16.87
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823716/ft1_filtered_4FGL_J1321.1+2216_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/823716/ft2_4FGL_J1321.1+2216_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/823716/ltcube_694224001_694483201_4FGL_J1321.1+2216_daily_bin1755.fits outfile=/scratch/kocevski/823716/expmap_694224001_694483201_4FGL_J1321.1+2216_daily_bin1755.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/823716/ltcube_694224001_694483201_4FGL_J1321.1+2216_daily_bin1755.fits
.....................!
real 191.71
user 186.40
sys 4.21

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/823716/ft1_filtered_4FGL_J1321.1+2216_daily_bin1755.fits scfile=/scratch/kocevski/823716/ft2_4FGL_J1321.1+2216_daily_bin1755.fits outfile=/scratch/kocevski/823716/cmap_694224001_694483201_4FGL_J1321.1+2216_daily_bin1755.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823716/ft1_filtered_4FGL_J1321.1+2216_daily_bin1755.fits scfile=/scratch/kocevski/823716/ft2_4FGL_J1321.1+2216_daily_bin1755.fits outfile=/scratch/kocevski/823716/cmap_HighResolution_694224001_694483201_4FGL_J1321.1+2216_daily_bin1755.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84773E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .51045E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6569       1.0000          .0000       .10000E+07
     4 'norm      '    .78087       1.0000          .0000       .10000E+07
     5 'norm      '    44.525       1.0000          .0000       .10000E+07
     6 'norm      '    .25925E-02   1.0000          .0000       .10000E+07
     7 'norm      '    14.195       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83215E-03   1.0000          .0000       .10000E+07
     9 'norm      '    29.576       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54563E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .12707E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .36730E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.799       1.0000          .0000       .10000E+07
    14 'Prefactor '    .32200E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.1426       1.0000          .0000       .10000E+07
    16 'Prefactor '    .34009       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44098E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3073       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74776       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=   8425.495     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1115 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.8218        .11725E-06** at limit **
   2  norm           .0000        2.1128        .24888E-06** at limit **
   3  Prefactor     1.6721        1.6570        .73730E-07    .18729E-01
   4  norm          .78931        1.7417        .25321E-06   -.24640E-02
   5  norm          44.442        6.2738       -.16993E-06    .13287E-01
   6  norm          .47740E-08    37.386       -.10101E-05** at limit **
   7  norm          14.183        2.3122        .12871E-07    .74905E-01
   8  Prefactor      .0000        3.4409        .66660E-07** at limit **
   9  norm          29.579        7.4318       -.16660E-07    .26837E-02
  10  Prefactor     .13767E-07    12.893        .37120E-06** at limit **
  11  norm          .11102E-09    2.5482        .27214E-07** at limit **
  12  Prefactor     .13378E-07    11.790        .63690E-06** at limit **
  13  Prefactor     24.429        1.4859        .17602E-07    .30641E-04
  14  Prefactor     .44964E-08    19.770        .23793E-06** at limit **
  15  Prefactor     4.1443        3.0511       -.15947E-06    .15849E-02
  16  Prefactor     .36908        .63872        .70972E-08    .36246E-03
  17  Prefactor      .0000        5.2108        .18898E-07** at limit **
  18  Normalizat    1.3080        .18142        .31112E-05    .71110E-04
  19  Prefactor     .74744        .17089       -.29854E-05    .63470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 1.67213
  norm       = 0.789309
  norm       = 44.4422
  norm       = 4.77396e-09
  norm       = 14.1825
  Prefactor  = 0
  norm       = 29.5789
  Prefactor  = 1.37668e-08
  norm       = 1.11022e-10
  Prefactor  = 1.33782e-08
  Prefactor  = 24.429
  Prefactor  = 4.4964e-09
  Prefactor  = 4.14428
  Prefactor  = 0.369078
  Prefactor  = 0
  Normalizat = 1.30805
  Prefactor  = 0.747441
 **********
 **   18 **HESSE 
 **********

 FCN=   8425.495     FROM HESSE     STATUS=OK           308 CALLS     1423 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    2.8258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.1071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6721        10.830        .81950E-03   -1.5682    
   4  norm          .78931        1.7599        .54371E-03   -1.5690    
   5  norm          44.442        6.2988        .14988E-03   -1.5575    
   6  norm          .47740E-08    37.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.183        11.840        .26559E-03   -1.5633    
   8  Prefactor      .0000        3.4363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          29.579        7.5374        .18391E-03   -1.5599    
  10  Prefactor     .13767E-07    13.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .11102E-09    2.5524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13378E-07    11.939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.429        17.931        .20085E-03   -1.5609    
  14  Prefactor     .44964E-08    19.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1443        3.0390        .49500E-03   -1.5667    
  16  Prefactor     .36908        7.2710        .96784E-02   -1.5696    
  17  Prefactor      .0000        5.2116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3080        .15488        .52783E-01   -.83326    
  19  Prefactor     .74744        .14422        .64915E-01   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18726e-08
Minuit parameter uncertainties:
  1  3.04159e-05
  2  1.01164e-05
  3  8.51113
  4  1.75994
  5  6.29882
  6  0.000843536
  7  11.84
  8  1.86823e-05
  9  7.53738
  10  0.000852796
  11  3.10374e-05
  12  0.000799633
  13  17.9307
  14  0.000598399
  15  3.03898
  16  3.27633
  17  8.2862e-06
  18  0.154931
  19  0.14429
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.958e+01  7.537e+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:  7.474e-01  1.443e-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.308e+00  1.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.05
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 3.73e-08
Energy Flux (Fixed Index): 5.28e-05 +/- 1.34e-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) = 8424.74211819
delta logL = 0.753009450791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8424.7216276
delta logL = 0.773500049603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.282       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9371       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71906       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.

 FCN=   8424.722     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.281        8.1606       -.19707E-06    .15844E-01
   2  alpha         1.9369        .22366        .56074E-05    .55799E-03
   3  Normalizat    1.3544        .15200        .78971E-07   -.11592E-03
   4  Prefactor     .71906        .14411        .20615E-06   -.66805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.2813
  alpha      = 1.93691
  Normalizat = 1.35439
  Prefactor  = 0.719056
 **********
 **   18 **HESSE 
 **********

 FCN=   8424.722     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.281        8.4220        .71527E-05   -1.5596    
   2  alpha         1.9369        .26927        .90618E-02   -.22718    
   3  Normalizat    1.3544        .18040        .23018E-03   -.81957    
   4  Prefactor     .71906        .17033        .29226E-03   -1.0278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69491e-09
Minuit parameter uncertainties:
  1  8.42204
  2  0.269824
  3  0.180484
  4  0.170458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823716': 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) = 8424.72162732
delta logL = 0.77350033047

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  3.128e+01  8.422e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  1.937e+00  2.698e-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:  7.191e-01  1.705e-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.354e+00  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.39
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.94 +/- 0.27
Photon Flux (Free Index): 1.12e-07 +/- 4.02e-08
Energy Flux (Free Index): 6.75e-05 +/- 2.51e-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/823716/cmap_HighResolution_694224001_694483201_4FGL_J1321.1+2216_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='6.75e-05', photon_flux_error='3.73e-08', dlogl='7.74e-01', energy_flux='5.28e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2023-01-04 01:12:35.541945', photon_index_error2='0.27', photon_index2='1.94', ts='50.05', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.51e-05', EG='1.31', time_epoch_completed='1672823555.54', return_code='0', job_id='823716', GAL2='0.72', EG2='1.35', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.02e-08', ts2='51.39', photon_index='2.28' WHERE bin_id='1755' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:12:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 823716: <4FGL_J1321.1+2216_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 01:00:23 2023
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 01:01:05 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 01:01:05 2023
Terminated at Wed Jan  4 01:12:36 2023
Results reported at Wed Jan  4 01:12:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1755 200.296 22.2808 694224001 694483201 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 :                                   551.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            733 sec.

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

