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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin905
RA = 197.632, Dec = 32.3547
tmin = 473904001, tmax = 474163201
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='291635', job_status='RUN', time_executed='2021-09-07 01:36:39.597945', time_epoch_executed='1631003799.6' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291635

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291635/ft1_4FGL_J1310.5+3221_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291635/ft2_4FGL_J1310.5+3221_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291635/ft1_4FGL_J1310.5+3221_daily_bin905.fits outfile=/scratch/kocevski/291635/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin905.fits ra=197.632 dec=32.3547 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.12
user 4.86
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291635/ft1_filtered_4FGL_J1310.5+3221_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/291635/ft2_4FGL_J1310.5+3221_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/291635/ltcube_473904001_474163201_4FGL_J1310.5+3221_daily_bin905.fits outfile=/scratch/kocevski/291635/expmap_473904001_474163201_4FGL_J1310.5+3221_daily_bin905.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/291635/ltcube_473904001_474163201_4FGL_J1310.5+3221_daily_bin905.fits
.....................!
real 192.83
user 188.02
sys 4.34

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1310.5+3221 @ 197.632 32.3547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/291635/ft1_filtered_4FGL_J1310.5+3221_daily_bin905.fits scfile=/scratch/kocevski/291635/ft2_4FGL_J1310.5+3221_daily_bin905.fits outfile=/scratch/kocevski/291635/cmap_473904001_474163201_4FGL_J1310.5+3221_daily_bin905.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6150       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3961       1.0000         .10000E-03   10000.    
     5 'norm      '    10.055       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.343       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2049       1.0000         .10000E-03   10000.    
    16 'norm      '    14.129       1.0000         .10000E-03   10000.    
    17 'norm      '    .11345E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5701       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.612       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    83.758       1.0000         .10000E-03   10000.    
    24 'norm      '    4.2856       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.1836       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.2682       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75895       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2972       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=   3793.395     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3880 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6150        2.5399        .59477E-07   -.30734E-07
   2  Prefactor     .10000E-03    2.8090        .56723E-08** at limit **
   3  Prefactor     4.2343        3.1129       -.27673E-07    .76906E-04
   4  Prefactor     3.3960        2.7385        .12361E-07    .16566E-04
   5  norm          10.056        8.0693        .77146E-07    .11467E-04
   6  Prefactor     .10000E-03    6.4527       -.45836E-07** at limit **
   7  Prefactor     .10000E-03    10.130        .22308E-06** at limit **
   8  Prefactor     21.422        122.55        .42656E-06    .21599E-04
   9  Prefactor     .10000E-03    3.1371        .33286E-07** at limit **
  10  Prefactor     .10000E-03    13.707       -.29258E-05** at limit **
  11  norm          .10000E-03    2.2235       -.77970E-07** at limit **
  12  Prefactor     .10000E-03    22.412       -.28381E-06** at limit **
  13  norm          .10000E-03    4.9847        .84799E-07** at limit **
  14  Prefactor     15.334        26.219       -.23177E-05    .17477E-03
  15  norm          3.2068        8.6869        .69459E-05    .29348E-04
  16  norm          14.128        18.799        .17803E-06   -.84703E-05
  17  norm          .10000E-03    3.7985       -.27461E-05** at limit **
  18  norm          5.5697        6.5416        .40697E-06    .11359E-02
  19  norm          .10000E-03    6.0849        .18444E-06** at limit **
  20  Prefactor     .10000E-03    5.1844       -.70851E-06** at limit **
  21  Prefactor     45.601        22.968        .47905E-06    .22951E-03
  22  norm          .10000E-03    5.1172       -.94433E-07** at limit **
  23  Prefactor     83.780        73.263       -.33598E-05    .14425E-03
  24  norm          4.2867        8.2078        .37293E-06    .46598E-04
  25  Prefactor     .10000E-03    5.8657        .25916E-06** at limit **
  26  Prefactor     .10000E-03    7.2993       -.48562E-06** at limit **
  27  Prefactor     4.1845        154.37       -.45392E-07    .63167E-05
  28  Prefactor     1.2680        4.3228        .50216E-06    .33137E-04
  29  Normalizat    .75915        .21683        .99628E-06    .32597E-03
  30  Prefactor     1.2969        .26567       -.15101E-05    .25762E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61501
  Prefactor  = 0.0001
  Prefactor  = 4.23425
  Prefactor  = 3.39596
  norm       = 10.0557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4224
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3338
  norm       = 3.20676
  norm       = 14.128
  norm       = 0.000100002
  norm       = 5.56966
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 45.6013
  norm       = 0.0001
  Prefactor  = 83.7801
  norm       = 4.28667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18448
  Prefactor  = 1.26802
  Normalizat = 0.759151
  Prefactor  = 1.29692
 **********
 **   18 **HESSE 
 **********

 FCN=   3793.395     FROM HESSE     STATUS=OK           576 CALLS     4456 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6150        2.5151        .11674E-03   -1.5454    
   2  Prefactor     .10000E-03    2.8162        .10082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2343        3.1177        .87869E-04   -1.5296    
   4  Prefactor     3.3960        2.7380        .87928E-04   -1.5339    
   5  norm          10.056        8.0648        .12636E-03   -1.5074    
   6  Prefactor     .10000E-03    6.4604        .15278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.422        122.66        .86536E-04   -1.4782    
   9  Prefactor     .10000E-03    3.1451        .10654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2292        .89647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1571        .26828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.334        26.393        .10225E-03   -1.4925    
  15  norm          3.2068        8.7865        .11316E-02   -1.5350    
  16  norm          14.128        18.809        .10656E-03   -1.4956    
  17  norm          .10000E-03    11.454        .19510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5697        5.9372        .14944E-03   -1.5236    
  19  norm          .10000E-03    6.0844        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3261        .27302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.601        22.664        .59366E-04   -1.4356    
  22  norm          .10000E-03    5.1679        .13559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     83.780        72.811        .21946E-03   -1.3875    
  24  norm          4.2867        8.1745        .19461E-03   -1.5294    
  25  Prefactor     .10000E-03    5.8685        .14564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.2966        .16244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.1845        154.42        .19704E-03   -1.5299    
  28  Prefactor     1.2680        4.2719        .22214E-03   -1.5483    
  29  Normalizat    .75915        .26137        .25325E-03   -1.0160    
  30  Prefactor     1.2969        .32211        .25413E-03   -.83399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60692e-09
