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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1215
RA = 197.632, Dec = 32.3547
tmin = 554256001, tmax = 554515201
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='293512', job_status='RUN', time_executed='2021-09-07 01:45:03.973841', time_epoch_executed='1631004303.97' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293512/ft1_4FGL_J1310.5+3221_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293512/ft1_4FGL_J1310.5+3221_daily_bin1215.fits outfile=/scratch/kocevski/293512/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1215.fits ra=197.632 dec=32.3547 rad=12.0 tmin=554256001.0 tmax=554515201.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 5.26
user 3.83
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.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/293512/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.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 1.07
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/293512/ltcube_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.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/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits
.....................!
real 17.30
user 15.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/293512/ltcube_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.fits outfile=/scratch/kocevski/293512/expmap_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.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/293512/ltcube_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.fits
.....................!
real 194.74
user 186.80
sys 4.61

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1310.5+3221 @ 197.632 32.3547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits scfile=/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits outfile=/scratch/kocevski/293512/cmap_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.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=197.632 yref=32.3547 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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits scfile=/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits outfile=/scratch/kocevski/293512/cmap_HighResolution_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.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=197.632 yref=32.3547 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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293512/Model_4FGL_J1310.5+3221_daily_bin1215.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/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits.....................!
real 38.15
user 35.23
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits', '/scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits', expMap='/scratch/kocevski/293512/expmap_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.fits', expCube='/scratch/kocevski/293512/ltcube_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293512/Model_4FGL_J1310.5+3221_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1310.5+3221'

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  5.555e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/293512/ft1_filtered_4FGL_J1310.5+3221_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/293512/ft2_4FGL_J1310.5+3221_daily_bin1215.fits
Exposure map: /scratch/kocevski/293512/expmap_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.fits
Exposure cube: /scratch/kocevski/293512/ltcube_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293512/Model_4FGL_J1310.5+3221_daily_bin1215.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) = 3583.64394751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0123       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.230       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.4952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13603E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4421       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28403       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.264       1.0000         .10000E-03   10000.    
    17 'norm      '    10.191       1.0000         .10000E-03   10000.    
    18 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3056       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.7151       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.957       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    138.09       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.3586       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2588       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .58673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3583.616     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3888 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0121        3.6508        .15444E-07    .14368E-03
   2  Prefactor     18.800        14.387       -.18977E-06   -.23690E-05
   3  Prefactor     3.2568        2.6864        .44742E-08    .13183E-03
   4  Prefactor     .10000E-03    2.3651       -.73594E-06** at limit **
   5  norm          2.6762        4.4563       -.18283E-05   -.25231E-03
   6  Prefactor     24.228        17.897       -.49093E-06    .65247E-04
   7  Prefactor     .10000E-03    18.224        .19131E-06** at limit **
   8  Prefactor     .10001E-03    73.754        .26141E-05** at limit **
   9  Prefactor     .10000E-03    5.1612       -.12080E-05** at limit **
  10  Prefactor     .10000E-03    3.6109       -.15229E-06** at limit **
  11  norm          8.5017        9.3516       -.61802E-05    .43354E-04
  12  Prefactor     .10003E-03    141.17       -.16007E-04** at limit **
  13  norm          1.4426        3.6134       -.49242E-05   -.31301E-03
  14  Prefactor     .23095        446.25       -.12554E-03    .31436E-04
  15  norm          .10000E-03    6.7927       -.13990E-05** at limit **
  16  norm          22.262        33.722       -.49058E-07    .17505E-05
  17  norm          10.187        7.6465       -.78763E-06    .39708E-03
  18  norm          .10000E-03    12.073       -.25920E-05** at limit **
  19  norm          .10000E-03    19.816       -.21588E-05** at limit **
  20  Prefactor     7.2994        6.7834        .36656E-06    .54306E-04
  21  Prefactor     .10000E-03    23.425       -.15300E-05** at limit **
  22  norm          .10000E-03    4.2847       -.60112E-06** at limit **
  23  Prefactor     .10001E-03    167.76        .37978E-05** at limit **
  24  norm          7.7137        6.5546       -.25074E-06    .19887E-03
  25  Prefactor     14.954        18.723       -.10590E-06    .67156E-04
  26  Prefactor     .10000E-03    14.352        .37769E-06** at limit **
  27  Prefactor     138.04        144.63        .89141E-05    .22859E-03
  28  Prefactor     4.3570        6.4336       -.13700E-05    .46062E-03
  29  Normalizat    1.2591        .24844       -.23416E-05    .75713E-03
  30  Prefactor     .58649        .26527        .13611E-04    .20879E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01207
  Prefactor  = 18.8003
  Prefactor  = 3.25684
  Prefactor  = 0.0001
  norm       = 2.67621
  Prefactor  = 24.2283
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.50169
  Prefactor  = 0.000100034
  norm       = 1.44262
  Prefactor  = 0.230948
  norm       = 0.0001
  norm       = 22.2619
  norm       = 10.1873
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 7.29944
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 7.71375
  Prefactor  = 14.9537
  Prefactor  = 0.0001
  Prefactor  = 138.038
  Prefactor  = 4.35698
  Normalizat = 1.2591
  Prefactor  = 0.586491
 **********
 **   18 **HESSE 
 **********

 FCN=   3583.616     FROM HESSE     STATUS=OK           592 CALLS     4480 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0121        3.6526        .10423E-03   -1.5307    
   2  Prefactor     18.800        14.395        .92370E-04   -1.4841    
   3  Prefactor     3.2568        2.6876        .85099E-04   -1.5347    
   4  Prefactor     .10000E-03    2.4408        .17929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6762        4.4431        .15710E-03   -1.5381    
   6  Prefactor     24.228        17.864        .81377E-04   -1.4723    
   7  Prefactor     .10000E-03    18.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    73.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2436        .13281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6122        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.5017        9.4149        .13754E-03   -1.5125    
  12  Prefactor     .10003E-03    140.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4426        3.6202        .17097E-03   -1.5468    
  14  Prefactor     .23095        28.721        .97650E-01   -1.5612    
  15  norm          .10000E-03    6.8416        .15212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.262        33.735        .84889E-04   -1.4764    
  17  norm          10.187        7.5807        .12551E-03   -1.5070    
  18  norm          .10000E-03    12.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.2994        6.7762        .13603E-03   -1.5168    
  21  Prefactor     .10000E-03    23.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.3309        .12082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    168.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.7137        6.5507        .13547E-03   -1.5152    
  25  Prefactor     14.954        18.713        .10356E-03   -1.4934    
  26  Prefactor     .10000E-03    14.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     138.04        145.88        .17139E-03   -1.3353    
  28  Prefactor     4.3570        6.4861        .17264E-03   -1.5290    
  29  Normalizat    1.2591        .29638        .22562E-03   -.84796    
  30  Prefactor     .58649        .30663        .34785E-03   -1.0816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52242e-09
