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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin778
RA = 199.401, Dec = 34.4676
tmin = 440985601, tmax = 441244801
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='447262', job_status='RUN', time_executed='2021-09-07 10:20:58.395124', time_epoch_executed='1631035258.4' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447262/ft1_4FGL_J1317.6+3428_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447262/ft2_4FGL_J1317.6+3428_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447262/ft1_4FGL_J1317.6+3428_daily_bin778.fits outfile=/scratch/kocevski/447262/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin778.fits ra=199.401 dec=34.4676 rad=12.0 tmin=440985601.0 tmax=441244801.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.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447262/ft1_filtered_4FGL_J1317.6+3428_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/447262/ft2_4FGL_J1317.6+3428_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/447262/ltcube_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.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/447262/ft2_4FGL_J1317.6+3428_daily_bin778.fits
.....................!
real 17.71
user 17.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447262/ft1_filtered_4FGL_J1317.6+3428_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/447262/ft2_4FGL_J1317.6+3428_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/447262/ltcube_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.fits outfile=/scratch/kocevski/447262/expmap_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.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/447262/ltcube_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.fits
.....................!
real 194.43
user 188.87
sys 4.90

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/447262/ft1_filtered_4FGL_J1317.6+3428_daily_bin778.fits scfile=/scratch/kocevski/447262/ft2_4FGL_J1317.6+3428_daily_bin778.fits outfile=/scratch/kocevski/447262/cmap_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.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.61
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447262/ft1_filtered_4FGL_J1317.6+3428_daily_bin778.fits scfile=/scratch/kocevski/447262/ft2_4FGL_J1317.6+3428_daily_bin778.fits outfile=/scratch/kocevski/447262/cmap_HighResolution_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8476       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.709       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.013       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4756       1.0000         .10000E-03   10000.    
    12 'norm      '    35.371       1.0000         .10000E-03   10000.    
    13 'norm      '    .44623E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7117       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49819       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9949       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9417       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .61186       1.0000         .10000E-03   10000.    
    24 'norm      '    14.746       1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.626       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89475       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1618       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=   6651.443     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3286 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8476        5.1244        .31014E-07   -.10662E-04
   2  Prefactor     6.1093        6.0393       -.19600E-07   -.23931E-05
   3  Prefactor     .10000E-03    7.6432        .46073E-06** at limit **
   4  Prefactor     14.080        47.631       -.16081E-05   -.51548E-04
   5  Prefactor     .10000E-03    2.3391        .88412E-09** at limit **
   6  norm          3.6626        3.6410        .26929E-06   -.15856E-03
   7  Prefactor     .10000E-03    43.154       -.83869E-07** at limit **
   8  Prefactor     35.704        25.908       -.61984E-06   -.40349E-03
   9  norm          .10000E-03    1.7404        .34175E-07** at limit **
  10  Prefactor     27.016        20.518       -.27096E-06   -.14936E-03
  11  norm          6.4749        5.5871        .17302E-05   -.59062E-03
  12  norm          35.371        17.932        .18063E-07   -.18253E-05
  13  norm          .10003E-03    2.1708        .71893E-06** at limit **
  14  norm          2.7133        3.9321        .19202E-06   -.67230E-03
  15  norm          .10000E-03    5.8444       -.32271E-06** at limit **
  16  Prefactor     .50310        3.3440        .12910E-05   -.86180E-03
  17  Prefactor     .10000E-03    8.5698       -.49452E-06** at limit **
  18  Prefactor     43.952        49.226       -.63071E-05   -.50213E-03
  19  Prefactor     .10000E-03    3.9590       -.29256E-07** at limit **
  20  Prefactor     4.9961        14.429        .46641E-07   -.31918E-04
  21  Prefactor     .10000E-03    35.544        .20337E-06** at limit **
  22  norm          2.9417        1.6240       -.14712E-08   -.44761E-04
  23  Prefactor     .61155        3.6609        .15617E-05   -.25004E-03
  24  norm          14.746        14.288        .56156E-06   -.41795E-04
  25  Prefactor     23.626        23.271       -.14810E-06   -.84616E-05
  26  Normalizat    .89459        .16702       -.10677E-06   -.42597E-03
  27  Prefactor     1.1620        .20180        .15822E-06   -.30177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.84756
  Prefactor  = 6.10929
  Prefactor  = 0.0001
  Prefactor  = 14.08
  Prefactor  = 0.0001
  norm       = 3.6626
  Prefactor  = 0.0001
  Prefactor  = 35.7037
  norm       = 0.0001
  Prefactor  = 27.0157
  norm       = 6.47488
  norm       = 35.3713
  norm       = 0.000100032
  norm       = 2.71334
  norm       = 0.0001
  Prefactor  = 0.503103
  Prefactor  = 0.0001
  Prefactor  = 43.9518
  Prefactor  = 0.0001
  Prefactor  = 4.9961
  Prefactor  = 0.0001
  norm       = 2.94172
  Prefactor  = 0.611553
  norm       = 14.7455
  Prefactor  = 23.6258
  Normalizat = 0.894588
  Prefactor  = 1.16202
 **********
 **   18 **HESSE 
 **********

 FCN=   6651.443     FROM HESSE     STATUS=OK           492 CALLS     3778 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8476        5.1187        .20574E-03   -1.5316    
   2  Prefactor     6.1093        6.0416        .16243E-03   -1.5214    
   3  Prefactor     .10000E-03    7.6543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.080        47.701        .10673E-03   -1.4957    
   5  Prefactor     .10000E-03    2.3422        .12173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6626        3.6308        .14489E-03   -1.5325    
   7  Prefactor     .10000E-03    43.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.704        25.720        .67064E-04   -1.4512    
   9  norm          .10000E-03    1.7670        .10504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.016        20.531        .77079E-04   -1.4668    
  11  norm          6.4749        5.7564        .78857E-03   -1.5199    
  12  norm          35.371        17.931        .67383E-04   -1.4518    
  13  norm          .10003E-03    7.2386        .20351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7133        3.7160        .17882E-03   -1.5379    
  15  norm          .10000E-03    5.8527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50310        5.2778        .23370E-02   -1.5566    
  17  Prefactor     .10000E-03    8.6001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.952        52.385        .60454E-04   -1.4381    
  19  Prefactor     .10000E-03    3.9620        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9961        14.421        .17994E-03   -1.5261    
  21  Prefactor     .10000E-03    35.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9417        1.6232        .74672E-04   -1.5365    
  23  Prefactor     .61155        3.9315        .29989E-02   -1.5552    
  24  norm          14.746        14.316        .52152E-03   -1.4940    
  25  Prefactor     23.626        23.266        .82409E-04   -1.4735    
  26  Normalizat    .89459        .19991        .24286E-03   -.96651    
  27  Prefactor     1.1620        .24398        .27256E-03   -.87508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3916e-08