Minuit parameter uncertainties:
  1  2.51528
  2  1.58808e-06
  3  3.11782
  4  2.73809
  5  8.06565
  6  1.18669e-05
  7  4.68465e-05
  8  102.844
  9  2.83743e-06
  10  0.000396968
  11  6.05792e-06
  12  0.000140687
  13  3.78033e-05
  14  26.4134
  15  8.79008
  16  18.8172
  17  0.000302126
  18  5.9378
  19  1.21945e-05
  20  0.000125157
  21  22.6683
  22  8.48763e-06
  23  72.8883
  24  8.17658
  25  2.45833e-05
  26  4.3108e-05
  27  50.9822
  28  4.27293
  29  0.261801
  30  0.322609
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  3.021e-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:  1.297e+00  3.226e-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:  7.592e-01  2.618e-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: 9.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291635/likelihoodResults_473904001_474163201_4FGL_J1310.5+3221_daily_bin905.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) = 3793.3959111
delta logL = -0.000418307658492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3793.39549269
delta logL = 1.00994384411e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3969       1.0000          .0000       5.0000    
     3 'Normalizat'    .75913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2969       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3793.395     FROM MIGRAD    STATUS=FAILED       102 CALLS      275 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10081E-03    155.02        .20394E-02** at limit **
   2  alpha         2.3111        3.3321        .50000        .29224E-05
   3  Normalizat    .75915        .17817E-01    .25325E-03   -.21390E-04
   4  Prefactor     1.2969        .22830E-01    .25413E-03   -.22368E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3793.395     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      415 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10081E-03    155.02        .61394E-03** at limit **
   2  alpha         2.3111        3.3321        .37836E-04    .29224E-05
   3  Normalizat    .75915        .17817E-01    .57378E-06   -.21390E-04
   4  Prefactor     1.2969        .22830E-01    .42321E-06   -.22368E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3793.395     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      456 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    761.79        .40788E-03** at limit **
   2  alpha         2.2700        2.9926        .50000        .28205E-06
   3  Normalizat    .75915        .42231E-01    .10130E-04    .11514E-03
   4  Prefactor     1.2969        .54111E-01    .10165E-04    .11586E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27003
  Normalizat = 0.759149
  Prefactor  = 1.29692
 **********
 **   18 **HESSE 
 **********

 FCN=   3793.395     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      485 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6190.1        .81575E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2700        3.6225        .50000       -.92119E-01
   3  Normalizat    .75915        .12121        .20260E-05   -1.0160    
   4  Prefactor     1.2969        .15516        .20331E-05   -.83399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72389e-08
Minuit parameter uncertainties:
  1  0.0015097
  2  1693.3
  3  0.121249
  4  0.155215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291635': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3793.39549245
delta logL = 3.49899892171e-07

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  1.510e-03  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.270e+00  1.693e+03  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.297e+00  1.552e-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:  7.591e-01  1.212e-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/291635/cmap_HighResolution_473904001_474163201_4FGL_J1310.5+3221_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='9.16e-08', time_completed='2021-09-07 01:48:05.293926', job_id='291635', GAL2='1.30', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631004485.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='3.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='905' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:48:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 291635: <4FGL_J1310.5+3221_daily_bin905> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin905> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 01:35:46 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:36:24 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:36:24 2021
Terminated at Tue Sep  7 01:48:06 2021
Results reported at Tue Sep  7 01:48:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin905 197.632 32.3547 473904001 474163201 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 :                                   680.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            740 sec.

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