Minuit parameter uncertainties:
  1  3.6528
  2  14.398
  3  2.68768
  4  1.32293e-05
  5  4.4437
  6  17.8684
  7  9.01089e-05
  8  0.00165321
  9  4.41812e-05
  10  7.35545e-06
  11  9.41655
  12  0.00437463
  13  3.62071
  14  5.15239
  15  4.83137e-06
  16  33.7634
  17  7.58143
  18  0.000261899
  19  0.000202809
  20  6.77696
  21  0.000260043
  22  1.8237e-05
  23  0.00204291
  24  6.55133
  25  18.7199
  26  3.94213e-05
  27  146.261
  28  6.48718
  29  0.296774
  30  0.307511
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.019e+01  7.581e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.425e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  5.865e-01  3.075e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.259e+00  2.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.80
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 8.93e-08 +/- 6.64e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 2.38e-05

TS (Fixed Index): 3.80
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 2.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293512/likelihoodResults_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.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): 0
logL (Free Index) = 3583.31067816
delta logL = 0.305606868914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3583.30467462
delta logL = 0.311610404379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8476       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9101       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   3583.305     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      280 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8472        7.9937        .77711E-04    .14981E-03
   2  alpha         2.9102        .75952        .60331E-02    .23439E-04
   3  Normalizat    1.2137        .29019        .22895E-03   -.78109E-04
   4  Prefactor     .62084        .30999        .33869E-03   -.54327E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.84721
  alpha      = 2.91016
  Normalizat = 1.21367
  Prefactor  = 0.620838
 **********
 **   18 **HESSE 
 **********

 FCN=   3583.305     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8472        6.6021        .31084E-05   -1.5268    
   2  alpha         2.9102        .62979        .24133E-03    .16481    
   3  Normalizat    1.2137        .28897        .45790E-04   -.86182    
   4  Prefactor     .62084        .30894        .13548E-04   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8493e-11
Minuit parameter uncertainties:
  1  6.60311
  2  0.636848
  3  0.289348
  4  0.309786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293512': 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) = 3583.30467462
delta logL = 0.311610409548

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  4.847e+00  6.603e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.910e+00  6.368e-01  0.000e+00  5.000e+00 ( 1.000e+00)
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  6.208e-01  3.098e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.214e+00  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.91 +/- 0.64
Photon Flux (Free Index): 1.36e-07 +/- 9.92e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.97e-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/293512/cmap_HighResolution_554256001_554515201_4FGL_J1310.5+3221_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-05', comment='SUCCESS', photon_flux='8.93e-08', energy_flux2='3.12e-05', photon_flux_error='6.64e-08', dlogl='3.12e-01', energy_flux='3.19e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-07 01:55:54.278055', photon_index_error2='0.64', photon_index2='2.91', ts='3.80', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='2.23e-07', energy_flux_error2='1.97e-05', EG='1.26', time_epoch_completed='1631004954.28', return_code='0', job_id='293512', GAL2='0.62', EG2='1.21', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='9.92e-08', ts2='4.48', photon_index='2.42' WHERE bin_id='1215' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 293512: <4FGL_J1310.5+3221_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1215> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:41 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:43:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:43:35 2021
Terminated at Tue Sep  7 01:55:55 2021
Results reported at Tue Sep  7 01:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1215 197.632 32.3547 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1310.5+3221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            914 sec.

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

