/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 131 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_J1317.6+3428_daily_bin93
RA = 199.401, Dec = 34.4676
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='442982', job_status='RUN', time_executed='2021-09-07 10:07:55.493356', time_epoch_executed='1631034475.49' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442982

Creating custom pfile directory:
/scratch/kocevski/442982/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/442982/ft1_4FGL_J1317.6+3428_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/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442982/ft1_4FGL_J1317.6+3428_daily_bin93.fits outfile=/scratch/kocevski/442982/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin93.fits ra=199.401 dec=34.4676 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.49
user 3.26
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_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/442982/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/442982/ltcube_263433601_263692801_4FGL_J1317.6+3428_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/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits
.....................!
real 18.15
user 17.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/442982/ltcube_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.fits outfile=/scratch/kocevski/442982/expmap_263433601_263692801_4FGL_J1317.6+3428_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/442982/ltcube_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.fits
.....................!
real 192.66
user 187.61
sys 4.38

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1317.6+3428 @ 199.401 34.4676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits scfile=/scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits outfile=/scratch/kocevski/442982/cmap_263433601_263692801_4FGL_J1317.6+3428_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=199.401 yref=34.4676 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.72
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits scfile=/scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits outfile=/scratch/kocevski/442982/cmap_HighResolution_263433601_263692801_4FGL_J1317.6+3428_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=199.401 yref=34.4676 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/442982/Model_4FGL_J1317.6+3428_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/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits.....................!
real 45.91
user 44.38
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits', '/scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits', expMap='/scratch/kocevski/442982/expmap_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.fits', expCube='/scratch/kocevski/442982/ltcube_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/442982/Model_4FGL_J1317.6+3428_daily_bin93.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1317.6+3428'

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.307e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/442982/ft1_filtered_4FGL_J1317.6+3428_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/442982/ft2_4FGL_J1317.6+3428_daily_bin93.fits
Exposure map: /scratch/kocevski/442982/expmap_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.fits
Exposure cube: /scratch/kocevski/442982/ltcube_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/442982/Model_4FGL_J1317.6+3428_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) = 5370.08371526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17515E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.006       1.0000         .10000E-03   10000.    
     9 'norm      '    6.3559       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1074       1.0000         .10000E-03   10000.    
    11 'norm      '    9.9937       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0762       1.0000         .10000E-03   10000.    
    14 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5251       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4644       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.407       1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.400       1.0000         .10000E-03   10000.    
    22 'norm      '    .63762       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.522       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .67495       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5370.034     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3880 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7963        .21955E-06** at limit **
   2  Prefactor     .10000E-03    7.2708       -.98467E-07** at limit **
   3  Prefactor     .10000E-03    5.9839        .15323E-06** at limit **
   4  Prefactor     38.197        78.943       -.20248E-05    .15043E-04
   5  Prefactor     .10000E-03    4.1168        .32687E-06** at limit **
   6  norm          .10000E-03    12.526       -.67137E-05** at limit **
   7  Prefactor     29.438        47.559       -.43116E-06    .18980E-04
   8  Prefactor     49.985        28.994       -.89199E-06    .79674E-04
   9  norm          6.3562        4.2494        .41495E-07    .19443E-04
  10  Prefactor     4.1164        20.599       -.89408E-06    .41760E-04
  11  norm          9.9923        6.9229        .46691E-07    .66367E-04
  12  norm          .10000E-03    4.9320       -.77209E-07** at limit **
  13  norm          7.0769        4.1946       -.39974E-06    .10437E-03
  14  norm          .10000E-03    8.0067        .11818E-05** at limit **
  15  norm          24.990        21.133        .22125E-07    .57996E-05
  16  Prefactor     3.5252        3.3559       -.14133E-06   -.28834E-03
  17  Prefactor     .10000E-03    9.0160        .30912E-06** at limit **
  18  Prefactor     1.4449        332.32        .97299E-05   -.11718E-04
  19  Prefactor     8.1497        14.425        .38345E-07   -.43882E-04
  20  Prefactor     12.408        17.092        .40770E-07   -.32384E-04
  21  Prefactor     43.405        60.335       -.14917E-06    .20437E-05
  22  norm          .63784        1.4255       -.27972E-06   -.27842E-03
  23  Prefactor     .10000E-03    2.0861        .55603E-06** at limit **
  24  norm          20.522        14.898        .19030E-06    .12932E-04
  25  Prefactor     .10000E-03    23.611       -.38384E-07** at limit **
  26  Normalizat    .67490        .19168        .30808E-07   -.80307E-04
  27  Prefactor     1.5044        .23436       -.14030E-05   -.20484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.1972
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.4382
  Prefactor  = 49.9847
  norm       = 6.35623
  Prefactor  = 4.11642
  norm       = 9.99227
  norm       = 0.0001
  norm       = 7.07695
  norm       = 0.000100002
  norm       = 24.9903
  Prefactor  = 3.52515
  Prefactor  = 0.0001
  Prefactor  = 1.44486
  Prefactor  = 8.14972
  Prefactor  = 12.408
  Prefactor  = 43.4053
  norm       = 0.637845
  Prefactor  = 0.0001
  norm       = 20.5225
  Prefactor  = 0.0001
  Normalizat = 0.674898
  Prefactor  = 1.50439
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.034     FROM HESSE     STATUS=OK           494 CALLS     4374 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8296        .17236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9864        .17510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.197        78.986        .64792E-04   -1.4471    
   5  Prefactor     .10000E-03    4.1631        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.534        .29520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.438        47.568        .73851E-04   -1.4622    
   8  Prefactor     49.985        28.954        .56710E-04   -1.4293    
   9  norm          6.3562        4.2472        .11937E-03   -1.5204    
  10  Prefactor     4.1164        20.146        .19891E-03   -1.5302    
  11  norm          9.9923        6.8794        .12675E-03   -1.5076    
  12  norm          .10000E-03    4.9313        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0769        4.1631        .10784E-03   -1.5176    
  14  norm          .10000E-03    8.2826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.990        21.129        .80134E-04   -1.4708    
  16  Prefactor     3.5252        3.3264        .12005E-03   -1.5332    
  17  Prefactor     .10000E-03    9.0508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4449        338.93        .35539E-03   -1.5468    
  19  Prefactor     8.1497        14.409        .14044E-03   -1.5137    
  20  Prefactor     12.408        17.084        .11372E-03   -1.5003    
  21  Prefactor     43.405        60.375        .60854E-04   -1.4389    
  22  norm          .63784        1.2557        .12665E-02   -1.5548    
  23  Prefactor     .10000E-03    12.692        .20126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.522        14.901        .88416E-04   -1.4802    
  25  Prefactor     .10000E-03    23.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .67490        .22952        .28102E-03   -1.0489    
  27  Prefactor     1.5044        .28518        .25513E-03   -.77417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20848e-09
