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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin589
RA = 200.296, Dec = 22.2808
tmin = 391996801, tmax = 392256001
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='497083', job_status='RUN', time_executed='2021-09-07 13:16:14.707469', time_epoch_executed='1631045774.71' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497083/ft1_4FGL_J1321.1+2216_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497083/ft2_4FGL_J1321.1+2216_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497083/ft1_4FGL_J1321.1+2216_daily_bin589.fits outfile=/scratch/kocevski/497083/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin589.fits ra=200.296 dec=22.2808 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.74
user 5.20
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497083/ft1_filtered_4FGL_J1321.1+2216_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/497083/ft2_4FGL_J1321.1+2216_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/497083/ltcube_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.fits outfile=/scratch/kocevski/497083/expmap_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.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/497083/ltcube_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.fits
.....................!
real 194.26
user 186.24
sys 6.27

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/497083/ft1_filtered_4FGL_J1321.1+2216_daily_bin589.fits scfile=/scratch/kocevski/497083/ft2_4FGL_J1321.1+2216_daily_bin589.fits outfile=/scratch/kocevski/497083/cmap_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.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.55
user 0.38
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497083/ft1_filtered_4FGL_J1321.1+2216_daily_bin589.fits', '/scratch/kocevski/497083/ft2_4FGL_J1321.1+2216_daily_bin589.fits', expMap='/scratch/kocevski/497083/expmap_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.fits', expCube='/scratch/kocevski/497083/ltcube_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497083/Model_4FGL_J1321.1+2216_daily_bin589.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/497083/ft1_filtered_4FGL_J1321.1+2216_daily_bin589.fits
Spacecraft file(s): /scratch/kocevski/497083/ft2_4FGL_J1321.1+2216_daily_bin589.fits
Exposure map: /scratch/kocevski/497083/expmap_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.fits
Exposure cube: /scratch/kocevski/497083/ltcube_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497083/Model_4FGL_J1321.1+2216_daily_bin589.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5791.12439765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2471       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4251       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0071       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3683       1.0000         .10000E-03   10000.    
     6 'norm      '    .70132E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    13.525       1.0000         .10000E-03   10000.    
     8 'norm      '    21.530       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    29.354       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6341       1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17608E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40129       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99677       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=   5791.055     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     1867 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.382        .89475E-06** at limit **
   2  Prefactor     2.2472        3.5272       -.12509E-06   -.18565E-03
   3  norm          8.4314        5.4439       -.84924E-07   -.74975E-04
   4  Prefactor     6.0050        12.093        .45677E-06   -.88935E-04
   5  norm          1.3682        2.8907       -.56670E-06   -.71953E-03
   6  norm          .20803E-03    2.7644       -.24298E-07** at limit **
   7  norm          13.628        8.8354        .24663E-07    .12377E-04
   8  norm          21.530        16.557        .41900E-06    .39129E-05
   9  Prefactor     .10000E-03    6.7010        .73955E-07** at limit **
  10  norm          29.352        9.4657        .33692E-05   -.35401E-05
  11  Prefactor     7.6355        46.564       -.15020E-04   -.77069E-05
  12  norm          .10000E-03    3.9157       -.33404E-06** at limit **
  13  Prefactor     .10005E-03    9.5289        .11035E-05** at limit **
  14  Prefactor     .10000E-03    12.599        .15223E-06** at limit **
  15  Prefactor     .10000E-03    47.860       -.71552E-05** at limit **
  16  Prefactor     .40699        2.8429       -.90331E-06   -.49788E-03
  17  Prefactor     .10000E-03    8.3006        .19040E-06** at limit **
  18  Prefactor     .10000E-03    9.7613        .22677E-07** at limit **
  19  Normalizat    1.1271        .18597       -.13063E-05    .88812E-04
  20  Prefactor     .99652        .18314        .11397E-05   -.64753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.24719
  norm       = 8.43145
  Prefactor  = 6.00496
  norm       = 1.36818
  norm       = 0.000208027
  norm       = 13.6283
  norm       = 21.5301
  Prefactor  = 0.0001
  norm       = 29.3515
  Prefactor  = 7.63551
  norm       = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.406989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12706
  Prefactor  = 0.996519
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.055     FROM HESSE     STATUS=OK           307 CALLS     2174 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2472        3.5088        .17438E-03   -1.5408    
   3  norm          8.4314        5.4564        .13724E-03   -1.5127    
   4  Prefactor     6.0050        12.077        .16383E-03   -1.5218    
   5  norm          1.3682        2.8767        .18325E-03   -1.5474    
   6  norm          .20803E-03    15.672        .33473E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.628        11.447        .10891E-03   -1.4969    
   8  norm          21.530        16.556        .86322E-04   -1.4780    
   9  Prefactor     .10000E-03    6.7201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.352        9.3599        .73949E-04   -1.4624    
  11  Prefactor     7.6355        46.783        .14514E-03   -1.5155    
  12  norm          .10000E-03    3.9413        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    49.145        .45041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .40699        6.2506        .24763E-02   -1.5580    
  17  Prefactor     .10000E-03    8.3334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1271        .21985        .23971E-03   -.88888    
  20  Prefactor     .99652        .21801        .25442E-03   -.92846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94805e-09
