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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1051
RA = 200.296, Dec = 22.2808
tmin = 511747201, tmax = 512006401
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='498653', job_status='RUN', time_executed='2021-09-07 13:21:27.623390', time_epoch_executed='1631046087.62' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498653/ft1_4FGL_J1321.1+2216_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498653/ft2_4FGL_J1321.1+2216_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498653/ft1_4FGL_J1321.1+2216_daily_bin1051.fits outfile=/scratch/kocevski/498653/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1051.fits ra=200.296 dec=22.2808 rad=12.0 tmin=511747201.0 tmax=512006401.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.57
user 3.27
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498653/ft1_filtered_4FGL_J1321.1+2216_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/498653/ft2_4FGL_J1321.1+2216_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/498653/ltcube_511747201_512006401_4FGL_J1321.1+2216_daily_bin1051.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/498653/ft2_4FGL_J1321.1+2216_daily_bin1051.fits
.....................!
real 15.46
user 15.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498653/ft1_filtered_4FGL_J1321.1+2216_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/498653/ft2_4FGL_J1321.1+2216_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/498653/ltcube_511747201_512006401_4FGL_J1321.1+2216_daily_bin1051.fits outfile=/scratch/kocevski/498653/expmap_511747201_512006401_4FGL_J1321.1+2216_daily_bin1051.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/498653/ltcube_511747201_512006401_4FGL_J1321.1+2216_daily_bin1051.fits
.....................!
real 194.81
user 188.68
sys 5.55

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/498653/ft1_filtered_4FGL_J1321.1+2216_daily_bin1051.fits scfile=/scratch/kocevski/498653/ft2_4FGL_J1321.1+2216_daily_bin1051.fits outfile=/scratch/kocevski/498653/cmap_511747201_512006401_4FGL_J1321.1+2216_daily_bin1051.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498653/ft1_filtered_4FGL_J1321.1+2216_daily_bin1051.fits scfile=/scratch/kocevski/498653/ft2_4FGL_J1321.1+2216_daily_bin1051.fits outfile=/scratch/kocevski/498653/cmap_HighResolution_511747201_512006401_4FGL_J1321.1+2216_daily_bin1051.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.515       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0316       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2869       1.0000         .10000E-03   10000.    
     6 'norm      '    .16931E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6747       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0022       1.0000         .10000E-03   10000.    
    10 'norm      '    8.2155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    30.596       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.447       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.312       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7391       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1850       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0002       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=   6004.701     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2478 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.500         .0000    ** at limit **
   2  Prefactor     .10000E-03    3.2083         .0000    ** at limit **
   3  norm          13.515        6.4977         .0000       -.20128E-02
   4  Prefactor     1.0308        22.393         .0000        .15739E-01
   5  norm          2.2873        3.0209         .0000        .36717E-03
   6  norm          .10000E-03    3.7222         .0000    ** at limit **
   7  norm          3.6755        7.5354         .0000        .47086E-03
   8  norm          .10000E-03    8.4125         .0000    ** at limit **
   9  Prefactor     1.0042        21.767         .0000        .19102E-01
  10  norm          8.2160        5.9678         .0000        .15428E-02
  11  Prefactor     .10000E-03    15.450         .0000    ** at limit **
  12  norm          30.597        10.976         .0000        .57506E-03
  13  Prefactor     .10000E-03    46.400         .0000    ** at limit **
  14  Prefactor     16.444        16.562         .0000       -.72030E-04
  15  Prefactor     34.311        41.150         .0000        .40547E-03
  16  Prefactor     .10000E-03    2.2803         .0000    ** at limit **
  17  Prefactor     1.7397        30.272         .0000        .17892E-03
  18  Prefactor     .10000E-03    2.0411         .0000    ** at limit **
  19  Normalizat    1.1848        .18457         .0000        .54377E-05
  20  Prefactor     1.0003        .18354         .0000        .88052E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5151
  Prefactor  = 1.03082
  norm       = 2.28727
  norm       = 0.0001
  norm       = 3.67548
  norm       = 0.0001
  Prefactor  = 1.00422
  norm       = 8.21603
  Prefactor  = 0.0001
  norm       = 30.5972
  Prefactor  = 0.0001
  Prefactor  = 16.4443
  Prefactor  = 34.3113
  Prefactor  = 0.0001
  Prefactor  = 1.73966
  Prefactor  = 0.0001
  Normalizat = 1.18479
  Prefactor  = 1.00031
 **********
 **   18 **HESSE 
 **********

 FCN=   6004.701     FROM HESSE     STATUS=OK           297 CALLS     2775 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2186        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.515        6.4759        .10896E-03   -1.4973    
   4  Prefactor     1.0308        6.3073        .10227       -1.5505    
   5  norm          2.2873        3.0059        .14969E-03   -1.5405    
   6  norm          .10000E-03    5.7761        .24630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6755        6.5171        .21070E-03   -1.5325    
   8  norm          .10000E-03    8.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0042        22.282        .27382E-02   -1.5508    
  10  norm          8.2160        5.9656        .13987E-03   -1.5135    
  11  Prefactor     .10000E-03    15.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          30.597        10.987        .72435E-04   -1.4601    
  13  Prefactor     .10000E-03    47.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.444        16.572        .98759E-04   -1.4897    
  15  Prefactor     34.311        41.159        .68412E-04   -1.4536    
  16  Prefactor     .10000E-03    2.3257        .11422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7397        30.457        .31817E-03   -1.5444    
  18  Prefactor     .10000E-03    2.0421        .10812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1848        .21685        .24302E-03   -.87074    
  20  Prefactor     1.0003        .21453        .26293E-03   -.92719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55063e-09
