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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1290
RA = 197.632, Dec = 32.3547
tmin = 573696001, tmax = 573955201
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='293664', job_status='RUN', time_executed='2021-09-07 01:44:25.688294', time_epoch_executed='1631004265.69' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293664

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293664/ft1_4FGL_J1310.5+3221_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293664/ft2_4FGL_J1310.5+3221_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293664/ft1_4FGL_J1310.5+3221_daily_bin1290.fits outfile=/scratch/kocevski/293664/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1290.fits ra=197.632 dec=32.3547 rad=12.0 tmin=573696001.0 tmax=573955201.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.77
user 4.24
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293664/ft1_filtered_4FGL_J1310.5+3221_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/293664/ft2_4FGL_J1310.5+3221_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/293664/ltcube_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.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/293664/ft2_4FGL_J1310.5+3221_daily_bin1290.fits
.....................!
real 15.87
user 15.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293664/ft1_filtered_4FGL_J1310.5+3221_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/293664/ft2_4FGL_J1310.5+3221_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/293664/ltcube_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.fits outfile=/scratch/kocevski/293664/expmap_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.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/293664/ltcube_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.fits
.....................!
real 194.06
user 186.89
sys 4.66

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/293664/ft1_filtered_4FGL_J1310.5+3221_daily_bin1290.fits scfile=/scratch/kocevski/293664/ft2_4FGL_J1310.5+3221_daily_bin1290.fits outfile=/scratch/kocevski/293664/cmap_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293664/ft1_filtered_4FGL_J1310.5+3221_daily_bin1290.fits scfile=/scratch/kocevski/293664/ft2_4FGL_J1310.5+3221_daily_bin1290.fits outfile=/scratch/kocevski/293664/cmap_HighResolution_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.322       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54668E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17759       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11901E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.984       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.343       1.0000         .10000E-03   10000.    
    15 'norm      '    8.2316       1.0000         .10000E-03   10000.    
    16 'norm      '    30.914       1.0000         .10000E-03   10000.    
    17 'norm      '    .31959       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    22.724       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.708       1.0000         .10000E-03   10000.    
    22 'norm      '    8.0784       1.0000         .10000E-03   10000.    
    23 'Prefactor '    221.61       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7675       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    92.023       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.1457       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1607       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .49917       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=   4940.642     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     3393 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.314        5.2728        .61148E-07    .20056E-03
   2  Prefactor     .10000E-03    8.4021        .29818E-06** at limit **
   3  Prefactor     .18560        2.0808        .92773E-07   -.70340E-04
   4  Prefactor     .10000E-03    2.1772       -.90894E-07** at limit **
   5  norm          5.9293        3.8613       -.84166E-08    .24669E-04
   6  Prefactor     2.5340        8.5759        .32933E-06   -.22563E-05
   7  Prefactor     14.984        16.766        .15736E-06    .25252E-06
   8  Prefactor     .10000E-03    99.420       -.14241E-06** at limit **
   9  Prefactor     4.6711        6.7710        .40243E-07   -.63526E-05
  10  Prefactor     .10000E-03    2.6624       -.12338E-06** at limit **
  11  norm          .10000E-03    1.6524       -.75944E-07** at limit **
  12  Prefactor     .10000E-03    12.352       -.56786E-06** at limit **
  13  norm          1.9206        4.4224        .25231E-06   -.61728E-04
  14  Prefactor     13.343        12.724        .14548E-06   -.50456E-04
  15  norm          8.2326        6.3161        .14171E-06   -.26533E-03
  16  norm          30.915        17.926        .12465E-06    .83701E-07
  17  norm          .36476        2.9264       -.48291E-06   -.63339E-04
  18  norm          .10000E-03    3.6955       -.98247E-09** at limit **
  19  norm          22.726        20.862       -.17654E-07   -.10630E-04
  20  Prefactor     .10000E-03    2.0589        .15270E-05** at limit **
  21  Prefactor     12.683        18.429       -.11643E-05   -.45032E-03
  22  norm          8.0787        6.3303       -.82960E-06   -.16774E-04
  23  Prefactor     221.66        84.416       -.17567E-05   -.18766E-04
  24  norm          1.7676        6.3863        .83030E-05   -.35439E-03
  25  Prefactor     .10000E-03    13.561        .39018E-06** at limit **
  26  Prefactor     .10000E-03    10.612        .70945E-07** at limit **
  27  Prefactor     92.025        68.518        .47807E-06   -.27498E-06
  28  Prefactor     6.1470        5.4686        .29364E-06   -.11589E-03
  29  Normalizat    1.1606        .19015       -.17727E-05   -.42130E-03
  30  Prefactor     .49924        .21803        .14928E-05   -.41190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3142
  Prefactor  = 0.0001
  Prefactor  = 0.185598
  Prefactor  = 0.0001
  norm       = 5.92927
  Prefactor  = 2.53403
  Prefactor  = 14.9845
  Prefactor  = 0.0001
  Prefactor  = 4.67115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92062
  Prefactor  = 13.3433
  norm       = 8.23258
  norm       = 30.9152
  norm       = 0.364765
  norm       = 0.0001
  norm       = 22.7261
  Prefactor  = 0.000100003
  Prefactor  = 12.683
  norm       = 8.07869
  Prefactor  = 221.662
  norm       = 1.76756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 92.0252
  Prefactor  = 6.14701
  Normalizat = 1.16056
  Prefactor  = 0.499239
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.642     FROM HESSE     STATUS=OK           594 CALLS     3987 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.314        5.7923        .83774E-04   -1.4951    
   2  Prefactor     .10000E-03    44.796        .38985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .18560        13.364        .17180E-02   -1.5622    
   4  Prefactor     .10000E-03    2.2657        .20173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9293        3.8627        .10864E-03   -1.5221    
   6  Prefactor     2.5340        8.5190        .25641E-03   -1.5390    
   7  Prefactor     14.984        16.762        .10347E-03   -1.4934    
   8  Prefactor     .10000E-03    99.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6711        6.7520        .18622E-03   -1.5276    
  10  Prefactor     .10000E-03    2.6729        .11197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6596        .88208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9206        4.3864        .20947E-03   -1.5431    
  14  Prefactor     13.343        12.726        .10966E-03   -1.4977    
  15  norm          8.2326        6.2905        .13974E-03   -1.5134    
  16  norm          30.915        17.920        .72063E-04   -1.4595    
  17  norm          .36476        13.275        .19988E-02   -1.5587    
  18  norm          .10000E-03    3.7098        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          22.726        20.831        .84026E-04   -1.4754    
  20  Prefactor     .10000E-03    2.2041        .20115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.683        18.740        .11236E-03   -1.4996    
  22  norm          8.0787        6.3329        .14106E-03   -1.5139    
  23  Prefactor     221.66        84.098        .13586E-03   -1.2719    
  24  norm          1.7676        6.4501        .15752E-02   -1.5442    
  25  Prefactor     .10000E-03    13.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     92.025        68.708        .41892E-04   -1.3786    
  28  Prefactor     6.1470        5.4822        .14466E-03   -1.5212    
  29  Normalizat    1.1606        .21555        .20564E-03   -.87831    
  30  Prefactor     .49924        .24458        .35521E-03   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60137e-08
