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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1466
RA = 199.401, Dec = 34.4676
tmin = 619315201, tmax = 619574401
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='449315', job_status='RUN', time_executed='2021-09-07 10:27:03.490644', time_epoch_executed='1631035623.49' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449315

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449315/ft1_4FGL_J1317.6+3428_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449315/ft2_4FGL_J1317.6+3428_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449315/ft1_4FGL_J1317.6+3428_daily_bin1466.fits outfile=/scratch/kocevski/449315/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1466.fits ra=199.401 dec=34.4676 rad=12.0 tmin=619315201.0 tmax=619574401.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.57
user 3.32
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449315/ft1_filtered_4FGL_J1317.6+3428_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/449315/ft2_4FGL_J1317.6+3428_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/449315/ltcube_619315201_619574401_4FGL_J1317.6+3428_daily_bin1466.fits outfile=/scratch/kocevski/449315/expmap_619315201_619574401_4FGL_J1317.6+3428_daily_bin1466.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/449315/ltcube_619315201_619574401_4FGL_J1317.6+3428_daily_bin1466.fits
.....................!
real 191.89
user 187.09
sys 4.16

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

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449315/ft1_filtered_4FGL_J1317.6+3428_daily_bin1466.fits scfile=/scratch/kocevski/449315/ft2_4FGL_J1317.6+3428_daily_bin1466.fits outfile=/scratch/kocevski/449315/cmap_HighResolution_619315201_619574401_4FGL_J1317.6+3428_daily_bin1466.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8699       1.0000         .10000E-03   10000.    
     6 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5668       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6673       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.075       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0886       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2541       1.0000         .10000E-03   10000.    
    24 'norm      '    15.161       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0080       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0196       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=   5663.025     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3262 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7532        .22112E-06** at limit **
   2  Prefactor     6.8518        6.5391       -.92270E-07    .16451E-03
   3  Prefactor     .10000E-03    13.382        .43483E-05** at limit **
   4  Prefactor     77.546        83.676        .27145E-04    .13407E-03
   5  Prefactor     1.8702        4.2047       -.49697E-07   -.10817E-03
   6  norm          .10000E-03    5.5872       -.38132E-05** at limit **
   7  Prefactor     22.443        40.246        .24381E-05    .88798E-06
   8  Prefactor     .10000E-03    8.4343       -.14261E-05** at limit **
   9  norm          .10000E-03    3.9648       -.77257E-06** at limit **
  10  Prefactor     .10000E-03    4.4218        .92161E-06** at limit **
  11  norm          .10000E-03    2.0803       -.89043E-09** at limit **
  12  norm          .10000E-03    8.2335       -.31348E-06** at limit **
  13  norm          4.5682        3.5195       -.17484E-06   -.34633E-03
  14  norm          .10000E-03    3.1673       -.56703E-07** at limit **
  15  norm          .10000E-03    11.688       -.77935E-06** at limit **
  16  Prefactor     5.6673        3.6300       -.15319E-06    .28867E-04
  17  Prefactor     1.3258        4.4974        .16446E-05   -.93407E-03
  18  Prefactor     27.075        45.926       -.16858E-06   -.33249E-06
  19  Prefactor     .10000E-03    16.694       -.39634E-05** at limit **
  20  Prefactor     .10000E-03    32.344        .28678E-05** at limit **
  21  Prefactor     .10000E-03    60.802       -.18413E-05** at limit **
  22  norm          3.0887        1.6718        .79132E-07   -.38873E-04
  23  Prefactor     5.2544        4.6294        .29332E-06   -.18736E-04
  24  norm          15.162        19.936        .84883E-06   -.18197E-04
  25  Prefactor     .10000E-03    6.5515        .35442E-05** at limit **
  26  Normalizat    1.0080        .17128       -.88770E-06    .99870E-04
  27  Prefactor     1.0196        .20980       -.17391E-05    .10278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.85185
  Prefactor  = 0.0001
  Prefactor  = 77.5462
  Prefactor  = 1.87016
  norm       = 0.000100004
  Prefactor  = 22.443
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.56817
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.66729
  Prefactor  = 1.32583
  Prefactor  = 27.0749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08867
  Prefactor  = 5.25436
  norm       = 15.162
  Prefactor  = 0.0001
  Normalizat = 1.00799
  Prefactor  = 1.01965
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.025     FROM HESSE     STATUS=OK           486 CALLS     3748 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7592        .14238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8518        6.5445        .76638E-03   -1.5184    
   3  Prefactor     .10000E-03    13.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     77.546        84.206        .45610E-04   -1.3944    
   5  Prefactor     1.8702        4.1770        .22389E-03   -1.5434    
   6  norm          .10000E-03    6.0044        .35247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.443        40.241        .84554E-04   -1.4760    
   8  Prefactor     .10000E-03    8.4485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.1106        .29229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4253        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0944        .10596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.3129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5682        3.5036        .57921E-03   -1.5280    
  14  norm          .10000E-03    3.1708        .13050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6673        3.9474        .10538E-03   -1.5232    
  17  Prefactor     1.3258        30.678        .19103E-02   -1.5478    
  18  Prefactor     27.075        45.949        .76991E-04   -1.4667    
  19  Prefactor     .10000E-03    16.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    60.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0887        1.6700        .69267E-04   -1.5356    
  23  Prefactor     5.2544        4.6286        .14422E-03   -1.5249    
  24  norm          15.162        19.992        .10286E-03   -1.4929    
  25  Prefactor     .10000E-03    6.5397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0080        .20646        .22758E-03   -.92763    
  27  Prefactor     1.0196        .25152        .28150E-03   -.92077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12425e-08
