/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 9 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 = 7284
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin118
RA = 199.401, Dec = 34.4676
tmin = 269913601, tmax = 270172801
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='443019', job_status='RUN', time_executed='2021-09-07 10:06:21.009577', time_epoch_executed='1631034381.01' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443019/ft1_4FGL_J1317.6+3428_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443019/ft2_4FGL_J1317.6+3428_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443019/ft1_4FGL_J1317.6+3428_daily_bin118.fits outfile=/scratch/kocevski/443019/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin118.fits ra=199.401 dec=34.4676 rad=12.0 tmin=269913601.0 tmax=270172801.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 1.70
user 1.50
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443019/ft1_filtered_4FGL_J1317.6+3428_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/443019/ft2_4FGL_J1317.6+3428_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/443019/ltcube_269913601_270172801_4FGL_J1317.6+3428_daily_bin118.fits outfile=/scratch/kocevski/443019/expmap_269913601_270172801_4FGL_J1317.6+3428_daily_bin118.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/443019/ltcube_269913601_270172801_4FGL_J1317.6+3428_daily_bin118.fits
.....................!
real 192.95
user 187.40
sys 4.91

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/443019/ft1_filtered_4FGL_J1317.6+3428_daily_bin118.fits scfile=/scratch/kocevski/443019/ft2_4FGL_J1317.6+3428_daily_bin118.fits outfile=/scratch/kocevski/443019/cmap_269913601_270172801_4FGL_J1317.6+3428_daily_bin118.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443019/ft1_filtered_4FGL_J1317.6+3428_daily_bin118.fits scfile=/scratch/kocevski/443019/ft2_4FGL_J1317.6+3428_daily_bin118.fits outfile=/scratch/kocevski/443019/cmap_HighResolution_269913601_270172801_4FGL_J1317.6+3428_daily_bin118.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    75.781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.214       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3404       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4866       1.0000         .10000E-03   10000.    
    13 'norm      '    7.7571       1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.7985       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.941       1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.232       1.0000         .10000E-03   10000.    
    22 'norm      '    2.1007       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13245E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    24.759       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76457       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4404       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=   7819.746     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3289 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9148        10.622        .20752E-05    .37444E-03
   2  Prefactor     19.560        9.9998        .76494E-08    .33720E-05
   3  Prefactor     5.7616        16.036        .29272E-06    .60994E-05
   4  Prefactor     75.785        67.701        .36087E-06    .33790E-04
   5  Prefactor     .10000E-03    2.1192       -.34144E-07** at limit **
   6  norm          .10000E-03    1.3179        .75340E-07** at limit **
   7  Prefactor     .10000E-03    26.169       -.26315E-06** at limit **
   8  Prefactor     37.216        22.396        .15160E-06    .81725E-04
   9  norm          3.0952        3.1271        .10024E-06    .22212E-04
  10  Prefactor     .10000E-03    7.4750        .33917E-06** at limit **
  11  norm          3.3401        4.1726        .41737E-06    .10852E-03
  12  norm          6.4865        6.3975       -.22824E-05   -.73325E-03
  13  norm          7.7564        3.7816       -.21315E-07    .82938E-04
  14  norm          .10000E-03    8.1492        .47565E-06** at limit **
  15  norm          7.7983        11.581        .58687E-07    .52568E-05
  16  Prefactor     .10000E-03    .98112        .59727E-07** at limit **
  17  Prefactor     .10000E-03    4.7025        .16028E-06** at limit **
  18  Prefactor     .10000E-03    13.353        .71236E-06** at limit **
  19  Prefactor     .10000E-03    5.0184       -.15955E-06** at limit **
  20  Prefactor     21.941        18.047        .12549E-06    .81509E-04
  21  Prefactor     56.262        60.681        .22392E-05    .29186E-03
  22  norm          2.1008        1.8396        .20258E-06    .25059E-03
  23  Prefactor     .10015E-03    2.6422       -.17766E-05** at limit **
  24  norm          24.759        16.083        .20048E-07    .24611E-04
  25  Prefactor     .10000E-03    8.2892       -.14765E-06** at limit **
  26  Normalizat    .76434        .16109       -.15437E-05    .36510E-03
  27  Prefactor     1.4407        .19705        .88657E-06    .27703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.9148
  Prefactor  = 19.5599
  Prefactor  = 5.76155
  Prefactor  = 75.7852
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.2158
  norm       = 3.09519
  Prefactor  = 0.0001
  norm       = 3.34013
  norm       = 6.48652
  norm       = 7.75642
  norm       = 0.0001
  norm       = 7.79833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.9408
  Prefactor  = 56.2625
  norm       = 2.10085
  Prefactor  = 0.000100146
  norm       = 24.7592
  Prefactor  = 0.0001
  Normalizat = 0.764344
  Prefactor  = 1.44066
 **********
 **   18 **HESSE 
 **********

 FCN=   7819.746     FROM HESSE     STATUS=OK           484 CALLS     3773 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9148        10.684        .63630E-03   -1.5078    
   2  Prefactor     19.560        9.9980        .90562E-04   -1.4823    
   3  Prefactor     5.7616        16.017        .16732E-03   -1.5228    
   4  Prefactor     75.785        67.668        .46126E-04   -1.3965    
   5  Prefactor     .10000E-03    2.1263        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3217        .99054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.216        22.384        .65699E-04   -1.4487    
   9  norm          3.0952        3.1237        .15150E-03   -1.5356    
  10  Prefactor     .10000E-03    7.5100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3401        4.1630        .19405E-03   -1.5342    
  12  norm          6.4865        6.5052        .78790E-03   -1.5199    
  13  norm          7.7564        3.7350        .11114E-03   -1.5151    
  14  norm          .10000E-03    8.2620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.7983        11.574        .14359E-03   -1.5149    
  16  Prefactor     .10000E-03    .98989        .85452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.941        18.050        .85512E-04   -1.4771    
  21  Prefactor     56.262        61.294        .53495E-04   -1.4206    
  22  norm          2.1008        1.8279        .10745E-03   -1.5418    
  23  Prefactor     .10015E-03    10.855        .21751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          24.759        16.078        .80505E-04   -1.4712    
  25  Prefactor     .10000E-03    8.3004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76434        .19046        .27634E-03   -1.0141    
  27  Prefactor     1.4407        .23693        .26513E-03   -.79215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44043e-08
