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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1428
RA = 197.632, Dec = 32.3547
tmin = 609465601, tmax = 609724801
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='298644', job_status='RUN', time_executed='2021-09-07 01:56:13.184360', time_epoch_executed='1631004973.18' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298644

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298644/ft1_4FGL_J1310.5+3221_daily_bin1428.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298644/ft2_4FGL_J1310.5+3221_daily_bin1428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298644/ft1_4FGL_J1310.5+3221_daily_bin1428.fits outfile=/scratch/kocevski/298644/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1428.fits ra=197.632 dec=32.3547 rad=12.0 tmin=609465601.0 tmax=609724801.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 2.90
user 2.66
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298644/ft1_filtered_4FGL_J1310.5+3221_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/298644/ft2_4FGL_J1310.5+3221_daily_bin1428.fits sctable="SC_DATA" expcube=/scratch/kocevski/298644/ltcube_609465601_609724801_4FGL_J1310.5+3221_daily_bin1428.fits outfile=/scratch/kocevski/298644/expmap_609465601_609724801_4FGL_J1310.5+3221_daily_bin1428.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/298644/ltcube_609465601_609724801_4FGL_J1310.5+3221_daily_bin1428.fits
.....................!
real 193.45
user 187.62
sys 5.34

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/298644/ft1_filtered_4FGL_J1310.5+3221_daily_bin1428.fits scfile=/scratch/kocevski/298644/ft2_4FGL_J1310.5+3221_daily_bin1428.fits outfile=/scratch/kocevski/298644/cmap_609465601_609724801_4FGL_J1310.5+3221_daily_bin1428.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.59
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6863       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8605       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3766       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2820       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2678       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.360       1.0000         .10000E-03   10000.    
    17 'norm      '    .67393       1.0000         .10000E-03   10000.    
    18 'norm      '    10.158       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .30285E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    33.916       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16474E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2285       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73721       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7438.125     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2771 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6865        2.4681       -.27557E-06   -.12246E-02
   2  Prefactor     .10000E-03    4.6975       -.22442E-06** at limit **
   3  Prefactor     .10000E-03    1.5862        .14811E-07** at limit **
   4  Prefactor     7.8604        2.9104        .14713E-06    .39635E-02
   5  norm          1.7952        3.4122        .29265E-06   -.51007E-03
   6  Prefactor     6.3765        1.1579        .10692E-07    .28652E-03
   7  Prefactor     .10012E-03    8.1866        .48779E-06** at limit **
   8  Prefactor     88.603        2.7379       -.19533E-06    .59730E-02
   9  Prefactor     .10000E-03    3.7911        .80303E-06** at limit **
  10  Prefactor     7.2820        1.2895       -.51133E-07    .14301E-02
  11  norm          .10000E-03    1.1723       -.94496E-08** at limit **
  12  Prefactor     .10000E-03    11.951        .15872E-05** at limit **
  13  norm          .10000E-03    1.1229       -.20685E-06** at limit **
  14  Prefactor     6.2673        1.0665       -.49607E-07    .15412E-03
  15  norm          .10000E-03    1.4229       -.24790E-07** at limit **
  16  norm          25.358        1.0096       -.16073E-07   -.98876E-04
  17  norm          .67266        2.8449       -.10379E-05   -.40666E-03
  18  norm          10.161        1.7841       -.16247E-06   -.74471E-03
  19  norm          .10012E-03    8.1614       -.20825E-06** at limit **
  20  Prefactor     .10000E-03    1.9426       -.19726E-07** at limit **
  21  Prefactor     .10001E-03    3.6615       -.12635E-05** at limit **
  22  norm          .10122E-03    18.089        .33006E-05** at limit **
  23  Prefactor     .14641E-03    61.803       -.72601E-05** at limit **
  24  norm          33.945        1.9322        .10526E-07   -.70726E-03
  25  Prefactor     .14837E-03    136.15       -.16257E-04** at limit **
  26  Prefactor     .10273E-03    48.590        .66055E-05** at limit **
  27  Prefactor     .10016E-03    41.028       -.20680E-05** at limit **
  28  Prefactor     .10000E-03    3.6197        .71905E-07** at limit **
  29  Normalizat    1.2285        .18076        .58403E-06    .13593E-03
  30  Prefactor     .73733        .21490       -.12200E-06    .82503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.86036
  norm       = 1.79515
  Prefactor  = 6.3765
  Prefactor  = 0.000100124
  Prefactor  = 88.6034
  Prefactor  = 0.000100001
  Prefactor  = 7.28201
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.26734
  norm       = 0.0001
  norm       = 25.358
  norm       = 0.67266
  norm       = 10.1606
  norm       = 0.000100122
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.000101219
  Prefactor  = 0.000146407
  norm       = 33.945
  Prefactor  = 0.000148374
  Prefactor  = 0.000102732
  Prefactor  = 0.000100158
  Prefactor  = 0.000100001
  Normalizat = 1.22845
  Prefactor  = 0.737326
 **********
 **   18 **HESSE 
 **********

 FCN=   7438.125     FROM HESSE     STATUS=OK           676 CALLS     3447 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6865        2.5299        .52589E-02   -1.5324    
   2  Prefactor     .10000E-03    4.5728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0430        .34176E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8604        2.9739        .35755E-02   -1.5147    
   5  norm          1.7952        3.4402        .78016E-02   -1.5440    
   6  Prefactor     6.3765        7.9876        .39737E-02   -1.5203    
   7  Prefactor     .10012E-03    8.4994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     88.603        59.248        .10670E-02   -1.3823    
   9  Prefactor     .10000E-03    3.7675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2820        6.5783        .37159E-02   -1.5168    
  11  norm          .10000E-03    1.1699        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2673        13.773        .40085E-02   -1.5207    
  15  norm          .10000E-03    1.4172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.358        16.419        .19887E-02   -1.4700    
  17  norm          .67266        4.6045        .42082E-01   -1.5544    
  18  norm          10.161        7.0683        .31431E-02   -1.5070    
  19  norm          .10012E-03    8.4641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0975        .34522E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    3.6666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10122E-03    6.9011        .99091E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .14641E-03    137.00        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          33.945        16.259        .17202E-02   -1.4542    
  25  Prefactor     .14837E-03    15.169        .10516       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10273E-03    60.458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10016E-03    41.725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.7020        .40543E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2285        .16180        .34226E-01   -.85728    
  30  Prefactor     .73733        .18706        .72686E-01   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68025e-07