Minuit parameter uncertainties:
  1  1.09866e-05
  2  2.99674e-05
  3  6.56289e-06
  4  79.2036
  5  5.47298e-05
  6  0.000122061
  7  47.6298
  8  28.9621
  9  4.24743
  10  18.2227
  11  6.87992
  12  1.71789e-05
  13  4.16329
  14  0.000274684
  15  21.1358
  16  3.3266
  17  2.45784e-05
  18  44.5142
  19  14.415
  20  17.0907
  21  60.4604
  22  1.25577
  23  0.000142709
  24  14.9039
  25  9.43258e-05
  26  0.229851
  27  0.285487
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.525e+00  3.327e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.504e+00  2.855e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.749e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 9.99e-06

TS (Fixed Index): 2.10
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442982/likelihoodResults_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.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) = 5370.00267543
delta logL = 0.0317515349661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5369.99738904
delta logL = 0.0370379266742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8539       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2564       1.0000          .0000       10.000    
     3 'Normalizat'    .68778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   5369.997     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      246 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8540        3.7140        .13315E-03   -.41905E-03
   2  Index         2.2566        .99551        .10423E-01   -.45328E-04
   3  Normalizat    .68777        .22218        .27865E-03    .41453E-04
   4  Prefactor     1.4933        .28497        .25591E-03    .54305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.85397
  Index      = 2.25665
  Normalizat = 0.687767
  Prefactor  = 1.4933
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.997     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8540        3.6981        .53261E-05   -1.5315    
   2  Index         2.2566        .99034        .41692E-03   -.58077    
   3  Normalizat    .68777        .22225        .11146E-04   -1.0438    
   4  Prefactor     1.4933        .28513        .51182E-04   -.77728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90378e-10
Minuit parameter uncertainties:
  1  3.6983
  2  0.999843
  3  0.222546
  4  0.285431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442982': 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) = 5369.99738901
delta logL = 0.0370379530941

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.854e+00  3.698e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.257e+00  9.998e-01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.493e+00  2.854e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.878e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.26 +/- 1.00
Photon Flux (Free Index): 2.89e-08 +/- 4.35e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.28e-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/442982/cmap_HighResolution_263433601_263692801_4FGL_J1317.6+3428_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='1.17e-05', photon_flux_error='3.57e-08', dlogl='3.70e-02', energy_flux='1.06e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-07 10:20:29.987655', photon_index_error2='1.00', photon_index2='2.26', ts='2.10', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.28e-05', EG='0.67', time_epoch_completed='1631035229.99', return_code='0', job_id='442982', GAL2='1.49', EG2='0.69', return_code2='0', energy_flux_error='9.99e-06', photon_flux_error2='4.35e-08', ts2='2.18', photon_index='2.53' WHERE bin_id='93' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:20:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 442982: <4FGL_J1317.6+3428_daily_bin93> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin93> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 10:05:20 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:05:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:05:30 2021
Terminated at Tue Sep  7 10:20:30 2021
Results reported at Tue Sep  7 10:20:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin93 199.401 34.4676 263433601 263692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1317.6+3428 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            910 sec.

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

