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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1083
RA = 199.401, Dec = 34.4676
tmin = 520041601, tmax = 520300801
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='447741', job_status='RUN', time_executed='2021-09-07 10:25:03.016479', time_epoch_executed='1631035503.02' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447741

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447741/ft1_4FGL_J1317.6+3428_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447741/ft2_4FGL_J1317.6+3428_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447741/ft1_4FGL_J1317.6+3428_daily_bin1083.fits outfile=/scratch/kocevski/447741/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1083.fits ra=199.401 dec=34.4676 rad=12.0 tmin=520041601.0 tmax=520300801.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 4.37
user 4.10
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447741/ft1_filtered_4FGL_J1317.6+3428_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/447741/ft2_4FGL_J1317.6+3428_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/447741/ltcube_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.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/447741/ft2_4FGL_J1317.6+3428_daily_bin1083.fits
.....................!
real 16.82
user 16.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447741/ft1_filtered_4FGL_J1317.6+3428_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/447741/ft2_4FGL_J1317.6+3428_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/447741/ltcube_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.fits outfile=/scratch/kocevski/447741/expmap_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.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/447741/ltcube_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.fits
.....................!
real 195.60
user 189.09
sys 5.19

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/447741/ft1_filtered_4FGL_J1317.6+3428_daily_bin1083.fits scfile=/scratch/kocevski/447741/ft2_4FGL_J1317.6+3428_daily_bin1083.fits outfile=/scratch/kocevski/447741/cmap_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447741/ft1_filtered_4FGL_J1317.6+3428_daily_bin1083.fits scfile=/scratch/kocevski/447741/ft2_4FGL_J1317.6+3428_daily_bin1083.fits outfile=/scratch/kocevski/447741/cmap_HighResolution_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.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/447741/ft1_filtered_4FGL_J1317.6+3428_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/447741/ft2_4FGL_J1317.6+3428_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447741/Model_4FGL_J1317.6+3428_daily_bin1083.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/447741/ft1_filtered_4FGL_J1317.6+3428_daily_bin1083.fits....................!
real 42.52
user 40.77
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12323E-03   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 '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.2310       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.086       1.0000         .10000E-03   10000.    
     9 'norm      '    11.642       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.129       1.0000         .10000E-03   10000.    
    12 'norm      '    14.247       1.0000         .10000E-03   10000.    
    13 'norm      '    .82173       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6408       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8062       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .74683E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4230       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .56617       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=   4719.456     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     2828 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.824        .46355E-06** at limit **
   2  Prefactor     .10000E-03    4.1292       -.79996E-08** at limit **
   3  Prefactor     .10000E-03    5.6484        .91987E-08** at limit **
   4  Prefactor     .10000E-03    115.94        .40553E-05** at limit **
   5  Prefactor     .10000E-03    4.7091       -.19184E-07** at limit **
   6  norm          5.2311        4.7510        .14080E-07   -.50357E-04
   7  Prefactor     .10000E-03    43.277        .47032E-06** at limit **
   8  Prefactor     14.085        26.143        .45054E-06   -.59240E-05
   9  norm          11.643        4.9654       -.54925E-08   -.21507E-04
  10  Prefactor     .10000E-03    9.2731        .51856E-07** at limit **
  11  norm          11.129        6.6352        .31414E-07    .75836E-06
  12  norm          14.248        13.368       -.60960E-08   -.27271E-05
  13  norm          .82299        1.8281       -.83216E-06   -.15403E-04
  14  norm          .10000E-03    3.0037        .22772E-06** at limit **
  15  norm          .10000E-03    14.445        .10057E-05** at limit **
  16  Prefactor     .10000E-03    1.8319        .53084E-08** at limit **
  17  Prefactor     .10000E-03    7.8422       -.18305E-06** at limit **
  18  Prefactor     .10000E-03    30.867       -.19215E-06** at limit **
  19  Prefactor     5.6410        12.257       -.26436E-06    .79929E-07
  20  Prefactor     .10000E-03    9.2364        .42358E-07** at limit **
  21  Prefactor     .10000E-03    31.935       -.72982E-06** at limit **
  22  norm          5.8065        2.3618       -.71462E-08    .46555E-05
  23  Prefactor     .10000E-03    6.3779       -.32515E-07** at limit **
  24  norm          .10000E-03    152.06       -.34841E-05** at limit **
  25  Prefactor     .10000E-03    13.613       -.98910E-06** at limit **
  26  Normalizat    1.4229        .19036        .23593E-06   -.43618E-04
  27  Prefactor     .56623        .23078       -.63230E-07   -.16505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.23106
  Prefactor  = 0.0001
  Prefactor  = 14.0847
  norm       = 11.6425
  Prefactor  = 0.0001
  norm       = 11.1293
  norm       = 14.2479
  norm       = 0.822994
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.80649
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42288
  Prefactor  = 0.566235
 **********
 **   18 **HESSE 
 **********

 FCN=   4719.456     FROM HESSE     STATUS=OK           494 CALLS     3322 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1406        .13634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6493        .15947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    116.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7919        .14554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.2311        4.7424        .13055E-03   -1.5250    
   7  Prefactor     .10000E-03    43.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.085        26.141        .10672E-03   -1.4957    
   9  norm          11.643        4.9677        .97080E-04   -1.5025    
  10  Prefactor     .10000E-03    9.3010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.129        6.6315        .12009E-03   -1.5041    
  12  norm          14.248        13.369        .10611E-03   -1.4953    
  13  norm          .82299        1.8328        .16044E-02   -1.5527    
  14  norm          .10000E-03    3.0782        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8658        .90708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6410        12.263        .84569E-03   -1.5233    
  20  Prefactor     .10000E-03    9.2522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8065        2.3621        .65425E-04   -1.5226    
  23  Prefactor     .10000E-03    6.6444        .33830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.418        .75555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4229        .21999        .19663E-03   -.79969    
  27  Prefactor     .56623        .26475        .36206E-03   -1.0903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0004e-09
