/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7329
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin816
RA = 200.296, Dec = 22.2808
tmin = 450835201, tmax = 451094401
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='498342', job_status='RUN', time_executed='2021-09-07 13:22:43.131717', time_epoch_executed='1631046163.13' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498342/ft1_4FGL_J1321.1+2216_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498342/ft2_4FGL_J1321.1+2216_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498342/ft1_4FGL_J1321.1+2216_daily_bin816.fits outfile=/scratch/kocevski/498342/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin816.fits ra=200.296 dec=22.2808 rad=12.0 tmin=450835201.0 tmax=451094401.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.43
user 3.17
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498342/ft1_filtered_4FGL_J1321.1+2216_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/498342/ft2_4FGL_J1321.1+2216_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/498342/ltcube_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.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/498342/ft2_4FGL_J1321.1+2216_daily_bin816.fits
.....................!
real 17.43
user 16.99
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498342/ft1_filtered_4FGL_J1321.1+2216_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/498342/ft2_4FGL_J1321.1+2216_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/498342/ltcube_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.fits outfile=/scratch/kocevski/498342/expmap_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.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/498342/ltcube_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.fits
.....................!
real 194.82
user 187.09
sys 6.05

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/498342/ft1_filtered_4FGL_J1321.1+2216_daily_bin816.fits scfile=/scratch/kocevski/498342/ft2_4FGL_J1321.1+2216_daily_bin816.fits outfile=/scratch/kocevski/498342/cmap_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498342/ft1_filtered_4FGL_J1321.1+2216_daily_bin816.fits scfile=/scratch/kocevski/498342/ft2_4FGL_J1321.1+2216_daily_bin816.fits outfile=/scratch/kocevski/498342/cmap_HighResolution_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.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/498342/ft1_filtered_4FGL_J1321.1+2216_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/498342/ft2_4FGL_J1321.1+2216_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498342/Model_4FGL_J1321.1+2216_daily_bin816.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/498342/ft1_filtered_4FGL_J1321.1+2216_daily_bin816.fits.....................!
real 48.73
user 47.19
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19641E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4848       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8741       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6894       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.161       1.0000         .10000E-03   10000.    
    12 'norm      '    14.412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.979       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.640       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1492       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94952       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=   5624.290     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2028 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.406        33.675       -.49735E-05   -.44004E-05
   2  Prefactor     .10000E-03    5.4255       -.13502E-06** at limit **
   3  norm          2.4845        3.1190       -.12004E-07   -.15021E-03
   4  Prefactor     4.8687        15.851        .30397E-05   -.71518E-04
   5  norm          .10000E-03    1.8094        .58088E-07** at limit **
   6  norm          6.6918        3.3103        .33549E-08   -.12198E-03
   7  norm          .10000E-03    7.0962        .50694E-06** at limit **
   8  norm          .10000E-03    6.1720       -.62212E-06** at limit **
   9  Prefactor     .10000E-03    10.969       -.21933E-06** at limit **
  10  norm          .10000E-03    4.6717        .28002E-05** at limit **
  11  Prefactor     14.161        15.387       -.39327E-06    .72879E-05
  12  norm          14.410        9.0888        .33448E-06   -.26232E-03
  13  Prefactor     .10000E-03    4.3998        .96822E-06** at limit **
  14  Prefactor     .10000E-03    22.682        .24494E-06** at limit **
  15  Prefactor     27.959        39.177       -.20980E-04   -.19299E-05
  16  Prefactor     .10000E-03    4.4329       -.35610E-05** at limit **
  17  Prefactor     12.640        15.817        .24072E-06   -.27979E-04
  18  Prefactor     6.1478        12.011        .13460E-05   -.93978E-04
  19  Normalizat    1.0588        .17321       -.21851E-06    .92666E-04
  20  Prefactor     .94943        .17537        .57867E-06    .10249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4055
  Prefactor  = 0.0001
  norm       = 2.48448
  Prefactor  = 4.86874
  norm       = 0.0001
  norm       = 6.69176
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.1612
  norm       = 14.4101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9595
  Prefactor  = 0.0001
  Prefactor  = 12.6396
  Prefactor  = 6.14784
  Normalizat = 1.05881
  Prefactor  = 0.94943
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.290     FROM HESSE     STATUS=OK           303 CALLS     2331 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.406        33.683        .10552E-03   -1.4949    
   2  Prefactor     .10000E-03    6.1689        .54613E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4845        3.1086        .14391E-03   -1.5393    
   4  Prefactor     4.8687        15.785        .18220E-03   -1.5267    
   5  norm          .10000E-03    1.8399        .98459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6918        3.2757        .91588E-04   -1.5191    
   7  norm          .10000E-03    7.1633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.1762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7189        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.161        15.389        .10644E-03   -1.4955    
  12  norm          14.410        9.0721        .10550E-03   -1.4949    
  13  Prefactor     .10000E-03    4.4051        .15363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.959        39.354        .75740E-04   -1.4650    
  16  Prefactor     .10000E-03    4.5964        .30718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.640        15.813        .11267E-03   -1.4997    
  18  Prefactor     6.1478        11.988        .16190E-03   -1.5212    
  19  Normalizat    1.0588        .19916        .22946E-03   -.91085    
  20  Prefactor     .94943        .20178        .24514E-03   -.94435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79953e-10
Minuit parameter uncertainties:
  1  33.7279
  2  8.97153e-05
  3  3.10878
  4  15.7982
  5  1.05282e-06
  6  3.27582
  7  4.98764e-06
  8  2.15871e-06
  9  5.63206e-07
  10  2.39982e-05
  11  15.3932
  12  9.07295
  13  2.78393e-08
  14  7.48544e-06
  15  39.3904
  16  3.10539e-05
  17  15.8178
  18  11.993
  19  0.199298
  20  0.201944
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.000e-04  2.400e-05  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.494e-01  2.019e-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.059e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498342/likelihoodResults_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.txt

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): 102
logL (Free Index) = 5624.29069675
delta logL = -0.00101054701372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5624.20322779
delta logL = 0.0864584182782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93947E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96652       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=   5624.203     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      297 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93994E-01    11.487        .94823E-02    .20544E-02
   2  alpha         5.0000        4.8663        .46267    ** at limit **
   3  Normalizat    1.0309        .67217E-01    .42079E-01   -.79508E-04
   4  Prefactor     .96651        .55933E-01    .45847E-01    .14009E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.093994
  alpha      = 5
  Normalizat = 1.03087
  Prefactor  = 0.966511
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.203     FROM HESSE     STATUS=OK            37 CALLS      334 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93994E-01    .25562        .48839E-03   -1.5647    
   2  alpha         5.0000        4.6390        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0309        .20716        .23213E-03   -.92003    
   4  Prefactor     .96651        .20351        .24320E-03   -.93854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09292e-10
Minuit parameter uncertainties:
  1  0.255626
  2  4.8157e-06
  3  0.207326
  4  0.203674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498342': 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) = 5624.20322776
delta logL = 0.0864584492483

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  9.399e-02  2.556e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  5.000e+00  4.816e-06  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.665e-01  2.037e-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.031e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.296 22.281

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/498342/cmap_HighResolution_450835201_451094401_4FGL_J1321.1+2216_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-07 13:32:35.799015', job_id='498342', GAL2='0.97', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1631046755.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.65e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='816' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:32:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 498342: <4FGL_J1321.1+2216_daily_bin816> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin816> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 13:20:36 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:20:38 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:20:38 2021
Terminated at Tue Sep  7 13:32:38 2021
Results reported at Tue Sep  7 13:32:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin816 200.296 22.2808 450835201 451094401 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            722 sec.

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

