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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin982
RA = 199.401, Dec = 34.4676
tmin = 493862401, tmax = 494121601
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='447584', job_status='RUN', time_executed='2021-09-07 10:22:07.985386', time_epoch_executed='1631035327.99' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447584/ft1_4FGL_J1317.6+3428_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447584/ft2_4FGL_J1317.6+3428_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447584/ft1_4FGL_J1317.6+3428_daily_bin982.fits outfile=/scratch/kocevski/447584/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin982.fits ra=199.401 dec=34.4676 rad=12.0 tmin=493862401.0 tmax=494121601.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.60
user 3.41
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447584/ft2_4FGL_J1317.6+3428_daily_bin982.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/447584/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin982.fits evtable="EVENTS" outfile="/scratch/kocevski/447584/ft1_filtered_4FGL_J1317.6+3428_daily_bin982.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447584/ft1_filtered_4FGL_J1317.6+3428_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/447584/ft2_4FGL_J1317.6+3428_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/447584/ltcube_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.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/447584/ft2_4FGL_J1317.6+3428_daily_bin982.fits
.....................!
real 15.75
user 15.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447584/ft1_filtered_4FGL_J1317.6+3428_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/447584/ft2_4FGL_J1317.6+3428_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/447584/ltcube_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.fits outfile=/scratch/kocevski/447584/expmap_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.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/447584/ltcube_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.fits
.....................!
real 190.69
user 185.80
sys 4.44

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/447584/ft1_filtered_4FGL_J1317.6+3428_daily_bin982.fits scfile=/scratch/kocevski/447584/ft2_4FGL_J1317.6+3428_daily_bin982.fits outfile=/scratch/kocevski/447584/cmap_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447584/ft1_filtered_4FGL_J1317.6+3428_daily_bin982.fits scfile=/scratch/kocevski/447584/ft2_4FGL_J1317.6+3428_daily_bin982.fits outfile=/scratch/kocevski/447584/cmap_HighResolution_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8129       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1667       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3341       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6893       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5901       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.224       1.0000         .10000E-03   10000.    
    11 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40963E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.6422       1.0000         .10000E-03   10000.    
    15 'norm      '    23.792       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.699       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0274       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3323       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    27.386       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99408       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98382       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=   5422.261     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3282 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8114        10.681        .17780E-05   -.53522E-03
   2  Prefactor     6.1652        11.599        .24034E-05   -.54757E-03
   3  Prefactor     .10000E-03    9.3375       -.28856E-05** at limit **
   4  Prefactor     .10000E-03    55.535       -.18256E-05** at limit **
   5  Prefactor     3.3354        7.1907        .33533E-06   -.81789E-04
   6  norm          5.6887        4.7783       -.12249E-06    .68286E-05
   7  Prefactor     .10000E-03    13.825        .17371E-05** at limit **
   8  Prefactor     .10000E-03    19.348       -.38564E-05** at limit **
   9  norm          2.5899        3.5300        .77186E-07   -.12680E-03
  10  Prefactor     22.221        19.780       -.61026E-06   -.74123E-04
  11  norm          .10000E-03    5.2230        .85394E-07** at limit **
  12  norm          .10000E-03    4.2469        .40791E-06** at limit **
  13  norm          .10000E-03    2.2863       -.59495E-07** at limit **
  14  norm          6.6408        6.0023        .15481E-06    .24348E-03
  15  norm          23.791        19.861       -.10036E-06   -.24472E-04
  16  Prefactor     4.2115        6.2037        .14766E-05    .10154E-03
  17  Prefactor     5.9552        23.067       -.30701E-05   -.99901E-04
  18  Prefactor     26.679        62.312       -.10635E-04   -.22091E-03
  19  Prefactor     3.9897        15.303        .62413E-05   -.45518E-03
  20  Prefactor     .10000E-03    9.0208        .22146E-05** at limit **
  21  Prefactor     .10000E-03    31.514        .39725E-05** at limit **
  22  norm          2.3321        1.6390        .30504E-07   -.69827E-04
  23  Prefactor     .10000E-03    2.0253       -.15544E-06** at limit **
  24  norm          27.385        16.224       -.10727E-07   -.44636E-04
  25  Prefactor     .10000E-03    16.469        .12600E-05** at limit **
  26  Normalizat    .99389        .17881        .14910E-06    .45717E-04
  27  Prefactor     .98416        .21886       -.10327E-05    .59529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.81139
  Prefactor  = 6.16521
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 3.33538
  norm       = 5.68872
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 2.58987
  Prefactor  = 22.2211
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.64075
  norm       = 23.7913
  Prefactor  = 4.21149
  Prefactor  = 5.95523
  Prefactor  = 26.6792
  Prefactor  = 3.98971
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 2.33213
  Prefactor  = 0.0001
  norm       = 27.3854
  Prefactor  = 0.0001
  Normalizat = 0.993895
  Prefactor  = 0.984165
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.261     FROM HESSE     STATUS=OK           492 CALLS     3774 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8114        11.001        .76859E-03   -1.5186    
   2  Prefactor     6.1652        12.077        .80832E-03   -1.5211    
   3  Prefactor     .10000E-03    9.5439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3354        7.1036        .22167E-03   -1.5343    
   6  norm          5.6887        4.7430        .14033E-03   -1.5231    
   7  Prefactor     .10000E-03    13.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5899        3.5202        .15608E-03   -1.5386    
  10  Prefactor     22.221        19.594        .84965E-04   -1.4765    
  11  norm          .10000E-03    5.3872        .32786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.2518        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.717        .18859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.6408        5.5162        .15129E-03   -1.5193    
  15  norm          23.791        19.861        .82122E-04   -1.4732    
  16  Prefactor     4.2115        6.0691        .13775E-03   -1.5298    
  17  Prefactor     5.9552        22.299        .16436E-03   -1.5220    
  18  Prefactor     26.679        64.729        .77530E-04   -1.4674    
  19  Prefactor     3.9897        17.180        .10047E-02   -1.5308    
  20  Prefactor     .10000E-03    9.1418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3321        1.6377        .76355E-04   -1.5403    
  23  Prefactor     .10000E-03    4.2366        .20311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          27.385        16.248        .76554E-04   -1.4661    
  25  Prefactor     .10000E-03    16.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99389        .21230        .22549E-03   -.93235    
  27  Prefactor     .98416        .25816        .28470E-03   -.93259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70019e-09
