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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1311
RA = 200.296, Dec = 22.2808
tmin = 579139201, tmax = 579398401
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='500077', job_status='RUN', time_executed='2021-09-07 13:30:21.207839', time_epoch_executed='1631046621.21' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500077/ft1_4FGL_J1321.1+2216_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500077/ft2_4FGL_J1321.1+2216_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500077/ft1_4FGL_J1321.1+2216_daily_bin1311.fits outfile=/scratch/kocevski/500077/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1311.fits ra=200.296 dec=22.2808 rad=12.0 tmin=579139201.0 tmax=579398401.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.53
user 3.26
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500077/ft2_4FGL_J1321.1+2216_daily_bin1311.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/500077/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1311.fits evtable="EVENTS" outfile="/scratch/kocevski/500077/ft1_filtered_4FGL_J1321.1+2216_daily_bin1311.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.64
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500077/ft1_filtered_4FGL_J1321.1+2216_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/500077/ft2_4FGL_J1321.1+2216_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/500077/ltcube_579139201_579398401_4FGL_J1321.1+2216_daily_bin1311.fits outfile=/scratch/kocevski/500077/expmap_579139201_579398401_4FGL_J1321.1+2216_daily_bin1311.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/500077/ltcube_579139201_579398401_4FGL_J1321.1+2216_daily_bin1311.fits
.....................!
real 192.05
user 187.59
sys 4.03

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/500077/ft1_filtered_4FGL_J1321.1+2216_daily_bin1311.fits scfile=/scratch/kocevski/500077/ft2_4FGL_J1321.1+2216_daily_bin1311.fits outfile=/scratch/kocevski/500077/cmap_579139201_579398401_4FGL_J1321.1+2216_daily_bin1311.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.64
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500077/ft1_filtered_4FGL_J1321.1+2216_daily_bin1311.fits scfile=/scratch/kocevski/500077/ft2_4FGL_J1321.1+2216_daily_bin1311.fits outfile=/scratch/kocevski/500077/cmap_HighResolution_579139201_579398401_4FGL_J1321.1+2216_daily_bin1311.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.60
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.487       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53384E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2809       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8826       1.0000         .10000E-03   10000.    
     7 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.093       1.0000         .10000E-03   10000.    
    12 'norm      '    .14694E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82256E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    79.391       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2135       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77211       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2473       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=   5626.459     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     2728 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.517        92.355        .41132E-04    .20398E-04
   2  Prefactor     .10000E-03    6.7592        .36285E-03** at limit **
   3  norm          2.0989        5.8764        .13112E-02   -.16910E-03
   4  Prefactor     .10003E-03    38.561        .37235E-02** at limit **
   5  norm          2.2810        2.4917        .12052E-03    .88861E-04
   6  norm          3.8865        4.3856        .15143E-03    .15834E-03
   7  norm          .10000E-03    3.7764        .14179E-02** at limit **
   8  norm          .10000E-03    14.102        .18142E-02** at limit **
   9  Prefactor     .10000E-03    7.9835        .18142E-02** at limit **
  10  norm          5.6699        4.2848        .12854E-03   -.35611E-03
  11  Prefactor     23.100        27.958        .83353E-04    .13639E-05
  12  norm          .10789E-03    4.5291        .50633E-01** at limit **
  13  Prefactor     .10000E-03    17.001        .18142E-02** at limit **
  14  Prefactor     .10001E-03    21.316        .89052E-01** at limit **
  15  Prefactor     79.396        63.626        .45073E-04   -.55793E-04
  16  Prefactor     3.2134        2.9022        .11780E-03    .56651E-04
  17  Prefactor     4.0354        17.733        .20078E-03    .70779E-05
  18  Prefactor     .10000E-03    5.0731        .16456E-02** at limit **
  19  Normalizat    .77161        .20961        .26181E-03    .14634E-04
  20  Prefactor     1.2477        .21272        .22165E-03    .21491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.5173
  Prefactor  = 0.0001
  norm       = 2.09887
  Prefactor  = 0.000100025
  norm       = 2.28104
  norm       = 3.88652
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.66993
  Prefactor  = 23.0999
  norm       = 0.000107889
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 79.3963
  Prefactor  = 3.21339
  Prefactor  = 4.03543
  Prefactor  = 0.000100001
  Normalizat = 0.771606
  Prefactor  = 1.24767
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.459     FROM HESSE     STATUS=OK           293 CALLS     3021 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.517        92.168        .82264E-05   -1.3750    
   2  Prefactor     .10000E-03    6.7595        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0989        5.8534        .52449E-04   -1.5418    
   4  Prefactor     .10003E-03    38.884        .74470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2810        2.4917        .48207E-05   -1.5406    
   6  norm          3.8865        4.3793        .60571E-05   -1.5314    
   7  norm          .10000E-03    3.7765        .28358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6699        4.2847        .25707E-04   -1.5232    
  11  Prefactor     23.100        27.963        .33341E-05   -1.4746    
  12  norm          .10789E-03    4.5055        .50865E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    20.033        .92987E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     79.396        63.626        .90145E-05   -1.3924    
  16  Prefactor     3.2134        2.9022        .47119E-05   -1.5349    
  17  Prefactor     4.0354        17.732        .80311E-05   -1.5306    
  18  Prefactor     .10000E-03    5.0740        .32911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77161        .20980        .10473E-04   -1.0113    
  20  Prefactor     1.2477        .21296        .88660E-05   -.84877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01147e-09
