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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin90
RA = 199.401, Dec = 34.4676
tmin = 262656001, tmax = 262915201
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='442978', job_status='RUN', time_executed='2021-09-07 10:07:54.905764', time_epoch_executed='1631034474.91' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442978/ft1_4FGL_J1317.6+3428_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442978/ft2_4FGL_J1317.6+3428_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442978/ft1_4FGL_J1317.6+3428_daily_bin90.fits outfile=/scratch/kocevski/442978/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin90.fits ra=199.401 dec=34.4676 rad=12.0 tmin=262656001.0 tmax=262915201.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.43
user 1.26
sys 0.15

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442978/ft1_filtered_4FGL_J1317.6+3428_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/442978/ft2_4FGL_J1317.6+3428_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/442978/ltcube_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.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/442978/ft2_4FGL_J1317.6+3428_daily_bin90.fits
.....................!
real 15.97
user 15.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442978/ft1_filtered_4FGL_J1317.6+3428_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/442978/ft2_4FGL_J1317.6+3428_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/442978/ltcube_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.fits outfile=/scratch/kocevski/442978/expmap_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.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/442978/ltcube_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.fits
.....................!
real 193.21
user 188.09
sys 4.21

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/442978/ft1_filtered_4FGL_J1317.6+3428_daily_bin90.fits scfile=/scratch/kocevski/442978/ft2_4FGL_J1317.6+3428_daily_bin90.fits outfile=/scratch/kocevski/442978/cmap_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.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/442978/ft1_filtered_4FGL_J1317.6+3428_daily_bin90.fits scfile=/scratch/kocevski/442978/ft2_4FGL_J1317.6+3428_daily_bin90.fits outfile=/scratch/kocevski/442978/cmap_HighResolution_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.772       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .76524E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.740       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4074       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.468       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.308       1.0000         .10000E-03   10000.    
    14 'norm      '    .90838E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9644       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4854       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0667       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1714       1.0000         .10000E-03   10000.    
    24 'norm      '    18.749       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2425       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .41023       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=   4368.764     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3346 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.768        14.125       -.52158E-07   -.16811E-04
   2  Prefactor     .10000E-03    3.2638        .18918E-07** at limit **
   3  Prefactor     .10000E-03    10.815       -.59665E-07** at limit **
   4  Prefactor     .10000E-03    16.737        .17131E-06** at limit **
   5  Prefactor     .82985E-01    6.9533        .29818E-05   -.10172E-02
   6  norm          2.2370        5.0490        .26533E-06   -.18915E-03
   7  Prefactor     .10000E-03    78.955        .42014E-06** at limit **
   8  Prefactor     28.671        37.627       -.61347E-06   -.44707E-03
   9  norm          6.4064        4.4931       -.19380E-06   -.58102E-05
  10  Prefactor     .10000E-03    24.928        .16508E-06** at limit **
  11  norm          12.472        7.1545        .18203E-06   -.23977E-03
  12  norm          .10000E-03    7.1211        .44924E-07** at limit **
  13  norm          14.359        6.6244       -.75206E-06   -.24090E-02
  14  norm          .10084E-03    12.277        .26781E-05** at limit **
  15  norm          4.9655        16.906        .72394E-05    .17423E-03
  16  Prefactor     .10000E-03    2.6253       -.92501E-06** at limit **
  17  Prefactor     5.4575        15.275        .35944E-06   -.92679E-04
  18  Prefactor     49.626        72.324       -.99377E-06   -.11027E-03
  19  Prefactor     39.622        23.346       -.25567E-06   -.38117E-04
  20  Prefactor     .10000E-03    18.891       -.31784E-06** at limit **
  21  Prefactor     .10000E-03    28.631       -.25339E-06** at limit **
  22  norm          1.0661        2.2588        .42527E-06    .16097E-03
  23  Prefactor     4.1708        3.4099       -.12453E-07    .28802E-04
  24  norm          18.745        17.035       -.18346E-06   -.21452E-04
  25  Prefactor     .10000E-03    10.156        .47493E-07** at limit **
  26  Normalizat    1.2429        .21353        .26711E-05   -.33911E-03
  27  Prefactor     .40984        .24310       -.57138E-05   -.15267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.082985
  norm       = 2.23697
  Prefactor  = 0.0001
  Prefactor  = 28.6715
  norm       = 6.40642
  Prefactor  = 0.0001
  norm       = 12.472
  norm       = 0.0001
  norm       = 14.3594
  norm       = 0.00010084
  norm       = 4.9655
  Prefactor  = 0.0001
  Prefactor  = 5.45749
  Prefactor  = 49.6261
  Prefactor  = 39.6222
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06612
  Prefactor  = 4.17084
  norm       = 18.7451
  Prefactor  = 0.0001
  Normalizat = 1.24293
  Prefactor  = 0.409841
 **********
 **   18 **HESSE 
 **********

 FCN=   4368.764     FROM HESSE     STATUS=OK           502 CALLS     3848 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.768        14.155        .12207E-03   -1.5052    
   2  Prefactor     .10000E-03    3.2682        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .82985E-01    5.4383        .49581E-01   -1.5650    
   6  norm          2.2370        4.9698        .18963E-03   -1.5409    
   7  Prefactor     .10000E-03    79.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.671        37.476        .74733E-04   -1.4637    
   9  norm          6.4064        4.4893        .11238E-03   -1.5202    
  10  Prefactor     .10000E-03    25.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.472        7.1495        .11345E-03   -1.5002    
  12  norm          .10000E-03    7.1284        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.359        7.5025        .88508E-04   -1.4950    
  14  norm          .10084E-03    16.891        .53901E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9655        16.531        .90250E-03   -1.5262    
  16  Prefactor     .10000E-03    2.6234        .10351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4575        15.240        .17156E-03   -1.5241    
  18  Prefactor     49.626        72.230        .56904E-04   -1.4298    
  19  Prefactor     39.622        23.362        .63672E-04   -1.4448    
  20  Prefactor     .10000E-03    18.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0661        2.2313        .13714E-03   -1.5501    
  23  Prefactor     4.1708        3.4087        .10660E-03   -1.5299    
  24  norm          18.745        17.047        .92498E-04   -1.4842    
  25  Prefactor     .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2429        .23170        .19606E-03   -.85286    
  27  Prefactor     .40984        .25729        .38437E-03   -1.1631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66474e-09
