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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1125
RA = 200.296, Dec = 22.2808
tmin = 530928001, tmax = 531187201
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='498765', job_status='RUN', time_executed='2021-09-07 13:25:16.876851', time_epoch_executed='1631046316.88' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498765/ft1_4FGL_J1321.1+2216_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498765/ft2_4FGL_J1321.1+2216_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498765/ft1_4FGL_J1321.1+2216_daily_bin1125.fits outfile=/scratch/kocevski/498765/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1125.fits ra=200.296 dec=22.2808 rad=12.0 tmin=530928001.0 tmax=531187201.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.68
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498765/ft1_filtered_4FGL_J1321.1+2216_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/498765/ft2_4FGL_J1321.1+2216_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/498765/ltcube_530928001_531187201_4FGL_J1321.1+2216_daily_bin1125.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/498765/ft2_4FGL_J1321.1+2216_daily_bin1125.fits
.....................!
real 16.57
user 16.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498765/ft1_filtered_4FGL_J1321.1+2216_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/498765/ft2_4FGL_J1321.1+2216_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/498765/ltcube_530928001_531187201_4FGL_J1321.1+2216_daily_bin1125.fits outfile=/scratch/kocevski/498765/expmap_530928001_531187201_4FGL_J1321.1+2216_daily_bin1125.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/498765/ltcube_530928001_531187201_4FGL_J1321.1+2216_daily_bin1125.fits
.....................!
real 192.25
user 187.46
sys 4.17

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/498765/ft1_filtered_4FGL_J1321.1+2216_daily_bin1125.fits scfile=/scratch/kocevski/498765/ft2_4FGL_J1321.1+2216_daily_bin1125.fits outfile=/scratch/kocevski/498765/cmap_530928001_531187201_4FGL_J1321.1+2216_daily_bin1125.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498765/ft1_filtered_4FGL_J1321.1+2216_daily_bin1125.fits scfile=/scratch/kocevski/498765/ft2_4FGL_J1321.1+2216_daily_bin1125.fits outfile=/scratch/kocevski/498765/cmap_HighResolution_530928001_531187201_4FGL_J1321.1+2216_daily_bin1125.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.556       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9571       1.0000         .10000E-03   10000.    
     7 'norm      '    .79367       1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54220E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    19.533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6319       1.0000         .10000E-03   10000.    
    12 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4500       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89632       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=   6394.539     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2029 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.537        .22283E-06** at limit **
   2  Prefactor     .10000E-03    2.6767        .19632E-07** at limit **
   3  norm          .10000E-03    1.9096       -.54015E-07** at limit **
   4  Prefactor     26.562        22.475       -.35652E-06   -.23138E-04
   5  norm          .10000E-03    .93070        .18443E-08** at limit **
   6  norm          3.9446        8.3628       -.22094E-05    .24864E-03
   7  norm          .80684        44.290        .85962E-05    .97155E-04
   8  norm          .10000E-03    20.267        .14189E-05** at limit **
   9  Prefactor     .10005E-03    10.385       -.16192E-05** at limit **
  10  norm          19.542        9.3503        .16029E-06   -.31352E-04
  11  Prefactor     2.6034        89.477        .92782E-05    .96487E-05
  12  norm          .10000E-03    5.9995       -.16170E-06** at limit **
  13  Prefactor     12.399        17.689        .23630E-07    .18557E-04
  14  Prefactor     8.0805        23.999        .55812E-06    .80251E-05
  15  Prefactor     .10000E-03    47.597       -.15162E-05** at limit **
  16  Prefactor     .10000E-03    4.4280        .70476E-07** at limit **
  17  Prefactor     .10000E-03    19.788       -.12120E-05** at limit **
  18  Prefactor     .10000E-03    7.6597        .83413E-07** at limit **
  19  Normalizat    1.4491        .20229        .12938E-06    .22257E-04
  20  Prefactor     .89705        .18469       -.27874E-06    .46032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.5622
  norm       = 0.0001
  norm       = 3.94456
  norm       = 0.806836
  norm       = 0.0001
  Prefactor  = 0.000100052
  norm       = 19.5418
  Prefactor  = 2.60344
  norm       = 0.0001
  Prefactor  = 12.3987
  Prefactor  = 8.08049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44913
  Prefactor  = 0.897053
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.539     FROM HESSE     STATUS=OK           291 CALLS     2320 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6809        .12776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9187        .10792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.562        22.624        .77738E-04   -1.4677    
   5  norm          .10000E-03    .93278        .75335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9446        8.6006        .13286E-03   -1.5311    
   7  norm          .80684        47.053        .41918E-03   -1.5528    
   8  norm          .10000E-03    20.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10005E-03    48.176        .46299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.542        9.3573        .90623E-04   -1.4824    
  11  Prefactor     2.6034        90.150        .25136E-03   -1.5385    
  12  norm          .10000E-03    6.0312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.399        17.649        .11378E-03   -1.5004    
  14  Prefactor     8.0805        23.977        .14102E-03   -1.5139    
  15  Prefactor     .10000E-03    47.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6319        .32841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4491        .24630        .24591E-03   -.79218    
  20  Prefactor     .89705        .22273        .28613E-03   -.96244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08129e-09
