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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1573
RA = 199.401, Dec = 34.4676
tmin = 647049601, tmax = 647308801
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='450295', job_status='RUN', time_executed='2021-09-07 10:32:15.912457', time_epoch_executed='1631035935.91' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/450295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/450295/ft1_4FGL_J1317.6+3428_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/450295/ft2_4FGL_J1317.6+3428_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/450295/ft1_4FGL_J1317.6+3428_daily_bin1573.fits outfile=/scratch/kocevski/450295/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1573.fits ra=199.401 dec=34.4676 rad=12.0 tmin=647049601.0 tmax=647308801.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.62
user 3.40
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/450295/ft1_filtered_4FGL_J1317.6+3428_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/450295/ft2_4FGL_J1317.6+3428_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/450295/ltcube_647049601_647308801_4FGL_J1317.6+3428_daily_bin1573.fits outfile=/scratch/kocevski/450295/expmap_647049601_647308801_4FGL_J1317.6+3428_daily_bin1573.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/450295/ltcube_647049601_647308801_4FGL_J1317.6+3428_daily_bin1573.fits
.....................!
real 191.45
user 186.80
sys 4.20

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/450295/ft1_filtered_4FGL_J1317.6+3428_daily_bin1573.fits scfile=/scratch/kocevski/450295/ft2_4FGL_J1317.6+3428_daily_bin1573.fits outfile=/scratch/kocevski/450295/cmap_647049601_647308801_4FGL_J1317.6+3428_daily_bin1573.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=199.401 yref=34.4676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/450295/ft1_filtered_4FGL_J1317.6+3428_daily_bin1573.fits scfile=/scratch/kocevski/450295/ft2_4FGL_J1317.6+3428_daily_bin1573.fits outfile=/scratch/kocevski/450295/cmap_HighResolution_647049601_647308801_4FGL_J1317.6+3428_daily_bin1573.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9318       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4882       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    98.608       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7066       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2833       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9014       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18544E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2580       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8315       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5296       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3694       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.613       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .26849       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4001       1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3030       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75947       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=   5869.493     FROM MIGRAD    STATUS=CONVERGED   1145 CALLS     4271 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9333        11.179        .23723E-03    .15814E-05
   2  Prefactor     2.4877        11.324        .12957E-02   -.18037E-03
   3  Prefactor     .32981        210.45        .55791E-02    .12445E-03
   4  Prefactor     98.630        74.171        .20241E-03    .59031E-04
   5  Prefactor     4.7225        8.7163        .92742E-03    .30272E-03
   6  norm          4.2835        4.0872        .13745E-03    .18089E-03
   7  Prefactor     .10000E-03    13.761        .18142E-02** at limit **
   8  Prefactor     2.8943        75.635        .23855E-03    .36696E-04
   9  norm          .10000E-03    1.6894        .96937E-03** at limit **
  10  Prefactor     .10038E-03    98.317        .57270E-02** at limit **
  11  norm          3.2548        6.1718        .22437E-03    .30781E-03
  12  norm          2.8314        6.0655        .12084E-02   -.22449E-03
  13  norm          .10000E-03    2.4219        .11524E-02** at limit **
  14  norm          .10000E-03    2.5734        .11978E-02** at limit **
  15  norm          2.5401        42.160        .25682E-03   -.17707E-05
  16  Prefactor     1.3740        4.6615        .22836E-03    .35630E-03
  17  Prefactor     12.599        18.948        .11279E-03    .28828E-04
  18  Prefactor     53.916        54.617        .54625E-04   -.32051E-05
  19  Prefactor     8.5567        17.196        .13705E-03   -.53919E-05
  20  Prefactor     .10000E-03    12.044        .18142E-02** at limit **
  21  Prefactor     .10000E-03    14.134        .18142E-02** at limit **
  22  norm          .26847        .74135        .11599E-02    .69103E-02
  23  Prefactor     3.4001        3.9199        .15528E-03   -.15814E-04
  24  norm          .10000E-03    2.5739        .12002E-02** at limit **
  25  Prefactor     .10000E-03    4.1321        .15210E-02** at limit **
  26  Normalizat    1.3030        .20658        .20631E-03    .38076E-03
  27  Prefactor     .75947        .24388        .32161E-03    .12942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9333
  Prefactor  = 2.48774
  Prefactor  = 0.329812
  Prefactor  = 98.6304
  Prefactor  = 4.72253
  norm       = 4.2835
  Prefactor  = 0.0001
  Prefactor  = 2.89435
  norm       = 0.0001
  Prefactor  = 0.000100377
  norm       = 3.2548
  norm       = 2.83139
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.5401
  Prefactor  = 1.37399
  Prefactor  = 12.5994
  Prefactor  = 53.9158
  Prefactor  = 8.5567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.268466
  Prefactor  = 3.40013
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30297
  Prefactor  = 0.759472
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.493     FROM HESSE     STATUS=OK           466 CALLS     4737 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9333        11.178        .94892E-05   -1.5365    
   2  Prefactor     2.4877        11.317        .51828E-04   -1.5393    
   3  Prefactor     .32981        205.37        .22316E-02   -1.5593    
   4  Prefactor     98.630        74.164        .80964E-05   -1.3718    
   5  Prefactor     4.7225        8.4187        .37097E-04   -1.5273    
   6  norm          4.2835        4.0851        .54979E-05   -1.5294    
   7  Prefactor     .10000E-03    13.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8943        75.407        .95420E-05   -1.5368    
   9  norm          .10000E-03    1.6895        .19387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10038E-03    99.646        .22908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2548        6.1587        .89749E-05   -1.5347    
  12  norm          2.8314        6.0647        .48335E-04   -1.5371    
  13  norm          .10000E-03    2.4224        .23048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5735        .23957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5401        42.153        .10273E-04   -1.5389    
  16  Prefactor     1.3740        4.6494        .91346E-05   -1.5474    
  17  Prefactor     12.599        18.919        .45116E-05   -1.4998    
  18  Prefactor     53.916        54.611        .10925E-04   -1.4238    
  19  Prefactor     8.5567        17.196        .54820E-05   -1.5123    
  20  Prefactor     .10000E-03    12.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .26847        .74044        .23197E-03   -1.5604    
  23  Prefactor     3.4001        3.9196        .62113E-05   -1.5339    
  24  norm          .10000E-03    2.5740        .24004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.1321        .30420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3030        .20656        .41262E-04   -.83478    
  27  Prefactor     .75947        .24377        .12864E-04   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00863e-09
