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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1013
RA = 199.401, Dec = 34.4676
tmin = 501897601, tmax = 502156801
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='447632', job_status='RUN', time_executed='2021-09-07 10:25:06.015692', time_epoch_executed='1631035506.02' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447632

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447632/ft1_4FGL_J1317.6+3428_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447632/ft2_4FGL_J1317.6+3428_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447632/ft1_4FGL_J1317.6+3428_daily_bin1013.fits outfile=/scratch/kocevski/447632/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1013.fits ra=199.401 dec=34.4676 rad=12.0 tmin=501897601.0 tmax=502156801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.49
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447632/ft1_filtered_4FGL_J1317.6+3428_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/447632/ft2_4FGL_J1317.6+3428_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/447632/ltcube_501897601_502156801_4FGL_J1317.6+3428_daily_bin1013.fits outfile=/scratch/kocevski/447632/expmap_501897601_502156801_4FGL_J1317.6+3428_daily_bin1013.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/447632/ltcube_501897601_502156801_4FGL_J1317.6+3428_daily_bin1013.fits
.....................!
real 191.83
user 185.55
sys 5.50

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/447632/ft1_filtered_4FGL_J1317.6+3428_daily_bin1013.fits scfile=/scratch/kocevski/447632/ft2_4FGL_J1317.6+3428_daily_bin1013.fits outfile=/scratch/kocevski/447632/cmap_501897601_502156801_4FGL_J1317.6+3428_daily_bin1013.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447632/ft1_filtered_4FGL_J1317.6+3428_daily_bin1013.fits scfile=/scratch/kocevski/447632/ft2_4FGL_J1317.6+3428_daily_bin1013.fits outfile=/scratch/kocevski/447632/cmap_HighResolution_501897601_502156801_4FGL_J1317.6+3428_daily_bin1013.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14662E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4250       1.0000         .10000E-03   10000.    
    12 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7528       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    60.454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27310E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8861       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0884       1.0000         .10000E-03   10000.    
    24 'norm      '    17.842       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5182.953     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3302 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.292        12.099        .24080E-02   -.27570E-03
   2  Prefactor     .10000E-03    3.8083        .90712E-02** at limit **
   3  Prefactor     5.3854        18.348        .43318E-02    .26046E-03
   4  Prefactor     .10000E-03    25.232        .90712E-02** at limit **
   5  Prefactor     .10000E-03    2.5183        .90712E-02** at limit **
   6  norm          4.5426        3.7537        .47221E-02    .34952E-03
   7  Prefactor     .10000E-03    32.940        .90712E-02** at limit **
   8  Prefactor     .10000E-03    7.8069        .90712E-02** at limit **
   9  norm          5.7919        3.2659        .41719E-02   -.13913E-03
  10  Prefactor     .10000E-03    60.082        .90712E-02** at limit **
  11  norm          2.4276        5.2945        .65704E-02    .16184E-02
  12  norm          .10000E-03    5.0590        .90712E-02** at limit **
  13  norm          .10000E-03    1.9150        .90712E-02** at limit **
  14  norm          .10000E-03    2.9404        .90712E-02** at limit **
  15  norm          13.672        13.916        .27081E-02   -.66875E-04
  16  Prefactor     1.7539        3.1466        .79162E-02    .65576E-03
  17  Prefactor     .10000E-03    6.2721        .90712E-02** at limit **
  18  Prefactor     60.461        53.425        .12901E-02    .24500E-03
  19  Prefactor     .10000E-03    41.870        .90712E-02** at limit **
  20  Prefactor     10.369        21.850        .31108E-02    .18426E-03
  21  Prefactor     .10000E-03    753.27        .91587E-02** at limit **
  22  norm          5.8855        2.4859        .41381E-02   -.14319E-02
  23  Prefactor     1.0872        2.6279        .11480E-01    .10522E-02
  24  norm          17.842        16.064        .23705E-02    .22212E-03
  25  Prefactor     .10000E-03    10.568        .90712E-02** at limit **
  26  Normalizat    1.0143        .17776        .44349E-01   -.96573E-03
  27  Prefactor     .96446        .22199        .45819E-01   -.50986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2917
  Prefactor  = 0.0001
  Prefactor  = 5.38538
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.54262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.79192
  Prefactor  = 0.0001
  norm       = 2.42761
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.6717
  Prefactor  = 1.75391
  Prefactor  = 0.0001
  Prefactor  = 60.4613
  Prefactor  = 0.0001
  Prefactor  = 10.3691
  Prefactor  = 0.000100004
  norm       = 5.88548
  Prefactor  = 1.08721
  norm       = 17.8415
  Prefactor  = 0.0001
  Normalizat = 1.01434
  Prefactor  = 0.964456
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.953     FROM HESSE     STATUS=OK           478 CALLS     3780 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.292        12.101        .96320E-04   -1.4876    
   2  Prefactor     .10000E-03    3.8313        .13721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3854        18.330        .17327E-03   -1.5244    
   4  Prefactor     .10000E-03    25.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5227        .11154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5426        3.7519        .12263E-03   -1.5282    
   7  Prefactor     .10000E-03    32.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7919        3.2659        .95062E-04   -1.5227    
  10  Prefactor     .10000E-03    61.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4276        5.2294        .22956E-03   -1.5396    
  12  norm          .10000E-03    5.0611        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9473        .97152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9591        .12053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.672        13.916        .10832E-03   -1.4968    
  16  Prefactor     1.7539        3.0970        .15544E-03   -1.5443    
  17  Prefactor     .10000E-03    6.2848        .17593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     60.461        53.282        .51603E-04   -1.4151    
  19  Prefactor     .10000E-03    43.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.369        21.836        .12443E-03   -1.5064    
  21  Prefactor     .10000E-03    780.52        .36635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8855        2.4890        .71074E-04   -1.5223    
  23  Prefactor     1.0872        2.5634        .17472E-03   -1.5499    
  24  norm          17.842        16.065        .94820E-04   -1.4863    
  25  Prefactor     .10000E-03    10.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0143        .20983        .22008E-03   -.92551    
  27  Prefactor     .96446        .26162        .28481E-03   -.93924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72489e-09