Minuit parameter uncertainties:
  1  92.3069
  2  1.69137e-05
  3  5.85503
  4  0.00198947
  5  2.49182
  6  4.37967
  7  4.64632e-05
  8  3.57473e-05
  9  7.1995e-05
  10  4.28491
  11  27.9784
  12  0.0119249
  13  8.38584e-05
  14  0.000744741
  15  63.6808
  16  2.90228
  17  16.9266
  18  0.000110933
  19  0.210023
  20  0.213104
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.670e+00  4.285e+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:  1.248e+00  2.131e-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.716e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.67
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 7.64e-06

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) = 5625.675113
delta logL = 0.784033397223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5625.67246974
delta logL = 0.78667665085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8682       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5577       1.0000          .0000       5.0000    
     3 'Normalizat'    .78642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2384       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=   5625.672     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8682        4.5277        .41445E-02   -.12424E-03
   2  alpha         1.5577        .43885        .35225       -.22875E-04
   3  Normalizat    .78641        .16829        .43433E-01    .17372E-04
   4  Prefactor     1.2384        .17751        .50291E-01    .17631E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.86816
  alpha      = 1.55771
  Normalizat = 0.78641
  Prefactor  = 1.23839
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.672     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8682        4.9117        .13560E-03   -1.5223    
   2  alpha         1.5577        .53438        .13838E-01   -.38647    
   3  Normalizat    .78641        .19820        .25950E-03   -1.0057    
   4  Prefactor     1.2384        .20915        .22233E-03   -.85158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40974e-10
Minuit parameter uncertainties:
  1  4.91205
  2  0.539237
  3  0.198384
  4  0.209287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500077': 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) = 5625.67246974
delta logL = 0.786676652417

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.868e+00  4.912e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.558e+00  5.392e-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:  1.238e+00  2.093e-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.864e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.23
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.56 +/- 0.54
Photon Flux (Free Index): 1.66e-08 +/- 1.55e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.64e-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/500077/cmap_HighResolution_579139201_579398401_4FGL_J1321.1+2216_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='2.33e-05', photon_flux_error='2.12e-08', dlogl='7.87e-01', energy_flux='1.01e-05', photon_flux2='1.66e-08', job_status='DONE', time_completed='2021-09-07 13:39:59.833261', photon_index_error2='0.54', photon_index2='1.56', ts='6.67', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='2.64e-05', EG='0.77', time_epoch_completed='1631047199.83', return_code='0', job_id='500077', GAL2='1.24', EG2='0.79', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='1.55e-08', ts2='8.23', photon_index='2.28' WHERE bin_id='1311' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:39:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 500077: <4FGL_J1321.1+2216_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1311 200.296 22.2808 579139201 579398401 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 :                                   575.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            853 sec.

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