Minuit parameter uncertainties:
  1  11.1857
  2  10.615
  3  16.5147
  4  74.2339
  5  8.4208
  6  4.08537
  7  8.98192e-06
  8  29.5879
  9  6.83454e-06
  10  0.012282
  11  6.15988
  12  6.06603
  13  2.75757e-05
  14  1.24382e-05
  15  20.7119
  16  4.65059
  17  18.9279
  18  54.6619
  19  17.2057
  20  3.43518e-06
  21  9.91193e-06
  22  0.740469
  23  3.91988
  24  5.87021e-07
  25  1.23102e-07
  26  0.206694
  27  0.244113
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.374e+00  4.651e+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:  7.595e-01  2.441e-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.303e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/450295/likelihoodResults_647049601_647308801_4FGL_J1317.6+3428_daily_bin1573.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) = 5868.95042151
delta logL = 0.542988335821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5868.90644775
delta logL = 0.586962098513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62163       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9384       1.0000          .0000       10.000    
     3 'Normalizat'    1.2505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79950       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=   5868.906     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61987        9.1419        .11758E-01    .10925E-02
   2  Index         3.9401        3.2580        .12642        .12518E-03
   3  Normalizat    1.2503        .37658E-01    .33755E-01   -.52201E-04
   4  Prefactor     .79990        .46480E-01    .70963E-01   -.21401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.619868
  Index      = 3.94011
  Normalizat = 1.25028
  Prefactor  = 0.799899
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.906     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61987        26.300        .54205E-04   -1.5551    
   2  Index         3.9401        6.9310        .65414E-02   -.21360    
   3  Normalizat    1.2503        .19382        .20961E-03   -.85063    
   4  Prefactor     .79990        .23475        .31401E-03   -.99732    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.81497e-07
Minuit parameter uncertainties:
  1  8.0784
  2  7.49604
  3  0.193928
  4  0.235049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/450295': 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) = 5868.90644568
delta logL = 0.586964168193

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  6.199e-01  8.078e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  3.940e+00  7.496e+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:  7.999e-01  2.350e-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.250e+00  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 199.401 34.468
Photon Index (Free Index): 3.94 +/- 7.50
Photon Flux (Free Index): 5.91e-08 +/- 6.17e-08
Energy Flux (Free Index): 8.94e-06 +/- 1.79e-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/450295/cmap_HighResolution_647049601_647308801_4FGL_J1317.6+3428_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', comment='SUCCESS', energy_flux2='8.94e-06', dlogl='5.87e-01', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-09-07 10:45:51.958982', photon_index_error2='7.50', photon_index2='3.94', ts='0.16', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.79e-05', EG='1.30', time_epoch_completed='1631036751.96', return_code='0', job_id='450295', GAL2='0.80', EG2='1.25', return_code2='102', photon_flux_error2='6.17e-08', ts2='1.40', photon_index='2.53' WHERE bin_id='1573' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 450295: <4FGL_J1317.6+3428_daily_bin1573> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1573> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 10:30:45 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:32:04 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:32:04 2021
Terminated at Tue Sep  7 10:45:52 2021
Results reported at Tue Sep  7 10:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1573 199.401 34.4676 647049601 647308801 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 :                                   813.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            907 sec.

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