Minuit parameter uncertainties:
  1  1.02294e-06
  2  6.54515
  3  2.9048e-05
  4  84.3354
  5  4.17764
  6  0.000306056
  7  40.2901
  8  2.84047e-05
  9  1.8455e-05
  10  5.13661e-06
  11  2.26975e-06
  12  2.59798e-06
  13  3.50374
  14  2.66874e-06
  15  8.34599e-06
  16  3.94759
  17  12.7622
  18  46.0095
  19  2.49943e-05
  20  0.000109707
  21  5.42535e-05
  22  1.67002
  23  4.62889
  24  20.0005
  25  1.50757e-05
  26  0.206619
  27  0.251813
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.667e+00  3.948e+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:  1.020e+00  2.518e-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.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 6.09e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.19e-05

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) = 5662.80272926
delta logL = 0.222093292392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.80236659
delta logL = 0.222455962986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3388       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2178       1.0000          .0000       10.000    
     3 'Normalizat'    1.0210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0061       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=   5662.802     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3377        124.32        .37014E-02    .21161E-03
   2  Index         2.2177        6.0422        .16540        .72188E-04
   3  Normalizat    1.0209        .10277        .43204E-01    .68781E-04
   4  Prefactor     1.0063        .12941        .63990E-01   -.41237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.33767
  Index      = 2.21765
  Normalizat = 1.02091
  Prefactor  = 1.00629
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.802     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3377        4.7753        .11879E-03   -1.5166    
   2  Index         2.2177        .45017        .64341E-02   -.59013    
   3  Normalizat    1.0209        .20149        .22628E-03   -.92333    
   4  Prefactor     1.0063        .25000        .28301E-03   -.92520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54572e-11
Minuit parameter uncertainties:
  1  4.77559
  2  0.451054
  3  0.201641
  4  0.250284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449315': 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) = 5662.80236619
delta logL = 0.222456365414

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  7.338e+00  4.776e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.218e+00  4.511e-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:  1.006e+00  2.503e-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.021e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.22 +/- 0.45
Photon Flux (Free Index): 5.25e-08 +/- 3.54e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.81e-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/449315/cmap_HighResolution_619315201_619574401_4FGL_J1317.6+3428_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.09e-08', energy_flux2='2.28e-05', photon_flux_error='4.24e-08', dlogl='2.22e-01', energy_flux='1.70e-05', photon_flux2='5.25e-08', job_status='DONE', time_completed='2021-09-07 10:37:50.417210', photon_index_error2='0.45', photon_index2='2.22', ts='4.43', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='1.01', time_epoch_completed='1631036270.42', return_code='0', job_id='449315', GAL2='1.01', EG2='1.02', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.54e-08', ts2='4.90', photon_index='2.53' WHERE bin_id='1466' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:37:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 449315: <4FGL_J1317.6+3428_daily_bin1466> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1466> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:26:21 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:26:50 2021
Terminated at Tue Sep  7 10:37:51 2021
Results reported at Tue Sep  7 10:37:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1466 199.401 34.4676 619315201 619574401 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 :                                   645.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            690 sec.

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

