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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin850
RA = 197.632, Dec = 32.3547
tmin = 459648001, tmax = 459907201
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='291544', job_status='RUN', time_executed='2021-09-07 01:36:17.380716', time_epoch_executed='1631003777.38' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='850'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291544/ft1_4FGL_J1310.5+3221_daily_bin850.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291544/ft2_4FGL_J1310.5+3221_daily_bin850.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291544/ft1_4FGL_J1310.5+3221_daily_bin850.fits outfile=/scratch/kocevski/291544/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin850.fits ra=197.632 dec=32.3547 rad=12.0 tmin=459648001.0 tmax=459907201.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.50
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291544/ft2_4FGL_J1310.5+3221_daily_bin850.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/291544/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin850.fits evtable="EVENTS" outfile="/scratch/kocevski/291544/ft1_filtered_4FGL_J1310.5+3221_daily_bin850.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/291544/ft1_filtered_4FGL_J1310.5+3221_daily_bin850.fits" evtable="EVENTS" scfile=/scratch/kocevski/291544/ft2_4FGL_J1310.5+3221_daily_bin850.fits sctable="SC_DATA" outfile=/scratch/kocevski/291544/ltcube_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.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/291544/ft2_4FGL_J1310.5+3221_daily_bin850.fits
.....................!
real 17.30
user 16.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291544/ft1_filtered_4FGL_J1310.5+3221_daily_bin850.fits evtable="EVENTS" scfile=/scratch/kocevski/291544/ft2_4FGL_J1310.5+3221_daily_bin850.fits sctable="SC_DATA" expcube=/scratch/kocevski/291544/ltcube_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.fits outfile=/scratch/kocevski/291544/expmap_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.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/291544/ltcube_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.fits
.....................!
real 194.49
user 187.74
sys 4.94

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/291544/ft1_filtered_4FGL_J1310.5+3221_daily_bin850.fits scfile=/scratch/kocevski/291544/ft2_4FGL_J1310.5+3221_daily_bin850.fits outfile=/scratch/kocevski/291544/cmap_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.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.97
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291544/ft1_filtered_4FGL_J1310.5+3221_daily_bin850.fits scfile=/scratch/kocevski/291544/ft2_4FGL_J1310.5+3221_daily_bin850.fits outfile=/scratch/kocevski/291544/cmap_HighResolution_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.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 1.20
user 0.42
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3515       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5222       1.0000         .10000E-03   10000.    
     5 'norm      '    39.212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1980       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22674E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19442E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.501       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2326       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3549       1.0000         .10000E-03   10000.    
    18 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    32.013       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8043       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0708       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    19.046       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.9161       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0952       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .54171       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=   5509.302     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3320 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3518        3.6383       -.35488E-06    .34483E-04
   2  Prefactor     7.2404        6.3655       -.44407E-07    .28486E-04
   3  Prefactor     .10000E-03    1.0026        .28161E-07** at limit **
   4  Prefactor     8.5222        3.5171        .16966E-06   -.16396E-04
   5  norm          39.212        9.1423       -.15302E-06   -.25797E-05
   6  Prefactor     4.1980        8.7866       -.45969E-06   -.14986E-03
   7  Prefactor     .10000E-03    8.2700        .86492E-06** at limit **
   8  Prefactor     .10000E-03    104.91       -.40929E-04** at limit **
   9  Prefactor     .10001E-03    4.5517        .12460E-05** at limit **
  10  Prefactor     .10000E-03    2.0597       -.24430E-06** at limit **
  11  norm          .10000E-03    2.0134        .25930E-06** at limit **
  12  Prefactor     .10000E-03    11.783       -.27601E-05** at limit **
  13  norm          .10000E-03    2.8075       -.63884E-07** at limit **
  14  Prefactor     .10000E-03    8.8923       -.13511E-05** at limit **
  15  norm          12.503        6.4465        .33320E-07   -.60686E-04
  16  norm          8.2337        14.744        .12571E-06   -.40379E-04
  17  norm          2.3560        2.9634       -.49837E-07   -.37839E-03
  18  norm          .10000E-03    2.3586        .28653E-07** at limit **
  19  norm          32.019        26.242        .14865E-05   -.93465E-05
  20  Prefactor     .10000E-03    1.4701        .23561E-07** at limit **
  21  Prefactor     6.8029        14.042       -.12594E-05   -.16178E-03
  22  norm          4.0646        10.663       -.17326E-05   -.28478E-03
  23  Prefactor     .10000E-03    85.165        .42897E-04** at limit **
  24  norm          19.053        14.677        .72021E-06   -.13373E-04
  25  Prefactor     .10000E-03    3.6273        .61716E-08** at limit **
  26  Prefactor     .10000E-03    5.0127       -.11347E-07** at limit **
  27  Prefactor     .10000E-03    56.556       -.78405E-05** at limit **
  28  Prefactor     4.9163        3.2733       -.72172E-06   -.32217E-02
  29  Normalizat    1.0951        .16893        .63005E-06   -.10025E-03
  30  Prefactor     .54176        .19916       -.48483E-06   -.44131E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.35179
  Prefactor  = 7.24039
  Prefactor  = 0.0001
  Prefactor  = 8.52225
  norm       = 39.2116
  Prefactor  = 4.19798
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5026
  norm       = 8.23374
  norm       = 2.35603
  norm       = 0.0001
  norm       = 32.0187
  Prefactor  = 0.0001
  Prefactor  = 6.80289
  norm       = 4.06457
  Prefactor  = 0.0001
  norm       = 19.0531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.91633
  Normalizat = 1.09512
  Prefactor  = 0.541756
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.302     FROM HESSE     STATUS=OK           586 CALLS     3906 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3518        3.6343        .94518E-04   -1.5166    
   2  Prefactor     7.2404        6.3687        .14907E-03   -1.5170    
   3  Prefactor     .10000E-03    1.0096        .72443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5222        3.5154        .83437E-04   -1.5124    
   5  norm          39.212        9.1413        .64009E-04   -1.4455    
   6  Prefactor     4.1980        8.7712        .19669E-03   -1.5298    
   7  Prefactor     .10000E-03    8.2884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    103.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    11.459        .30618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0644        .10401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0509        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8902        .24263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.503        6.4410        .11329E-03   -1.5001    
  16  norm          8.2337        14.768        .13973E-03   -1.5134    
  17  norm          2.3560        2.9272        .13224E-03   -1.5401    
  18  norm          .10000E-03    2.3633        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          32.019        26.155        .70818E-04   -1.4576    
  20  Prefactor     .10000E-03    1.4768        .87581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8029        14.066        .15382E-03   -1.5186    
  22  norm          4.0646        10.504        .19983E-03   -1.5305    
  23  Prefactor     .10000E-03    83.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          19.053        14.459        .91776E-04   -1.4835    
  25  Prefactor     .10000E-03    3.6296        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.0156        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    56.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.9163        3.3790        .54459E-03   -1.5264    
  29  Normalizat    1.0951        .19762        .20254E-03   -.89909    
  30  Prefactor     .54176        .23017        .33493E-03   -1.1010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72456e-09