Minuit parameter uncertainties:
  1  2.52998
  2  2.25968e-05
  3  5.81056e-07
  4  2.97395
  5  3.44057
  6  7.98892
  7  0.00205753
  8  59.2876
  9  0.000140235
  10  6.57896
  11  8.44905e-08
  12  0.000227516
  13  5.46974e-06
  14  13.7798
  15  6.53044e-07
  16  16.4222
  17  3.51995
  18  7.06885
  19  0.00203476
  20  1.27053e-06
  21  0.000293654
  22  0.00580143
  23  0.159839
  24  16.261
  25  0.054191
  26  0.0257287
  27  0.00513371
  28  9.68784e-05
  29  0.161861
  30  0.187223
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.727e-01  3.520e+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:  7.373e-01  1.872e-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.228e+00  1.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/298644/likelihoodResults_609465601_609724801_4FGL_J1310.5+3221_daily_bin1428.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) = 7437.83390642
delta logL = 0.291535759728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7437.8300629
delta logL = 0.29537927965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11728       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8567       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76901       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=   7437.830     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11493        1.6859        .80306E-02    .42666E-02
   2  alpha         3.8640        3.7838        .27923        .96759E-04
   3  Normalizat    1.1861        .24201E-01    .35240E-01    .45409E-05
   4  Prefactor     .76906        .29060E-01    .71300E-01    .29266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.114932
  alpha      = 3.86403
  Normalizat = 1.18613
  Prefactor  = 0.769059
 **********
 **   18 **HESSE 
 **********

 FCN=   7437.830     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11493        8.8311        .35116E-04   -1.5640    
   2  alpha         3.8640        3.8645        .14596E-01    .57712    
   3  Normalizat    1.1861        .14062        .21752E-03   -.87033    
   4  Prefactor     .76906        .16471        .31553E-03   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6415e-09
Minuit parameter uncertainties:
  1  2.01435
  2  6.58106
  3  0.140663
  4  0.164818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298644': 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) = 7437.83005737
delta logL = 0.295384805643

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.149e-01  2.014e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  3.864e+00  6.581e+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:  7.691e-01  1.648e-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.186e+00  1.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 197.632 32.355

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/298644/cmap_HighResolution_609465601_609724801_4FGL_J1310.5+3221_daily_bin1428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-07 02:10:52.100440', job_id='298644', GAL2='0.77', fit_tolerance='1e-08', EG2='1.19', EG='1.23', time_epoch_completed='1631005852.1', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.95e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1428' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 02:10:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 298644: <4FGL_J1310.5+3221_daily_bin1428> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1428> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 01:55:35 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:56: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:56:01 2021
Terminated at Tue Sep  7 02:10:52 2021
Results reported at Tue Sep  7 02:10:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1428 197.632 32.3547 609465601 609724801 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 :                                   868.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            917 sec.

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

