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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1096
RA = 200.296, Dec = 22.2808
tmin = 523411201, tmax = 523670401
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='498729', job_status='RUN', time_executed='2021-09-07 13:21:44.311786', time_epoch_executed='1631046104.31' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498729

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498729/ft1_4FGL_J1321.1+2216_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498729/ft2_4FGL_J1321.1+2216_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498729/ft1_4FGL_J1321.1+2216_daily_bin1096.fits outfile=/scratch/kocevski/498729/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1096.fits ra=200.296 dec=22.2808 rad=12.0 tmin=523411201.0 tmax=523670401.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.75
user 3.34
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498729/ft1_filtered_4FGL_J1321.1+2216_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/498729/ft2_4FGL_J1321.1+2216_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/498729/ltcube_523411201_523670401_4FGL_J1321.1+2216_daily_bin1096.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/498729/ft2_4FGL_J1321.1+2216_daily_bin1096.fits
.....................!
real 17.51
user 16.39
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498729/ft1_filtered_4FGL_J1321.1+2216_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/498729/ft2_4FGL_J1321.1+2216_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/498729/ltcube_523411201_523670401_4FGL_J1321.1+2216_daily_bin1096.fits outfile=/scratch/kocevski/498729/expmap_523411201_523670401_4FGL_J1321.1+2216_daily_bin1096.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/498729/ltcube_523411201_523670401_4FGL_J1321.1+2216_daily_bin1096.fits
.....................!
real 194.86
user 188.52
sys 5.21

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/498729/ft1_filtered_4FGL_J1321.1+2216_daily_bin1096.fits scfile=/scratch/kocevski/498729/ft2_4FGL_J1321.1+2216_daily_bin1096.fits outfile=/scratch/kocevski/498729/cmap_523411201_523670401_4FGL_J1321.1+2216_daily_bin1096.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498729/ft1_filtered_4FGL_J1321.1+2216_daily_bin1096.fits scfile=/scratch/kocevski/498729/ft2_4FGL_J1321.1+2216_daily_bin1096.fits outfile=/scratch/kocevski/498729/cmap_HighResolution_523411201_523670401_4FGL_J1321.1+2216_daily_bin1096.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.296 yref=22.2808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.9411       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.717       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0825       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.259       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6172       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.089       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93150       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1420       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=   5433.423     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1977 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.217       -.93140E-05** at limit **
   2  Prefactor     1.9420        6.1035       -.95587E-06   -.62330E-03
   3  norm          .10000E-03    1.6680       -.33138E-07** at limit **
   4  Prefactor     13.718        13.432        .31710E-06   -.38695E-04
   5  norm          3.0827        3.6757       -.15272E-05   -.34800E-03
   6  norm          .10000E-03    1.0762       -.17193E-06** at limit **
   7  norm          .10000E-03    1.4281       -.65076E-07** at limit **
   8  norm          .10000E-03    8.0370        .57148E-05** at limit **
   9  Prefactor     .10000E-03    17.440        .58442E-05** at limit **
  10  norm          13.246        10.255       -.37464E-05   -.67408E-03
  11  Prefactor     .10000E-03    13.759        .16869E-05** at limit **
  12  norm          1.6281        25.491        .13440E-04   -.23119E-03
  13  Prefactor     .10000E-03    11.371       -.71424E-05** at limit **
  14  Prefactor     .10000E-03    9.1780       -.11937E-05** at limit **
  15  Prefactor     52.098        67.273        .11042E-04   -.35448E-05
  16  Prefactor     .10000E-03    3.2736        .84616E-07** at limit **
  17  Prefactor     .10000E-03    7.1809       -.22922E-05** at limit **
  18  Prefactor     .10000E-03    16.156        .75897E-05** at limit **
  19  Normalizat    .93154        .18207       -.15875E-06   -.23103E-03
  20  Prefactor     1.1418        .17986       -.27274E-06   -.21297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.94196
  norm       = 0.0001
  Prefactor  = 13.7182
  norm       = 3.08272
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.246
  Prefactor  = 0.0001
  norm       = 1.62811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.0977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.931545
  Prefactor  = 1.14183
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.423     FROM HESSE     STATUS=OK           281 CALLS     2258 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9420        6.1420        .29798E-03   -1.5429    
   3  norm          .10000E-03    1.6779        .92968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.718        13.431        .10815E-03   -1.4967    
   5  norm          3.0827        3.6726        .14833E-03   -1.5357    
   6  norm          .10000E-03    1.0822        .74661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4286        .86027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.246        9.6907        .11000E-03   -1.4980    
  11  Prefactor     .10000E-03    13.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6281        21.897        .33290E-03   -1.5453    
  13  Prefactor     .10000E-03    11.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     52.098        67.233        .55570E-04   -1.4263    
  16  Prefactor     .10000E-03    3.3753        .26030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93154        .21293        .25606E-03   -.95360    
  20  Prefactor     1.1418        .21141        .23329E-03   -.88141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06934e-09
Minuit parameter uncertainties:
  1  2.36902e-06
  2  6.14402
  3  7.31057e-07
  4  13.4342
  5  3.67291
  6  2.324e-07
  7  3.69032e-08
  8  1.60917e-05
  9  1.15166e-05
  10  9.69184
  11  9.23227e-06
  12  11.9466
  13  2.57608e-05
  14  1.75805e-06
  15  67.3311
  16  2.24215e-06
  17  8.59628e-06
  18  9.96001e-05
  19  0.213127
  20  0.211569
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.325e+01  9.692e+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.142e+00  2.116e-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.315e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.56e-08 +/- 4.80e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.73e-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) = 5433.40383646
delta logL = 0.0193447120673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5433.40283024
delta logL = 0.0203509317353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.579       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1807       1.0000          .0000       5.0000    
     3 'Normalizat'    .93701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1386       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=   5433.403     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.579        8.3675        .10870E-03   -.21418E-02
   2  alpha         2.1809        .49470        .12512E-01   -.27493E-03
   3  Normalizat    .93696        .21130        .25542E-03    .10932E-03
   4  Prefactor     1.1386        .20986        .23357E-03    .14012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5794
  alpha      = 2.18086
  Normalizat = 0.936963
  Prefactor  = 1.13864
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.403     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.579        8.3344        .21740E-04   -1.4971    
   2  alpha         2.1809        .49264        .50048E-03   -.12800    
   3  Normalizat    .93696        .21148        .10217E-04   -.95173    
   4  Prefactor     1.1386        .21002        .46715E-04   -.88241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94801e-09
Minuit parameter uncertainties:
  1  8.33513
  2  0.495938
  3  0.211671
  4  0.210172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498729': 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) = 5433.40283016
delta logL = 0.0203510140936

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.358e+01  8.335e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.181e+00  4.959e-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.139e+00  2.102e-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.370e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.18 +/- 0.50
Photon Flux (Free Index): 6.06e-08 +/- 4.52e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.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/498729/cmap_HighResolution_523411201_523670401_4FGL_J1321.1+2216_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.56e-08', energy_flux2='2.48e-05', photon_flux_error='4.80e-08', dlogl='2.04e-02', energy_flux='2.36e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-09-07 13:30:26.625172', photon_index_error2='0.50', photon_index2='2.18', ts='4.66', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.93', time_epoch_completed='1631046626.63', return_code='0', job_id='498729', GAL2='1.14', EG2='0.94', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='4.52e-08', ts2='4.70', photon_index='2.28' WHERE bin_id='1096' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 498729: <4FGL_J1321.1+2216_daily_bin1096> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1096 200.296 22.2808 523411201 523670401 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 :                                   519.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            552 sec.

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

