/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 7 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 = 7667
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin191
RA = 197.632, Dec = 32.3547
tmin = 288835201, tmax = 289094401
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='287170', job_status='RUN', time_executed='2021-09-07 01:21:51.246971', time_epoch_executed='1631002911.25' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287170

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287170/ft1_4FGL_J1310.5+3221_daily_bin191.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287170/ft2_4FGL_J1310.5+3221_daily_bin191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287170/ft1_4FGL_J1310.5+3221_daily_bin191.fits outfile=/scratch/kocevski/287170/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin191.fits ra=197.632 dec=32.3547 rad=12.0 tmin=288835201.0 tmax=289094401.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.74
user 3.46
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287170/ft1_filtered_4FGL_J1310.5+3221_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/287170/ft2_4FGL_J1310.5+3221_daily_bin191.fits sctable="SC_DATA" expcube=/scratch/kocevski/287170/ltcube_288835201_289094401_4FGL_J1310.5+3221_daily_bin191.fits outfile=/scratch/kocevski/287170/expmap_288835201_289094401_4FGL_J1310.5+3221_daily_bin191.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/287170/ltcube_288835201_289094401_4FGL_J1310.5+3221_daily_bin191.fits
.....................!
real 191.84
user 186.25
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/287170/ft1_filtered_4FGL_J1310.5+3221_daily_bin191.fits scfile=/scratch/kocevski/287170/ft2_4FGL_J1310.5+3221_daily_bin191.fits outfile=/scratch/kocevski/287170/cmap_288835201_289094401_4FGL_J1310.5+3221_daily_bin191.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287170/ft1_filtered_4FGL_J1310.5+3221_daily_bin191.fits scfile=/scratch/kocevski/287170/ft2_4FGL_J1310.5+3221_daily_bin191.fits outfile=/scratch/kocevski/287170/cmap_HighResolution_288835201_289094401_4FGL_J1310.5+3221_daily_bin191.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.62
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11471E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45789E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.6541       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.920       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6379       1.0000         .10000E-03   10000.    
    16 'norm      '    21.228       1.0000         .10000E-03   10000.    
    17 'norm      '    .10664E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3763       1.0000         .10000E-03   10000.    
    19 'norm      '    16.773       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7433       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .49948E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    43.293       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1854       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64633       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=   5322.409     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3413 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2126        .24486E-08** at limit **
   2  Prefactor     7.6025        9.4219        .88426E-06    .14314E-04
   3  Prefactor     1.0923        1.1404       -.48782E-08    .77471E-05
   4  Prefactor     .10000E-03    1.3067       -.53015E-06** at limit **
   5  norm          1.9569        3.5260        .10362E-06    .94964E-05
   6  Prefactor     24.997        11.894        .28488E-07    .10140E-04
   7  Prefactor     .10000E-03    8.1999       -.68645E-06** at limit **
   8  Prefactor     .10000E-03    39.706        .27680E-05** at limit **
   9  Prefactor     .10369E-03    8.0296       -.46624E-05** at limit **
  10  Prefactor     .10000E-03    1.8653       -.52461E-09** at limit **
  11  norm          9.6527        6.3298        .72925E-06    .56994E-03
  12  Prefactor     .10000E-03    74.802       -.22211E-05** at limit **
  13  norm          2.3919        3.9418        .33700E-05    .13681E-03
  14  Prefactor     10.920        12.353        .25456E-06    .12251E-03
  15  norm          6.6378        5.1335        .12416E-06    .27414E-03
  16  norm          21.226        17.750        .16523E-06    .81970E-05
  17  norm          .10000E-03    3.6143        .13121E-05** at limit **
  18  norm          3.3659        5.4815        .35890E-07   -.12691E-03
  19  norm          16.770        16.220        .12516E-06    .13351E-03
  20  Prefactor     3.7422        3.7220        .28899E-06    .37670E-03
  21  Prefactor     .10000E-03    6.0559        .86019E-07** at limit **
  22  norm          .10000E-03    8.2594        .50627E-05** at limit **
  23  Prefactor     .10000E-03    29.908       -.19438E-05** at limit **
  24  norm          43.286        13.829        .69075E-06    .68760E-03
  25  Prefactor     .10000E-03    8.4883        .70057E-06** at limit **
  26  Prefactor     .10000E-03    22.156        .42657E-06** at limit **
  27  Prefactor     .10000E-03    34.016       -.23770E-06** at limit **
  28  Prefactor     .10000E-03    2.2430       -.23337E-07** at limit **
  29  Normalizat    1.1853        .18560       -.52387E-06    .29151E-03
  30  Prefactor     .64636        .21581       -.84597E-06    .21583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.60247
  Prefactor  = 1.09233
  Prefactor  = 0.0001
  norm       = 1.95691
  Prefactor  = 24.9967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103693
  Prefactor  = 0.0001
  norm       = 9.65275
  Prefactor  = 0.0001
  norm       = 2.39194
  Prefactor  = 10.9201
  norm       = 6.63782
  norm       = 21.2265
  norm       = 0.000100001
  norm       = 3.36588
  norm       = 16.77
  Prefactor  = 3.74216
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 43.2856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18529
  Prefactor  = 0.646357
 **********
 **   18 **HESSE 
 **********

 FCN=   5322.409     FROM HESSE     STATUS=OK           592 CALLS     4005 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2340        .78404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6025        9.4631        .72727E-03   -1.5156    
   3  Prefactor     1.0923        1.1568        .77562E-04   -1.5499    
   4  Prefactor     .10000E-03    5.0919        .16024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9569        3.5007        .17817E-03   -1.5428    
   6  Prefactor     24.997        11.867        .80125E-04   -1.4708    
   7  Prefactor     .10000E-03    8.2020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10369E-03    5.4891        .53366E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8665        .97299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.6527        6.3169        .64487E-03   -1.5086    
  12  Prefactor     .10000E-03    75.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3919        4.4208        .98265E-03   -1.5399    
  14  Prefactor     10.920        12.357        .12124E-03   -1.5047    
  15  norm          6.6378        5.1273        .13815E-03   -1.5193    
  16  norm          21.226        17.749        .86934E-04   -1.4786    
  17  norm          .10000E-03    5.4529        .23277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3659        4.8923        .18782E-03   -1.5341    
  19  norm          16.770        16.181        .97796E-04   -1.4889    
  20  Prefactor     3.7422        3.6912        .13009E-03   -1.5321    
  21  Prefactor     .10000E-03    6.0610        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    14.630        .33221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          43.286        13.253        .60929E-04   -1.4391    
  25  Prefactor     .10000E-03    8.4947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    34.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.2712        .10665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1853        .21415        .21465E-03   -.87059    
  30  Prefactor     .64636        .24786        .32969E-03   -1.0567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19981e-09