Minuit parameter uncertainties:
  1  4.75795e-06
  2  3.50916
  3  5.4567
  4  12.0822
  5  2.87699
  6  0.0823141
  7  11.4488
  8  16.559
  9  1.04309e-06
  10  9.36037
  11  37.8439
  12  6.16448e-05
  13  0.00317398
  14  1.67788e-05
  15  5.1167e-05
  16  3.18995
  17  3.33039e-06
  18  2.42346e-06
  19  0.220033
  20  0.218203
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.935e+01  9.360e+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.965e-01  2.182e-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.127e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.80
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 4.64e-08
Energy Flux (Fixed Index): 5.24e-05 +/- 1.67e-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) = 5790.6788296
delta logL = 0.376166833546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5790.64670617
delta logL = 0.408290265475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.172       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9718       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97111       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=   5790.647     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.173        10.482        .71765E-04   -.55604E-04
   2  alpha         1.9718        .33798        .91941E-02   -.92232E-05
   3  Normalizat    1.1674        .21803        .23632E-03   -.16566E-03
   4  Prefactor     .97110        .21554        .25736E-03   -.19786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.1735
  alpha      = 1.97185
  Normalizat = 1.16744
  Prefactor  = 0.971096
 **********
 **   18 **HESSE 
 **********

 FCN=   5790.647     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.173        10.494        .28706E-05   -1.4591    
   2  alpha         1.9718        .33822        .36776E-03   -.21286    
   3  Normalizat    1.1674        .21826        .47264E-04   -.87615    
   4  Prefactor     .97110        .21574        .10294E-04   -.93699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98055e-11
Minuit parameter uncertainties:
  1  10.4944
  2  0.339308
  3  0.21843
  4  0.215933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497083': 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) = 5790.646706
delta logL = 0.408290432684

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  3.117e+01  1.049e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.972e+00  3.393e-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.711e-01  2.159e-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.167e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.58
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.97 +/- 0.34
Photon Flux (Free Index): 1.15e-07 +/- 5.24e-08
Energy Flux (Free Index): 6.51e-05 +/- 2.89e-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/497083/cmap_HighResolution_391996801_392256001_4FGL_J1321.1+2216_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='6.51e-05', photon_flux_error='4.64e-08', dlogl='4.08e-01', energy_flux='5.24e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-07 13:25:18.342811', photon_index_error2='0.34', photon_index2='1.97', ts='26.80', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.89e-05', EG='1.13', time_epoch_completed='1631046318.34', return_code='0', job_id='497083', GAL2='0.97', EG2='1.17', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.24e-08', ts2='27.58', photon_index='2.28' WHERE bin_id='589' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:25:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 497083: <4FGL_J1321.1+2216_daily_bin589> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin589> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 13:15:40 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:15:50 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:15:50 2021
Terminated at Tue Sep  7 13:25:19 2021
Results reported at Tue Sep  7 13:25:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin589 200.296 22.2808 391996801 392256001 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 :                                   538.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            579 sec.

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