Minuit parameter uncertainties:
  1  0.000123795
  2  1.87094e-06
  3  6.47622
  4  5.10023
  5  3.0061
  6  8.94119e-06
  7  6.51835
  8  1.46525e-05
  9  9.46426
  10  5.96604
  11  4.97228e-05
  12  10.9879
  13  2.57587e-05
  14  16.5767
  15  41.1933
  16  7.04199e-07
  17  14.5664
  18  1.10263e-06
  19  0.217018
  20  0.214718
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  8.216e+00  5.966e+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.000e+00  2.147e-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.185e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.06e-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) = 6004.41100793
delta logL = 0.289672213828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6004.40067691
delta logL = 0.300003232669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5564       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7434       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99037       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=   6004.401     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5513        5.6216        .36472E-02    .51774E-04
   2  alpha         1.7429        .49776        .42150       -.37949E-04
   3  Normalizat    1.2027        .17994        .54632E-01   -.48529E-04
   4  Prefactor     .99036        .18085        .46147E-01   -.23561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.55134
  alpha      = 1.74287
  Normalizat = 1.20266
  Prefactor  = 0.990361
 **********
 **   18 **HESSE 
 **********

 FCN=   6004.401     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5513        6.0699        .14589E-03   -1.5158    
   2  alpha         1.7429        .64158        .15502E-01   -.30768    
   3  Normalizat    1.2027        .21114        .24157E-03   -.86521    
   4  Prefactor     .99036        .21229        .26411E-03   -.93052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53858e-11
Minuit parameter uncertainties:
  1  6.07041
  2  0.649601
  3  0.211294
  4  0.21247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498653': 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) = 6004.40067614
delta logL = 0.30000399921

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.551e+00  6.070e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.743e+00  6.496e-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.904e-01  2.125e-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.203e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.74 +/- 0.65
Photon Flux (Free Index): 2.34e-08 +/- 2.44e-08
Energy Flux (Free Index): 2.11e-05 +/- 2.14e-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/498653/cmap_HighResolution_511747201_512006401_4FGL_J1321.1+2216_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='2.11e-05', photon_flux_error='2.95e-08', dlogl='3.00e-01', energy_flux='1.47e-05', photon_flux2='2.34e-08', job_status='DONE', time_completed='2021-09-07 13:31:09.059488', photon_index_error2='0.65', photon_index2='1.74', ts='4.43', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.18', time_epoch_completed='1631046669.06', return_code='0', job_id='498653', GAL2='0.99', EG2='1.20', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.44e-08', ts2='5.06', photon_index='2.28' WHERE bin_id='1051' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:31:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 498653: <4FGL_J1321.1+2216_daily_bin1051> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1051> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 13:21:09 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:21:15 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:21:15 2021
Terminated at Tue Sep  7 13:31:09 2021
Results reported at Tue Sep  7 13:31:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1051 200.296 22.2808 511747201 512006401 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 :                                   580.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            600 sec.

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

