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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1
RA = 197.632, Dec = 32.3547
tmin = 239587201, tmax = 239846401
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='285664', job_status='RUN', time_executed='2021-09-07 01:18:58.695652', time_epoch_executed='1631002738.7' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285664

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285664/ft1_4FGL_J1310.5+3221_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285664/ft2_4FGL_J1310.5+3221_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285664/ft1_4FGL_J1310.5+3221_daily_bin1.fits outfile=/scratch/kocevski/285664/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1.fits ra=197.632 dec=32.3547 rad=12.0 tmin=239587201.0 tmax=239846401.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.34
user 1.15
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285664/ft1_filtered_4FGL_J1310.5+3221_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/285664/ft2_4FGL_J1310.5+3221_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/285664/ltcube_239587201_239846401_4FGL_J1310.5+3221_daily_bin1.fits outfile=/scratch/kocevski/285664/expmap_239587201_239846401_4FGL_J1310.5+3221_daily_bin1.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/285664/ltcube_239587201_239846401_4FGL_J1310.5+3221_daily_bin1.fits
.....................!
real 193.50
user 188.14
sys 4.63

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/285664/ft1_filtered_4FGL_J1310.5+3221_daily_bin1.fits scfile=/scratch/kocevski/285664/ft2_4FGL_J1310.5+3221_daily_bin1.fits outfile=/scratch/kocevski/285664/cmap_239587201_239846401_4FGL_J1310.5+3221_daily_bin1.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285664/ft1_filtered_4FGL_J1310.5+3221_daily_bin1.fits scfile=/scratch/kocevski/285664/ft2_4FGL_J1310.5+3221_daily_bin1.fits outfile=/scratch/kocevski/285664/cmap_HighResolution_239587201_239846401_4FGL_J1310.5+3221_daily_bin1.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1257       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6404       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2410       1.0000         .10000E-03   10000.    
     5 'norm      '    10.723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69440E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.416       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .80429       1.0000         .10000E-03   10000.    
    18 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1853       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .92887E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.5879       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0011       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96875       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77783       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=   3982.721     FROM MIGRAD    STATUS=CONVERGED   1403 CALLS     4024 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1255        1.6889        .11303E-02   -.26756E-03
   2  Prefactor     .10000E-03    4.4930        .13009E-02** at limit **
   3  Prefactor     2.6408        1.9931        .74288E-04    .32520E-04
   4  Prefactor     6.2420        2.7307        .66497E-04    .89928E-04
   5  norm          10.724        5.5353        .10360E-03    .10370E-04
   6  Prefactor     .10011E-03    11.212        .57305E-01** at limit **
   7  Prefactor     28.479        22.201        .75073E-04    .86167E-05
   8  Prefactor     19.417        44.110        .90896E-04    .93180E-05
   9  Prefactor     .10000E-03    2.2728        .92866E-03** at limit **
  10  Prefactor     .10000E-03    2.0868        .88988E-03** at limit **
  11  norm          .10000E-03    3.1459        .10812E-02** at limit **
  12  Prefactor     .10000E-03    22.605        .18142E-02** at limit **
  13  norm          1.8366        1.9017        .85758E-04   -.43084E-04
  14  Prefactor     .10000E-03    9.5278        .18142E-02** at limit **
  15  norm          .10000E-03    4.6648        .13206E-02** at limit **
  16  norm          .10000E-03    12.578        .18142E-02** at limit **
  17  norm          .80637        3.0536        .20450E-03    .52590E-04
  18  norm          .10000E-03    6.2127        .15209E-02** at limit **
  19  norm          .10000E-03    11.603        .18142E-02** at limit **
  20  Prefactor     6.1864        4.2628        .10131E-03    .53592E-03
  21  Prefactor     .10000E-03    11.339        .18142E-02** at limit **
  22  norm          .10000E-03    8.4988        .35330E-03** at limit **
  23  Prefactor     .10000E-03    83.420        .18142E-02** at limit **
  24  norm          .10015E-03    38.414        .38210E-02** at limit **
  25  Prefactor     8.5887        17.274        .68393E-03    .13572E-04
  26  Prefactor     .10000E-03    16.848        .18142E-02** at limit **
  27  Prefactor     .98120        127.08        .16837        .21878E-03
  28  Prefactor     11.779        5.5624        .97455E-04   -.34938E-04
  29  Normalizat    .96879        .23354        .20833E-03   -.32769E-04
  30  Prefactor     .77780        .27081        .28029E-03   -.11815E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12552
  Prefactor  = 0.0001
  Prefactor  = 2.64075
  Prefactor  = 6.24199
  norm       = 10.7242
  Prefactor  = 0.000100111
  Prefactor  = 28.4793
  Prefactor  = 19.4169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.83659
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.806366
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.18644
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100148
  Prefactor  = 8.58871
  Prefactor  = 0.0001
  Prefactor  = 0.981204
  Prefactor  = 11.7786
  Normalizat = 0.968785
  Prefactor  = 0.777801
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.721     FROM HESSE     STATUS=OK           580 CALLS     4604 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1255        1.6882        .45212E-04   -1.5496    
   2  Prefactor     .10000E-03    4.4938        .26018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6408        1.9929        .29715E-05   -1.5383    
   4  Prefactor     6.2420        2.7305        .26599E-05   -1.5208    
   5  norm          10.724        5.5353        .41442E-05   -1.5053    
   6  Prefactor     .10011E-03    10.627        .59532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.479        22.201        .15015E-04   -1.4640    
   8  Prefactor     19.417        44.115        .36358E-05   -1.4826    
   9  Prefactor     .10000E-03    2.2728        .18573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0868        .17798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1468        .21625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8366        1.9017        .34303E-05   -1.5437    
  14  Prefactor     .10000E-03    9.5286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6661        .26413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .80637        3.0522        .81801E-05   -1.5528    
  18  norm          .10000E-03    6.2131        .30418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.1864        4.2623        .40522E-05   -1.5210    
  21  Prefactor     .10000E-03    11.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.4992        .70661E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    83.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10015E-03    38.852        .76420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.5887        17.270        .27357E-04   -1.5122    
  26  Prefactor     .10000E-03    16.850        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .98120        123.29        .17149       -1.5510    
  28  Prefactor     11.779        5.5622        .38982E-05   -1.5021    
  29  Normalizat    .96879        .23366        .83333E-05   -.94084    
  30  Prefactor     .77780        .27109        .11211E-04   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49548e-09