Minuit parameter uncertainties:
  1  5.79256
  2  0.000173555
  3  3.14965
  4  9.397e-06
  5  3.86286
  6  8.52311
  7  16.7675
  8  0.000335264
  9  6.75311
  10  1.00514e-05
  11  4.85167e-06
  12  2.35783e-05
  13  4.38717
  14  12.7282
  15  6.29099
  16  17.9236
  17  4.4015
  18  6.13185e-06
  19  20.8378
  20  0.000149394
  21  18.7484
  22  6.3334
  23  84.1434
  24  6.45262
  25  1.75157e-05
  26  3.55367e-05
  27  68.7677
  28  5.48268
  29  0.215717
  30  0.245102
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  3.648e-01  4.401e+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:  4.992e-01  2.451e-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.161e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293664/likelihoodResults_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.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) = 4940.45992353
delta logL = 0.182267495697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4940.42326035
delta logL = 0.218930678158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13305       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7005       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51981       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=   4940.423     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13174        3.5891        .88366E-02    .63301E-03
   2  alpha         3.7037        4.0170        .26679        .25168E-04
   3  Normalizat    1.1311        .29114E-01    .36866E-01   -.49574E-04
   4  Prefactor     .51946        .34400E-01    .78705E-01   -.85426E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.131743
  alpha      = 3.70371
  Normalizat = 1.13106
  Prefactor  = 0.519465
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.423     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13174        16.513        .40050E-03   -1.5635    
   2  alpha         3.7037        3.0371        .13993E-01    .50235    
   3  Normalizat    1.1311        .13224        .20780E-03   -.88761    
   4  Prefactor     .51946        .15578        .34858E-03   -1.1109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.64344e-11
Minuit parameter uncertainties:
  1  2.94959
  2  8.09791
  3  0.132279
  4  0.155907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293664': 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) = 4940.42325787
delta logL = 0.218933154421

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.317e-01  2.950e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.704e+00  8.098e+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.195e-01  1.559e-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.131e+00  1.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/293664/cmap_HighResolution_573696001_573955201_4FGL_J1310.5+3221_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-07 01:56:54.278359', job_id='293664', GAL2='0.52', fit_tolerance='1e-08', EG2='1.13', EG='1.16', time_epoch_completed='1631005014.28', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='2.19e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1290' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 293664: <4FGL_J1310.5+3221_daily_bin1290> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1290> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:48 2021
Job was executed on host(s) <bullet0005>, 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:56:55 2021
Results reported at Tue Sep  7 01:56:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1290 197.632 32.3547 573696001 573955201 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            967 sec.

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

