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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1310
RA = 200.296, Dec = 22.2808
tmin = 578880001, tmax = 579139201
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='500076', job_status='RUN', time_executed='2021-09-07 13:28:31.824032', time_epoch_executed='1631046511.82' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500076

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500076/ft1_4FGL_J1321.1+2216_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500076/ft2_4FGL_J1321.1+2216_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500076/ft1_4FGL_J1321.1+2216_daily_bin1310.fits outfile=/scratch/kocevski/500076/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1310.fits ra=200.296 dec=22.2808 rad=12.0 tmin=578880001.0 tmax=579139201.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 2.90
user 2.68
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500076/ft1_filtered_4FGL_J1321.1+2216_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/500076/ft2_4FGL_J1321.1+2216_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/500076/ltcube_578880001_579139201_4FGL_J1321.1+2216_daily_bin1310.fits outfile=/scratch/kocevski/500076/expmap_578880001_579139201_4FGL_J1321.1+2216_daily_bin1310.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/500076/ltcube_578880001_579139201_4FGL_J1321.1+2216_daily_bin1310.fits
.....................!
real 160.17
user 155.22
sys 4.66

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/500076/ft1_filtered_4FGL_J1321.1+2216_daily_bin1310.fits scfile=/scratch/kocevski/500076/ft2_4FGL_J1321.1+2216_daily_bin1310.fits outfile=/scratch/kocevski/500076/cmap_578880001_579139201_4FGL_J1321.1+2216_daily_bin1310.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500076/ft1_filtered_4FGL_J1321.1+2216_daily_bin1310.fits scfile=/scratch/kocevski/500076/ft2_4FGL_J1321.1+2216_daily_bin1310.fits outfile=/scratch/kocevski/500076/cmap_HighResolution_578880001_579139201_4FGL_J1321.1+2216_daily_bin1310.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.52
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9142       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6180       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.8085       1.0000         .10000E-03   10000.    
     7 'norm      '    .11054E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.045       1.0000         .10000E-03   10000.    
    10 'norm      '    15.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.095       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.990       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98590       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98467       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=   5855.748     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1767 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6764        388.58       -.13186E-05   -.10304E-05
   2  Prefactor     .10000E-03    2.9734        .73394E-08** at limit **
   3  norm          3.6194        2.1697        .29356E-06   -.18505E-02
   4  Prefactor     .10000E-03    30.727       -.56059E-06** at limit **
   5  norm          .10000E-03    1.1621       -.22588E-08** at limit **
   6  norm          8.8094        4.2478        .45509E-07    .93401E-06
   7  norm          .10000E-03    8.7265       -.10268E-06** at limit **
   8  norm          10.602        10.523        .40404E-07    .73608E-05
   9  Prefactor     13.046        14.971       -.14845E-05   -.38383E-04
  10  norm          15.293        8.0312        .22759E-06    .55364E-05
  11  Prefactor     .10000E-03    11.835       -.30899E-07** at limit **
  12  norm          10.095        8.0364       -.16675E-06   -.23933E-04
  13  Prefactor     46.987        21.198        .33566E-05    .14469E-03
  14  Prefactor     .10000E-03    7.6430       -.57734E-07** at limit **
  15  Prefactor     .10000E-03    22.231        .18286E-06** at limit **
  16  Prefactor     3.4442        2.8993       -.10267E-06   -.24698E-04
  17  Prefactor     .10000E-03    25.808       -.10790E-05** at limit **
  18  Prefactor     .10000E-03    4.7473        .35481E-07** at limit **
  19  Normalizat    .98578        .17991       -.94634E-06    .54209E-04
  20  Prefactor     .98482        .17195        .36173E-06   -.20803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67643
  Prefactor  = 0.0001
  norm       = 3.6194
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.80938
  norm       = 0.0001
  norm       = 10.6019
  Prefactor  = 13.0455
  norm       = 15.2929
  Prefactor  = 0.0001
  norm       = 10.0953
  Prefactor  = 46.9865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985777
  Prefactor  = 0.984816
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.748     FROM HESSE     STATUS=OK           291 CALLS     2058 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6764        411.80        .20392E-03   -1.5324    
   2  Prefactor     .10000E-03    2.9844        .12885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6194        5.0326        .94141E-03   -1.5327    
   4  Prefactor     .10000E-03    31.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1684        .80548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.8094        4.2153        .10097E-03   -1.5114    
   7  norm          .10000E-03    8.8302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.602        10.525        .12305E-03   -1.5057    
   9  Prefactor     13.046        15.008        .11090E-03   -1.4985    
  10  norm          15.293        8.0384        .10242E-03   -1.4926    
  11  Prefactor     .10000E-03    11.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.095        8.0365        .12611E-03   -1.5072    
  13  Prefactor     46.987        21.261        .58493E-04   -1.4336    
  14  Prefactor     .10000E-03    7.6576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4442        2.9043        .11593E-03   -1.5337    
  17  Prefactor     .10000E-03    26.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7704        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98578        .20968        .24557E-03   -.93508    
  20  Prefactor     .98482        .20050        .24611E-03   -.93237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40809e-09
