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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin75
RA = 197.632, Dec = 32.3547
tmin = 258768001, tmax = 259027201
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='286991', job_status='RUN', time_executed='2021-09-07 01:20:47.746338', time_epoch_executed='1631002847.75' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286991

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286991/ft1_4FGL_J1310.5+3221_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286991/ft2_4FGL_J1310.5+3221_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286991/ft1_4FGL_J1310.5+3221_daily_bin75.fits outfile=/scratch/kocevski/286991/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin75.fits ra=197.632 dec=32.3547 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.18
user 0.98
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286991/ft2_4FGL_J1310.5+3221_daily_bin75.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/286991/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/286991/ft1_filtered_4FGL_J1310.5+3221_daily_bin75.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286991/ft1_filtered_4FGL_J1310.5+3221_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/286991/ft2_4FGL_J1310.5+3221_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/286991/ltcube_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.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/286991/ft2_4FGL_J1310.5+3221_daily_bin75.fits
.....................!
real 13.35
user 12.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286991/ft1_filtered_4FGL_J1310.5+3221_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/286991/ft2_4FGL_J1310.5+3221_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/286991/ltcube_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.fits outfile=/scratch/kocevski/286991/expmap_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.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/286991/ltcube_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.fits
.....................!
real 193.75
user 189.25
sys 3.92

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/286991/ft1_filtered_4FGL_J1310.5+3221_daily_bin75.fits scfile=/scratch/kocevski/286991/ft2_4FGL_J1310.5+3221_daily_bin75.fits outfile=/scratch/kocevski/286991/cmap_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.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.71
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286991/ft1_filtered_4FGL_J1310.5+3221_daily_bin75.fits scfile=/scratch/kocevski/286991/ft2_4FGL_J1310.5+3221_daily_bin75.fits outfile=/scratch/kocevski/286991/cmap_HighResolution_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4344       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5473       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4000       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.581       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5477       1.0000         .10000E-03   10000.    
    18 'norm      '    10.581       1.0000         .10000E-03   10000.    
    19 'norm      '    39.029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16498E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8068       1.0000         .10000E-03   10000.    
    22 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    18.238       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.824       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    102.04       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83618       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=   3397.606     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3888 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9081        3.6390        .10918E-06    .59887E-04
   2  Prefactor     .10000E-03    2.2457       -.94760E-08** at limit **
   3  Prefactor     .10000E-03    1.4219       -.12262E-07** at limit **
   4  Prefactor     3.4344        2.8739       -.79533E-07   -.33295E-04
   5  norm          .10000E-03    4.4328        .91024E-06** at limit **
   6  Prefactor     .10000E-03    4.4665       -.15715E-05** at limit **
   7  Prefactor     5.5924        14.532        .60608E-07   -.10058E-04
   8  Prefactor     .10000E-03    83.062       -.52677E-06** at limit **
   9  Prefactor     .10000E-03    3.8079       -.70856E-06** at limit **
  10  Prefactor     4.5468        7.5094       -.18326E-06   -.61833E-04
  11  norm          .10000E-03    2.2591        .12231E-08** at limit **
  12  Prefactor     .10000E-03    52.910        .11942E-05** at limit **
  13  norm          4.5189        4.5405        .15512E-05   -.15689E-02
  14  Prefactor     3.3991        28.075       -.18949E-06   -.18405E-04
  15  norm          .10000E-03    3.4026        .10189E-06** at limit **
  16  norm          21.582        19.587        .60949E-07    .96701E-05
  17  norm          2.5469        8.1174       -.16763E-05   -.41996E-03
  18  norm          10.582        12.700       -.35736E-06   -.28045E-03
  19  norm          39.029        27.671       -.26797E-06    .70165E-05
  20  Prefactor     .10000E-03    5.4280       -.83725E-07** at limit **
  21  Prefactor     4.8325        32.793        .32831E-05    .59304E-04
  22  norm          .10000E-03    4.0653        .11962E-05** at limit **
  23  Prefactor     .10000E-03    28.083       -.41173E-06** at limit **
  24  norm          18.238        11.762       -.96153E-07   -.24295E-04
  25  Prefactor     20.823        24.331       -.10876E-05   -.49913E-04
  26  Prefactor     .10000E-03    17.544        .12730E-06** at limit **
  27  Prefactor     102.02        96.842       -.97410E-05   -.19249E-03
  28  Prefactor     .10000E-03    1.9859        .18442E-07** at limit **
  29  Normalizat    1.0236        .22349        .18788E-05   -.71301E-04
  30  Prefactor     .83586        .25673       -.14789E-05    .55872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43437
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.59244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54683
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.51886
  Prefactor  = 3.39912
  norm       = 0.0001
  norm       = 21.5819
  norm       = 2.5469
  norm       = 10.5817
  norm       = 39.0292
  Prefactor  = 0.0001
  Prefactor  = 4.83249
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.2382
  Prefactor  = 20.8229
  Prefactor  = 0.0001
  Prefactor  = 102.018
  Prefactor  = 0.0001
  Normalizat = 1.02359
  Prefactor  = 0.835864
 **********
 **   18 **HESSE 
 **********

 FCN=   3397.606     FROM HESSE     STATUS=OK           588 CALLS     4476 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9081        3.6200        .10278E-03   -1.5313    
   2  Prefactor     .10000E-03    2.2462        .85312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4252        .67622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4344        2.8725        .86690E-04   -1.5337    
   5  norm          .10000E-03    4.5978        .23948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4999        .12068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5924        14.520        .16989E-03   -1.5235    
   8  Prefactor     .10000E-03    83.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8244        .11120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5468        7.4117        .17868E-03   -1.5281    
  11  norm          .10000E-03    2.2750        .85536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5189        6.3584        .81778E-03   -1.5283    
  14  Prefactor     3.3991        27.368        .21941E-03   -1.5339    
  15  norm          .10000E-03    3.4147        .10492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.582        19.593        .86220E-04   -1.4779    
  17  norm          2.5469        7.9734        .18693E-03   -1.5389    
  18  norm          10.582        12.514        .12317E-03   -1.5057    
  19  norm          39.029        27.747        .64158E-04   -1.4458    
  20  Prefactor     .10000E-03    8.4563        .22686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8325        26.531        .18350E-03   -1.5268    
  22  norm          .10000E-03    4.0814        .11484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          18.238        11.764        .93784E-04   -1.4854    
  25  Prefactor     20.823        24.382        .87772E-04   -1.4795    
  26  Prefactor     .10000E-03    17.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     102.02        99.859        .39802E-04   -1.3684    
  28  Prefactor     .10000E-03    1.9969        .80198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0236        .26891        .21663E-03   -.92244    
  30  Prefactor     .83586        .30553        .29048E-03   -.98420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17916e-09
