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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1202
RA = 197.632, Dec = 32.3547
tmin = 550886401, tmax = 551145601
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='293493', job_status='RUN', time_executed='2021-09-07 01:45:02.099731', time_epoch_executed='1631004302.1' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293493/ft1_4FGL_J1310.5+3221_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293493/ft2_4FGL_J1310.5+3221_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293493/ft1_4FGL_J1310.5+3221_daily_bin1202.fits outfile=/scratch/kocevski/293493/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1202.fits ra=197.632 dec=32.3547 rad=12.0 tmin=550886401.0 tmax=551145601.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.36
user 3.62
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293493/ft2_4FGL_J1310.5+3221_daily_bin1202.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/293493/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/293493/ft1_filtered_4FGL_J1310.5+3221_daily_bin1202.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/293493/ft1_filtered_4FGL_J1310.5+3221_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/293493/ft2_4FGL_J1310.5+3221_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/293493/ltcube_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.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/293493/ft2_4FGL_J1310.5+3221_daily_bin1202.fits
.....................!
real 14.47
user 14.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293493/ft1_filtered_4FGL_J1310.5+3221_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/293493/ft2_4FGL_J1310.5+3221_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/293493/ltcube_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.fits outfile=/scratch/kocevski/293493/expmap_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.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/293493/ltcube_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.fits
.....................!
real 193.63
user 188.09
sys 5.07

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/293493/ft1_filtered_4FGL_J1310.5+3221_daily_bin1202.fits scfile=/scratch/kocevski/293493/ft2_4FGL_J1310.5+3221_daily_bin1202.fits outfile=/scratch/kocevski/293493/cmap_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293493/ft1_filtered_4FGL_J1310.5+3221_daily_bin1202.fits scfile=/scratch/kocevski/293493/ft2_4FGL_J1310.5+3221_daily_bin1202.fits outfile=/scratch/kocevski/293493/cmap_HighResolution_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8309       1.0000         .10000E-03   10000.    
     5 'norm      '    13.764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .49271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1145       1.0000         .10000E-03   10000.    
    18 'norm      '    .50954E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7625       1.0000         .10000E-03   10000.    
    23 'Prefactor '    99.445       1.0000         .10000E-03   10000.    
    24 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2259       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91995       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=   2153.559     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3914 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3836       -.15573E-06** at limit **
   2  Prefactor     .10000E-03    6.4469        .63581E-08** at limit **
   3  Prefactor     5.1647        4.4122       -.35331E-07    .92795E-04
   4  Prefactor     5.8321        6.2412        .96996E-08    .52468E-04
   5  norm          13.765        8.2541       -.70273E-09    .23996E-04
   6  Prefactor     13.078        22.814        .57151E-07    .19125E-04
   7  Prefactor     .10000E-03    14.271       -.47323E-06** at limit **
   8  Prefactor     26.285        147.40       -.98926E-07    .39685E-04
   9  Prefactor     .10000E-03    3.3838       -.14305E-07** at limit **
  10  Prefactor     .10000E-03    5.3660        .22138E-07** at limit **
  11  norm          .49626        11.037       -.50884E-06    .30721E-03
  12  Prefactor     .10000E-03    85.034       -.87384E-06** at limit **
  13  norm          2.6775        6.1873        .28501E-06   -.52404E-04
  14  Prefactor     .10000E-03    18.163        .27296E-06** at limit **
  15  norm          .10000E-03    8.9909        .33134E-06** at limit **
  16  norm          .10000E-03    18.579        .34034E-06** at limit **
  17  norm          2.0900        5.7117       -.18649E-05   -.29295E-03
  18  norm          .10001E-03    16.550        .28606E-05** at limit **
  19  norm          .10000E-03    49.153        .71877E-06** at limit **
  20  Prefactor     .10000E-03    7.5850       -.16140E-06** at limit **
  21  Prefactor     .10000E-03    45.759        .21787E-06** at limit **
  22  norm          3.7666        8.7803        .44601E-06   -.69688E-04
  23  Prefactor     99.404        141.52       -.12828E-05   -.27868E-05
  24  norm          .10000E-03    12.352        .64192E-07** at limit **
  25  Prefactor     .10000E-03    35.145       -.91448E-06** at limit **
  26  Prefactor     .10000E-03    26.112       -.20009E-06** at limit **
  27  Prefactor     .10000E-03    47.918        .53861E-06** at limit **
  28  Prefactor     .10000E-03    8.3469       -.27055E-06** at limit **
  29  Normalizat    1.2259        .29791        .34150E-06    .70308E-04
  30  Prefactor     .92000        .35345       -.14657E-05    .86211E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.16472
  Prefactor  = 5.83213
  norm       = 13.7646
  Prefactor  = 13.0775
  Prefactor  = 0.0001
  Prefactor  = 26.2851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.496259
  Prefactor  = 0.0001
  norm       = 2.67753
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.09002
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76662
  Prefactor  = 99.404
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22587
  Prefactor  = 0.920002
 **********
 **   18 **HESSE 
 **********

 FCN=   2153.559     FROM HESSE     STATUS=OK           580 CALLS     4494 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6132        .26062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4514        .11509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1647        4.3959        .84101E-04   -1.5253    
   4  Prefactor     5.8321        6.2082        .10344E-03   -1.5225    
   5  norm          13.765        8.2536        .99790E-04   -1.4966    
   6  Prefactor     13.078        22.753        .11077E-03   -1.4985    
   7  Prefactor     .10000E-03    14.242        .17108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.285        151.13        .78199E-04   -1.4682    
   9  Prefactor     .10000E-03    3.3850        .83373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3712        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .49626        65.270        .26732E-02   -1.5567    
  12  Prefactor     .10000E-03    85.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6775        6.1552        .16600E-03   -1.5381    
  14  Prefactor     .10000E-03    18.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.1108        .13591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0900        6.0713        .18373E-03   -1.5419    
  18  norm          .10001E-03    49.074        .31856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    49.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7600        .24911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7666        8.6964        .19940E-03   -1.5320    
  23  Prefactor     99.404        141.64        .20156E-03   -1.3711    
  24  norm          .10000E-03    12.367        .15860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    47.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.3780        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2259        .35141        .23472E-03   -.85807    
  30  Prefactor     .92000        .41393        .31169E-03   -.95446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95126e-09
