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


Performing analysis on: 4FGL_J1310.5+3221_daily_bin93
RA = 197.632, Dec = 32.3547
tmin = 263433601, tmax = 263692801
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='287020', job_status='RUN', time_executed='2021-09-07 01:23:33.413356', time_epoch_executed='1631003013.41' WHERE source_name='4FGL J1310.5+3221' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287020

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287020/ft1_4FGL_J1310.5+3221_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287020/ft2_4FGL_J1310.5+3221_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287020/ft1_4FGL_J1310.5+3221_daily_bin93.fits outfile=/scratch/kocevski/287020/ft1_filteredMKT_4FGL_J1310.5+3221_daily_bin93.fits ra=197.632 dec=32.3547 rad=12.0 tmin=263433601.0 tmax=263692801.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.64
user 3.27
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287020/ft1_filtered_4FGL_J1310.5+3221_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/287020/ft2_4FGL_J1310.5+3221_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/287020/ltcube_263433601_263692801_4FGL_J1310.5+3221_daily_bin93.fits outfile=/scratch/kocevski/287020/expmap_263433601_263692801_4FGL_J1310.5+3221_daily_bin93.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/287020/ltcube_263433601_263692801_4FGL_J1310.5+3221_daily_bin93.fits
.....................!
real 191.93
user 187.12
sys 4.19

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/287020/ft1_filtered_4FGL_J1310.5+3221_daily_bin93.fits scfile=/scratch/kocevski/287020/ft2_4FGL_J1310.5+3221_daily_bin93.fits outfile=/scratch/kocevski/287020/cmap_263433601_263692801_4FGL_J1310.5+3221_daily_bin93.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287020/ft1_filtered_4FGL_J1310.5+3221_daily_bin93.fits scfile=/scratch/kocevski/287020/ft2_4FGL_J1310.5+3221_daily_bin93.fits outfile=/scratch/kocevski/287020/cmap_HighResolution_263433601_263692801_4FGL_J1310.5+3221_daily_bin93.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/287020/ft1_filtered_4FGL_J1310.5+3221_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/287020/ft2_4FGL_J1310.5+3221_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287020/Model_4FGL_J1310.5+3221_daily_bin93.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/287020/ft1_filtered_4FGL_J1310.5+3221_daily_bin93.fits.....................!
real 47.18
user 45.13
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4715       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.496       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .72416E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.790       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4206       1.0000         .10000E-03   10000.    
    15 'norm      '    10.077       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1352       1.0000         .10000E-03   10000.    
    18 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.088       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5467       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.754       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9496       1.0000         .10000E-03   10000.    
    24 'norm      '    15.035       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4116       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.421       1.0000         .10000E-03   10000.    
    27 'Prefactor '    49.582       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10938E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69554       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4440       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=   5506.416     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3907 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7140       -.19238E-07** at limit **
   2  Prefactor     .10000E-03    3.1032       -.45411E-08** at limit **
   3  Prefactor     3.9453        2.8004        .96104E-07   -.10664E-04
   4  Prefactor     8.4710        3.4672       -.45411E-07   -.19128E-03
   5  norm          1.6778        4.2191        .79430E-06    .41053E-04
   6  Prefactor     .10000E-03    11.635        .25762E-06** at limit **
   7  Prefactor     .10000E-03    5.9818        .87463E-06** at limit **
   8  Prefactor     38.532        77.885       -.29458E-05   -.13436E-03
   9  Prefactor     .25739        6.4187       -.92629E-06    .33370E-03
  10  Prefactor     .10000E-03    4.1830        .71137E-07** at limit **
  11  norm          .10005E-03    3.9377        .23553E-05** at limit **
  12  Prefactor     49.803        28.711       -.57905E-06   -.36612E-03
  13  norm          5.9221        4.0531        .40389E-07    .19940E-04
  14  Prefactor     4.4125        19.054       -.93085E-06   -.99662E-04
  15  norm          10.076        6.9293        .97799E-08   -.22416E-03
  16  norm          .10000E-03    5.2310       -.74488E-06** at limit **
  17  norm          7.1319        4.1956       -.34564E-06   -.77043E-03
  18  norm          .10000E-03    8.3425        .35851E-06** at limit **
  19  norm          23.101        20.140        .16881E-05    .17814E-03
  20  Prefactor     3.5475        3.3483        .11503E-06   -.23890E-03
  21  Prefactor     .10000E-03    9.1630       -.59553E-06** at limit **
  22  norm          10.759        9.4317        .19122E-06    .29095E-05
  23  Prefactor     2.9336        170.54       -.10098E-04   -.37056E-04
  24  norm          15.031        12.419       -.17230E-06   -.70430E-04
  25  Prefactor     8.4145        14.499        .46544E-06   -.63110E-04
  26  Prefactor     12.426        17.050        .86542E-06    .61384E-05
  27  Prefactor     49.580        62.056        .25942E-06   -.28256E-04
  28  Prefactor     .10010E-03    2.1064        .91309E-06** at limit **
  29  Normalizat    .69511        .19698       -.29603E-05   -.48812E-03
  30  Prefactor     1.4443        .23560        .73018E-06   -.56973E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94526
  Prefactor  = 8.47103
  norm       = 1.67784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5322
  Prefactor  = 0.257389
  Prefactor  = 0.0001
  norm       = 0.000100048
  Prefactor  = 49.8033
  norm       = 5.92213
  Prefactor  = 4.41246
  norm       = 10.0761
  norm       = 0.0001
  norm       = 7.13189
  norm       = 0.0001
  norm       = 23.1005
  Prefactor  = 3.54746
  Prefactor  = 0.0001
  norm       = 10.759
  Prefactor  = 2.93357
  norm       = 15.0305
  Prefactor  = 8.41451
  Prefactor  = 12.4264
  Prefactor  = 49.5804
  Prefactor  = 0.000100099
  Normalizat = 0.695113
  Prefactor  = 1.4443
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.416     FROM HESSE     STATUS=OK           590 CALLS     4497 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7306        .94677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1160        .12766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9453        2.7947        .99776E-04   -1.5311    
   4  Prefactor     8.4710        3.4611        .83795E-04   -1.5126    
   5  norm          1.6778        4.1977        .23367E-03   -1.5449    
   6  Prefactor     .10000E-03    11.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9965        .17746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.532        78.321        .64599E-04   -1.4466    
   9  Prefactor     .25739        36.423        .35514E-02   -1.5607    
  10  Prefactor     .10000E-03    4.2205        .14812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10005E-03    13.682        .24464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.803        28.835        .56832E-04   -1.4295    
  13  norm          5.9221        4.0462        .11864E-03   -1.5221    
  14  Prefactor     4.4125        18.854        .19154E-03   -1.5288    
  15  norm          10.076        6.8909        .12623E-03   -1.5073    
  16  norm          .10000E-03    5.2336        .16576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1319        4.1661        .10881E-03   -1.5174    
  18  norm          .10000E-03    8.4614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.101        20.229        .83363E-04   -1.4746    
  20  Prefactor     3.5475        3.3277        .12120E-03   -1.5331    
  21  Prefactor     .10000E-03    9.1596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.759        9.4203        .12217E-03   -1.5052    
  23  Prefactor     2.9336        170.42        .23647E-03   -1.5365    
  24  norm          15.031        12.406        .10329E-03   -1.4932    
  25  Prefactor     8.4145        14.485        .13822E-03   -1.5128    
  26  Prefactor     12.426        17.041        .11366E-03   -1.5003    
  27  Prefactor     49.580        62.126        .56951E-04   -1.4299    
  28  Prefactor     .10010E-03    22.346        .19886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .69511        .23245        .28570E-03   -1.0409    
  30  Prefactor     1.4443        .28474        .26300E-03   -.79112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10833e-08
