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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1428
RA = 199.401, Dec = 34.4676
tmin = 609465601, tmax = 609724801
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='449257', job_status='RUN', time_executed='2021-09-07 10:26:57.225519', time_epoch_executed='1631035617.23' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449257/ft1_4FGL_J1317.6+3428_daily_bin1428.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449257/ft2_4FGL_J1317.6+3428_daily_bin1428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449257/ft1_4FGL_J1317.6+3428_daily_bin1428.fits outfile=/scratch/kocevski/449257/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1428.fits ra=199.401 dec=34.4676 rad=12.0 tmin=609465601.0 tmax=609724801.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.28
user 2.64
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449257/ft1_filtered_4FGL_J1317.6+3428_daily_bin1428.fits" evtable="EVENTS" scfile=/scratch/kocevski/449257/ft2_4FGL_J1317.6+3428_daily_bin1428.fits sctable="SC_DATA" outfile=/scratch/kocevski/449257/ltcube_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.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/449257/ft2_4FGL_J1317.6+3428_daily_bin1428.fits
.....................!
real 16.11
user 15.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449257/ft1_filtered_4FGL_J1317.6+3428_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/449257/ft2_4FGL_J1317.6+3428_daily_bin1428.fits sctable="SC_DATA" expcube=/scratch/kocevski/449257/ltcube_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.fits outfile=/scratch/kocevski/449257/expmap_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.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/449257/ltcube_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.fits
.....................!
real 193.22
user 187.47
sys 5.26

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/449257/ft1_filtered_4FGL_J1317.6+3428_daily_bin1428.fits scfile=/scratch/kocevski/449257/ft2_4FGL_J1317.6+3428_daily_bin1428.fits outfile=/scratch/kocevski/449257/cmap_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449257/ft1_filtered_4FGL_J1317.6+3428_daily_bin1428.fits scfile=/scratch/kocevski/449257/ft2_4FGL_J1317.6+3428_daily_bin1428.fits outfile=/scratch/kocevski/449257/cmap_HighResolution_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8138       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2917       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.291       1.0000         .10000E-03   10000.    
    13 'norm      '    .41722       1.0000         .10000E-03   10000.    
    14 'norm      '    10.139       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81902E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0757       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12625E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10293E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1997       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83871       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=   7842.672     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     2834 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8385        .18109E-06** at limit **
   2  Prefactor     8.2647        8.9533        .44507E-07   -.36298E-04
   3  Prefactor     .10000E-03    7.9243       -.32442E-06** at limit **
   4  Prefactor     85.694        58.254       -.35009E-06    .36537E-06
   5  Prefactor     6.8128        6.4311        .10444E-05   -.47232E-03
   6  norm          .10000E-03    1.1574       -.18753E-07** at limit **
   7  Prefactor     52.042        40.107       -.15807E-05   -.24327E-03
   8  Prefactor     .10000E-03    11.724       -.54573E-07** at limit **
   9  norm          .10000E-03    1.0291        .53006E-08** at limit **
  10  Prefactor     5.2922        13.365        .43691E-05   -.22443E-03
  11  norm          .10000E-03    1.3911       -.19478E-06** at limit **
  12  norm          21.287        15.385        .28379E-06    .27542E-04
  13  norm          .40656        2.2032       -.26836E-06    .22491E-03
  14  norm          10.147        6.0058        .10114E-06    .64193E-03
  15  norm          .10000E-03    6.8256        .13841E-06** at limit **
  16  Prefactor     .10000E-03    1.0288       -.10822E-06** at limit **
  17  Prefactor     .10000E-03    3.5668       -.55332E-07** at limit **
  18  Prefactor     .10000E-03    82.350       -.30416E-05** at limit **
  19  Prefactor     .10000E-03    61.479        .29572E-05** at limit **
  20  Prefactor     .10001E-03    45.422        .55452E-05** at limit **
  21  Prefactor     .10001E-03    38.954       -.30067E-05** at limit **
  22  norm          3.0754        1.3219        .15279E-07   -.27346E-04
  23  Prefactor     .10000E-03    1.4893        .19793E-06** at limit **
  24  norm          .10000E-03    11.471        .26117E-06** at limit **
  25  Prefactor     .10000E-03    4.2309       -.74997E-07** at limit **
  26  Normalizat    1.1996        .15177       -.26531E-06   -.17436E-04
  27  Prefactor     .83908        .18074       -.59927E-06   -.16011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.26474
  Prefactor  = 0.0001
  Prefactor  = 85.6942
  Prefactor  = 6.81281
  norm       = 0.0001
  Prefactor  = 52.0416
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.29218
  norm       = 0.0001
  norm       = 21.2874
  norm       = 0.406562
  norm       = 10.1473
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  Prefactor  = 0.000100005
  norm       = 3.07541
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19962
  Prefactor  = 0.839081
 **********
 **   18 **HESSE 
 **********

 FCN=   7842.672     FROM HESSE     STATUS=OK           484 CALLS     3318 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8524        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2647        8.9507        .13944E-03   -1.5133    
   3  Prefactor     .10000E-03    7.9452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     85.694        58.223        .43397E-04   -1.3854    
   5  Prefactor     6.8128        6.3967        .76854E-03   -1.5186    
   6  norm          .10000E-03    1.1602        .92986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.042        40.759        .55585E-04   -1.4264    
   8  Prefactor     .10000E-03    11.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0327        .87734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2922        13.411        .87360E-03   -1.5248    
  11  norm          .10000E-03    1.4032        .10215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.287        15.396        .86805E-04   -1.4785    
  13  norm          .40656        14.239        .21093E-02   -1.5580    
  14  norm          10.147        7.2915        .12584E-03   -1.5071    
  15  norm          .10000E-03    6.8301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7194        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5729        .16331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    84.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    63.905        .41776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    47.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    39.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0754        1.3221        .64562E-04   -1.5357    
  23  Prefactor     .10000E-03    2.6816        .20935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.2333        .17792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1996        .17871        .21450E-03   -.86615    
  27  Prefactor     .83908        .21219        .30509E-03   -.98303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15156e-09