Minuit parameter uncertainties:
  1  2.08179e-05
  2  8.90811e-07
  3  4.39614
  4  6.20885
  5  8.25432
  6  22.7683
  7  7.37823e-06
  8  126.541
  9  2.98621e-07
  10  3.00954e-06
  11  11.3941
  12  0.000259626
  13  6.1566
  14  7.84303e-06
  15  1.21786e-05
  16  2.65276e-06
  17  6.0731
  18  0.0010063
  19  1.44113e-05
  20  7.42121e-05
  21  0.000205575
  22  8.69933
  23  142.13
  24  1.49482e-05
  25  6.41994e-05
  26  1.34719e-05
  27  2.80643e-06
  28  1.3514e-05
  29  0.352096
  30  0.415363
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  2.090e+00  6.073e+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.200e-01  4.154e-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.226e+00  3.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293493/likelihoodResults_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.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) = 2153.54035484
delta logL = 0.0185806943887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2153.52227906
delta logL = 0.0366564752358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0121       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9885       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93084       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=   2153.522     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0152        170.88        .13089E-01    .32793E-03
   2  alpha         2.9881        3.4964        .42191E-01    .32174E-04
   3  Normalizat    1.2092        .10524        .53399E-01    .12211E-05
   4  Prefactor     .93093        .12319        .70076E-01    .57954E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01515
  alpha      = 2.98815
  Normalizat = 1.20919
  Prefactor  = 0.930927
 **********
 **   18 **HESSE 
 **********

 FCN=   2153.522     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0152        6.0137        .10585E-03   -1.5506    
   2  alpha         2.9881        1.9772        .16876E-02    .19652    
   3  Normalizat    1.2092        .35690        .23610E-03   -.86319    
   4  Prefactor     .93093        .40917        .31002E-03   -.95069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12917e-13
Minuit parameter uncertainties:
  1  4.94207
  2  2.29999
  3  0.357623
  4  0.410532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293493': 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) = 2153.52227852
delta logL = 0.0366570192659

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.015e+00  4.942e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.988e+00  2.300e+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:  9.309e-01  4.105e-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.209e+00  3.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/293493/cmap_HighResolution_550886401_551145601_4FGL_J1310.5+3221_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-05', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-07 01:53:42.090509', job_id='293493', GAL2='0.93', fit_tolerance='1e-08', EG2='1.21', EG='1.23', time_epoch_completed='1631004822.09', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.67e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1202' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:53:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 293493: <4FGL_J1310.5+3221_daily_bin1202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1202 197.632 32.3547 550886401 551145601 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 :                                   513.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            782 sec.

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