Minuit parameter uncertainties:
  1  12.1028
  2  2.30061e-05
  3  18.3491
  4  0.000289459
  5  1.7611e-05
  6  3.75205
  7  1.6547e-05
  8  0.000104034
  9  3.26599
  10  0.000235721
  11  5.23039
  12  5.86257e-05
  13  6.40519e-06
  14  9.63228e-06
  15  13.919
  16  3.09729
  17  0.000102931
  18  53.3237
  19  4.34844e-05
  20  21.8525
  21  0.00373591
  22  2.48904
  23  2.56364
  24  16.0694
  25  2.42201e-05
  26  0.209998
  27  0.261962
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.754e+00  3.097e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.645e-01  2.620e-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.014e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447632/likelihoodResults_501897601_502156801_4FGL_J1317.6+3428_daily_bin1013.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): 0
logL (Free Index) = 5182.93454568
delta logL = 0.0188282932859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5182.92960141
delta logL = 0.0237725670922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4569       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8013       1.0000          .0000       10.000    
     3 'Normalizat'    1.0083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5182.930     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4570        66.742        .89161E-02    .44918E-03
   2  Index         2.8029        6.3667        .22603        .16603E-04
   3  Normalizat    1.0085        .40699E-01    .46271E-01   -.87887E-04
   4  Prefactor     .96946        .50866E-01    .45886E-01    .18372E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45703
  Index      = 2.80286
  Normalizat = 1.00847
  Prefactor  = 0.969459
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.930     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4570        3.3001        .13312E-03   -1.5467    
   2  Index         2.8029        1.3935        .10434E-01   -.45496    
   3  Normalizat    1.0085        .20864        .22065E-03   -.92747    
   4  Prefactor     .96946        .26147        .28416E-03   -.93755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75983e-11
Minuit parameter uncertainties:
  1  3.3005
  2  1.41687
  3  0.208809
  4  0.261813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447632': 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): 0
logL (Free Index) = 5182.92959928
delta logL = 0.0237746991124

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.457e+00  3.300e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.803e+00  1.417e+00  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.695e-01  2.618e-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.008e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/447632/cmap_HighResolution_501897601_502156801_4FGL_J1317.6+3428_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-07 10:36:33.446298', job_id='447632', GAL2='0.97', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631036193.45', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.38e-02', ts2='0.47', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1013' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 447632: <4FGL_J1317.6+3428_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1013> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:11 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:22:05 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:22:05 2021
Terminated at Tue Sep  7 10:36:34 2021
Results reported at Tue Sep  7 10:36:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1013 199.401 34.4676 501897601 502156801 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 :                                   686.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            923 sec.

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

