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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin276
RA = 197.632, Dec = 32.3547
tmin = 310867201, tmax = 311126401
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='287297', job_status='RUN', time_executed='2021-09-07 01:22:26.178443', time_epoch_executed='1631002946.18' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287297/ft1_4FGL_J1310.5+3221_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287297/ft2_4FGL_J1310.5+3221_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287297/ft1_4FGL_J1310.5+3221_daily_bin276.fits outfile=/scratch/kocevski/287297/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin276.fits ra=197.632 dec=32.3547 rad=12.0 tmin=310867201.0 tmax=311126401.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.58
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287297/ft1_filtered_4FGL_J1310.5+3221_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/287297/ft2_4FGL_J1310.5+3221_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/287297/ltcube_310867201_311126401_4FGL_J1310.5+3221_daily_bin276.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/287297/ft2_4FGL_J1310.5+3221_daily_bin276.fits
.....................!
real 16.55
user 16.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287297/ft1_filtered_4FGL_J1310.5+3221_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/287297/ft2_4FGL_J1310.5+3221_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/287297/ltcube_310867201_311126401_4FGL_J1310.5+3221_daily_bin276.fits outfile=/scratch/kocevski/287297/expmap_310867201_311126401_4FGL_J1310.5+3221_daily_bin276.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/287297/ltcube_310867201_311126401_4FGL_J1310.5+3221_daily_bin276.fits
.....................!
real 193.06
user 186.93
sys 5.38

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/287297/ft1_filtered_4FGL_J1310.5+3221_daily_bin276.fits scfile=/scratch/kocevski/287297/ft2_4FGL_J1310.5+3221_daily_bin276.fits outfile=/scratch/kocevski/287297/cmap_310867201_311126401_4FGL_J1310.5+3221_daily_bin276.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.78
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6288       1.0000         .10000E-03   10000.    
     5 'norm      '    .19530E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12378E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11416E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.247       1.0000         .10000E-03   10000.    
    13 'norm      '    .14206E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.565       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.818       1.0000         .10000E-03   10000.    
    17 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    32.435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59402E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.700       1.0000         .10000E-03   10000.    
    22 'norm      '    .10303E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10813E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.158       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7673       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0423       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=   5810.114     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4016 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3578        3.3323        .18796E-07    .63617E-05
   2  Prefactor     .10000E-03    1.9812       -.32333E-07** at limit **
   3  Prefactor     .10000E-03    1.0814       -.66645E-07** at limit **
   4  Prefactor     2.6316        2.8276        .10821E-06   -.43273E-04
   5  norm          .10000E-03    4.8086       -.97607E-06** at limit **
   6  Prefactor     .10000E-03    8.9775        .83883E-06** at limit **
   7  Prefactor     .10000E-03    5.8922       -.45052E-06** at limit **
   8  Prefactor     .10000E-03    46.664        .50850E-06** at limit **
   9  Prefactor     4.1919        8.5485       -.60005E-07   -.17579E-04
  10  Prefactor     .10000E-03    1.8054       -.17851E-08** at limit **
  11  norm          .10003E-03    8.3710        .26387E-06** at limit **
  12  Prefactor     16.342        28.883       -.21774E-05    .13205E-03
  13  norm          .10000E-03    2.3024       -.41267E-07** at limit **
  14  Prefactor     15.558        14.345        .25313E-07    .47904E-04
  15  norm          .10000E-03    2.0795        .10376E-07** at limit **
  16  norm          27.826        18.630       -.59985E-07   -.35644E-05
  17  norm          .10000E-03    3.9233       -.10480E-06** at limit **
  18  norm          .10000E-03    2.9722       -.32502E-07** at limit **
  19  norm          32.466        27.905        .38062E-06    .33190E-04
  20  Prefactor     .10000E-03    12.184       -.28027E-05** at limit **
  21  Prefactor     11.676        20.020        .19461E-05    .14613E-03
  22  norm          .10000E-03    9.7518       -.78833E-06** at limit **
  23  Prefactor     .10000E-03    33.618       -.20920E-05** at limit **
  24  norm          .10000E-03    6.1751        .52501E-06** at limit **
  25  Prefactor     .10000E-03    7.5013       -.66548E-06** at limit **
  26  Prefactor     .10004E-03    52.323        .48172E-05** at limit **
  27  Prefactor     11.165        113.76        .20377E-05    .67675E-05
  28  Prefactor     3.7679        4.6345       -.64125E-06   -.45669E-03
  29  Normalizat    1.1692        .19342        .53235E-06    .14153E-03
  30  Prefactor     1.0422        .21875       -.11051E-06   -.27529E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.35779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63155
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19189
  Prefactor  = 0.0001
  norm       = 0.000100026
  Prefactor  = 16.3419
  norm       = 0.0001
  Prefactor  = 15.5575
  norm       = 0.0001
  norm       = 27.8257
  norm       = 0.0001
  norm       = 0.0001
  norm       = 32.4657
  Prefactor  = 0.000100001
  Prefactor  = 11.6755
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 11.1652
  Prefactor  = 3.76789
  Normalizat = 1.16922
  Prefactor  = 1.04222
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.114     FROM HESSE     STATUS=OK           590 CALLS     4606 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3578        3.3220        .96217E-04   -1.5204    
   2  Prefactor     .10000E-03    1.9833        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0919        .77211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6316        2.7595        .12341E-03   -1.5384    
   5  norm          .10000E-03    9.4406        .27286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.792        .38459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8866        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1919        8.5188        .19677E-03   -1.5298    
  10  Prefactor     .10000E-03    1.8082        .10002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10003E-03    19.515        .31327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.342        29.596        .99365E-04   -1.4899    
  13  norm          .10000E-03    4.6980        .22252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.558        14.320        .10152E-03   -1.4919    
  15  norm          .10000E-03    2.0891        .10732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.826        18.629        .75957E-04   -1.4652    
  17  norm          .10000E-03    4.0754        .29501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9846        .12832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          32.466        27.839        .70357E-04   -1.4568    
  20  Prefactor     .10000E-03    19.423        .20385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.676        19.698        .11712E-03   -1.5024    
  22  norm          .10000E-03    9.9994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.2395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.4992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10004E-03    142.85        .52951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.165        114.40        .11993E-03   -1.5040    
  28  Prefactor     3.7679        5.1728        .95812E-03   -1.5320    
  29  Normalizat    1.1692        .23093        .23497E-03   -.87560    
  30  Prefactor     1.0422        .26110        .29514E-03   -.91335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00551e-09