Minuit parameter uncertainties:
  1  3.67531e-05
  2  2.0061e-07
  3  1.49052e-08
  4  2.23269e-05
  5  7.76128e-08
  6  4.74272
  7  4.43926e-07
  8  26.1626
  9  4.96785
  10  2.72833e-07
  11  6.63191
  12  13.3715
  13  1.8329
  14  1.28086e-06
  15  1.57658e-06
  16  6.61137e-07
  17  1.70037e-06
  18  2.12977e-07
  19  12.2682
  20  1.22505e-06
  21  3.94696e-06
  22  2.36216
  23  1.04782e-06
  24  6.52272e-06
  25  2.54623e-06
  26  0.220135
  27  0.265333
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  6.611e-07  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:  5.662e-01  2.653e-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.423e+00  2.201e-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: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447741/likelihoodResults_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.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) = 4719.4587526
delta logL = -0.00253153158246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4719.45622503
delta logL = -3.96559971705e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12179E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4958       1.0000          .0000       10.000    
     3 'Normalizat'    1.4230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56610       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=   4719.357     FROM MIGRAD    STATUS=CONVERGED    240 CALLS      395 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61257        2.0049        .32092E-01    .10383E-02
   2  Index         1.2893        .76498        .23550       -.10268E-03
   3  Normalizat    1.4265        .18834        .44431E-01   -.29765E-04
   4  Prefactor     .55785        .23006        .82290E-01    .60395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.612566
  Index      = 1.2893
  Normalizat = 1.42649
  Prefactor  = 0.557855
 **********
 **   18 **HESSE 
 **********

 FCN=   4719.357     FROM HESSE     STATUS=OK            35 CALLS      430 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61257        1.8586        .16159E-02   -1.5551    
   2  Index         1.2893        1.0017        .14553E-01   -.83626    
   3  Normalizat    1.4265        .21630        .19639E-03   -.79865    
   4  Prefactor     .55785        .26353        .36449E-03   -1.0939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20724e-10
Minuit parameter uncertainties:
  1  1.85874
  2  1.01729
  3  0.216441
  4  0.264112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447741': 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) = 4719.35691584
delta logL = 0.0993052244412

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  6.126e-01  1.859e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  1.289e+00  1.017e+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:  5.579e-01  2.641e-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.426e+00  2.164e-01  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/447741/cmap_HighResolution_520041601_520300801_4FGL_J1317.6+3428_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-07 10:36:01.438890', job_id='447741', GAL2='0.56', fit_tolerance='1e-08', EG2='1.43', EG='1.42', time_epoch_completed='1631036161.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='9.93e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1083' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 447741: <4FGL_J1317.6+3428_daily_bin1083> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1083 199.401 34.4676 520041601 520300801 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 :                                   655.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            882 sec.

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

