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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin57
RA = 197.632, Dec = 32.3547
tmin = 254102401, tmax = 254361601
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='285768', job_status='RUN', time_executed='2021-09-07 01:20:38.028378', time_epoch_executed='1631002838.03' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285768/ft1_4FGL_J1310.5+3221_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285768/ft2_4FGL_J1310.5+3221_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285768/ft1_4FGL_J1310.5+3221_daily_bin57.fits outfile=/scratch/kocevski/285768/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin57.fits ra=197.632 dec=32.3547 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.05
user 1.85
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285768/ft1_filtered_4FGL_J1310.5+3221_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/285768/ft2_4FGL_J1310.5+3221_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/285768/ltcube_254102401_254361601_4FGL_J1310.5+3221_daily_bin57.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/285768/ft2_4FGL_J1310.5+3221_daily_bin57.fits
.....................!
real 17.03
user 16.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285768/ft1_filtered_4FGL_J1310.5+3221_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/285768/ft2_4FGL_J1310.5+3221_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/285768/ltcube_254102401_254361601_4FGL_J1310.5+3221_daily_bin57.fits outfile=/scratch/kocevski/285768/expmap_254102401_254361601_4FGL_J1310.5+3221_daily_bin57.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/285768/ltcube_254102401_254361601_4FGL_J1310.5+3221_daily_bin57.fits
.....................!
real 191.59
user 185.86
sys 4.71

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/285768/ft1_filtered_4FGL_J1310.5+3221_daily_bin57.fits scfile=/scratch/kocevski/285768/ft2_4FGL_J1310.5+3221_daily_bin57.fits outfile=/scratch/kocevski/285768/cmap_254102401_254361601_4FGL_J1310.5+3221_daily_bin57.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.70
user 0.41
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0086       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0830       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45009       1.0000         .10000E-03   10000.    
    11 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.205       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.7467       1.0000         .10000E-03   10000.    
    17 'norm      '    6.1387       1.0000         .10000E-03   10000.    
    18 'norm      '    6.1499       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1966       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.203       1.0000         .10000E-03   10000.    
    24 'norm      '    8.7435       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .15288       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3019       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68223       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=   4484.694     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3871 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6574        3.0500       -.10001E-06   -.99249E-04
   2  Prefactor     .10000E-03    3.7396       -.63561E-07** at limit **
   3  Prefactor     1.1871        2.2985       -.18884E-06   -.49314E-03
   4  Prefactor     7.0083        3.3498        .95867E-07   -.41252E-04
   5  norm          3.0825        3.8189       -.38758E-06   -.17944E-03
   6  Prefactor     .10000E-03    5.3214        .23824E-05** at limit **
   7  Prefactor     .10000E-03    7.6070       -.16097E-06** at limit **
   8  Prefactor     .10000E-03    39.682       -.10055E-04** at limit **
   9  Prefactor     .10000E-03    2.7623        .16557E-07** at limit **
  10  Prefactor     .44713        5.1494       -.99861E-06   -.32891E-03
  11  norm          .10000E-03    2.1747        .89666E-07** at limit **
  12  Prefactor     21.198        26.846       -.49050E-05    .20608E-04
  13  norm          4.2945        4.4360       -.13058E-06   -.12142E-03
  14  Prefactor     .10000E-03    14.362        .30443E-05** at limit **
  15  norm          .10000E-03    2.1567        .44759E-07** at limit **
  16  norm          6.7441        12.697       -.71298E-06   -.42328E-04
  17  norm          6.1383        5.7112        .58392E-06   -.30244E-04
  18  norm          6.1494        8.7393       -.11574E-06   -.51654E-04
  19  norm          2.0923        41.945       -.21208E-04   -.68263E-04
  20  Prefactor     .10000E-03    1.0994        .18330E-06** at limit **
  21  Prefactor     .10000E-03    5.2805       -.22875E-05** at limit **
  22  norm          .10000E-03    4.3266        .19349E-06** at limit **
  23  Prefactor     46.182        64.203       -.27057E-04    .89472E-05
  24  norm          8.7442        8.1190       -.51432E-07    .29258E-04
  25  Prefactor     .10000E-03    15.245       -.17460E-05** at limit **
  26  Prefactor     .10000E-03    12.965       -.13301E-05** at limit **
  27  Prefactor     .10000E-03    49.744        .18304E-04** at limit **
  28  Prefactor     .13232        2.1562       -.52823E-06    .84217E-04
  29  Normalizat    1.3018        .19659        .15687E-05    .14288E-03
  30  Prefactor     .68251        .23447        .25611E-05    .10570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65741
  Prefactor  = 0.0001
  Prefactor  = 1.18714
  Prefactor  = 7.00829
  norm       = 3.0825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.44713
  norm       = 0.0001
  Prefactor  = 21.1983
  norm       = 4.29453
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.74408
  norm       = 6.13825
  norm       = 6.14935
  norm       = 2.09227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.1815
  norm       = 8.74424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.132321
  Normalizat = 1.30177
  Prefactor  = 0.682514
 **********
 **   18 **HESSE 
 **********

 FCN=   4484.694     FROM HESSE     STATUS=OK           590 CALLS     4461 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6574        3.0563        .11212E-03   -1.5382    
   2  Prefactor     .10000E-03    3.7464        .12648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1871        2.2530        .12620E-03   -1.5490    
   4  Prefactor     7.0083        3.3445        .81200E-04   -1.5178    
   5  norm          3.0825        3.8108        .14171E-03   -1.5357    
   6  Prefactor     .10000E-03    5.3321        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6089        .18038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7748        .10870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44713        11.922        .29246E-02   -1.5574    
  11  norm          .10000E-03    2.1793        .96335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.198        26.795        .86981E-04   -1.4787    
  13  norm          4.2945        4.4274        .13732E-03   -1.5293    
  14  Prefactor     .10000E-03    14.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1756        .96030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7441        12.713        .15448E-03   -1.5189    
  17  norm          6.1383        5.8230        .11551E-03   -1.5212    
  18  norm          6.1494        8.9134        .16189E-03   -1.5212    
  19  norm          2.0923        42.961        .27764E-03   -1.5419    
  20  Prefactor     .10000E-03    1.1036        .68571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2776        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.3587        .13593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.182        64.044        .58987E-04   -1.4348    
  24  norm          8.7442        8.1142        .13556E-03   -1.5116    
  25  Prefactor     .10000E-03    15.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    49.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .13232        17.760        .18820E-02   -1.5635    
  29  Normalizat    1.3018        .22485        .20348E-03   -.83513    
  30  Prefactor     .68251        .26801        .32677E-03   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75709e-10