Minuit parameter uncertainties:
  1  78.3774
  2  1.33804e-06
  3  5.03314
  4  4.72159e-05
  5  2.6114e-07
  6  4.21544
  7  8.01004e-07
  8  10.5273
  9  15.0122
  10  8.03896
  11  1.45292e-06
  12  8.03734
  13  21.2644
  14  2.95333e-05
  15  7.15892e-06
  16  2.9044
  17  9.79921e-06
  18  2.82837e-06
  19  0.20986
  20  0.200651
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.529e+01  8.039e+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.848e-01  2.007e-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:  9.858e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.32
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.43e-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) = 5855.57086947
delta logL = 0.177241914589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5855.542543
delta logL = 0.20556839155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.365       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7815       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96359       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=   5855.543     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      251 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.359        12.939        .11392E-03    .17764E-04
   2  alpha         1.7810        .90611        .13480E-01   -.14432E-03
   3  Normalizat    1.0284        .20724        .24133E-03   -.11306E-04
   4  Prefactor     .96344        .19941        .24870E-03   -.11666E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3595
  alpha      = 1.78099
  Normalizat = 1.02842
  Prefactor  = 0.963438
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.543     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.359        13.622        .45567E-05   -1.5005    
   2  alpha         1.7810        .95127        .26961E-02   -.29172    
   3  Normalizat    1.0284        .20842        .96532E-05   -.92084    
   4  Prefactor     .96344        .19973        .99478E-05   -.93958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20527e-11
Minuit parameter uncertainties:
  1  13.6258
  2  0.97826
  3  0.208589
  4  0.199885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500076': 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) = 5855.54254258
delta logL = 0.205568811735

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.236e+01  1.363e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.781e+00  9.783e-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.634e-01  1.999e-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.028e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.72
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.78 +/- 0.98
Photon Flux (Free Index): 3.93e-08 +/- 6.61e-08
Energy Flux (Free Index): 3.25e-05 +/- 2.65e-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/500076/cmap_HighResolution_578880001_579139201_4FGL_J1321.1+2216_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='3.25e-05', photon_flux_error='3.98e-08', dlogl='2.06e-01', energy_flux='2.73e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-07 13:35:47.568132', photon_index_error2='0.98', photon_index2='1.78', ts='11.32', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='0.99', time_epoch_completed='1631046947.57', return_code='0', job_id='500076', GAL2='0.96', EG2='1.03', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.61e-08', ts2='11.72', photon_index='2.28' WHERE bin_id='1310' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:35:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 500076: <4FGL_J1321.1+2216_daily_bin1310> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1310> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 13:25:46 2021
Job was executed on host(s) <bullet0175>, 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:35:48 2021
Results reported at Tue Sep  7 13:35:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1310 200.296 22.2808 578880001 579139201 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 :                                   433.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            602 sec.

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