Minuit parameter uncertainties:
  1  5.11928
  2  6.04219
  3  3.82784e-05
  4  47.8307
  5  4.64156e-06
  6  3.63105
  7  3.50536e-05
  8  25.7278
  9  3.67473e-07
  10  20.5362
  11  5.75686
  12  17.934
  13  0.000965163
  14  3.71633
  15  2.71795e-05
  16  3.25905
  17  6.52182e-05
  18  52.4401
  19  4.13113e-06
  20  14.4315
  21  3.72239e-05
  22  1.62326
  23  3.1012
  24  14.3192
  25  23.275
  26  0.200079
  27  0.244216
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.031e-01  3.259e+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.162e+00  2.442e-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.946e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447262/likelihoodResults_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.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): 102
logL (Free Index) = 6651.06982183
delta logL = 0.373312287733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6650.64385394
delta logL = 0.799280171766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75652E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6157       1.0000          .0000       10.000    
     3 'Normalizat'    .82727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2239       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=   6650.644     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      300 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75805E-03    .99572E-02    .46890E-03** at limit **
   2  Index         7.6157        2.5817        .18753       -.46587E-04
   3  Normalizat    .82744        .31809E-01    .43965E-01   -.33509E-04
   4  Prefactor     1.2237        .40386E-01    .60274E-01   -.33821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000758052
  Index      = 7.61567
  Normalizat = 0.827443
  Prefactor  = 1.22372
 **********
 **   18 **HESSE 
 **********

 FCN=   6650.644     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      335 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75805E-03    .32965E-01    .20701E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6157        8.3679        .67512E-02    .55053    
   3  Normalizat    .82744        .13379        .25116E-03   -.99059    
   4  Prefactor     1.2237        .16744        .26656E-03   -.85605    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.68429e-08
Minuit parameter uncertainties:
  1  0.00931512
  2  6.47284
  3  0.133844
  4  0.167508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447262': 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): 102
logL (Free Index) = 6650.64385009
delta logL = 0.799284021728

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  7.581e-04  9.315e-03  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  7.616e+00  6.473e+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.224e+00  1.675e-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.274e-01  1.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 199.401 34.468
Photon Index (Free Index): 7.62 +/- 6.47
Photon Flux (Free Index): 5.34e-08 +/- 4.39e-08
Energy Flux (Free Index): 6.26e-06 +/- 5.53e-06

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/447262/cmap_HighResolution_440985601_441244801_4FGL_J1317.6+3428_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', comment='SUCCESS', energy_flux2='6.26e-06', dlogl='7.99e-01', photon_flux2='5.34e-08', job_status='DONE', time_completed='2021-09-07 10:34:25.010105', photon_index_error2='6.47', photon_index2='7.62', ts='0.03', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='8.42e-08', energy_flux_error2='5.53e-06', EG='0.89', time_epoch_completed='1631036065.01', return_code='0', job_id='447262', GAL2='1.22', EG2='0.83', return_code2='102', photon_flux_error2='4.39e-08', ts2='1.74', photon_index='2.53' WHERE bin_id='778' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:34:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 447262: <4FGL_J1317.6+3428_daily_bin778> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin778> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:20:35 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:20:49 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:20:49 2021
Terminated at Tue Sep  7 10:34:25 2021
Results reported at Tue Sep  7 10:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin778 199.401 34.4676 440985601 441244801 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 :                                   805.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            830 sec.

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