Minuit parameter uncertainties:
  1  3.05647
  2  5.82185e-06
  3  2.25312
  4  3.34456
  5  3.81106
  6  1.10051e-05
  7  1.54049e-06
  8  2.91263e-06
  9  3.08098e-06
  10  4.61815
  11  1.37117e-05
  12  26.8105
  13  4.42771
  14  4.62428e-05
  15  9.08677e-06
  16  12.718
  17  5.82352
  18  8.91531
  19  18.9767
  20  2.02562e-05
  21  3.19406e-05
  22  1.48177e-05
  23  64.1401
  24  8.11523
  25  1.13092e-07
  26  1.02787e-05
  27  6.4364e-06
  28  3.06574
  29  0.225022
  30  0.268519
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.138e+00  5.824e+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:  6.825e-01  2.685e-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.302e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/285768/likelihoodResults_254102401_254361601_4FGL_J1310.5+3221_daily_bin57.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) = 4484.17654548
delta logL = 0.517527365017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4484.17285186
delta logL = 0.521220977963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.964       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7174       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65872       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=   4484.173     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      267 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.997        371.21        .28953E-02    .31306E-03
   2  alpha         1.7198        3.3143        .25105        .13938E-04
   3  Normalizat    1.3360        .21839        .32184E-01   -.25092E-04
   4  Prefactor     .65887        .13890        .75043E-01    .89934E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9967
  alpha      = 1.7198
  Normalizat = 1.33603
  Prefactor  = 0.658866
 **********
 **   18 **HESSE 
 **********

 FCN=   4484.173     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.997        9.7546        .57907E-03   -1.5015    
   2  alpha         1.7198        .65057        .14562E-01   -.31738    
   3  Normalizat    1.3360        .21821        .20144E-03   -.82497    
   4  Prefactor     .65887        .26104        .33221E-03   -1.0516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68731e-10
Minuit parameter uncertainties:
  1  9.75592
  2  0.658994
  3  0.218357
  4  0.261521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285768': 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) = 4484.17283714
delta logL = 0.521235705983

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  1.200e+01  9.756e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  1.720e+00  6.590e-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:  6.589e-01  2.615e-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.336e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 197.632 32.355
Photon Index (Free Index): 1.72 +/- 0.66
Photon Flux (Free Index): 2.58e-08 +/- 3.15e-08
Energy Flux (Free Index): 3.85e-05 +/- 4.62e-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/285768/cmap_HighResolution_254102401_254361601_4FGL_J1310.5+3221_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='3.85e-05', photon_flux_error='5.10e-08', dlogl='5.21e-01', energy_flux='1.92e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-07 01:32:40.990814', photon_index_error2='0.66', photon_index2='1.72', ts='3.55', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='4.62e-05', EG='1.30', time_epoch_completed='1631003560.99', return_code='0', job_id='285768', GAL2='0.66', EG2='1.34', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='3.15e-08', ts2='4.63', photon_index='2.42' WHERE bin_id='57' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:32:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 285768: <4FGL_J1310.5+3221_daily_bin57> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin57> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:16:14 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:49 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:49 2021
Terminated at Tue Sep  7 01:32:41 2021
Results reported at Tue Sep  7 01:32:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin57 197.632 32.3547 254102401 254361601 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 :                                   718.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            987 sec.

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

