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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin24
RA = 197.632, Dec = 32.3547
tmin = 245548801, tmax = 245808001
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='285700', job_status='RUN', time_executed='2021-09-07 01:18:45.876989', time_epoch_executed='1631002725.88' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285700/ft1_4FGL_J1310.5+3221_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285700/ft2_4FGL_J1310.5+3221_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285700/ft1_4FGL_J1310.5+3221_daily_bin24.fits outfile=/scratch/kocevski/285700/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin24.fits ra=197.632 dec=32.3547 rad=12.0 tmin=245548801.0 tmax=245808001.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.50
user 1.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285700/ft1_filtered_4FGL_J1310.5+3221_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/285700/ft2_4FGL_J1310.5+3221_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/285700/ltcube_245548801_245808001_4FGL_J1310.5+3221_daily_bin24.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/285700/ft2_4FGL_J1310.5+3221_daily_bin24.fits
.....................!
real 19.88
user 19.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285700/ft1_filtered_4FGL_J1310.5+3221_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/285700/ft2_4FGL_J1310.5+3221_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/285700/ltcube_245548801_245808001_4FGL_J1310.5+3221_daily_bin24.fits outfile=/scratch/kocevski/285700/expmap_245548801_245808001_4FGL_J1310.5+3221_daily_bin24.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/285700/ltcube_245548801_245808001_4FGL_J1310.5+3221_daily_bin24.fits
.....................!
real 195.80
user 186.58
sys 5.21

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/285700/ft1_filtered_4FGL_J1310.5+3221_daily_bin24.fits scfile=/scratch/kocevski/285700/ft2_4FGL_J1310.5+3221_daily_bin24.fits outfile=/scratch/kocevski/285700/cmap_245548801_245808001_4FGL_J1310.5+3221_daily_bin24.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285700/ft1_filtered_4FGL_J1310.5+3221_daily_bin24.fits scfile=/scratch/kocevski/285700/ft2_4FGL_J1310.5+3221_daily_bin24.fits outfile=/scratch/kocevski/285700/cmap_HighResolution_245548801_245808001_4FGL_J1310.5+3221_daily_bin24.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.930       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8054       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0824       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   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 '    1.9180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6785       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8647       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.527       1.0000         .10000E-03   10000.    
    17 'norm      '    11.748       1.0000         .10000E-03   10000.    
    18 'norm      '    6.4633       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0732       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.8080       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.9716       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0883       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91938       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=   6705.628     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3321 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.934        5.3029        .27806E-07    .11671E-03
   2  Prefactor     9.8055        6.6955       -.10753E-08    .77609E-05
   3  Prefactor     .10000E-03    1.3217       -.11217E-06** at limit **
   4  Prefactor     3.0825        2.1065        .22520E-07    .21776E-04
   5  norm          1.5324        1.7797        .33746E-06   -.22527E-05
   6  Prefactor     .10000E-03    6.3492        .28339E-06** at limit **
   7  Prefactor     .10000E-03    8.2328        .33889E-06** at limit **
   8  Prefactor     .10000E-03    15.748       -.10489E-06** at limit **
   9  Prefactor     1.9182        1.6052       -.67546E-08   -.15275E-03
  10  Prefactor     .10000E-03    3.2834       -.24737E-06** at limit **
  11  norm          3.6788        4.0772        .26047E-06    .32077E-04
  12  Prefactor     .10000E-03    6.1515       -.88841E-06** at limit **
  13  norm          4.8647        3.3619       -.74903E-07   -.32064E-06
  14  Prefactor     .10000E-03    9.7355       -.18045E-05** at limit **
  15  norm          .10000E-03    1.5293       -.32934E-07** at limit **
  16  norm          13.527        11.209       -.11238E-07    .32369E-05
  17  norm          11.746        6.3708        .29141E-07    .10074E-03
  18  norm          6.4663        10.145        .10627E-06   -.90828E-05
  19  norm          5.0712        15.231        .20441E-06   -.10561E-04
  20  Prefactor     1.6483        2.9385       -.53559E-06    .16139E-05
  21  Prefactor     .10000E-03    4.0388       -.63688E-06** at limit **
  22  norm          .10000E-03    2.2086        .36417E-07** at limit **
  23  Prefactor     .10000E-03    32.562        .39008E-06** at limit **
  24  norm          6.8076        7.2538       -.17833E-07   -.27543E-04
  25  Prefactor     6.9729        12.893       -.50178E-07   -.66831E-05
  26  Prefactor     .10000E-03    10.873        .18252E-05** at limit **
  27  Prefactor     .10000E-03    65.705       -.12320E-05** at limit **
  28  Prefactor     .10000E-03    2.0591       -.24446E-06** at limit **
  29  Normalizat    1.0883        .16647        .12382E-05    .61704E-04
  30  Prefactor     .91934        .19849       -.37523E-06    .11617E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.934
  Prefactor  = 9.80548
  Prefactor  = 0.0001
  Prefactor  = 3.08253
  norm       = 1.53237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91821
  Prefactor  = 0.0001
  norm       = 3.67884
  Prefactor  = 0.0001
  norm       = 4.86468
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.5274
  norm       = 11.7457
  norm       = 6.46633
  norm       = 5.07115
  Prefactor  = 1.64827
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.8076
  Prefactor  = 6.97294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08832
  Prefactor  = 0.919336
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.628     FROM HESSE     STATUS=OK           592 CALLS     3913 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.934        5.1666        .83649E-04   -1.4750    
   2  Prefactor     9.8055        6.6956        .12797E-03   -1.5082    
   3  Prefactor     .10000E-03    2.6119        .17822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0825        2.1021        .94358E-04   -1.5357    
   5  norm          1.5324        1.7758        .11472E-03   -1.5460    
   6  Prefactor     .10000E-03    6.3993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9182        5.2964        .15004E-02   -1.5431    
  10  Prefactor     .10000E-03    3.3100        .14498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6788        4.0706        .16623E-03   -1.5324    
  12  Prefactor     .10000E-03    6.1650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8647        3.3687        .12013E-03   -1.5267    
  14  Prefactor     .10000E-03    9.8049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5338        .98857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.527        11.210        .10890E-03   -1.4972    
  17  norm          11.746        6.6275        .10043E-03   -1.5022    
  18  norm          6.4663        10.672        .78933E-03   -1.5199    
  19  norm          5.0712        15.318        .89257E-03   -1.5258    
  20  Prefactor     1.6483        2.9178        .17616E-03   -1.5451    
  21  Prefactor     .10000E-03    4.0364        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.2158        .11873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.8076        7.3149        .76887E-03   -1.5186    
  25  Prefactor     6.9729        12.973        .75970E-03   -1.5180    
  26  Prefactor     .10000E-03    10.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    65.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.6555        .22671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0883        .19514        .22606E-03   -.90128    
  30  Prefactor     .91934        .23730        .29867E-03   -.95469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07166e-10