Minuit parameter uncertainties:
  1  3.62021
  2  8.48458e-07
  3  2.26582e-06
  4  2.87262
  5  2.79333e-05
  6  6.7675e-05
  7  14.5287
  8  0.00011315
  9  3.076e-05
  10  7.41319
  11  2.87745e-06
  12  0.000349675
  13  6.35931
  14  19.3018
  15  7.52729e-06
  16  19.5989
  17  7.97674
  18  12.5173
  19  27.7559
  20  2.98232e-05
  21  22.6614
  22  4.43043e-05
  23  4.15967e-05
  24  11.7659
  25  24.3933
  26  1.11123e-05
  27  100.024
  28  1.1317e-06
  29  0.269272
  30  0.306154
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.547e+00  7.977e+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:  8.359e-01  3.062e-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.024e+00  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286991/likelihoodResults_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.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) = 3396.71161929
delta logL = 0.894868865957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3396.54117434
delta logL = 1.06531381522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12563E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .91348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93047       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=   3396.541     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      351 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12557E-01    .34874        .90857E-03   -.49497E-02
   2  alpha         5.0000        4.0396        .46334    ** at limit **
   3  Normalizat    .91379        .16400        .45074E-01   -.41555E-04
   4  Prefactor     .93004        .19808        .45392E-01   -.11520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0125568
  alpha      = 5
  Normalizat = 0.913792
  Prefactor  = 0.930045
 **********
 **   18 **HESSE 
 **********

 FCN=   3396.541     FROM HESSE     STATUS=OK            37 CALLS      388 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12557E-01    .10591E-01    .46956E-05   -1.5686    
   2  alpha         5.0000        .50517        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .91379        .26206        .22727E-03   -.95977    
   4  Prefactor     .93004        .31086        .27680E-03   -.95099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22457e-11
Minuit parameter uncertainties:
  1  0.0105912
  2  6.64112e-07
  3  0.262427
  4  0.311458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286991': 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) = 3396.54117303
delta logL = 1.06531513268

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.256e-02  1.059e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  5.000e+00  6.641e-07  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:  9.300e-01  3.115e-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:  9.138e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 197.632 32.355
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.59e-08 +/- 8.05e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.10e-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/286991/cmap_HighResolution_258768001_259027201_4FGL_J1310.5+3221_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='1.07e+00', photon_flux2='9.59e-08', job_status='DONE', time_completed='2021-09-07 01:31:10.910262', photon_index_error2='0.00', photon_index2='5.00', ts='0.25', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.10e-05', EG='1.02', time_epoch_completed='1631003470.91', return_code='0', job_id='286991', GAL2='0.93', EG2='0.91', return_code2='0', photon_flux_error2='8.05e-08', ts2='2.58', photon_index='2.42' WHERE bin_id='75' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:31:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 286991: <4FGL_J1310.5+3221_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin75 197.632 32.3547 258768001 259027201 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 :                                   620.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            640 sec.

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