Minuit parameter uncertainties:
  1  3.63445
  2  6.36931
  3  2.21848e-06
  4  3.5155
  5  9.1416
  6  8.77386
  7  8.36383e-07
  8  0.00055928
  9  0.000712192
  10  1.43497e-07
  11  3.63463e-06
  12  7.12118e-06
  13  9.01561e-06
  14  1.00835e-06
  15  6.44134
  16  14.7747
  17  2.9274
  18  2.31595e-06
  19  26.1639
  20  1.88626e-06
  21  14.0724
  22  10.509
  23  9.38084e-05
  24  14.4621
  25  1.70917e-06
  26  5.07674e-07
  27  7.14756e-06
  28  3.37911
  29  0.197752
  30  0.230571
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.356e+00  2.927e+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.418e-01  2.306e-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.095e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291544/likelihoodResults_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.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) = 5508.24261661
delta logL = 1.05941553063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5508.20403646
delta logL = 1.09799568027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16722       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9549       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59869       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=   5508.204     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16673        1.7102        .42238E-02    .51615E-03
   2  alpha         3.9567        3.8088        .19435        .53177E-04
   3  Normalizat    1.0235        .44747E-01    .42837E-01   -.96358E-05
   4  Prefactor     .59914        .53404E-01    .72171E-01    .26790E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.166734
  alpha      = 3.95669
  Normalizat = 1.02345
  Prefactor  = 0.599139
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.204     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16673        3.4516        .19105E-04   -1.5626    
   2  alpha         3.9567        4.3485        .80660E-02    .62202    
   3  Normalizat    1.0235        .18101        .20826E-03   -.92249    
   4  Prefactor     .59914        .21204        .31949E-03   -1.0762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.60999e-10
Minuit parameter uncertainties:
  1  1.51687
  2  3.52084
  3  0.181115
  4  0.212321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291544': 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): 102
logL (Free Index) = 5508.20403092
delta logL = 1.09800121996

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.667e-01  1.517e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.957e+00  3.521e+00  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.991e-01  2.123e-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.023e+00  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 197.632 32.355
Photon Index (Free Index): 3.96 +/- 3.52
Photon Flux (Free Index): 7.16e-08 +/- 5.57e-08
Energy Flux (Free Index): 1.13e-05 +/- 7.94e-06

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/291544/cmap_HighResolution_459648001_459907201_4FGL_J1310.5+3221_daily_bin850.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='1.10e+00', photon_flux2='7.16e-08', job_status='DONE', time_completed='2021-09-07 01:49:23.617876', photon_index_error2='3.52', photon_index2='3.96', ts='0.99', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='8.05e-08', energy_flux_error2='7.94e-06', EG='1.10', time_epoch_completed='1631004563.62', return_code='0', job_id='291544', GAL2='0.60', EG2='1.02', return_code2='102', photon_flux_error2='5.57e-08', ts2='3.32', photon_index='2.42' WHERE bin_id='850' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:49:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 291544: <4FGL_J1310.5+3221_daily_bin850> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin850> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:35:40 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:36:00 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:36:00 2021
Terminated at Tue Sep  7 01:49:24 2021
Results reported at Tue Sep  7 01:49:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin850 197.632 32.3547 459648001 459907201 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 :                                   779.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            824 sec.

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

