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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1071
RA = 199.401, Dec = 34.4676
tmin = 516931201, tmax = 517190401
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='447724', job_status='RUN', time_executed='2021-09-07 10:25:15.166015', time_epoch_executed='1631035515.17' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447724/ft1_4FGL_J1317.6+3428_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447724/ft1_4FGL_J1317.6+3428_daily_bin1071.fits outfile=/scratch/kocevski/447724/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1071.fits ra=199.401 dec=34.4676 rad=12.0 tmin=516931201.0 tmax=517190401.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.96
user 3.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/447724/ltcube_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.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/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits
.....................!
real 15.95
user 15.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/447724/ltcube_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.fits outfile=/scratch/kocevski/447724/expmap_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.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/447724/ltcube_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.fits
.....................!
real 192.15
user 186.98
sys 4.52

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/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits scfile=/scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits outfile=/scratch/kocevski/447724/cmap_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits scfile=/scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits outfile=/scratch/kocevski/447724/cmap_HighResolution_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447724/Model_4FGL_J1317.6+3428_daily_bin1071.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/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits.....................!
real 47.60
user 46.08
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits', '/scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits', expMap='/scratch/kocevski/447724/expmap_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.fits', expCube='/scratch/kocevski/447724/ltcube_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447724/Model_4FGL_J1317.6+3428_daily_bin1071.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/447724/ft1_filtered_4FGL_J1317.6+3428_daily_bin1071.fits
Spacecraft file(s): /scratch/kocevski/447724/ft2_4FGL_J1317.6+3428_daily_bin1071.fits
Exposure map: /scratch/kocevski/447724/expmap_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.fits
Exposure cube: /scratch/kocevski/447724/ltcube_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447724/Model_4FGL_J1317.6+3428_daily_bin1071.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) = 5645.30274608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10991E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.726       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7755       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2843       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9264       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30226E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3184       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9826       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    87.318       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3588       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4628       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1660       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80233       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=   5645.291     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3279 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0167        5.7742        .14201E-05   -.86584E-03
   2  Prefactor     .10000E-03    5.0148       -.41391E-07** at limit **
   3  Prefactor     9.9769        13.414        .87242E-07   -.11810E-04
   4  Prefactor     .10000E-03    36.415        .15316E-05** at limit **
   5  Prefactor     .10000E-03    6.4378        .21564E-06** at limit **
   6  norm          .10000E-03    2.5262        .12455E-07** at limit **
   7  Prefactor     31.724        52.152       -.50698E-06   -.22139E-04
   8  Prefactor     .10000E-03    6.4792       -.13442E-05** at limit **
   9  norm          4.7755        3.3641        .42619E-06   -.10135E-02
  10  Prefactor     9.2964        19.188       -.84614E-06   -.87125E-04
  11  norm          6.9260        5.8099        .47584E-06   -.46579E-03
  12  norm          .10000E-03    4.1126        .64746E-08** at limit **
  13  norm          .10001E-03    2.0155       -.29260E-06** at limit **
  14  norm          4.3229        5.6807        .28487E-08    .11978E-03
  15  norm          .10000E-03    7.7748        .85206E-06** at limit **
  16  Prefactor     4.9809        3.6559        .16403E-07    .26415E-03
  17  Prefactor     .10000E-03    20.507       -.19008E-05** at limit **
  18  Prefactor     .10000E-03    87.033       -.12776E-05** at limit **
  19  Prefactor     .10000E-03    11.949       -.31288E-05** at limit **
  20  Prefactor     .10000E-03    13.536        .11466E-05** at limit **
  21  Prefactor     87.312        63.416       -.14756E-05   -.10073E-03
  22  norm          4.3589        2.0479        .14480E-07   -.16906E-04
  23  Prefactor     1.4632        2.8626        .17441E-06   -.14860E-03
  24  norm          .10000E-03    6.1310        .84950E-06** at limit **
  25  Prefactor     .10000E-03    13.623        .27945E-05** at limit **
  26  Normalizat    1.1659        .17870        .15311E-06    .73393E-04
  27  Prefactor     .80238        .21561       -.30476E-06    .51523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01666
  Prefactor  = 0.0001
  Prefactor  = 9.97687
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.7243
  Prefactor  = 0.0001
  norm       = 4.77555
  Prefactor  = 9.29639
  norm       = 6.92605
  norm       = 0.0001
  norm       = 0.000100013
  norm       = 4.3229
  norm       = 0.0001
  Prefactor  = 4.98094
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 87.3123
  norm       = 4.35891
  Prefactor  = 1.4632
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.16595
  Prefactor  = 0.802383
 **********
 **   18 **HESSE 
 **********

 FCN=   5645.291     FROM HESSE     STATUS=OK           486 CALLS     3765 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0167        6.4428        .10061E-02   -1.5307    
   2  Prefactor     .10000E-03    5.0269        .16433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9769        13.340        .12688E-03   -1.5076    
   4  Prefactor     .10000E-03    36.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.467        .33842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5748        .11655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.724        52.240        .71137E-04   -1.4581    
   8  Prefactor     .10000E-03    6.5941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7755        3.4879        .58130E-03   -1.5271    
  10  Prefactor     9.2964        17.962        .13153E-03   -1.5098    
  11  norm          6.9260        5.8621        .73895E-03   -1.5182    
  12  norm          .10000E-03    4.1141        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    14.079        .18467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3229        5.1986        .18126E-03   -1.5292    
  15  norm          .10000E-03    7.8256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9809        3.6342        .11414E-03   -1.5262    
  17  Prefactor     .10000E-03    20.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    87.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     87.312        64.063        .42995E-04   -1.3836    
  22  norm          4.3589        2.0511        .71094E-04   -1.5290    
  23  Prefactor     1.4632        2.8361        .17196E-03   -1.5466    
  24  norm          .10000E-03    6.1890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1659        .21156        .21292E-03   -.87662    
  27  Prefactor     .80238        .25458        .30903E-03   -.99641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69275e-09