Minuit parameter uncertainties:
  1  5.16668
  2  6.69611
  3  5.18844e-07
  4  2.10219
  5  1.77591
  6  8.82213e-06
  7  3.87841e-06
  8  5.05802e-06
  9  5.29773
  10  3.23515e-06
  11  4.07087
  12  4.35105e-06
  13  3.36881
  14  5.63569e-06
  15  4.6152e-07
  16  11.2122
  17  6.62794
  18  10.6751
  19  15.3295
  20  2.9181
  21  1.4183e-06
  22  2.5912e-06
  23  6.4489e-06
  24  7.3159
  25  12.9787
  26  1.15412e-05
  27  5.54126e-05
  28  2.46641e-05
  29  0.195268
  30  0.237571
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.175e+01  6.628e+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:  9.193e-01  2.376e-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.088e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.84
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.80e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 2.08e-05

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) = 6705.62735315
delta logL = 0.000220272313527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6705.62666132
delta logL = 0.000912100413188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.065       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91833       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=   6705.627     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.066        9.7829        .10192E-03   -.24752E-03
   2  alpha         2.4091        .40534        .54471E-02   -.47684E-04
   3  Normalizat    1.0895        .19396        .22595E-03    .76478E-04
   4  Prefactor     .91830        .23537        .29882E-03    .12456E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0659
  alpha      = 2.40908
  Normalizat = 1.08953
  Prefactor  = 0.918298
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.627     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.066        8.7978        .40767E-05   -1.5013    
   2  alpha         2.4091        .36465        .21788E-03   -.36375E-01
   3  Normalizat    1.0895        .19379        .90381E-05   -.90089    
   4  Prefactor     .91830        .23535        .11953E-04   -.95505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50668e-11
Minuit parameter uncertainties:
  1  8.79878
  2  0.365953
  3  0.193916
  4  0.235607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285700': 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) = 6705.62666125
delta logL = 0.000912176542442

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.207e+01  8.799e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.409e+00  3.660e-01  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.183e-01  2.356e-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.090e+00  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.12
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.41 +/- 0.37
Photon Flux (Free Index): 1.02e-07 +/- 4.33e-08
Energy Flux (Free Index): 3.73e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/285700/cmap_HighResolution_245548801_245808001_4FGL_J1310.5+3221_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.73e-05', photon_flux_error='5.80e-08', dlogl='9.12e-04', energy_flux='3.68e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-07 01:31:14.488208', photon_index_error2='0.37', photon_index2='2.41', ts='12.84', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.09', time_epoch_completed='1631003474.49', return_code='0', job_id='285700', GAL2='0.92', EG2='1.09', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='4.33e-08', ts2='13.12', photon_index='2.42' WHERE bin_id='24' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:31:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 285700: <4FGL_J1310.5+3221_daily_bin24> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin24> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:07 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:40 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:16:40 2021
Terminated at Tue Sep  7 01:31:15 2021
Results reported at Tue Sep  7 01:31:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin24 197.632 32.3547 245548801 245808001 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            908 sec.

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