Minuit parameter uncertainties:
  1  11.0041
  2  12.0822
  3  0.00028817
  4  0.000439659
  5  7.10539
  6  4.74332
  7  0.000207703
  8  0.000560133
  9  3.52044
  10  19.5993
  11  3.65963e-06
  12  2.63693e-05
  13  5.14356e-05
  14  5.51658
  15  19.8667
  16  6.07001
  17  22.3301
  18  64.9006
  19  16.5662
  20  0.000211165
  21  0.000732399
  22  1.63772
  23  2.54433e-05
  24  16.2502
  25  0.000161026
  26  0.212477
  27  0.258488
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.211e+00  6.070e+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:  9.842e-01  2.585e-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:  9.939e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 6.51e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.82e-05

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

Saving results to:
/scratch/kocevski/447584/likelihoodResults_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.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) = 5421.58837921
delta logL = 0.672322401636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.58225235
delta logL = 0.678449267934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4972       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5880       1.0000          .0000       10.000    
     3 'Normalizat'    .94534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0274       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.

 FCN=   5421.582     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      242 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4966        16.649        .87523E-02    .60232E-03
   2  Index         3.5881        3.0550        .13449        .11555E-03
   3  Normalizat    .94534        .48433E-01    .45478E-01    .96094E-05
   4  Prefactor     1.0274        .60972E-01    .63201E-01    .10168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49664
  Index      = 3.58814
  Normalizat = 0.945344
  Prefactor  = 1.02743
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.582     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4966        5.3943        .58759E-04   -1.5463    
   2  Index         3.5881        2.0991        .49681E-02   -.28627    
   3  Normalizat    .94534        .21205        .23028E-03   -.94885    
   4  Prefactor     1.0274        .26292        .27953E-03   -.91821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8998e-11
Minuit parameter uncertainties:
  1  5.3961
  2  2.17268
  3  0.21224
  4  0.263246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447584': 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) = 5421.58225232
delta logL = 0.678449290126

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.497e+00  5.396e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  3.588e+00  2.173e+00  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.027e+00  2.632e-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:  9.453e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 199.401 34.468
Photon Index (Free Index): 3.59 +/- 2.17
Photon Flux (Free Index): 7.97e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.14e-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/447584/cmap_HighResolution_493862401_494121601_4FGL_J1317.6+3428_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.30e-05', photon_flux_error='6.51e-08', dlogl='6.78e-01', energy_flux='1.27e-05', photon_flux2='7.97e-08', job_status='DONE', time_completed='2021-09-07 10:33:58.120448', photon_index_error2='2.17', photon_index2='3.59', ts='1.34', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.14e-05', EG='0.99', time_epoch_completed='1631036038.12', return_code='0', job_id='447584', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='5.55e-08', ts2='2.85', photon_index='2.53' WHERE bin_id='982' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:33:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 447584: <4FGL_J1317.6+3428_daily_bin982> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin982> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:07 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:21:58 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:21:58 2021
Terminated at Tue Sep  7 10:33:58 2021
Results reported at Tue Sep  7 10:33:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin982 199.401 34.4676 493862401 494121601 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 :                                   708.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            771 sec.

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

