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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1158
RA = 199.401, Dec = 34.4676
tmin = 539481601, tmax = 539740801
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='448848', job_status='RUN', time_executed='2021-09-07 10:28:31.574725', time_epoch_executed='1631035711.57' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448848/ft1_4FGL_J1317.6+3428_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448848/ft2_4FGL_J1317.6+3428_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448848/ft1_4FGL_J1317.6+3428_daily_bin1158.fits outfile=/scratch/kocevski/448848/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1158.fits ra=199.401 dec=34.4676 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.23
user 4.93
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448848/ft1_filtered_4FGL_J1317.6+3428_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/448848/ft2_4FGL_J1317.6+3428_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/448848/ltcube_539481601_539740801_4FGL_J1317.6+3428_daily_bin1158.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/448848/ft2_4FGL_J1317.6+3428_daily_bin1158.fits
.....................!
real 15.10
user 14.54
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448848/ft1_filtered_4FGL_J1317.6+3428_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/448848/ft2_4FGL_J1317.6+3428_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/448848/ltcube_539481601_539740801_4FGL_J1317.6+3428_daily_bin1158.fits outfile=/scratch/kocevski/448848/expmap_539481601_539740801_4FGL_J1317.6+3428_daily_bin1158.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/448848/ltcube_539481601_539740801_4FGL_J1317.6+3428_daily_bin1158.fits
.....................!
real 191.42
user 185.86
sys 5.16

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/448848/ft1_filtered_4FGL_J1317.6+3428_daily_bin1158.fits scfile=/scratch/kocevski/448848/ft2_4FGL_J1317.6+3428_daily_bin1158.fits outfile=/scratch/kocevski/448848/cmap_539481601_539740801_4FGL_J1317.6+3428_daily_bin1158.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.58
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    140.15       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1422       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13356E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76087E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7014       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    53.468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.205       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    96.809       1.0000         .10000E-03   10000.    
    22 'norm      '    10.278       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8655       1.0000         .10000E-03   10000.    
    24 'norm      '    32.838       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78652       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3009.034     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2754 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    12.336       -.25018E-04** at limit **
   2  Prefactor     28.589        1.0286       -.48580E-07   -.10081E-03
   3  Prefactor     .10005E-03    18.549       -.36524E-04** at limit **
   4  Prefactor     140.15        1.5790       -.67394E-06    .33903E-02
   5  Prefactor     6.1400        1.0859       -.21048E-06    .41539E-04
   6  norm          4.7123        5.4198        .23660E-05    .12583E-03
   7  Prefactor     .10001E-03    25.921        .31680E-04** at limit **
   8  Prefactor     .10018E-03    9.0286       -.27786E-05** at limit **
   9  norm          .10006E-03    107.57        .77331E-04** at limit **
  10  Prefactor     .10042E-03    272.38       -.10144E-03** at limit **
  11  norm          2.7013        4.3804       -.18684E-06    .37983E-03
  12  norm          .10000E-03    9.2936        .87359E-06** at limit **
  13  norm          .10000E-03    2.3090       -.16020E-05** at limit **
  14  norm          .10000E-03    3.5218        .12972E-06** at limit **
  15  norm          53.493        1.9945        .82766E-06   -.11295E-03
  16  Prefactor     .10000E-03    1.8937        .60116E-06** at limit **
  17  Prefactor     16.201        1.0568        .26941E-06    .13366E-03
  18  Prefactor     .10000E-03    53.701       -.36877E-04** at limit **
  19  Prefactor     18.342        1.1870       -.26122E-06   -.76407E-04
  20  Prefactor     .10000E-03    11.938        .17751E-04** at limit **
  21  Prefactor     96.777        5.0708       -.32643E-05    .10907E-01
  22  norm          10.277        3.8127        .13105E-06   -.20697E-03
  23  Prefactor     3.8646        4.8688       -.64350E-06   -.10487E-03
  24  norm          32.828        1.2182        .19690E-06   -.49681E-03
  25  Prefactor     .10011E-03    11.038        .20972E-04** at limit **
  26  Normalizat    .78726        .29320       -.20808E-05    .65069E-04
  27  Prefactor     1.2269        .37033        .56553E-06    .42825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 28.5892
  Prefactor  = 0.000100047
  Prefactor  = 140.148
  Prefactor  = 6.14
  norm       = 4.7123
  Prefactor  = 0.000100006
  Prefactor  = 0.000100182
  norm       = 0.000100057
  Prefactor  = 0.000100421
  norm       = 2.70127
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 53.4934
  Prefactor  = 0.0001
  Prefactor  = 16.2006
  Prefactor  = 0.0001
  Prefactor  = 18.3421
  Prefactor  = 0.000100004
  Prefactor  = 96.7772
  norm       = 10.2769
  Prefactor  = 3.86458
  norm       = 32.8275
  Prefactor  = 0.000100111
  Normalizat = 0.787256
  Prefactor  = 1.22689
 **********
 **   18 **HESSE 
 **********

 FCN=   3009.034     FROM HESSE     STATUS=OK           548 CALLS     3302 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    12.708        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.589        22.904        .18731E-02   -1.4638    
   3  Prefactor     .10005E-03    21.231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     140.15        148.95        .85068E-03   -1.3335    
   5  Prefactor     6.1400        8.0129        .40497E-02   -1.5212    
   6  norm          4.7123        5.5024        .46340E-02   -1.5274    
   7  Prefactor     .10001E-03    26.653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10018E-03    17.205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10006E-03    4.5898        .68414E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10042E-03    18.291        .93966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7013        4.4500        .61962E-02   -1.5379    
  12  norm          .10000E-03    9.2839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          53.493        34.493        .13713E-02   -1.4244    
  16  Prefactor     .10000E-03    1.8883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.201        20.860        .24873E-02   -1.4903    
  18  Prefactor     .10000E-03    53.992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.342        26.375        .23373E-02   -1.4851    
  20  Prefactor     .10000E-03    12.044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     96.777        117.42        .10213E-02   -1.3737    
  22  norm          10.277        3.8313        .31245E-02   -1.5067    
  23  Prefactor     3.8646        4.8969        .51311E-02   -1.5315    
  24  norm          32.828        26.069        .17481E-02   -1.4561    
  25  Prefactor     .10011E-03    15.850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78726        .26513        .43434E-01   -1.0054    
  27  Prefactor     1.2269        .31205        .62315E-01   -.85508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01917e-06
