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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin1102
RA = 197.632, Dec = 32.3547
tmin = 524966401, tmax = 525225601
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='293300', job_status='RUN', time_executed='2021-09-07 01:43:43.469709', time_epoch_executed='1631004223.47' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293300/ft1_4FGL_J1310.5+3221_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293300/ft2_4FGL_J1310.5+3221_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293300/ft1_4FGL_J1310.5+3221_daily_bin1102.fits outfile=/scratch/kocevski/293300/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin1102.fits ra=197.632 dec=32.3547 rad=12.0 tmin=524966401.0 tmax=525225601.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 3.56
user 3.27
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293300/ft1_filtered_4FGL_J1310.5+3221_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/293300/ft2_4FGL_J1310.5+3221_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/293300/ltcube_524966401_525225601_4FGL_J1310.5+3221_daily_bin1102.fits outfile=/scratch/kocevski/293300/expmap_524966401_525225601_4FGL_J1310.5+3221_daily_bin1102.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/293300/ltcube_524966401_525225601_4FGL_J1310.5+3221_daily_bin1102.fits
.....................!
real 193.35
user 186.96
sys 5.27

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/293300/ft1_filtered_4FGL_J1310.5+3221_daily_bin1102.fits scfile=/scratch/kocevski/293300/ft2_4FGL_J1310.5+3221_daily_bin1102.fits outfile=/scratch/kocevski/293300/cmap_524966401_525225601_4FGL_J1310.5+3221_daily_bin1102.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.632 yref=32.3547 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293300/ft1_filtered_4FGL_J1310.5+3221_daily_bin1102.fits scfile=/scratch/kocevski/293300/ft2_4FGL_J1310.5+3221_daily_bin1102.fits outfile=/scratch/kocevski/293300/cmap_HighResolution_524966401_525225601_4FGL_J1310.5+3221_daily_bin1102.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.60
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.016       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.695       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7054       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14202E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .82156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74079E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1035       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2864       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4219       1.0000         .10000E-03   10000.    
    22 'norm      '    9.0806       1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.166       1.0000         .10000E-03   10000.    
    24 'norm      '    17.730       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 '    .22462E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .63984       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=   5123.929     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3400 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.016        4.7586        .35038E-08    .19027E-03
   2  Prefactor     9.5030        7.7986       -.77936E-07    .18670E-04
   3  Prefactor     3.3338        2.4215        .17128E-06    .11676E-02
   4  Prefactor     .10000E-03    .70805        .39538E-07** at limit **
   5  norm          3.1438        2.9350        .19625E-06    .10748E-03
   6  Prefactor     .10000E-03    13.628       -.63932E-05** at limit **
   7  Prefactor     .10000E-03    11.503        .88599E-05** at limit **
   8  Prefactor     15.699        41.813        .74214E-05    .32532E-04
   9  Prefactor     8.7064        8.4008       -.13637E-06   -.95005E-04
  10  Prefactor     .10007E-03    4.0108       -.75829E-06** at limit **
  11  norm          .82485        3.0340       -.87909E-06   -.67336E-03
  12  Prefactor     .10000E-03    82.554       -.19418E-04** at limit **
  13  norm          4.1035        3.6440        .20412E-06   -.45733E-04
  14  Prefactor     .10000E-03    51.158       -.11896E-05** at limit **
  15  norm          .10000E-03    1.8237       -.15340E-07** at limit **
  16  norm          .10000E-03    6.4074        .16813E-05** at limit **
  17  norm          .10000E-03    2.4730        .61344E-09** at limit **
  18  norm          5.2868        4.1708       -.43701E-07    .19644E-03
  19  norm          .10000E-03    5.8803       -.14026E-06** at limit **
  20  Prefactor     .10000E-03    1.3253       -.78751E-08** at limit **
  21  Prefactor     4.4251        10.943       -.27873E-06   -.31469E-04
  22  norm          9.0808        5.7850        .44597E-07    .31217E-04
  23  Prefactor     57.167        48.028        .72820E-06    .33537E-04
  24  norm          17.730        9.3711       -.23139E-06   -.45643E-03
  25  Prefactor     .10000E-03    8.9225       -.41355E-05** at limit **
  26  Prefactor     .10000E-03    5.8605       -.57963E-06** at limit **
  27  Prefactor     .10000E-03    25.094        .10119E-04** at limit **
  28  Prefactor     .10005E-03    2.0062       -.44780E-06** at limit **
  29  Normalizat    1.1301        .16262        .78341E-06    .52442E-03
  30  Prefactor     .63982        .19541       -.94265E-06    .28444E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.0155
  Prefactor  = 9.50304
  Prefactor  = 3.33381
  Prefactor  = 0.0001
  norm       = 3.14377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6989
  Prefactor  = 8.70636
  Prefactor  = 0.000100066
  norm       = 0.824855
  Prefactor  = 0.000100003
  norm       = 4.10352
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.28684
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42511
  norm       = 9.08081
  Prefactor  = 57.1672
  norm       = 17.7299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Normalizat = 1.13006
  Prefactor  = 0.639819
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.929     FROM HESSE     STATUS=OK           586 CALLS     3986 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.016        4.7573        .80190E-04   -1.4907    
   2  Prefactor     9.5030        7.7994        .13000E-03   -1.5091    
   3  Prefactor     3.3338        2.4346        .44978E-03   -1.5343    
   4  Prefactor     .10000E-03    .71367        .58793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1438        2.9390        .11554E-03   -1.5353    
   6  Prefactor     .10000E-03    13.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.699        41.892        .10110E-03   -1.4915    
   9  Prefactor     8.7064        8.3943        .13586E-03   -1.5118    
  10  Prefactor     .10007E-03    26.832        .27268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .82485        3.0036        .23112E-03   -1.5526    
  12  Prefactor     .10000E-03    82.756        .41895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1035        3.6384        .12361E-03   -1.5303    
  14  Prefactor     .10000E-03    52.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8338        .94372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.4112        .17691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5291        .21750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2868        4.1303        .12497E-03   -1.5248    
  19  norm          .10000E-03    5.8819        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.3427        .80316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4251        10.908        .19151E-03   -1.5287    
  22  norm          9.0808        5.7855        .12938E-03   -1.5105    
  23  Prefactor     57.167        47.998        .53058E-04   -1.4194    
  24  norm          17.730        9.3967        .47560E-03   -1.4866    
  25  Prefactor     .10000E-03    8.9562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.8641        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10005E-03    22.683        .19317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1301        .18373        .19833E-03   -.88792    
  30  Prefactor     .63982        .22228        .31307E-03   -1.0593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83876e-09
