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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1581
RA = 200.296, Dec = 22.2808
tmin = 649123201, tmax = 649382401
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='500450', job_status='RUN', time_executed='2021-09-07 13:30:16.364030', time_epoch_executed='1631046616.36' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500450/ft1_4FGL_J1321.1+2216_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500450/ft2_4FGL_J1321.1+2216_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500450/ft1_4FGL_J1321.1+2216_daily_bin1581.fits outfile=/scratch/kocevski/500450/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1581.fits ra=200.296 dec=22.2808 rad=12.0 tmin=649123201.0 tmax=649382401.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.00
user 2.79
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500450/ft1_filtered_4FGL_J1321.1+2216_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/500450/ft2_4FGL_J1321.1+2216_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/500450/ltcube_649123201_649382401_4FGL_J1321.1+2216_daily_bin1581.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/500450/ft2_4FGL_J1321.1+2216_daily_bin1581.fits
.....................!
real 20.13
user 19.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500450/ft1_filtered_4FGL_J1321.1+2216_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/500450/ft2_4FGL_J1321.1+2216_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/500450/ltcube_649123201_649382401_4FGL_J1321.1+2216_daily_bin1581.fits outfile=/scratch/kocevski/500450/expmap_649123201_649382401_4FGL_J1321.1+2216_daily_bin1581.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/500450/ltcube_649123201_649382401_4FGL_J1321.1+2216_daily_bin1581.fits
.....................!
real 191.62
user 186.29
sys 4.09

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/500450/ft1_filtered_4FGL_J1321.1+2216_daily_bin1581.fits scfile=/scratch/kocevski/500450/ft2_4FGL_J1321.1+2216_daily_bin1581.fits outfile=/scratch/kocevski/500450/cmap_649123201_649382401_4FGL_J1321.1+2216_daily_bin1581.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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500450/ft1_filtered_4FGL_J1321.1+2216_daily_bin1581.fits scfile=/scratch/kocevski/500450/ft2_4FGL_J1321.1+2216_daily_bin1581.fits outfile=/scratch/kocevski/500450/cmap_HighResolution_649123201_649382401_4FGL_J1321.1+2216_daily_bin1581.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.63
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3841       1.0000         .10000E-03   10000.    
     3 'norm      '    9.3054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50219E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9994       1.0000         .10000E-03   10000.    
     7 'norm      '    .94224E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91726E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2007       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4587       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94462       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8651.230     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     1847 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.695         .0000    ** at limit **
   2  Prefactor     4.3838        7.1896         .0000        .12307E-02
   3  norm          9.3064        4.9680         .0000        .23083E-03
   4  Prefactor     .10000E-03    8.5105         .0000    ** at limit **
   5  norm          .10000E-03    2.3760         .0000    ** at limit **
   6  norm          3.0047        3.0742         .0000        .34323E-03
   7  norm          .10000E-03    4.5520         .0000    ** at limit **
   8  norm          .10006E-03    13.148         .0000    ** at limit **
   9  Prefactor     .10000E-03    6.6683         .0000    ** at limit **
  10  norm          11.891        6.8065         .0000        .34344E-02
  11  Prefactor     .10000E-03    13.275         .0000    ** at limit **
  12  norm          1.5797        5.0925         .0000        .27176E-01
  13  Prefactor     .10000E-03    12.062         .0000    ** at limit **
  14  Prefactor     6.1989        11.463         .0000        .18221E-03
  15  Prefactor     .10004E-03    13.611         .0000    ** at limit **
  16  Prefactor     .10000E-03    .99084         .0000    ** at limit **
  17  Prefactor     7.4584        9.1791         .0000       -.90701E-04
  18  Prefactor     .10000E-03    2.9533         .0000    ** at limit **
  19  Normalizat    1.2192        .15081         .0000        .11447E-04
  20  Prefactor     .94469        .14564         .0000        .11382E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.38377
  norm       = 9.30637
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 3.00471
  norm       = 0.000100002
  norm       = 0.000100055
  Prefactor  = 0.0001
  norm       = 11.8913
  Prefactor  = 0.000100001
  norm       = 1.57968
  Prefactor  = 0.000100003
  Prefactor  = 6.19894
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 7.45841
  Prefactor  = 0.0001
  Normalizat = 1.21916
  Prefactor  = 0.94469
 **********
 **   18 **HESSE 
 **********

 FCN=   8651.230     FROM HESSE     STATUS=OK           311 CALLS     2158 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3838        7.1810        .19235E-03   -1.5289    
   3  norm          9.3064        4.9672        .13138E-03   -1.5098    
   4  Prefactor     .10000E-03    12.937        .73652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4652        .27973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0047        2.6633        .13529E-03   -1.5361    
   7  norm          .10000E-03    23.945        .33041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10006E-03    13.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.891        6.7367        .11618E-03   -1.5018    
  11  Prefactor     .10000E-03    14.511        .11892       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5797        4.9923        .16754E-02   -1.5457    
  13  Prefactor     .10000E-03    12.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1989        11.466        .16121E-03   -1.5210    
  15  Prefactor     .10004E-03    13.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .99861        .90395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4584        9.1779        .14685E-03   -1.5162    
  18  Prefactor     .10000E-03    2.9649        .15608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2192        .17797        .23461E-03   -.86013    
  20  Prefactor     .94469        .17098        .25929E-03   -.94597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36994e-08
