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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin966
RA = 197.632, Dec = 32.3547
tmin = 489715201, tmax = 489974401
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='291731', job_status='RUN', time_executed='2021-09-07 01:37:14.242749', time_epoch_executed='1631003834.24' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='966'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291731/ft1_4FGL_J1310.5+3221_daily_bin966.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291731/ft2_4FGL_J1310.5+3221_daily_bin966.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291731/ft1_4FGL_J1310.5+3221_daily_bin966.fits outfile=/scratch/kocevski/291731/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin966.fits ra=197.632 dec=32.3547 rad=12.0 tmin=489715201.0 tmax=489974401.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.17
user 3.89
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291731/ft1_filtered_4FGL_J1310.5+3221_daily_bin966.fits" evtable="EVENTS" scfile=/scratch/kocevski/291731/ft2_4FGL_J1310.5+3221_daily_bin966.fits sctable="SC_DATA" outfile=/scratch/kocevski/291731/ltcube_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.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/291731/ft2_4FGL_J1310.5+3221_daily_bin966.fits
.....................!
real 14.27
user 13.73
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291731/ft1_filtered_4FGL_J1310.5+3221_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/291731/ft2_4FGL_J1310.5+3221_daily_bin966.fits sctable="SC_DATA" expcube=/scratch/kocevski/291731/ltcube_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.fits outfile=/scratch/kocevski/291731/expmap_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.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/291731/ltcube_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.fits
.....................!
real 192.64
user 186.60
sys 4.58

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/291731/ft1_filtered_4FGL_J1310.5+3221_daily_bin966.fits scfile=/scratch/kocevski/291731/ft2_4FGL_J1310.5+3221_daily_bin966.fits outfile=/scratch/kocevski/291731/cmap_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291731/ft1_filtered_4FGL_J1310.5+3221_daily_bin966.fits scfile=/scratch/kocevski/291731/ft2_4FGL_J1310.5+3221_daily_bin966.fits outfile=/scratch/kocevski/291731/cmap_HighResolution_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.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.61
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9169       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32516       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7171       1.0000         .10000E-03   10000.    
     5 'norm      '    11.887       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36552       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8481       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8243       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.820       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5152       1.0000         .10000E-03   10000.    
    15 'norm      '    .10418E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4800       1.0000         .10000E-03   10000.    
    17 'norm      '    .11172E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4885       1.0000         .10000E-03   10000.    
    19 'norm      '    16.598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.1324       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .20006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.1394       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.354       1.0000         .10000E-03   10000.    
    27 'Prefactor '    194.78       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1035       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88878       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5649.491     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     3969 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9200        4.2231         .0000        .58439E-02
   2  Prefactor     16.872        9.1190         .0000        .18668E-03
   3  Prefactor     .32452        3.4949         .0000        .45897E-01
   4  Prefactor     1.7188        2.3919         .0000        .32389E-03
   5  norm          11.887        5.8313         .0000       -.11123E-03
   6  Prefactor     .34401        9.1865         .0000        .37546E-04
   7  Prefactor     .10000E-03    7.7995         .0000    ** at limit **
   8  Prefactor     .10006E-03    109.64         .0000    ** at limit **
   9  Prefactor     .10000E-03    2.8002         .0000    ** at limit **
  10  Prefactor     7.8570        9.3822         .0000       -.41227E-03
  11  norm          2.8191        4.4788         .0000       -.28610E-02
  12  Prefactor     35.821        30.485         .0000       -.85849E-03
  13  norm          .10000E-03    1.4574         .0000    ** at limit **
  14  Prefactor     2.4882        40.767         .0000       -.58448E-03
  15  norm          .10000E-03    3.4550         .0000    ** at limit **
  16  norm          3.4799        7.2057         .0000        .37660E-02
  17  norm          .10000E-03    3.2124         .0000    ** at limit **
  18  norm          1.4902        8.0841         .0000        .29138E-02
  19  norm          16.598        15.813         .0000       -.10777E-03
  20  Prefactor     3.3114        3.8719         .0000        .45100E-03
  21  Prefactor     .10000E-03    45.925         .0000    ** at limit **
  22  norm          8.1367        6.8355         .0000       -.28489E-03
  23  Prefactor     .10002E-03    19.213         .0000    ** at limit **
  24  norm          .10001E-03    5.6014         .0000    ** at limit **
  25  Prefactor     8.1390        12.942         .0000       -.17313E-03
  26  Prefactor     20.357        28.570         .0000       -.58491E-04
  27  Prefactor     194.78        95.652         .0000       -.19545E-02
  28  Prefactor     1.1031        3.7966         .0000        .97703E-03
  29  Normalizat    1.0559        .18979         .0000        .50361E-04
  30  Prefactor     .88904        .21716         .0000        .21046E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.92
  Prefactor  = 16.8721
  Prefactor  = 0.324519
  Prefactor  = 1.71876
  norm       = 11.8875
  Prefactor  = 0.34401
  Prefactor  = 0.000100001
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 7.85701
  norm       = 2.81911
  Prefactor  = 35.8205
  norm       = 0.0001
  Prefactor  = 2.48815
  norm       = 0.0001
  norm       = 3.47986
  norm       = 0.000100003
  norm       = 1.49025
  norm       = 16.5985
  Prefactor  = 3.31139
  Prefactor  = 0.0001
  norm       = 8.13673
  Prefactor  = 0.00010002
  norm       = 0.000100014
  Prefactor  = 8.13904
  Prefactor  = 20.3568
  Prefactor  = 194.784
  Prefactor  = 1.10306
  Normalizat = 1.05593
  Prefactor  = 0.88904
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.491     FROM HESSE     STATUS=OK           596 CALLS     4565 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9200        4.0478        .91987E-04   -1.5145    
   2  Prefactor     16.872        9.1217        .97508E-04   -1.4886    
   3  Prefactor     .32452        3.2798        .11443E-02   -1.5594    
   4  Prefactor     1.7188        2.3635        .12617E-03   -1.5446    
   5  norm          11.887        5.8282        .11619E-03   -1.5018    
   6  Prefactor     .34401        73.224        .41956E-02   -1.5591    
   7  Prefactor     .10000E-03    7.8022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    110.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8065        .12283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8570        9.0989        .14313E-03   -1.5147    
  11  norm          2.8191        4.4358        .18277E-03   -1.5372    
  12  Prefactor     35.821        30.002        .66960E-04   -1.4510    
  13  norm          .10000E-03    1.4641        .88593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4882        37.809        .25762E-03   -1.5392    
  15  norm          .10000E-03    3.4738        .13587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4799        7.1892        .10838E-02   -1.5335    
  17  norm          .10000E-03    9.4633        .21500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4902        6.2444        .35111E-03   -1.5464    
  19  norm          16.598        15.811        .98309E-04   -1.4893    
  20  Prefactor     3.3114        3.7910        .14421E-03   -1.5344    
  21  Prefactor     .10000E-03    46.707        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.1367        6.6124        .14059E-03   -1.5137    
  23  Prefactor     .10002E-03    19.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    16.273        .33318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.1390        12.917        .14053E-03   -1.5137    
  26  Prefactor     20.357        28.593        .88780E-04   -1.4805    
  27  Prefactor     194.78        96.004        .14472E-03   -1.2908    
  28  Prefactor     1.1031        3.7655        .25689E-03   -1.5498    
  29  Normalizat    1.0559        .22407        .23346E-03   -.91180    
  30  Prefactor     .88904        .25641        .30137E-03   -.96525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18204e-08