Minuit parameter uncertainties:
  1  1.26253e-06
  2  3.11553e-06
  3  2.79479
  4  3.46121
  5  4.19841
  6  3.21662e-05
  7  4.50447e-05
  8  78.5308
  9  6.12633
  10  1.85487e-05
  11  0.00161404
  12  28.8434
  13  4.04642
  14  18.2514
  15  6.89149
  16  3.02538e-05
  17  4.16632
  18  6.01518e-05
  19  20.2349
  20  3.3279
  21  2.46905e-06
  22  9.42161
  23  44.852
  24  12.4079
  25  14.4909
  26  17.0477
  27  62.2071
  28  0.00298254
  29  0.232778
  30  0.285051
Done.

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

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  7.132e+00  4.166e+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:  1.444e+00  2.851e-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:  6.951e-01  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.48
Ra Dec: 197.632 32.355
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.31e-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) = 5506.41434212
delta logL = 0.00189290971866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5506.41002528
delta logL = 0.00620975168658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5015       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4858       1.0000          .0000       5.0000    
     3 'Normalizat'    .69103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4477       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=   5506.410     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5039        73.097        .39349E-02   -.29738E-03
   2  alpha         2.4855        3.6741        .19114       -.87947E-05
   3  Normalizat    .69110        .94665E-01    .64742E-01   -.14067E-04
   4  Prefactor     1.4477        .91815E-01    .59418E-01    .34996E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.50395
  alpha      = 2.48554
  Normalizat = 0.691105
  Prefactor  = 1.44765
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.410     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5039        7.5299        .10295E-03   -1.5198    
   2  alpha         2.4855        .61297        .73568E-02   -.57832E-02
   3  Normalizat    .69110        .22409        .28645E-03   -1.0425    
   4  Prefactor     1.4477        .28349        .26274E-03   -.79017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68376e-11
Minuit parameter uncertainties:
  1  7.53097
  2  0.619289
  3  0.224389
  4  0.283802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287020': 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) = 5506.41002516
delta logL = 0.00620987283219

Extracting fit parameters...

4FGL J1310.5+3221
   Spectrum: LogParabola
331         norm:  6.504e+00  7.531e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        alpha:  2.486e+00  6.193e-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:  1.448e+00  2.838e-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:  6.911e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 197.632 32.355
Photon Index (Free Index): 2.49 +/- 0.62
Photon Flux (Free Index): 6.55e-08 +/- 4.62e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.39e-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/287020/cmap_HighResolution_263433601_263692801_4FGL_J1310.5+3221_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='2.18e-05', photon_flux_error='3.65e-08', dlogl='6.21e-03', energy_flux='2.24e-05', photon_flux2='6.55e-08', job_status='DONE', time_completed='2021-09-07 01:35:38.070267', photon_index_error2='0.62', photon_index2='2.49', ts='6.48', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.70', time_epoch_completed='1631003738.07', return_code='0', job_id='287020', GAL2='1.45', EG2='0.69', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.62e-08', ts2='6.51', photon_index='2.42' WHERE bin_id='93' AND source_name='4FGL J1310.5+3221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 287020: <4FGL_J1310.5+3221_daily_bin93> in cluster <slac> Done

Job <4FGL_J1310.5+3221_daily_bin93> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 01:20:34 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:20:42 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:20:42 2021
Terminated at Tue Sep  7 01:35:38 2021
Results reported at Tue Sep  7 01:35:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1310.5+3221_daily_bin93 197.632 32.3547 263433601 263692801 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.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            904 sec.

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