Minuit parameter uncertainties:
  1  5.31175e-05
  2  7.1824
  3  4.96739
  4  0.000460268
  5  4.0694e-07
  6  2.66338
  7  0.000476095
  8  0.00170902
  9  2.56928e-06
  10  6.73708
  11  0.000180229
  12  4.99365
  13  0.000373508
  14  11.4696
  15  0.00142098
  16  4.50883e-08
  17  9.1796
  18  1.91112e-07
  19  0.178056
  20  0.171073
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.189e+01  6.737e+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.447e-01  1.711e-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.219e+00  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.66
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.20e-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) = 8649.98519537
delta logL = 1.24445130822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8649.98447603
delta logL = 1.2451706447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8717       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0773       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98260       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=   8649.984     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      245 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8717        51.425        .35729E-02    .16991E-02
   2  alpha         3.0773        3.9782        .26362        .73659E-04
   3  Normalizat    1.1592        .70322E-01    .54176E-01   -.24553E-03
   4  Prefactor     .98261        .64532E-01    .46049E-01    .17397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.87169
  alpha      = 3.07729
  Normalizat = 1.15917
  Prefactor  = 0.982614
 **********
 **   18 **HESSE 
 **********

 FCN=   8649.984     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8717        5.9149        .10451E-03   -1.5147    
   2  alpha         3.0773        .57267        .10820E-01    .23302    
   3  Normalizat    1.1592        .17806        .23955E-03   -.87874    
   4  Prefactor     .98261        .17248        .25476E-03   -.93311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10249e-09
Minuit parameter uncertainties:
  1  5.91533
  2  0.578092
  3  0.178154
  4  0.172577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500450': 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) = 8649.98447603
delta logL = 1.24517064789

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.872e+00  5.915e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  3.077e+00  5.781e-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.826e-01  1.726e-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.159e+00  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.35
Ra Dec: 200.296 22.281
Photon Index (Free Index): 3.08 +/- 0.58
Photon Flux (Free Index): 1.04e-07 +/- 4.80e-08
Energy Flux (Free Index): 2.08e-05 +/- 9.07e-06

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/500450/cmap_HighResolution_649123201_649382401_4FGL_J1321.1+2216_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='2.08e-05', photon_flux_error='3.34e-08', dlogl='1.25e+00', energy_flux='2.12e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-07 13:40:51.772113', photon_index_error2='0.58', photon_index2='3.08', ts='6.66', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='9.07e-06', EG='1.22', time_epoch_completed='1631047251.77', return_code='0', job_id='500450', GAL2='0.98', EG2='1.16', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.80e-08', ts2='9.35', photon_index='2.28' WHERE bin_id='1581' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:40:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 500450: <4FGL_J1321.1+2216_daily_bin1581> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1581> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 13:26:15 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:30:07 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:30:07 2021
Terminated at Tue Sep  7 13:40:52 2021
Results reported at Tue Sep  7 13:40:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1581 200.296 22.2808 649123201 649382401 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 :                                   634.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             407.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            877 sec.

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