Minuit parameter uncertainties:
  1  4.04794
  2  9.12248
  3  2.06319
  4  2.36363
  5  5.8285
  6  10.0489
  7  0.000146327
  8  0.0051982
  9  1.9377e-06
  10  9.10051
  11  4.43634
  12  30.0146
  13  3.15957e-07
  14  19.4127
  15  1.42852e-05
  16  7.19101
  17  0.000309602
  18  6.10194
  19  15.8148
  20  3.79129
  21  0.000200888
  22  6.61302
  23  0.00122646
  24  0.000946148
  25  12.9214
  26  28.612
  27  96.0815
  28  3.76629
  29  0.224275
  30  0.256754
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  3.096e-04  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.890e-01  2.568e-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.056e+00  2.243e-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: 8.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291731/likelihoodResults_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.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) = 5649.49162382
delta logL = -0.000504875350998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5649.49111907
delta logL = -1.29592990561e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4396       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88906       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=   5649.491     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      228 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.903        .62430E-01** at limit **
   2  alpha         2.4561        2.9657        .41167       -.99512E-05
   3  Normalizat    1.0559        .11952E-01    .40174E-01    .32230E-03
   4  Prefactor     .88904        .14342E-01    .68125E-01    .19665E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 2.45612
  Normalizat = 1.05593
  Prefactor  = 0.88904
 **********
 **   18 **HESSE 
 **********

 FCN=   5649.491     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.836        .20824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4561        3.7077        .50000       -.17555E-01
   3  Normalizat    1.0559        .20710        .23346E-03   -.91180    
   4  Prefactor     .88904        .24823        .30137E-03   -.96525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47526e-10
Minuit parameter uncertainties:
  1  0.000637784
  2  4.33387
  3  0.207262
  4  0.248544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291731': 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) = 5649.49111883
delta logL = 1.13664100354e-07

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  6.378e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.456e+00  4.334e+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:  8.890e-01  2.485e-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.056e+00  2.073e-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/291731/cmap_HighResolution_489715201_489974401_4FGL_J1310.5+3221_daily_bin966.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', job_status='DONE', photon_flux_upper_limit='8.54e-08', time_completed='2021-09-07 01:51:03.042131', job_id='291731', GAL2='0.89', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631004663.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='966' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 291731: <4FGL_J1310.5+3221_daily_bin966> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin966> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:35:52 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:37:01 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:37:01 2021
Terminated at Tue Sep  7 01:51:03 2021
Results reported at Tue Sep  7 01:51:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin966 197.632 32.3547 489715201 489974401 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 :                                   822.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            911 sec.

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

