/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 2 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 = 7433
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin220
RA = 199.401, Dec = 34.4676
tmin = 296352001, tmax = 296611201
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='443174', job_status='RUN', time_executed='2021-09-07 10:07:24.337228', time_epoch_executed='1631034444.34' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443174/ft1_4FGL_J1317.6+3428_daily_bin220.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443174/ft2_4FGL_J1317.6+3428_daily_bin220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443174/ft1_4FGL_J1317.6+3428_daily_bin220.fits outfile=/scratch/kocevski/443174/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin220.fits ra=199.401 dec=34.4676 rad=12.0 tmin=296352001.0 tmax=296611201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.47
user 2.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443174/ft2_4FGL_J1317.6+3428_daily_bin220.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/443174/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin220.fits evtable="EVENTS" outfile="/scratch/kocevski/443174/ft1_filtered_4FGL_J1317.6+3428_daily_bin220.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443174/ft1_filtered_4FGL_J1317.6+3428_daily_bin220.fits" evtable="EVENTS" scfile=/scratch/kocevski/443174/ft2_4FGL_J1317.6+3428_daily_bin220.fits sctable="SC_DATA" outfile=/scratch/kocevski/443174/ltcube_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.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/443174/ft2_4FGL_J1317.6+3428_daily_bin220.fits
.....................!
real 15.16
user 14.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443174/ft1_filtered_4FGL_J1317.6+3428_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/443174/ft2_4FGL_J1317.6+3428_daily_bin220.fits sctable="SC_DATA" expcube=/scratch/kocevski/443174/ltcube_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.fits outfile=/scratch/kocevski/443174/expmap_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.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/443174/ltcube_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.fits
.....................!
real 192.01
user 187.32
sys 4.27

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/443174/ft1_filtered_4FGL_J1317.6+3428_daily_bin220.fits scfile=/scratch/kocevski/443174/ft2_4FGL_J1317.6+3428_daily_bin220.fits outfile=/scratch/kocevski/443174/cmap_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443174/ft1_filtered_4FGL_J1317.6+3428_daily_bin220.fits scfile=/scratch/kocevski/443174/ft2_4FGL_J1317.6+3428_daily_bin220.fits outfile=/scratch/kocevski/443174/cmap_HighResolution_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.146       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8710       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.143       1.0000         .10000E-03   10000.    
     9 'norm      '    .13956E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.246       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6951       1.0000         .10000E-03   10000.    
    12 'norm      '    11.835       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7195       1.0000         .10000E-03   10000.    
    14 'norm      '    .11331E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .59334       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9382       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86722       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1551       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=   6009.001     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     4014 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0338       -.20281E-07** at limit **
   2  Prefactor     27.146        12.854       -.36623E-07   -.11286E-05
   3  Prefactor     .10000E-03    9.0841        .10940E-05** at limit **
   4  Prefactor     34.249        50.929        .26190E-05   -.96714E-04
   5  Prefactor     3.8706        4.6623       -.10729E-06   -.20248E-04
   6  norm          .10000E-03    3.0105       -.28926E-07** at limit **
   7  Prefactor     .10000E-03    114.85        .68367E-06** at limit **
   8  Prefactor     29.146        29.683       -.12216E-05   -.43244E-04
   9  norm          .10001E-03    2.8028        .13814E-05** at limit **
  10  Prefactor     15.246        15.006       -.70794E-06   -.43526E-04
  11  norm          3.6952        5.6759        .20238E-05   -.88415E-04
  12  norm          11.833        11.115       -.42886E-07    .19036E-05
  13  norm          6.7210        4.8885        .22695E-06   -.14260E-03
  14  norm          .10000E-03    6.0385        .27553E-06** at limit **
  15  norm          .10000E-03    12.034       -.44253E-06** at limit **
  16  Prefactor     1.2913        5.1146        .22339E-05    .44610E-03
  17  Prefactor     2.2932        58.602       -.62989E-05   -.12782E-03
  18  Prefactor     24.506        55.927       -.30635E-05    .29376E-04
  19  Prefactor     21.743        18.833        .73616E-07    .74087E-05
  20  Prefactor     .10000E-03    6.2197        .54222E-07** at limit **
  21  Prefactor     .10000E-03    21.303       -.17408E-05** at limit **
  22  norm          .59340        1.2706        .42983E-07   -.35486E-04
  23  Prefactor     3.9388        5.3835        .65555E-07    .29172E-04
  24  norm          .10000E-03    11.634       -.46448E-06** at limit **
  25  Prefactor     .10000E-03    17.703        .22219E-05** at limit **
  26  Normalizat    .86722        .16906       -.23133E-07   -.18519E-03
  27  Prefactor     1.1551        .20303       -.54698E-07   -.14939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.1459
  Prefactor  = 0.0001
  Prefactor  = 34.2491
  Prefactor  = 3.87061
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1463
  norm       = 0.00010001
  Prefactor  = 15.2461
  norm       = 3.69522
  norm       = 11.833
  norm       = 6.72101
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.29129
  Prefactor  = 2.29323
  Prefactor  = 24.5057
  Prefactor  = 21.7428
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.593397
  Prefactor  = 3.93883
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.867216
  Prefactor  = 1.15506
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.001     FROM HESSE     STATUS=OK           494 CALLS     4508 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0399        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.146        12.852        .76890E-04   -1.4665    
   3  Prefactor     .10000E-03    9.0030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.249        50.211        .68452E-04   -1.4537    
   5  Prefactor     3.8706        4.6487        .17269E-03   -1.5314    
   6  norm          .10000E-03    3.0590        .13080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    115.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.146        29.582        .74215E-04   -1.4628    
   9  norm          .10001E-03    7.9709        .22401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.246        14.984        .10258E-03   -1.4927    
  11  norm          3.6952        5.6155        .10247E-02   -1.5323    
  12  norm          11.833        11.116        .11645E-03   -1.5020    
  13  norm          6.7210        4.3053        .11453E-03   -1.5189    
  14  norm          .10000E-03    12.242        .31918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2913        4.6294        .21938E-03   -1.5481    
  17  Prefactor     2.2932        46.750        .27059E-03   -1.5405    
  18  Prefactor     24.506        55.039        .80944E-04   -1.4717    
  19  Prefactor     21.743        18.785        .85897E-04   -1.4775    
  20  Prefactor     .10000E-03    6.2237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .59340        1.1710        .12301E-02   -1.5554    
  23  Prefactor     3.9388        5.3741        .19336E-03   -1.5311    
  24  norm          .10000E-03    11.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86722        .19966        .24212E-03   -.97622    
  27  Prefactor     1.1551        .24070        .26935E-03   -.87726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93924e-09
