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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1752
RA = 200.296, Dec = 22.2808
tmin = 693446401, tmax = 693705601
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='263455', job_status='RUN', time_executed='2022-12-26 00:57:20.268257', time_epoch_executed='1672045040.27' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263455/ft1_4FGL_J1321.1+2216_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263455/ft2_4FGL_J1321.1+2216_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263455/ft1_4FGL_J1321.1+2216_daily_bin1752.fits outfile=/scratch/kocevski/263455/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1752.fits ra=200.296 dec=22.2808 rad=12.0 tmin=693446401.0 tmax=693705601.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.49
user 3.27
sys 0.21

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

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

Number of photons that the gtmktime cut: 543

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263455/ft1_filtered_4FGL_J1321.1+2216_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/263455/ft2_4FGL_J1321.1+2216_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/263455/ltcube_693446401_693705601_4FGL_J1321.1+2216_daily_bin1752.fits outfile=/scratch/kocevski/263455/expmap_693446401_693705601_4FGL_J1321.1+2216_daily_bin1752.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/263455/ltcube_693446401_693705601_4FGL_J1321.1+2216_daily_bin1752.fits
.....................!
real 192.88
user 185.87
sys 5.89

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/263455/ft1_filtered_4FGL_J1321.1+2216_daily_bin1752.fits scfile=/scratch/kocevski/263455/ft2_4FGL_J1321.1+2216_daily_bin1752.fits outfile=/scratch/kocevski/263455/cmap_693446401_693705601_4FGL_J1321.1+2216_daily_bin1752.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3290       1.0000          .0000       .10000E+07
     2 'norm      '    .30365E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .54908E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .96395E-06   1.0000          .0000       .10000E+07
     5 'norm      '    30.531       1.0000          .0000       .10000E+07
     6 'norm      '    .17724E-02   1.0000          .0000       .10000E+07
     7 'norm      '    13.109       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17002E-03   1.0000          .0000       .10000E+07
     9 'norm      '    12.208       1.0000          .0000       .10000E+07
    10 'Prefactor '    .31695E-02   1.0000          .0000       .10000E+07
    11 'norm      '    2.9907       1.0000          .0000       .10000E+07
    12 'Prefactor '    .59597E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17085E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .21266E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7428       1.0000          .0000       .10000E+07
    16 'Prefactor '    .40564E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.715       1.0000          .0000       .10000E+07
    18 'Normalizat'    .77818       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2125       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=   5863.720     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1084 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3369        4.2364       -.84910E-07    .19526E-03
   2  norm           .0000        1.3471        .18362E-06** at limit **
   3  Prefactor     .55211E-06    5.3270        .28186E-06** at limit **
   4  norm           .0000        1.1102       -.89281E-07** at limit **
   5  norm          30.511        6.2343        .16873E-08    .13911E-02
   6  norm          .36360E-06    10.599        .47354E-06** at limit **
   7  norm          13.117        1.0834        .13326E-08   -.30213E-02
   8  Prefactor     .16653E-09    6.1008       -.83039E-07** at limit **
   9  norm          12.250        7.2403       -.12522E-07    .73517E-03
  10  Prefactor     .32807E-07    5.4691       -.81740E-07** at limit **
  11  norm          2.9733        7.8428       -.24287E-06   -.12955E-03
  12  Prefactor     .20539E-08    8.5656       -.52559E-06** at limit **
  13  Prefactor     .15249E-06    5.9350       -.17409E-06** at limit **
  14  Prefactor     .13323E-08    33.221        .93652E-06** at limit **
  15  Prefactor     1.7469        3.5786        .11947E-06    .99997E-04
  16  Prefactor      .0000        5.3095        .27618E-06** at limit **
  17  Prefactor     13.694        1.2002       -.10776E-07    .12457E-01
  18  Normalizat    .77810        .21312       -.42482E-06    .25129E-06
  19  Prefactor     1.2126        .21466        .10717E-05    .10672E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.33687
  norm       = 0
  Prefactor  = 5.52114e-07
  norm       = 0
  norm       = 30.5107
  norm       = 3.63598e-07
  norm       = 13.1167
  Prefactor  = 1.66533e-10
  norm       = 12.2497
  Prefactor  = 3.28071e-08
  norm       = 2.97327
  Prefactor  = 2.05391e-09
  Prefactor  = 1.52489e-07
  Prefactor  = 1.33227e-09
  Prefactor  = 1.74689
  Prefactor  = 0
  Prefactor  = 13.6945
  Normalizat = 0.778102
  Prefactor  = 1.21261
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.720     FROM HESSE     STATUS=OK           302 CALLS     1386 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3369        4.2258        .48391E-03   -1.5666    
   2  norm           .0000        1.3458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55211E-06    14.595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.1049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          30.511        6.2327        .18101E-03   -1.5597    
   6  norm          .36360E-06    15.717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.117        12.443        .27640E-03   -1.5636    
   8  Prefactor     .16653E-09    6.1109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.250        7.3098        .28645E-03   -1.5638    
  10  Prefactor     .32807E-07    11.940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9733        7.8909        .58675E-03   -1.5673    
  12  Prefactor     .20539E-08    8.6228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15249E-06    11.463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .13323E-08    33.233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7469        3.6024        .79427E-03   -1.5682    
  16  Prefactor      .0000        5.3154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.694        12.327        .27021E-03   -1.5634    
  18  Normalizat    .77810        .18028        .43325E-01   -1.0089    
  19  Prefactor     1.2126        .18036        .51659E-01   -.85944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30688e-07