Minuit parameter uncertainties:
  1  3.17893e-07
  2  9.46492
  3  1.15683
  4  2.23585e-05
  5  3.50104
  6  11.8679
  7  4.71519e-06
  8  4.12319e-05
  9  0.00900536
  10  1.71022e-07
  11  6.31734
  12  0.000120724
  13  4.42141
  14  12.3598
  15  5.12768
  16  17.7533
  17  0.00011084
  18  4.89286
  19  16.1851
  20  3.69144
  21  8.6734e-06
  22  0.000385617
  23  3.62567e-06
  24  13.254
  25  1.74917e-05
  26  6.24316e-05
  27  1.12702e-06
  28  1.58687e-06
  29  0.214305
  30  0.24828
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  1.108e-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:  6.464e-01  2.483e-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.185e+00  2.143e-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: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287170/likelihoodResults_288835201_289094401_4FGL_J1310.5+3221_daily_bin191.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) = 5322.41013205
delta logL = -0.000875562093825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5322.40925498
delta logL = 1.50936648424e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3533       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5322.306     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      328 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8306        4.7070        .27242E-02    .22200E-02
   2  alpha         1.2351        1.0450        .16497       -.37122E-04
   3  Normalizat    1.1863        .20729        .21465E-03    .12858E-03
   4  Prefactor     .64278        .24250        .32969E-03    .59448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83064
  alpha      = 1.23509
  Normalizat = 1.18632
  Prefactor  = 0.642776
 **********
 **   18 **HESSE 
 **********

 FCN=   5322.306     FROM HESSE     STATUS=OK            27 CALLS      355 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8306        4.9405        .54484E-03   -1.5437    
   2  alpha         1.2351        1.1101        .35988E-02   -.53050    
   3  Normalizat    1.1863        .20744        .42930E-04   -.87027    
   4  Prefactor     .64278        .24269        .13188E-04   -1.0581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99573e-11
Minuit parameter uncertainties:
  1  4.94158
  2  1.16609
  3  0.207586
  4  0.243092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287170': 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) = 5322.30604127
delta logL = 0.103215227242

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.831e+00  4.942e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.235e+00  1.166e+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:  6.428e-01  2.431e-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  2.076e-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/287170/cmap_HighResolution_288835201_289094401_4FGL_J1310.5+3221_daily_bin191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-09-07 01:34:33.942369', job_id='287170', GAL2='0.64', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631003673.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.03e-01', ts2='0.21', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='191' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:34:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 287170: <4FGL_J1310.5+3221_daily_bin191> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin191> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 01:20:46 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:21:32 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:21:32 2021
Terminated at Tue Sep  7 01:34:34 2021
Results reported at Tue Sep  7 01:34:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin191 197.632 32.3547 288835201 289094401 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 :                                   755.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            828 sec.

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