Minuit parameter uncertainties:
  1  1.68831
  2  2.7886e-06
  3  1.99297
  4  2.73058
  5  5.53555
  6  0.00217342
  7  22.2072
  8  44.1891
  9  4.33689e-08
  10  1.12998e-06
  11  1.89563e-05
  12  0.000149133
  13  1.90174
  14  0.00010286
  15  7.23992e-06
  16  0.000100375
  17  3.05275
  18  8.27301e-05
  19  7.74303e-05
  20  4.26255
  21  5.17498e-05
  22  0.000105432
  23  0.000575321
  24  0.00479255
  25  17.2803
  26  0.000130165
  27  22.0426
  28  5.56247
  29  0.233907
  30  0.271556
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  8.064e-01  3.053e+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:  7.778e-01  2.716e-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.688e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 197.632 32.355
Photon Flux Upper Limit: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285664/likelihoodResults_239587201_239846401_4FGL_J1310.5+3221_daily_bin1.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3982.6425675
delta logL = 0.0782011810256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3982.64074969
delta logL = 0.0800189838637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6322       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8734       1.0000          .0000       5.0000    
     3 'Normalizat'    .97473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76843       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=   3982.641     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      284 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6291        6.6739        .11459E-02   -.26202E-03
   2  alpha         1.8724        1.1430        .17609E-01   -.33945E-04
   3  Normalizat    .97487        .21768        .20773E-03   -.98101E-04
   4  Prefactor     .76829        .26676        .28179E-03   -.11115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.62915
  alpha      = 1.87244
  Normalizat = 0.974866
  Prefactor  = 0.768293
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.641     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6291        6.4200        .45835E-04   -1.5384    
   2  alpha         1.8724        1.1036        .70437E-03   -.25374    
   3  Normalizat    .97487        .21783        .41546E-04   -.93877    
   4  Prefactor     .76829        .26695        .11271E-04   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09105e-10
Minuit parameter uncertainties:
  1  6.42171
  2  1.14591
  3  0.218024
  4  0.267402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285664': 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) = 3982.64074891
delta logL = 0.0800197708531

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.629e+00  6.422e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.872e+00  1.146e+00  0.000e+00  5.000e+00 ( 1.000e+00)
333         beta:  5.326e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
334           Eb:  2.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  7.683e-01  2.674e-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.749e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/285664/cmap_HighResolution_239587201_239846401_4FGL_J1310.5+3221_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-07 01:30:22.797320', job_id='285664', GAL2='0.77', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631003422.8', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.00e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:30:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 285664: <4FGL_J1310.5+3221_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1 197.632 32.3547 239587201 239846401 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.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             251.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            867 sec.

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