Minuit parameter uncertainties:
  1  4.22581
  2  2.39916e-06
  3  0.00567733
  4  1.20427e-06
  5  6.23271
  6  0.00478108
  7  12.4428
  8  5.8577e-05
  9  7.30978
  10  0.00125212
  11  7.89096
  12  0.000267006
  13  0.00264441
  14  0.000420335
  15  3.60241
  16  2.20061e-05
  17  12.3269
  18  0.180415
  19  0.180452
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.225e+01  7.310e+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.213e+00  1.805e-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:  7.781e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.48
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.07e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.30e-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) = 5863.01435238
delta logL = 0.706140840953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5862.85476183
delta logL = 0.865731393118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5291       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3598       1.0000          .0000       5.0000    
     3 'Normalizat'    .82794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1875       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=   5862.855     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5291        4.9856        .36525E-03   -.33026E-01
   2  alpha         1.3597        .37366        .28950       -.50672E-04
   3  Normalizat    .82795        .17358        .43974E-01    .17085E-04
   4  Prefactor     1.1874        .17881        .52135E-01    .40406E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.5291
  alpha      = 1.35974
  Normalizat = 0.82795
  Prefactor  = 1.18741
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.855     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5291        7.0428        .12686E-04   -1.5653    
   2  alpha         1.3597        .56994        .11791E-01   -.47361    
   3  Normalizat    .82795        .20682        .26383E-03   -.99040    
   4  Prefactor     1.1874        .21284        .23049E-03   -.86720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10262e-09
Minuit parameter uncertainties:
  1  7.04282
  2  0.576368
  3  0.207017
  4  0.212989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263455': 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) = 5862.85476171
delta logL = 0.865731515573

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.529e+00  7.043e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  1.360e+00  5.764e-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.187e+00  2.130e-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.280e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.20
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.36 +/- 0.58
Photon Flux (Free Index): 2.04e-08 +/- 1.94e-08
Energy Flux (Free Index): 4.85e-05 +/- 5.16e-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/263455/cmap_HighResolution_693446401_693705601_4FGL_J1321.1+2216_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.07e-08', energy_flux2='4.85e-05', photon_flux_error='3.62e-08', dlogl='8.66e-01', energy_flux='2.19e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2022-12-26 01:05:14.020371', photon_index_error2='0.58', photon_index2='1.36', ts='11.48', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='5.16e-05', EG='0.78', time_epoch_completed='1672045514.02', return_code='0', job_id='263455', GAL2='1.19', EG2='0.83', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='1.94e-08', ts2='13.20', photon_index='2.28' WHERE bin_id='1752' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:05:14 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 263455: <4FGL_J1321.1+2216_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:55:20 2022
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:56:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:56:02 2022
Terminated at Mon Dec 26 01:05:14 2022
Results reported at Mon Dec 26 01:05:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1752 200.296 22.2808 693446401 693705601 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 :                                   474.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   552 sec.
    Turnaround time :                            594 sec.

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