Minuit parameter uncertainties:
  1  4.7574
  2  7.80021
  3  2.43465
  4  1.30615e-07
  5  2.93909
  6  5.36448e-05
  7  1.63811e-07
  8  41.9704
  9  8.39542
  10  0.00267086
  11  3.00415
  12  0.00106979
  13  3.63863
  14  0.000256694
  15  2.93625e-06
  16  1.14735e-06
  17  9.27202e-06
  18  4.13053
  19  4.39559e-07
  20  1.97424e-06
  21  10.9132
  22  5.7859
  23  48.0304
  24  9.39747
  25  7.96818e-06
  26  7.89074e-07
  27  6.87776e-06
  28  0.00215937
  29  0.183838
  30  0.222585
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  9.272e-06  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:  6.398e-01  2.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:  1.130e+00  1.838e-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: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293300/likelihoodResults_524966401_525225601_4FGL_J1310.5+3221_daily_bin1102.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) = 5123.93081894
delta logL = -0.0018843028538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5123.92893364
delta logL = 1.00231500255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3856       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63988       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=   5123.929     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    153.85        .23105E-02** at limit **
   2  alpha         1.7656        2.9278        .50000        .33788E-07
   3  Normalizat    1.1301        .24356E-01    .19833E-03    .29653E-02
   4  Prefactor     .63982        .29790E-01    .31307E-03    .18981E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76557
  Normalizat = 1.13007
  Prefactor  = 0.639824
 **********
 **   18 **HESSE 
 **********

 FCN=   5123.929     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    598.97        .46210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7656        2.6374        .50000       -.29817    
   3  Normalizat    1.1301        .57740E-01    .39666E-04   -.88792    
   4  Prefactor     .63982        .70615E-01    .62613E-04   -1.0593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.97621e-09
Minuit parameter uncertainties:
  1  7.71568e-05
  2  1642.97
  3  0.0577433
  4  0.0706245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293300': 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) = 5123.92892601
delta logL = 8.62963406689e-06

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.000e-04  7.716e-05  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.766e+00  1.643e+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:  6.398e-01  7.062e-02  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.130e+00  5.774e-02  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/293300/cmap_HighResolution_524966401_525225601_4FGL_J1310.5+3221_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-07 01:56:23.021676', job_id='293300', GAL2='0.64', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631004983.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='8.63e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1102' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:56:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 293300: <4FGL_J1310.5+3221_daily_bin1102> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin1102> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 01:40:29 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:41:45 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:41:45 2021
Terminated at Tue Sep  7 01:56:24 2021
Results reported at Tue Sep  7 01:56:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin1102 197.632 32.3547 524966401 525225601 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 :                                   748.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            955 sec.

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

