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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1200
RA = 197.632, Dec = 32.3547
tmin = 550368001, tmax = 550627201
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='293490', job_status='RUN', time_executed='2021-09-07 01:45:30.785099', time_epoch_executed='1631004330.79' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293490

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293490/ft1_4FGL_J1310.5+3221_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293490/ft2_4FGL_J1310.5+3221_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293490/ft1_4FGL_J1310.5+3221_daily_bin1200.fits outfile=/scratch/kocevski/293490/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1200.fits ra=197.632 dec=32.3547 rad=12.0 tmin=550368001.0 tmax=550627201.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 4.21
user 3.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293490/ft2_4FGL_J1310.5+3221_daily_bin1200.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/293490/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/293490/ft1_filtered_4FGL_J1310.5+3221_daily_bin1200.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293490/ft1_filtered_4FGL_J1310.5+3221_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/293490/ft2_4FGL_J1310.5+3221_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/293490/ltcube_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.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/293490/ft2_4FGL_J1310.5+3221_daily_bin1200.fits
.....................!
real 14.40
user 13.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293490/ft1_filtered_4FGL_J1310.5+3221_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/293490/ft2_4FGL_J1310.5+3221_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/293490/ltcube_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.fits outfile=/scratch/kocevski/293490/expmap_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.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/293490/ltcube_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.fits
.....................!
real 191.71
user 185.97
sys 5.09

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/293490/ft1_filtered_4FGL_J1310.5+3221_daily_bin1200.fits scfile=/scratch/kocevski/293490/ft2_4FGL_J1310.5+3221_daily_bin1200.fits outfile=/scratch/kocevski/293490/cmap_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293490/ft1_filtered_4FGL_J1310.5+3221_daily_bin1200.fits scfile=/scratch/kocevski/293490/ft2_4FGL_J1310.5+3221_daily_bin1200.fits outfile=/scratch/kocevski/293490/cmap_HighResolution_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.587       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.184       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71948E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6327       1.0000         .10000E-03   10000.    
    19 'norm      '    16.963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.049       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9079       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.2622       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    215.30       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.2379       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2100       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59721       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=   2857.096     FROM MIGRAD    STATUS=CONVERGED   1351 CALLS     5285 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6444        5.4153        .82693E-04   -.19893E-04
   2  Prefactor     .10000E-03    4.6865        .11298E-02** at limit **
   3  Prefactor     2.7735        3.2861        .93917E-04   -.13255E-04
   4  Prefactor     .10000E-03    1.3692        .60769E-03** at limit **
   5  norm          3.0053        4.5136        .13379E-03   -.17589E-04
   6  Prefactor     .10000E-03    9.0779        .15688E-02** at limit **
   7  Prefactor     .10000E-03    14.632        .18142E-02** at limit **
   8  Prefactor     55.526        152.68        .53802E-04    .53671E-05
   9  Prefactor     14.184        10.115        .10635E-03   -.75522E-04
  10  Prefactor     .10000E-03    9.3295        .15867E-02** at limit **
  11  norm          18.690        14.065        .92663E-04    .72755E-04
  12  Prefactor     .10000E-03    124.28        .12449    ** at limit **
  13  norm          .10000E-03    7.0536        .27069E-03** at limit **
  14  Prefactor     .10000E-03    42.715        .18142E-02** at limit **
  15  norm          .10000E-03    5.1524        .11839E-02** at limit **
  16  norm          .10000E-03    30.889        .18142E-02** at limit **
  17  norm          .10000E-03    5.3922        .12038E-02** at limit **
  18  norm          4.6336        7.0966        .16797E-03   -.47988E-04
  19  norm          16.962        15.738        .97246E-04   -.66111E-04
  20  Prefactor     .10000E-03    14.864        .36285E-03** at limit **
  21  Prefactor     25.058        31.519        .80039E-04   -.41760E-04
  22  norm          2.9070        4.9416        .13535E-03   -.49520E-03
  23  Prefactor     .10000E-03    70.814        .18142E-02** at limit **
  24  norm          1.2665        26.540        .39686E-03    .10284E-04
  25  Prefactor     .10000E-03    8.5771        .15286E-02** at limit **
  26  Prefactor     .10000E-03    16.567        .18142E-02** at limit **
  27  Prefactor     214.93        360.40        .13780E-03    .35476E-05
  28  Prefactor     7.2391        10.164        .74546E-03   -.31685E-03
  29  Normalizat    1.2097        .33801        .23090E-03   -.15624E-03
  30  Prefactor     .59757        .34033        .34377E-03   -.17923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.6444
  Prefactor  = 0.0001
  Prefactor  = 2.77354
  Prefactor  = 0.0001
  norm       = 3.00533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.5256
  Prefactor  = 14.1842
  Prefactor  = 0.0001
  norm       = 18.6898
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.63359
  norm       = 16.9623
  Prefactor  = 0.0001
  Prefactor  = 25.0582
  norm       = 2.90703
  Prefactor  = 0.0001
  norm       = 1.2665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 214.935
  Prefactor  = 7.23906
  Normalizat = 1.20968
  Prefactor  = 0.597567
 **********
 **   18 **HESSE 
 **********

 FCN=   2857.096     FROM HESSE     STATUS=OK           566 CALLS     5851 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6444        5.4157        .16539E-04   -1.5087    
   2  Prefactor     .10000E-03    4.6865        .22597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7735        3.2863        .37567E-05   -1.5375    
   4  Prefactor     .10000E-03    1.3692        .12154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0053        4.5133        .53518E-05   -1.5361    
   6  Prefactor     .10000E-03    9.0792        .31375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.526        152.66        .10760E-04   -1.4216    
   9  Prefactor     14.184        10.114        .42541E-05   -1.4955    
  10  Prefactor     .10000E-03    9.3322        .31734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.690        14.071        .37065E-05   -1.4843    
  12  Prefactor     .10000E-03    126.06        .12348       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0539        .54137E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.1526        .23678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    30.889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.3923        .24076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6336        7.0959        .67186E-05   -1.5277    
  19  norm          16.962        15.737        .38898E-05   -1.4884    
  20  Prefactor     .10000E-03    14.865        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.058        31.516        .32015E-05   -1.4706    
  22  norm          2.9070        4.9326        .54139E-05   -1.5367    
  23  Prefactor     .10000E-03    70.814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.2665        26.392        .15874E-04   -1.5483    
  25  Prefactor     .10000E-03    8.5772        .30573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     214.93        360.39        .55119E-05   -1.2765    
  28  Prefactor     7.2391        10.160        .29819E-04   -1.5170    
  29  Normalizat    1.2097        .33821        .46181E-04   -.86304    
  30  Prefactor     .59757        .34062        .13751E-04   -1.0769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49229e-10
