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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1285
RA = 197.632, Dec = 32.3547
tmin = 572400001, tmax = 572659201
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='293657', job_status='RUN', time_executed='2021-09-07 01:45:36.326367', time_epoch_executed='1631004336.33' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293657/ft1_4FGL_J1310.5+3221_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293657/ft1_4FGL_J1310.5+3221_daily_bin1285.fits outfile=/scratch/kocevski/293657/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1285.fits ra=197.632 dec=32.3547 rad=12.0 tmin=572400001.0 tmax=572659201.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.92
user 3.45
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293657/ft1_filtered_4FGL_J1310.5+3221_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/293657/ltcube_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.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/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits
.....................!
real 16.29
user 15.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293657/ft1_filtered_4FGL_J1310.5+3221_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/293657/ltcube_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.fits outfile=/scratch/kocevski/293657/expmap_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.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/293657/ltcube_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.fits
.....................!
real 194.02
user 187.16
sys 5.38

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/293657/ft1_filtered_4FGL_J1310.5+3221_daily_bin1285.fits scfile=/scratch/kocevski/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits outfile=/scratch/kocevski/293657/cmap_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.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.60
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293657/ft1_filtered_4FGL_J1310.5+3221_daily_bin1285.fits scfile=/scratch/kocevski/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits outfile=/scratch/kocevski/293657/cmap_HighResolution_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.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.58
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293657/ft1_filtered_4FGL_J1310.5+3221_daily_bin1285.fits', '/scratch/kocevski/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits', expMap='/scratch/kocevski/293657/expmap_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.fits', expCube='/scratch/kocevski/293657/ltcube_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293657/Model_4FGL_J1310.5+3221_daily_bin1285.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/293657/ft1_filtered_4FGL_J1310.5+3221_daily_bin1285.fits
Spacecraft file(s): /scratch/kocevski/293657/ft2_4FGL_J1310.5+3221_daily_bin1285.fits
Exposure map: /scratch/kocevski/293657/expmap_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.fits
Exposure cube: /scratch/kocevski/293657/ltcube_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293657/Model_4FGL_J1310.5+3221_daily_bin1285.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) = 6445.0656895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.656       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9800       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1929       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2379       1.0000         .10000E-03   10000.    
     5 'norm      '    16.943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35774E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.0966       1.0000         .10000E-03   10000.    
    16 'norm      '    39.476       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3242       1.0000         .10000E-03   10000.    
    18 'norm      '    .24010E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .76496E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5438       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.652       1.0000         .10000E-03   10000.    
    24 'norm      '    .10578E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .26402E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.7506       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7913       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6444.979     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2767 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.655        4.4671       -.13202E-06   -.26175E-03
   2  Prefactor     5.9786        1.2362        .89127E-07    .66012E-03
   3  Prefactor     2.1923        2.2000        .15531E-06    .20996E-04
   4  Prefactor     4.2369        2.8004       -.25964E-06   -.12692E-03
   5  norm          16.942        1.0389        .41883E-07    .37280E-03
   6  Prefactor     .10000E-03    17.703        .35506E-05** at limit **
   7  Prefactor     .10000E-03    11.152        .54797E-06** at limit **
   8  Prefactor     .10000E-03    24.049        .13321E-05** at limit **
   9  Prefactor     7.0219        5.7119        .25684E-06    .11096E-03
  10  Prefactor     .10000E-03    2.1736       -.10595E-07** at limit **
  11  norm          .10000E-03    1.1080        .39990E-07** at limit **
  12  Prefactor     .10000E-03    5.9841        .26819E-06** at limit **
  13  norm          .10000E-03    1.6208       -.75454E-07** at limit **
  14  Prefactor     .10000E-03    4.2844       -.30103E-07** at limit **
  15  norm          8.0948        5.0193       -.28786E-07   -.11017E-03
  16  norm          39.451        14.776       -.14502E-05    .11694E-02
  17  norm          7.3276        3.6346        .31488E-06   -.10499E-03
  18  norm          .10006E-03    187.99        .62139E-05** at limit **
  19  norm          .11425E-03    1903.1        .86895E-04** at limit **
  20  Prefactor     .10000E-03    1.6636        .64822E-08** at limit **
  21  Prefactor     .10000E-03    10.026        .38546E-06** at limit **
  22  norm          2.5522        3.5131       -.64703E-06   -.17995E-02
  23  Prefactor     12.444        36.584        .98337E-05   -.63016E-03
  24  norm          .10001E-03    9.7041       -.16014E-05** at limit **
  25  Prefactor     .10013E-03    4.9202       -.15869E-05** at limit **
  26  Prefactor     8.7652        12.818        .28594E-05    .46943E-03
  27  Prefactor     .10000E-03    18.207       -.38996E-06** at limit **
  28  Prefactor     1.7914        3.8094       -.19709E-07   -.46565E-04
  29  Normalizat    1.1559        .20366        .19511E-07   -.12489E-03
  30  Prefactor     .85159        .24156       -.11002E-05   -.13170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6552
  Prefactor  = 5.97864
  Prefactor  = 2.19234
  Prefactor  = 4.23686
  norm       = 16.9421
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.02187
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.09481
  norm       = 39.4513
  norm       = 7.32763
  norm       = 0.000100057
  norm       = 0.000114252
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.55217
  Prefactor  = 12.4437
  norm       = 0.000100009
  Prefactor  = 0.000100132
  Prefactor  = 8.76517
  Prefactor  = 0.0001
  Prefactor  = 1.79138
  Normalizat = 1.1559
  Prefactor  = 0.851592
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.979     FROM HESSE     STATUS=OK           662 CALLS     3429 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.655        4.5065        .29335E-02   -1.5025    
   2  Prefactor     5.9786        7.1573        .41050E-02   -1.5219    
   3  Prefactor     2.1923        2.2057        .69476E-02   -1.5412    
   4  Prefactor     4.2369        2.8834        .48934E-02   -1.5296    
   5  norm          16.942        6.6071        .24325E-02   -1.4885    
   6  Prefactor     .10000E-03    7.2888        .80152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0219        5.7257        .37838E-02   -1.5178    
  10  Prefactor     .10000E-03    2.1590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0948        5.0501        .35226E-02   -1.5139    
  16  norm          39.451        19.971        .15949E-02   -1.4451    
  17  norm          7.3276        4.7271        .37051E-02   -1.5167    
  18  norm          .10006E-03    8.6672        .57312E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11425E-03    13.604        .93986E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5522        6.9765        .64010E-02   -1.5388    
  23  Prefactor     12.444        86.971        .28154E-02   -1.5002    
  24  norm          .10001E-03    10.821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10013E-03    28.130        .10721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.7652        19.676        .33876E-02   -1.5116    
  27  Prefactor     .10000E-03    18.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.7914        3.8453        .78127E-02   -1.5440    
  29  Normalizat    1.1559        .16991        .51708E-01   -.87977    
  30  Prefactor     .85159        .20271        .70613E-01   -.97854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05827e-08
