/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 29 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 = 7377
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1346
RA = 197.632, Dec = 32.3547
tmin = 588211201, tmax = 588470401
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='293742', job_status='RUN', time_executed='2021-09-07 01:45:38.037463', time_epoch_executed='1631004338.04' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293742/ft1_4FGL_J1310.5+3221_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293742/ft2_4FGL_J1310.5+3221_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293742/ft1_4FGL_J1310.5+3221_daily_bin1346.fits outfile=/scratch/kocevski/293742/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1346.fits ra=197.632 dec=32.3547 rad=12.0 tmin=588211201.0 tmax=588470401.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 4.09
user 3.57
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293742/ft2_4FGL_J1310.5+3221_daily_bin1346.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/293742/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1346.fits evtable="EVENTS" outfile="/scratch/kocevski/293742/ft1_filtered_4FGL_J1310.5+3221_daily_bin1346.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293742/ft1_filtered_4FGL_J1310.5+3221_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/293742/ft2_4FGL_J1310.5+3221_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/293742/ltcube_588211201_588470401_4FGL_J1310.5+3221_daily_bin1346.fits outfile=/scratch/kocevski/293742/expmap_588211201_588470401_4FGL_J1310.5+3221_daily_bin1346.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/293742/ltcube_588211201_588470401_4FGL_J1310.5+3221_daily_bin1346.fits
.....................!
real 191.49
user 186.08
sys 4.87

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/293742/ft1_filtered_4FGL_J1310.5+3221_daily_bin1346.fits scfile=/scratch/kocevski/293742/ft2_4FGL_J1310.5+3221_daily_bin1346.fits outfile=/scratch/kocevski/293742/cmap_588211201_588470401_4FGL_J1310.5+3221_daily_bin1346.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2695       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2889       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4028       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8492       1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0223       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7328       1.0000         .10000E-03   10000.    
    16 'norm      '    .17194E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.724       1.0000         .10000E-03   10000.    
    18 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.043       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7630       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .65701E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .54368E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    15.884       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .98524       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80915       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90855       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=   5335.747     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     3388 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1168        2.7943       -.13120E-06   -.23462E-03
   2  Prefactor     .10000E-03    3.8993       -.56441E-06** at limit **
   3  Prefactor     4.2696        2.7962       -.25658E-07    .14965E-04
   4  Prefactor     2.2892        1.8607        .68188E-07    .19371E-03
   5  norm          4.4033        3.7274       -.27692E-05   -.38701E-04
   6  Prefactor     .10000E-03    13.970       -.38129E-05** at limit **
   7  Prefactor     .10000E-03    6.6093        .27784E-06** at limit **
   8  Prefactor     7.6800        120.71       -.31123E-04    .13114E-05
   9  Prefactor     6.8035        8.0377       -.45719E-06   -.62060E-04
  10  Prefactor     3.8513        3.8269        .16641E-06    .44099E-03
  11  norm          .10000E-03    1.5354        .71520E-07** at limit **
  12  Prefactor     .10000E-03    11.789        .38963E-05** at limit **
  13  norm          11.208        5.0329       -.40486E-06    .31345E-03
  14  Prefactor     3.0093        21.548       -.19757E-04   -.11427E-03
  15  norm          7.7355        5.5495        .17358E-05    .23280E-03
  16  norm          .10000E-03    22.209       -.67434E-06** at limit **
  17  norm          14.727        4.9025        .10021E-05    .25007E-03
  18  norm          .10000E-03    5.1944       -.18604E-06** at limit **
  19  norm          23.042        17.731        .61287E-05    .27072E-03
  20  Prefactor     4.7534        3.7038       -.88458E-06    .20679E-03
  21  Prefactor     .10000E-03    9.1420       -.77486E-07** at limit **
  22  norm          .82840E-01    6.7959       -.42277E-05    .75467E-03
  23  Prefactor     .10000E-03    266.71       -.35228E-04** at limit **
  24  norm          15.883        9.2532        .54555E-06    .11458E-02
  25  Prefactor     .10000E-03    4.5443       -.15554E-06** at limit **
  26  Prefactor     .10000E-03    15.837        .63375E-05** at limit **
  27  Prefactor     .10000E-03    14.105       -.47913E-05** at limit **
  28  Prefactor     .98535        2.5542       -.97758E-06   -.98069E-03
  29  Normalizat    .80905        .16459        .29463E-05    .57409E-03
  30  Prefactor     .90850        .19903        .27071E-06    .60211E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11679
  Prefactor  = 0.0001
  Prefactor  = 4.26962
  Prefactor  = 2.2892
  norm       = 4.40325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.67998
  Prefactor  = 6.80351
  Prefactor  = 3.85126
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2076
  Prefactor  = 3.00933
  norm       = 7.73553
  norm       = 0.0001
  norm       = 14.727
  norm       = 0.0001
  norm       = 23.042
  Prefactor  = 4.75342
  Prefactor  = 0.0001
  norm       = 0.08284
  Prefactor  = 0.000100003
  norm       = 15.8831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.985354
  Normalizat = 0.809054
  Prefactor  = 0.908497
 **********
 **   18 **HESSE 
 **********

 FCN=   5335.747     FROM HESSE     STATUS=OK           594 CALLS     3982 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1168        2.7989        .12255E-03   -1.5417    
   2  Prefactor     .10000E-03    9.5091        .28027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2696        2.8109        .85923E-04   -1.5295    
   4  Prefactor     2.2892        1.8617        .86377E-04   -1.5405    
   5  norm          4.4033        3.7224        .12602E-03   -1.5288    
   6  Prefactor     .10000E-03    14.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6800        121.02        .14455E-03   -1.5154    
   9  Prefactor     6.8035        8.0399        .15384E-03   -1.5186    
  10  Prefactor     3.8513        3.8144        .13436E-03   -1.5315    
  11  norm          .10000E-03    1.5406        .88315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.208        5.0325        .10462E-03   -1.5038    
  14  Prefactor     3.0093        21.816        .23344E-03   -1.5361    
  15  norm          7.7355        5.5229        .13135E-03   -1.5152    
  16  norm          .10000E-03    22.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.727        4.8848        .85762E-04   -1.4940    
  18  norm          .10000E-03    5.2304        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.042        17.730        .83444E-04   -1.4748    
  20  Prefactor     4.7534        3.6914        .11261E-03   -1.5272    
  21  Prefactor     .10000E-03    9.1731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .82840E-01    7.4467        .50922E-01   -1.5650    
  23  Prefactor     .10000E-03    272.31        .38169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.883        9.2973        .10049E-03   -1.4911    
  25  Prefactor     .10000E-03    4.5504        .15208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .98535        2.5051        .18165E-03   -1.5509    
  29  Normalizat    .80905        .19328        .22587E-03   -.99734    
  30  Prefactor     .90850        .23392        .26734E-03   -.95845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27067e-09