Minuit parameter uncertainties:
  1  1.53122e-05
  2  8.95217
  3  4.29401e-05
  4  58.2619
  5  6.39738
  6  1.91994e-07
  7  40.7809
  8  2.56728e-06
  9  6.00402e-08
  10  13.4185
  11  1.05327e-05
  12  15.3986
  13  4.81273
  14  7.29213
  15  1.58893e-05
  16  2.34408e-06
  17  5.79015e-06
  18  0.00118789
  19  0.000457327
  20  0.00152156
  21  0.000896745
  22  1.32209
  23  1.22876e-05
  24  2.94918e-05
  25  8.07882e-06
  26  0.1788
  27  0.212399
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.344e-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:  8.391e-01  2.124e-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.200e+00  1.788e-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.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449257/likelihoodResults_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.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) = 7842.67514233
delta logL = -0.00277433244719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7842.67237005
delta logL = -2.04848674912e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5044       1.0000          .0000       10.000    
     3 'Normalizat'    1.1997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83902       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7842.672     FROM MIGRAD    STATUS=FAILED        97 CALLS      264 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10916E-03    40.524        .17680E-02** at limit **
   2  Index         2.2919        8.7563        .50000        .97227E-04
   3  Normalizat    1.1996        .15437E-01    .21450E-03   -.33955E-03
   4  Prefactor     .83908        .18785E-01    .30509E-03   -.24668E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7842.672     FROM SIMPLEX   STATUS=PROGRESS     119 CALLS      383 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10312E-03    40.524        .18663E-03** at limit **
   2  Index         2.2869        8.7563        .16504E-02    .97227E-04
   3  Normalizat    1.1996        .15437E-01    .12859E-04   -.33955E-03
   4  Prefactor     .83904        .18785E-01    .19483E-04   -.24668E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7842.672     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      433 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.893        .35360E-02** at limit **
   2  Index         2.0030        5.4442        .50000        .38569E-06
   3  Normalizat    1.1996        .14400E-01    .42900E-04   -.56801E-03
   4  Prefactor     .83908        .17523E-01    .12204E-04   -.42070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.00298
  Normalizat = 1.19962
  Prefactor  = 0.839079
 **********
 **   18 **HESSE 
 **********

 FCN=   7842.672     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      462 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    189.29        .70721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0030        5.3635        .50000       -.64276    
   3  Normalizat    1.1996        .33065E-01    .85801E-05   -.86615    
   4  Prefactor     .83908        .40233E-01    .24407E-05   -.98304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.86404e-09
Minuit parameter uncertainties:
  1  0.000721488
  2  485.904
  3  0.0330656
  4  0.0402341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449257': 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) = 7842.67235772
delta logL = 1.02855683508e-05

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  7.215e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.003e+00  4.859e+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:  8.391e-01  4.023e-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.200e+00  3.307e-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/449257/cmap_HighResolution_609465601_609724801_4FGL_J1317.6+3428_daily_bin1428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-07 10:40:52.259538', job_id='449257', GAL2='0.84', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631036452.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1428' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:40:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 449257: <4FGL_J1317.6+3428_daily_bin1428> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1428> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:26:13 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26:44 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:26:44 2021
Terminated at Tue Sep  7 10:40:53 2021
Results reported at Tue Sep  7 10:40:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1428 199.401 34.4676 609465601 609724801 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 :                                   832.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            880 sec.

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