Minuit parameter uncertainties:
  1  4.50663
  2  7.15835
  3  2.2058
  4  2.88351
  5  6.60735
  6  7.63693e-05
  7  0.000331255
  8  0.000122727
  9  5.72619
  10  6.47585e-08
  11  2.68836e-07
  12  1.11372e-05
  13  6.07952e-07
  14  7.66674e-07
  15  5.05033
  16  19.9748
  17  4.72731
  18  0.00140567
  19  0.0278553
  20  4.86212e-07
  21  0.000245354
  22  6.97873
  23  65.9318
  24  0.000627028
  25  0.00385095
  26  19.6904
  27  0.000191974
  28  3.84585
  29  0.169995
  30  0.202888
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.328e+00  4.727e+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:  8.516e-01  2.029e-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.156e+00  1.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.02
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.42e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.48e-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) = 6444.97875679
delta logL = 7.32653161322e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6444.97859552
delta logL = 0.000234540987549

Fit tolerance = 1e-08

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

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

 FCN=   6444.979     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      231 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2165        63.154        .37325E-02    .11805E-03
   2  alpha         2.4355        3.6241        .19409        .89984E-04
   3  Normalizat    1.1551        .87362E-01    .51723E-01    .42198E-05
   4  Prefactor     .85224        .80871E-01    .70589E-01    .80908E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.2165
  alpha      = 2.43551
  Normalizat = 1.15509
  Prefactor  = 0.852236
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.979     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2165        6.9312        .10244E-03   -1.5171    
   2  alpha         2.4355        .54949        .73908E-02   -.25801E-01
   3  Normalizat    1.1551        .20600        .22868E-03   -.88002    
   4  Prefactor     .85224        .24236        .31233E-03   -.97831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08613e-11
Minuit parameter uncertainties:
  1  6.93199
  2  0.554014
  3  0.206147
  4  0.242668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293657': 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) = 6444.97859391
delta logL = 0.000236144976952

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.216e+00  6.932e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.436e+00  5.540e-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:  8.522e-01  2.427e-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.155e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.98
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.44 +/- 0.55
Photon Flux (Free Index): 6.48e-08 +/- 4.29e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.27e-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/293657/cmap_HighResolution_572400001_572659201_4FGL_J1310.5+3221_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.42e-08', energy_flux2='2.29e-05', photon_flux_error='4.14e-08', dlogl='2.36e-04', energy_flux='2.30e-05', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-07 01:57:18.989980', photon_index_error2='0.55', photon_index2='2.44', ts='10.02', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.16', time_epoch_completed='1631005038.99', return_code='0', job_id='293657', GAL2='0.85', EG2='1.16', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='4.29e-08', ts2='9.98', photon_index='2.42' WHERE bin_id='1285' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 293657: <4FGL_J1310.5+3221_daily_bin1285> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1285> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:47 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:44:16 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:44:16 2021
Terminated at Tue Sep  7 01:57:19 2021
Results reported at Tue Sep  7 01:57:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1285 197.632 32.3547 572400001 572659201 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            992 sec.

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