Minuit parameter uncertainties:
  1  2.7991
  2  7.6959e-05
  3  2.81099
  4  1.86174
  5  3.72259
  6  6.77743e-05
  7  1.49044e-05
  8  61.121
  9  8.04115
  10  3.81468
  11  1.14553e-05
  12  1.03724e-05
  13  5.03271
  14  16.2131
  15  5.5233
  16  4.60307e-05
  17  4.88498
  18  6.94772e-05
  19  17.7345
  20  3.69153
  21  1.90673e-06
  22  1.57009
  23  0.00186304
  24  9.29815
  25  8.79667e-06
  26  7.99333e-05
  27  5.70171e-06
  28  2.50532
  29  0.19344
  30  0.234178
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.473e+01  4.885e+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.085e-01  2.342e-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:  8.091e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.04
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 4.28e-08
Energy Flux (Fixed Index): 4.62e-05 +/- 1.53e-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) = 5335.71127404
delta logL = 0.0362001280564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5335.70987607
delta logL = 0.0375981028274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.721       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5209       1.0000          .0000       5.0000    
     3 'Normalizat'    .79610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91864       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=   5335.710     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.719        52.152        .28077E-02    .32536E-04
   2  alpha         2.5207        1.8441        .10378        .95147E-04
   3  Normalizat    .79598        .11771        .43559E-01    .13522E-04
   4  Prefactor     .91891        .10204        .45242E-01    .10613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7187
  alpha      = 2.52073
  Normalizat = 0.795978
  Prefactor  = 0.918909
 **********
 **   18 **HESSE 
 **********

 FCN=   5335.710     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.719        9.0187        .77696E-04   -1.4995    
   2  alpha         2.5207        .38647        .43948E-02    .82924E-02
   3  Normalizat    .79598        .19368        .22741E-03   -1.0022    
   4  Prefactor     .91891        .23540        .26595E-03   -.95483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58637e-12
Minuit parameter uncertainties:
  1  9.01967
  2  0.388024
  3  0.193849
  4  0.235664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293742': 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) = 5335.7098742
delta logL = 0.0375999688849

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.272e+01  9.020e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.521e+00  3.880e-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.189e-01  2.357e-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.960e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.13
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.52 +/- 0.39
Photon Flux (Free Index): 1.39e-07 +/- 5.73e-08
Energy Flux (Free Index): 4.44e-05 +/- 1.56e-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/293742/cmap_HighResolution_588211201_588470401_4FGL_J1310.5+3221_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='4.44e-05', photon_flux_error='4.28e-08', dlogl='3.76e-02', energy_flux='4.62e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-07 01:57:26.168574', photon_index_error2='0.39', photon_index2='2.52', ts='34.04', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.81', time_epoch_completed='1631005046.17', return_code='0', job_id='293742', GAL2='0.92', EG2='0.80', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.73e-08', ts2='34.13', photon_index='2.42' WHERE bin_id='1346' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:57:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 293742: <4FGL_J1310.5+3221_daily_bin1346> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1346> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:53 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:44:28 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:44:28 2021
Terminated at Tue Sep  7 01:57:26 2021
Results reported at Tue Sep  7 01:57:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1346 197.632 32.3547 588211201 588470401 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 :                                   668.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            993 sec.

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