Minuit parameter uncertainties:
  1  1.52193e-05
  2  1.10188e-06
  3  1.30247e-06
  4  22.6309
  5  5.06891e-08
  6  8.60326
  7  12.3325
  8  9.77945e-07
  9  0.0031601
  10  9.35798
  11  30.6895
  12  1.25771e-05
  13  17.6567
  14  24.0058
  15  5.78627e-05
  16  5.00073e-06
  17  1.11931e-05
  18  7.16465e-06
  19  0.246501
  20  0.222955
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.954e+01  9.358e+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:  8.971e-01  2.230e-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.449e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.97
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.68e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 1.67e-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) = 6394.10553116
delta logL = 0.433401005021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6394.09210999
delta logL = 0.446822169727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.614       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6956       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92317       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6394.092     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      311 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.607        9.3276        .49130E-03    .60603E-04
   2  alpha         2.6951        .46441        .10126E-01    .80119E-05
   3  Normalizat    1.4064        .23700        .24884E-03   -.15533E-05
   4  Prefactor     .92317        .21993        .28227E-03   -.13694E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6074
  alpha      = 2.69513
  Normalizat = 1.40636
  Prefactor  = 0.923171
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.092     FROM HESSE     STATUS=OK            27 CALLS      338 TOTAL
                     EDM=   .76E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.607        9.0157        .98261E-04   -1.4893    
   2  alpha         2.6951        .44872        .40503E-03    .78132E-01
   3  Normalizat    1.4064        .23721        .99536E-05   -.80445    
   4  Prefactor     .92317        .22006        .11291E-04   -.95336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55539e-15
Minuit parameter uncertainties:
  1  9.01639
  2  0.451179
  3  0.237398
  4  0.220274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498765': 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) = 6394.09210804
delta logL = 0.446824121197

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.661e+01  9.016e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.695e+00  4.512e-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.232e-01  2.203e-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.406e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.90
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.70 +/- 0.45
Photon Flux (Free Index): 1.33e-07 +/- 6.64e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.45e-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/498765/cmap_HighResolution_530928001_531187201_4FGL_J1321.1+2216_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-08', energy_flux2='3.28e-05', photon_flux_error='4.63e-08', dlogl='4.47e-01', energy_flux='3.49e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-07 13:34:51.008081', photon_index_error2='0.45', photon_index2='2.70', ts='8.97', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.45', time_epoch_completed='1631046891.01', return_code='0', job_id='498765', GAL2='0.92', EG2='1.41', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.64e-08', ts2='9.90', photon_index='2.28' WHERE bin_id='1125' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:34:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 498765: <4FGL_J1321.1+2216_daily_bin1125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1125 200.296 22.2808 530928001 531187201 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 :                                   572.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            812 sec.

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