Minuit parameter uncertainties:
  1  5.41599
  2  4.11872e-06
  3  3.28656
  4  4.16693e-06
  5  4.51383
  6  3.0283e-05
  7  8.7735e-06
  8  153.759
  9  10.1152
  10  2.46864e-05
  11  14.0733
  12  0.00141869
  13  3.08349e-05
  14  0.000150268
  15  3.77989e-06
  16  4.73938e-05
  17  3.551e-05
  18  7.09716
  19  15.7411
  20  5.85226e-05
  21  31.5366
  22  4.93331
  23  0.00010064
  24  11.5682
  25  2.06982e-05
  26  3.25633e-05
  27  364.202
  28  10.1628
  29  0.338822
  30  0.341803
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  3.551e-05  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.976e-01  3.418e-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.210e+00  3.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293490/likelihoodResults_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.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) = 2857.09721358
delta logL = -0.000879444927705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2857.09633416
delta logL = -2.3947450245e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3994       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59755       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=   2857.096     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    252.81        .12357E-01** at limit **
   2  alpha         1.8084        3.7377        .16478        .48986E-08
   3  Normalizat    1.2097        .38633E-01    .23090E-03    .14487E-03
   4  Prefactor     .59757        .41899E-01    .34377E-03    .10204E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80844
  Normalizat = 1.20968
  Prefactor  = 0.597571
 **********
 **   18 **HESSE 
 **********

 FCN=   2857.096     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6664        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8084        2.6932        .65910E-02   -.28028    
   3  Normalizat    1.2097        .30813        .46179E-04   -.86304    
   4  Prefactor     .59757        .33358        .13751E-04   -1.0769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97118e-11
Minuit parameter uncertainties:
  1  2.83657e-05
  2  278.29
  3  0.308598
  4  0.334693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293490': 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) = 2857.09633141
delta logL = 2.72896750175e-06

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  2.837e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.808e+00  2.783e+02  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:  5.976e-01  3.347e-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.210e+00  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.632 32.355

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/293490/cmap_HighResolution_550368001_550627201_4FGL_J1310.5+3221_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-07 01:56:09.043244', job_id='293490', GAL2='0.60', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631004969.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='2.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1200' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 293490: <4FGL_J1310.5+3221_daily_bin1200> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1200> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:40 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:43:27 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:27 2021
Terminated at Tue Sep  7 01:56:09 2021
Results reported at Tue Sep  7 01:56:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1200 197.632 32.3547 550368001 550627201 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 :                                   627.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            929 sec.

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