Minuit parameter uncertainties:
  1  0.00073099
  2  22.9108
  3  0.00199295
  4  149.351
  5  8.01431
  6  5.50297
  7  0.000797659
  8  0.00353872
  9  0.00102434
  10  0.00555247
  11  4.45058
  12  4.27217e-05
  13  1.32257e-05
  14  1.07146e-05
  15  34.5062
  16  1.65481e-06
  17  20.8696
  18  8.74599e-05
  19  26.3917
  20  0.000449187
  21  117.704
  22  3.83137
  23  4.89741
  24  26.0775
  25  0.00265689
  26  0.265562
  27  0.312526
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.655e-06  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.227e+00  3.125e-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:  7.873e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448848/likelihoodResults_539481601_539740801_4FGL_J1317.6+3428_daily_bin1158.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) = 3009.03641658
delta logL = -0.00242011061891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3009.03399635
delta logL = 1.2227701518e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5167       1.0000          .0000       10.000    
     3 'Normalizat'    .78725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2269       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=   3009.034     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.494        .74455E-02** at limit **
   2  Index         1.9642        5.3812        .50000        .10249E-05
   3  Normalizat    .78725        .18645E-01    .26606E-03   -.35235E-03
   4  Prefactor     1.2269        .23674E-01    .27560E-03   -.33505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96416
  Normalizat = 0.787255
  Prefactor  = 1.22689
 **********
 **   18 **HESSE 
 **********

 FCN=   3009.034     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    205.67        .83497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9642        6.0576        .50000       -.65249    
   3  Normalizat    .78725        .61058E-01    .53212E-04   -1.0054    
   4  Prefactor     1.2269        .77524E-01    .55121E-04   -.85508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37303e-08
Minuit parameter uncertainties:
  1  0.000479501
  2  832.907
  3  0.061063
  4  0.077531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448848': 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) = 3009.03399058
delta logL = 5.88321472605e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.795e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  1.964e+00  8.329e+02  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.227e+00  7.753e-02  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:  7.873e-01  6.106e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/448848/cmap_HighResolution_539481601_539740801_4FGL_J1317.6+3428_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-07 10:37:19.679528', job_id='448848', GAL2='1.23', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631036239.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='5.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1158' 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@bullet0052>
Subject: Job 448848: <4FGL_J1317.6+3428_daily_bin1158> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1158> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:36 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:25:48 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:25:48 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_bin1158 199.401 34.4676 539481601 539740801 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 :                                   527.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            704 sec.

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

