/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 0 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin682
RA = 200.296, Dec = 22.2808
tmin = 416102401, tmax = 416361601
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='497191', job_status='RUN', time_executed='2021-09-07 13:17:16.284681', time_epoch_executed='1631045836.28' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497191/ft1_4FGL_J1321.1+2216_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497191/ft2_4FGL_J1321.1+2216_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497191/ft1_4FGL_J1321.1+2216_daily_bin682.fits outfile=/scratch/kocevski/497191/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin682.fits ra=200.296 dec=22.2808 rad=12.0 tmin=416102401.0 tmax=416361601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.79
user 6.14
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497191/ft1_filtered_4FGL_J1321.1+2216_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/497191/ft2_4FGL_J1321.1+2216_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/497191/ltcube_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.fits outfile=/scratch/kocevski/497191/expmap_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.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/497191/ltcube_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.fits
.....................!
real 193.19
user 186.74
sys 4.93

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/497191/ft1_filtered_4FGL_J1321.1+2216_daily_bin682.fits scfile=/scratch/kocevski/497191/ft2_4FGL_J1321.1+2216_daily_bin682.fits outfile=/scratch/kocevski/497191/cmap_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497191/ft1_filtered_4FGL_J1321.1+2216_daily_bin682.fits scfile=/scratch/kocevski/497191/ft2_4FGL_J1321.1+2216_daily_bin682.fits outfile=/scratch/kocevski/497191/cmap_HighResolution_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.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.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497191/ft1_filtered_4FGL_J1321.1+2216_daily_bin682.fits', '/scratch/kocevski/497191/ft2_4FGL_J1321.1+2216_daily_bin682.fits', expMap='/scratch/kocevski/497191/expmap_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.fits', expCube='/scratch/kocevski/497191/ltcube_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497191/Model_4FGL_J1321.1+2216_daily_bin682.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  1.000e-04  1.000e+04 ( 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  0.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/497191/ft1_filtered_4FGL_J1321.1+2216_daily_bin682.fits
Spacecraft file(s): /scratch/kocevski/497191/ft2_4FGL_J1321.1+2216_daily_bin682.fits
Exposure map: /scratch/kocevski/497191/expmap_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.fits
Exposure cube: /scratch/kocevski/497191/ltcube_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497191/Model_4FGL_J1321.1+2216_daily_bin682.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) = 8275.71977136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.805       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4869       1.0000         .10000E-03   10000.    
     3 'norm      '    9.8231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.021       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4293       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6016       1.0000         .10000E-03   10000.    
     8 'norm      '    21.293       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.2807       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.432       1.0000         .10000E-03   10000.    
    12 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.867       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1836       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95640       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=   8275.519     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1750 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.705        54.142       -.23254E-03    .35502E-04
   2  Prefactor     3.4870        5.2522       -.16011E-05   -.37555E-03
   3  norm          9.8245        5.2892        .55096E-05    .21238E-03
   4  Prefactor     20.021        11.957       -.59857E-06    .28496E-04
   5  norm          .10000E-03    .66118       -.13495E-07** at limit **
   6  norm          4.4294        3.7731        .39317E-06   -.17912E-03
   7  norm          1.6009        5.0116       -.17626E-05   -.95651E-03
   8  norm          21.293        17.115       -.51345E-06    .12908E-04
   9  Prefactor     .10000E-03    2.7722       -.64472E-08** at limit **
  10  norm          9.2810        6.0482        .77928E-06   -.29651E-04
  11  Prefactor     11.416        24.523       -.30062E-04   -.34463E-06
  12  norm          .10000E-03    5.8459       -.38907E-06** at limit **
  13  Prefactor     1.9276        22.929        .66030E-05   -.13669E-03
  14  Prefactor     12.520        17.099       -.87890E-05   -.50262E-04
  15  Prefactor     .10000E-03    20.758        .41936E-05** at limit **
  16  Prefactor     .10000E-03    1.5376       -.58484E-06** at limit **
  17  Prefactor     .10000E-03    14.353       -.24482E-05** at limit **
  18  Prefactor     10.868        10.371       -.19227E-05   -.17187E-04
  19  Normalizat    1.1835        .16158        .13393E-05    .35250E-03
  20  Prefactor     .95654        .15368        .61762E-05    .52463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7046
  Prefactor  = 3.48705
  norm       = 9.82446
  Prefactor  = 20.0211
  norm       = 0.0001
  norm       = 4.42945
  norm       = 1.60086
  norm       = 21.2932
  Prefactor  = 0.0001
  norm       = 9.28098
  Prefactor  = 11.4164
  norm       = 0.0001
  Prefactor  = 1.92758
  Prefactor  = 12.5201
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.8677
  Normalizat = 1.18346
  Prefactor  = 0.956544
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.519     FROM HESSE     STATUS=OK           299 CALLS     2049 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.705        54.212        .10075E-03   -1.4915    
   2  Prefactor     3.4870        5.2421        .21654E-03   -1.5334    
   3  norm          9.8245        5.2872        .12785E-03   -1.5081    
   4  Prefactor     20.021        11.962        .89513E-04   -1.4813    
   5  norm          .10000E-03    .66242        .72231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4294        3.7889        .12390E-03   -1.5287    
   7  norm          1.6009        4.9920        .27745E-03   -1.5455    
   8  norm          21.293        17.111        .86800E-04   -1.4785    
   9  Prefactor     .10000E-03    2.7749        .14792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.2810        6.0294        .13155E-03   -1.5099    
  11  Prefactor     11.416        24.541        .11849E-03   -1.5032    
  12  norm          .10000E-03    5.9114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9276        22.688        .29985E-03   -1.5430    
  14  Prefactor     12.520        16.965        .11318E-03   -1.5000    
  15  Prefactor     .10000E-03    20.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8635        .21820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.868        10.378        .12154E-03   -1.5049    
  19  Normalizat    1.1835        .19139        .24202E-03   -.87116    
  20  Prefactor     .95654        .18165        .26121E-03   -.94192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32291e-09
