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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin71
RA = 199.401, Dec = 34.4676
tmin = 257731201, tmax = 257990401
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='441958', job_status='RUN', time_executed='2021-09-07 10:05:14.443118', time_epoch_executed='1631034314.44' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441958

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441958/ft1_4FGL_J1317.6+3428_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441958/ft2_4FGL_J1317.6+3428_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441958/ft1_4FGL_J1317.6+3428_daily_bin71.fits outfile=/scratch/kocevski/441958/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin71.fits ra=199.401 dec=34.4676 rad=12.0 tmin=257731201.0 tmax=257990401.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.42
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441958/ft1_filtered_4FGL_J1317.6+3428_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/441958/ft2_4FGL_J1317.6+3428_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/441958/ltcube_257731201_257990401_4FGL_J1317.6+3428_daily_bin71.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/441958/ft2_4FGL_J1317.6+3428_daily_bin71.fits
.....................!
real 18.15
user 17.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441958/ft1_filtered_4FGL_J1317.6+3428_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/441958/ft2_4FGL_J1317.6+3428_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/441958/ltcube_257731201_257990401_4FGL_J1317.6+3428_daily_bin71.fits outfile=/scratch/kocevski/441958/expmap_257731201_257990401_4FGL_J1317.6+3428_daily_bin71.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/441958/ltcube_257731201_257990401_4FGL_J1317.6+3428_daily_bin71.fits
.....................!
real 192.09
user 187.52
sys 4.06

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/441958/ft1_filtered_4FGL_J1317.6+3428_daily_bin71.fits scfile=/scratch/kocevski/441958/ft2_4FGL_J1317.6+3428_daily_bin71.fits outfile=/scratch/kocevski/441958/cmap_257731201_257990401_4FGL_J1317.6+3428_daily_bin71.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.58
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.837       1.0000         .10000E-03   10000.    
     6 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1525       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.607       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0809       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9489       1.0000         .10000E-03   10000.    
    14 'norm      '    11.008       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2111       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11657E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.959       1.0000         .10000E-03   10000.    
    22 'norm      '    11.088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99168       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89419       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=   5391.565     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3249 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4554        .58498E-07** at limit **
   2  Prefactor     16.890        9.8436       -.23809E-06    .26547E-04
   3  Prefactor     19.652        18.228       -.47814E-06    .18210E-04
   4  Prefactor     32.779        46.286       -.32436E-05    .10056E-04
   5  Prefactor     10.836        6.7781        .10012E-06    .73164E-04
   6  norm          .10000E-03    1.3190        .16054E-06** at limit **
   7  Prefactor     .10000E-03    28.863       -.61848E-07** at limit **
   8  Prefactor     9.1619        26.508       -.15926E-04   -.69610E-05
   9  norm          5.1845        3.6859       -.32958E-06   -.11325E-03
  10  Prefactor     .10000E-03    8.5181       -.43235E-06** at limit **
  11  norm          17.606        7.9017        .55402E-06    .29877E-04
  12  norm          8.0793        16.896        .89827E-06   -.22549E-04
  13  norm          1.9349        7.2724       -.15926E-05   -.74005E-03
  14  norm          11.025        11.104        .21566E-05    .57081E-04
  15  norm          .10000E-03    9.9107        .23807E-05** at limit **
  16  Prefactor     4.2140        3.8009       -.78559E-07   -.30304E-03
  17  Prefactor     .10000E-03    12.219        .16887E-05** at limit **
  18  Prefactor     .10000E-03    231.50        .36438E-04** at limit **
  19  Prefactor     .10000E-03    11.603        .14826E-06** at limit **
  20  Prefactor     .10000E-03    11.319       -.81038E-06** at limit **
  21  Prefactor     24.868        48.943       -.76600E-04    .60117E-05
  22  norm          11.088        2.9954        .31053E-06    .13673E-03
  23  Prefactor     .10000E-03    2.3231       -.12640E-06** at limit **
  24  norm          .10000E-03    10.988       -.11654E-05** at limit **
  25  Prefactor     .10000E-03    10.530       -.14254E-05** at limit **
  26  Normalizat    .99150        .17470        .51118E-05   -.28161E-03
  27  Prefactor     .89450        .21050       -.13453E-05    .15761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.8904
  Prefactor  = 19.6521
  Prefactor  = 32.7792
  Prefactor  = 10.8356
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.1619
  norm       = 5.18449
  Prefactor  = 0.0001
  norm       = 17.6061
  norm       = 8.07925
  norm       = 1.93491
  norm       = 11.025
  norm       = 0.0001
  Prefactor  = 4.21404
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.868
  norm       = 11.0881
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.991503
  Prefactor  = 0.8945
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.565     FROM HESSE     STATUS=OK           486 CALLS     3735 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4562        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.890        9.8443        .97453E-04   -1.4886    
   3  Prefactor     19.652        18.228        .90348E-04   -1.4821    
   4  Prefactor     32.779        46.279        .69986E-04   -1.4562    
   5  Prefactor     10.836        6.7778        .12171E-03   -1.5049    
   6  norm          .10000E-03    1.3203        .82297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.1619        26.033        .13248E-03   -1.5103    
   9  norm          5.1845        3.6839        .11509E-03   -1.5253    
  10  Prefactor     .10000E-03    8.5328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.606        7.8895        .95450E-04   -1.4869    
  12  norm          8.0793        16.893        .14104E-03   -1.5139    
  13  norm          1.9349        6.7680        .22990E-03   -1.5430    
  14  norm          11.025        10.533        .12075E-03   -1.5044    
  15  norm          .10000E-03    9.9309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2140        3.7648        .12275E-03   -1.5297    
  17  Prefactor     .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    233.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.868        48.925        .80183E-04   -1.4710    
  22  norm          11.088        2.9974        .63823E-04   -1.5042    
  23  Prefactor     .10000E-03    2.3691        .10922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99150        .20890        .22658E-03   -.93316    
  27  Prefactor     .89450        .25142        .29489E-03   -.96334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21916e-09