Minuit parameter uncertainties:
  1  3.32212
  2  1.37151e-06
  3  1.32899e-07
  4  2.75964
  5  2.99333e-05
  6  0.000776389
  7  4.4963e-06
  8  7.64076e-05
  9  8.52125
  10  2.20633e-06
  11  0.00142273
  12  29.6222
  13  1.02956e-05
  14  14.3229
  15  2.74629e-06
  16  18.6325
  17  5.68724e-06
  18  7.7725e-07
  19  27.8502
  20  0.000320573
  21  19.709
  22  1.25636e-05
  23  8.62222e-05
  24  1.58092e-05
  25  8.46446e-06
  26  0.00466747
  27  71.6566
  28  5.17338
  29  0.231132
  30  0.261418
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  5.687e-06  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:  1.042e+00  2.614e-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.169e+00  2.311e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287297/likelihoodResults_310867201_311126401_4FGL_J1310.5+3221_daily_bin276.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) = 5810.11543888
delta logL = -0.00117147926994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5809.46698564
delta logL = 0.647281754365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10306E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1128       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=   5809.467     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      428 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10288E-01    .34265        .15540E-02    .11435E-01
   2  alpha         5.0000        4.9637        .46270    ** at limit **
   3  Normalizat    1.0768        .83582E-01    .39056E-01    .17011E-03
   4  Prefactor     1.1122        .94393E-01    .64841E-01    .76558E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0102884
  alpha      = 5
  Normalizat = 1.07679
  Prefactor  = 1.11218
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.467     FROM HESSE     STATUS=OK            35 CALLS      463 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10288E-01    .10984E-01    .69789E-04   -1.5688    
   2  alpha         5.0000        .86602        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0768        .23274        .24307E-03   -.90501    
   4  Prefactor     1.1122        .26567        .28682E-03   -.89078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56335e-11
Minuit parameter uncertainties:
  1  0.0109837
  2  0.000153468
  3  0.232957
  4  0.265986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287297': 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) = 5809.46697409
delta logL = 0.647293312403

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.029e-02  1.098e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  5.000e+00  1.535e-04  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:  1.112e+00  2.660e-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.077e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 197.632 32.355
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.86e-08 +/- 8.35e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.14e-05

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/287297/cmap_HighResolution_310867201_311126401_4FGL_J1310.5+3221_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='6.47e-01', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-09-07 01:36:38.070272', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='7.90e-08', energy_flux_error2='1.14e-05', EG='1.17', time_epoch_completed='1631003798.07', return_code='0', job_id='287297', GAL2='1.11', EG2='1.08', return_code2='0', photon_flux_error2='8.35e-08', ts2='1.42', photon_index='2.42' WHERE bin_id='276' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 287297: <4FGL_J1310.5+3221_daily_bin276> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin276> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 01:20:57 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:22:08 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:22:08 2021
Terminated at Tue Sep  7 01:36:39 2021
Results reported at Tue Sep  7 01:36:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin276 197.632 32.3547 310867201 311126401 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 :                                   845.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            942 sec.

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