Minuit parameter uncertainties:
  1  14.1589
  2  1.53704e-07
  3  3.28462e-05
  4  8.39727e-05
  5  1.34289
  6  4.97072
  7  0.000109603
  8  37.5072
  9  4.48954
  10  7.60601e-05
  11  7.14997
  12  5.98921e-07
  13  7.50297
  14  0.00753399
  15  16.5458
  16  1.82198e-05
  17  15.2505
  18  72.3575
  19  23.3671
  20  0.000150084
  21  0.000120114
  22  2.2315
  23  3.40884
  24  17.0514
  25  9.94092e-06
  26  0.231891
  27  0.25802
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.822e-05  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:  4.098e-01  2.580e-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:  1.243e+00  2.319e-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: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442978/likelihoodResults_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.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) = 4368.76586903
delta logL = -0.00180970451311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4368.7640594
delta logL = -7.65030563343e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5402       1.0000          .0000       10.000    
     3 'Normalizat'    1.2430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40981       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=   4368.764     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    70.506        .10363E-02** at limit **
   2  Index         2.5734        5.3454        .50000       -.17333E-04
   3  Normalizat    1.2429        .23708E-01    .19606E-03   -.27254E-05
   4  Prefactor     .40984        .27956E-01    .38438E-03    .36438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100288
  Index      = 2.57342
  Normalizat = 1.24293
  Prefactor  = 0.409843
 **********
 **   18 **HESSE 
 **********

 FCN=   4368.764     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10029E-03    312.37        .20726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5734        8.6872        .50000       -.50672    
   3  Normalizat    1.2429        .58076E-01    .78422E-05   -.85286    
   4  Prefactor     .40984        .68427E-01    .15375E-04   -1.1631    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.71895e-08
Minuit parameter uncertainties:
  1  0.0190818
  2  869.267
  3  0.0580794
  4  0.0684402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442978': 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) = 4368.76405921
delta logL = 1.16884621093e-07

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.003e-04  1.908e-02  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.573e+00  8.693e+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:  4.098e-01  6.844e-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:  1.243e+00  5.808e-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/442978/cmap_HighResolution_262656001_262915201_4FGL_J1317.6+3428_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-07 10:18:28.428580', job_id='442978', GAL2='0.41', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631035108.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='90' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:18:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 442978: <4FGL_J1317.6+3428_daily_bin90> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin90 199.401 34.4676 262656001 262915201 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 :                                   633.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            789 sec.

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