Minuit parameter uncertainties:
  1  2.71466e-07
  2  12.8537
  3  9.26187e-05
  4  50.2728
  5  4.64911
  6  5.99889e-07
  7  0.000268941
  8  29.5967
  9  0.000571768
  10  14.988
  11  5.61629
  12  11.1176
  13  4.30546
  14  0.000325128
  15  3.52726e-05
  16  4.63072
  17  20.7264
  18  55.1532
  19  18.7896
  20  2.05276e-06
  21  0.000211983
  22  1.17101
  23  5.37475
  24  4.26484e-05
  25  0.000271115
  26  0.199835
  27  0.240932
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.291e+00  4.631e+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.155e+00  2.409e-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:  8.672e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443174/likelihoodResults_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.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) = 6008.99832395
delta logL = 0.00290113816391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6008.99777338
delta logL = 0.00345171156005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4113       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4365       1.0000          .0000       10.000    
     3 'Normalizat'    .86817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1541       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=   6008.998     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      251 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4115        3.9393        .22611E-03   -.16833E-03
   2  Index         2.4355        1.1907        .14986E-01   -.18829E-04
   3  Normalizat    .86818        .18980        .24200E-03   -.25979E-03
   4  Prefactor     1.1540        .23968        .26945E-03   -.25904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41149
  Index      = 2.43553
  Normalizat = 0.868179
  Prefactor  = 1.15404
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.998     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4115        3.7916        .90445E-05   -1.5470    
   2  Index         2.4355        1.1476        .59944E-03   -.53855    
   3  Normalizat    .86818        .19001        .96800E-05   -.97587    
   4  Prefactor     1.1540        .23984        .53890E-04   -.87757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19947e-10
Minuit parameter uncertainties:
  1  3.79227
  2  1.16171
  3  0.190154
  4  0.240065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443174': 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) = 6008.99777297
delta logL = 0.00345211800686

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.411e+00  3.792e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.436e+00  1.162e+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.154e+00  2.401e-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:  8.682e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 199.401 34.468

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/443174/cmap_HighResolution_296352001_296611201_4FGL_J1317.6+3428_daily_bin220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2021-09-07 10:20:35.565068', job_id='443174', GAL2='1.15', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631035235.57', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.45e-03', ts2='0.17', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='220' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:20:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 443174: <4FGL_J1317.6+3428_daily_bin220> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin220> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 10:05:36 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:07:14 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:07:14 2021
Terminated at Tue Sep  7 10:20:36 2021
Results reported at Tue Sep  7 10:20:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin220 199.401 34.4676 296352001 296611201 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 :                                   790.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            900 sec.

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