Minuit parameter uncertainties:
  1  1.9796e-06
  2  9.84524
  3  18.2332
  4  46.3296
  5  6.77824
  6  1.80791e-05
  7  5.01046e-05
  8  26.0656
  9  3.6841
  10  1.68708e-05
  11  7.88992
  12  16.9031
  13  6.77065
  14  10.5348
  15  1.51991e-05
  16  3.76503
  17  3.78309e-05
  18  0.000812715
  19  3.04548e-05
  20  2.84532e-05
  21  49.0042
  22  2.99744
  23  1.43511e-05
  24  9.95514e-05
  25  3.98228e-06
  26  0.209068
  27  0.251748
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.214e+00  3.765e+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:  8.945e-01  2.517e-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:  9.915e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.13e-05

TS (Fixed Index): 2.63
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441958/likelihoodResults_257731201_257990401_4FGL_J1317.6+3428_daily_bin71.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) = 5391.54146174
delta logL = 0.0237441195386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5391.53486715
delta logL = 0.0303387099166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8144       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7408       1.0000          .0000       10.000    
     3 'Normalizat'    .97925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90414       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=   5391.535     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8140        4.0227        .10815E-03    .11061E-02
   2  Index         2.7408        .88674        .81800E-02    .12419E-03
   3  Normalizat    .97926        .20828        .22775E-03   -.19307E-03
   4  Prefactor     .90414        .25247        .29348E-03   -.19101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.81399
  Index      = 2.74083
  Normalizat = 0.979263
  Prefactor  = 0.904135
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.535     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8140        3.7599        .43259E-05   -1.5317    
   2  Index         2.7408        .82790        .32720E-03   -.46882    
   3  Normalizat    .97926        .20812        .45550E-04   -.93728    
   4  Prefactor     .90414        .25241        .11739E-04   -.95997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63562e-10
Minuit parameter uncertainties:
  1  3.7601
  2  0.832734
  3  0.208289
  4  0.252736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441958': 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) = 5391.53486714
delta logL = 0.0303387229796

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.814e+00  3.760e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.741e+00  8.327e-01  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.041e-01  2.527e-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:  9.793e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.74 +/- 0.83
Photon Flux (Free Index): 5.47e-08 +/- 5.53e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.02e-05

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/441958/cmap_HighResolution_257731201_257990401_4FGL_J1317.6+3428_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='1.28e-05', photon_flux_error='4.04e-08', dlogl='3.03e-02', energy_flux='1.27e-05', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-09-07 10:16:54.704173', photon_index_error2='0.83', photon_index2='2.74', ts='2.63', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.02e-05', EG='0.99', time_epoch_completed='1631035014.7', return_code='0', job_id='441958', GAL2='0.90', EG2='0.98', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='5.53e-08', ts2='2.73', photon_index='2.53' WHERE bin_id='71' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:16:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 441958: <4FGL_J1317.6+3428_daily_bin71> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin71> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 10:01:04 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:51 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:02:51 2021
Terminated at Tue Sep  7 10:16:55 2021
Results reported at Tue Sep  7 10:16:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin71 199.401 34.4676 257731201 257990401 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            951 sec.

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