Minuit parameter uncertainties:
  1  10.6856
  2  9.99889
  3  16.0292
  4  67.7372
  5  1.57407e-06
  6  2.02922e-06
  7  0.000113211
  8  22.3893
  9  3.12384
  10  0.000100583
  11  4.1634
  12  6.50593
  13  3.73508
  14  6.75871e-06
  15  11.5776
  16  1.79687e-06
  17  2.50763e-05
  18  0.000248218
  19  2.75081e-05
  20  18.0546
  21  61.3625
  22  1.8279
  23  0.00251419
  24  16.081
  25  3.99564e-05
  26  0.190627
  27  0.237107
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.797e-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.441e+00  2.371e-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.643e-01  1.906e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443019/likelihoodResults_269913601_270172801_4FGL_J1317.6+3428_daily_bin118.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) = 7819.75063159
delta logL = -0.00474216683779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7819.74588954
delta logL = -1.20683580462e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5258       1.0000          .0000       10.000    
     3 'Normalizat'    .76437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4407       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=   7819.746     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      254 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7631        .85726E-02** at limit **
   2  Index         2.1883        6.0921        .50000       -.10268E-06
   3  Normalizat    .76434        .10313E-01    .27634E-03   -.34203E-03
   4  Prefactor     1.4407        .13175E-01    .26513E-03   -.33119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18835
  Normalizat = 0.764342
  Prefactor  = 1.44067
 **********
 **   18 **HESSE 
 **********

 FCN=   7819.746     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    146.29        .88586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1883        6.7211        .50000       -.59720    
   3  Normalizat    .76434        .55627E-01    .11054E-04   -1.0141    
   4  Prefactor     1.4407        .71039E-01    .53025E-04   -.79215    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.43697e-10
Minuit parameter uncertainties:
  1  1.12249e-05
  2  920.281
  3  0.0556309
  4  0.0710438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443019': 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) = 7819.7458862
delta logL = 3.21816787618e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.122e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.188e+00  9.203e+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.441e+00  7.104e-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.643e-01  5.563e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/443019/cmap_HighResolution_269913601_270172801_4FGL_J1317.6+3428_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-07 10:20:40.989768', job_id='443019', GAL2='1.44', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631035240.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='3.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='118' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:20:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 443019: <4FGL_J1317.6+3428_daily_bin118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin118 199.401 34.4676 269913601 270172801 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 :                                   858.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            921 sec.

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