Minuit parameter uncertainties:
  1  6.44391
  2  4.0948e-06
  3  13.3438
  4  0.000291684
  5  3.42982e-05
  6  1.33384e-06
  7  52.3153
  8  0.000108467
  9  3.48803
  10  17.9724
  11  5.86258
  12  9.31375e-07
  13  0.000842882
  14  5.19919
  15  7.47941e-05
  16  3.63434
  17  0.000254217
  18  0.000358826
  19  0.000349693
  20  0.000132367
  21  64.1137
  22  2.05111
  23  2.83638
  24  6.76565e-05
  25  0.000328002
  26  0.21172
  27  0.254951
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.981e+00  3.634e+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:  8.024e-01  2.550e-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:  1.166e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.62
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.09e-05

TS (Fixed Index): 3.62
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447724/likelihoodResults_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.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) = 5645.28511239
delta logL = 0.00593869698059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5645.28152504
delta logL = 0.00952604846225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6477       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6321       1.0000          .0000       10.000    
     3 'Normalizat'    1.1603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80752       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=   5645.282     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6475        4.4663        .10800E-03    .85952E-03
   2  Index         2.6322        .76173        .74141E-02    .10824E-03
   3  Normalizat    1.1603        .21084        .21336E-03   -.11741E-03
   4  Prefactor     .80752        .25461        .30815E-03   -.11046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64746
  Index      = 2.63215
  Normalizat = 1.16027
  Prefactor  = 0.80752
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6475        4.2056        .43199E-05   -1.5277    
   2  Index         2.6322        .71678        .29656E-03   -.49334    
   3  Normalizat    1.1603        .21075        .42672E-04   -.87840    
   4  Prefactor     .80752        .25454        .12326E-04   -.99452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30117e-10
Minuit parameter uncertainties:
  1  4.20588
  2  0.719987
  3  0.2109
  4  0.254912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447724': 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) = 5645.28152503
delta logL = 0.00952605538441

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.647e+00  4.206e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.632e+00  7.200e-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:  8.075e-01  2.549e-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:  1.160e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.63 +/- 0.72
Photon Flux (Free Index): 5.72e-08 +/- 4.72e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.06e-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/447724/cmap_HighResolution_516931201_517190401_4FGL_J1317.6+3428_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='1.46e-05', photon_flux_error='3.90e-08', dlogl='9.53e-03', energy_flux='1.50e-05', photon_flux2='5.72e-08', job_status='DONE', time_completed='2021-09-07 10:37:19.826471', photon_index_error2='0.72', photon_index2='2.63', ts='3.62', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.06e-05', EG='1.17', time_epoch_completed='1631036239.83', return_code='0', job_id='447724', GAL2='0.81', EG2='1.16', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.72e-08', ts2='3.65', photon_index='2.53' WHERE bin_id='1071' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:37:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 447724: <4FGL_J1317.6+3428_daily_bin1071> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1071> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:19 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:22:18 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:22:18 2021
Terminated at Tue Sep  7 10:37:20 2021
Results reported at Tue Sep  7 10:37:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1071 199.401 34.4676 516931201 517190401 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 :                                   723.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            961 sec.

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