Minuit parameter uncertainties:
  1  54.3833
  2  5.24278
  3  5.28749
  4  11.9638
  5  7.9302e-07
  6  3.78909
  7  4.99329
  8  17.1153
  9  5.12016e-06
  10  6.02975
  11  24.5627
  12  9.53745e-05
  13  13.2321
  14  16.9712
  15  3.35526e-05
  16  8.78899e-05
  17  0.000163687
  18  10.3798
  19  0.191506
  20  0.181769
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  9.281e+00  6.030e+00  1.000e-04  1.000e+04 ( 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  0.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.565e-01  1.818e-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.183e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.08e-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) = 8275.5099611
delta logL = 0.00884027145912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8275.50923091
delta logL = 0.0095704577634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4050       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1949       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95347       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=   8275.509     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      236 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4049        6.1736        .13068E-03    .33303E-03
   2  alpha         2.1949        .61604        .16878E-01    .42587E-04
   3  Normalizat    1.1883        .18511        .24160E-03   -.36986E-04
   4  Prefactor     .95345        .17993        .26157E-03   -.10414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.40489
  alpha      = 2.19493
  Normalizat = 1.18832
  Prefactor  = 0.95345
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.509     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4049        6.1503        .52271E-05   -1.5095    
   2  alpha         2.1949        .61329        .67513E-03   -.12233    
   3  Normalizat    1.1883        .18521        .96638E-05   -.86965    
   4  Prefactor     .95345        .18002        .10463E-04   -.94298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62147e-10
Minuit parameter uncertainties:
  1  6.15071
  2  0.619709
  3  0.185308
  4  0.180134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497191': 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) = 8275.50923087
delta logL = 0.00957049981298

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  9.405e+00  6.151e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.195e+00  6.197e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00  0.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.535e-01  1.801e-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.188e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.19 +/- 0.62
Photon Flux (Free Index): 4.26e-08 +/- 3.71e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.20e-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/497191/cmap_HighResolution_416102401_416361601_4FGL_J1321.1+2216_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.71e-05', photon_flux_error='2.99e-08', dlogl='9.57e-03', energy_flux='1.66e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-09-07 13:27:34.204700', photon_index_error2='0.62', photon_index2='2.19', ts='4.47', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.18', time_epoch_completed='1631046454.2', return_code='0', job_id='497191', GAL2='0.95', EG2='1.19', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.71e-08', ts2='4.48', photon_index='2.28' WHERE bin_id='682' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:27:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 497191: <4FGL_J1321.1+2216_daily_bin682> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin682> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 13:15:53 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:16:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:16:45 2021
Terminated at Tue Sep  7 13:27:34 2021
Results reported at Tue Sep  7 13:27:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin682 200.296 22.2808 416102401 416361601 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 :                                   611.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            701 sec.

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

