/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7373
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1485
RA = 199.401, Dec = 34.4676
tmin = 624240001, tmax = 624499201
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='449343', job_status='RUN', time_executed='2021-09-07 10:27:22.742280', time_epoch_executed='1631035642.74' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449343

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449343/ft1_4FGL_J1317.6+3428_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449343/ft2_4FGL_J1317.6+3428_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449343/ft1_4FGL_J1317.6+3428_daily_bin1485.fits outfile=/scratch/kocevski/449343/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1485.fits ra=199.401 dec=34.4676 rad=12.0 tmin=624240001.0 tmax=624499201.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.54
user 3.27
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449343/ft1_filtered_4FGL_J1317.6+3428_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/449343/ft2_4FGL_J1317.6+3428_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/449343/ltcube_624240001_624499201_4FGL_J1317.6+3428_daily_bin1485.fits outfile=/scratch/kocevski/449343/expmap_624240001_624499201_4FGL_J1317.6+3428_daily_bin1485.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/449343/ltcube_624240001_624499201_4FGL_J1317.6+3428_daily_bin1485.fits
.....................!
real 191.71
user 186.87
sys 4.42

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/449343/ft1_filtered_4FGL_J1317.6+3428_daily_bin1485.fits scfile=/scratch/kocevski/449343/ft2_4FGL_J1317.6+3428_daily_bin1485.fits outfile=/scratch/kocevski/449343/cmap_624240001_624499201_4FGL_J1317.6+3428_daily_bin1485.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/449343/ft1_filtered_4FGL_J1317.6+3428_daily_bin1485.fits scfile=/scratch/kocevski/449343/ft2_4FGL_J1317.6+3428_daily_bin1485.fits outfile=/scratch/kocevski/449343/cmap_HighResolution_624240001_624499201_4FGL_J1317.6+3428_daily_bin1485.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .11106E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1855       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6389       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      '    7.2095       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7561       1.0000         .10000E-03   10000.    
    14 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8422       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.414       1.0000         .10000E-03   10000.    
    22 'norm      '    .10062       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5017       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4181       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .71471       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3640       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=   5724.075     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3325 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2349        .43511E-07** at limit **
   2  Prefactor     .10001E-03    10.846       -.13300E-06** at limit **
   3  Prefactor     .10000E-03    6.6550        .71535E-08** at limit **
   4  Prefactor     49.162        48.437       -.19410E-06   -.21306E-05
   5  Prefactor     1.1863        3.4871        .72668E-06   -.66435E-04
   6  norm          5.7996        4.6047       -.58613E-08   -.18643E-04
   7  Prefactor     73.218        46.809        .11411E-07   -.18950E-05
   8  Prefactor     .10000E-03    25.559        .69832E-07** at limit **
   9  norm          2.6389        2.9094        .15381E-07   -.21010E-04
  10  Prefactor     .10000E-03    3.4083       -.76425E-08** at limit **
  11  norm          .10000E-03    2.2132        .16908E-07** at limit **
  12  norm          7.2099        9.2727       -.66886E-07   -.33449E-04
  13  norm          3.7547        3.8946        .88373E-07   -.61804E-04
  14  norm          .10000E-03    4.8377       -.44614E-07** at limit **
  15  norm          2.4367        31.861        .54924E-06   -.17821E-04
  16  Prefactor     .10000E-03    2.3121       -.79879E-07** at limit **
  17  Prefactor     24.177        15.830       -.20419E-06   -.48470E-04
  18  Prefactor     .10000E-03    36.294       -.13748E-06** at limit **
  19  Prefactor     9.8421        16.126       -.41289E-06   -.11630E-04
  20  Prefactor     5.2316        14.235        .43280E-05   -.13276E-03
  21  Prefactor     51.374        72.100       -.58977E-05   -.13993E-03
  22  norm          .10026        .85590        .94037E-07   -.11357E-03
  23  Prefactor     2.5018        3.7498        .19304E-06   -.79072E-04
  24  norm          .10000E-03    4.6161       -.68557E-07** at limit **
  25  Prefactor     7.4177        14.894        .15100E-06   -.45333E-06
  26  Normalizat    .71487        .17316        .12323E-05   -.72567E-04
  27  Prefactor     1.3638        .21811       -.12955E-05    .62769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 49.1624
  Prefactor  = 1.18633
  norm       = 5.7996
  Prefactor  = 73.2182
  Prefactor  = 0.0001
  norm       = 2.63887
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.20989
  norm       = 3.75469
  norm       = 0.0001
  norm       = 2.43671
  Prefactor  = 0.0001
  Prefactor  = 24.1772
  Prefactor  = 0.0001
  Prefactor  = 9.84213
  Prefactor  = 5.23164
  Prefactor  = 51.3739
  norm       = 0.100258
  Prefactor  = 2.50177
  norm       = 0.0001
  Prefactor  = 7.41773
  Normalizat = 0.714871
  Prefactor  = 1.36381
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.075     FROM HESSE     STATUS=OK           498 CALLS     3823 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2405        .13290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    15.389        .71740E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.162        48.436        .57191E-04   -1.4304    
   5  Prefactor     1.1863        3.4489        .23609E-03   -1.5490    
   6  norm          5.7996        4.5951        .13640E-03   -1.5226    
   7  Prefactor     73.218        46.819        .46920E-04   -1.3995    
   8  Prefactor     .10000E-03    25.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6389        2.9032        .13135E-03   -1.5383    
  10  Prefactor     .10000E-03    3.4107        .13640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2884        .21978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2099        9.2788        .14939E-03   -1.5171    
  13  norm          3.7547        3.8589        .13851E-03   -1.5320    
  14  norm          .10000E-03    4.8535        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4367        32.094        .26220E-03   -1.5396    
  16  Prefactor     .10000E-03    2.3522        .22348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.177        15.762        .81468E-04   -1.4724    
  18  Prefactor     .10000E-03    36.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8421        16.111        .12773E-03   -1.5080    
  20  Prefactor     5.2316        14.709        .87873E-03   -1.5250    
  21  Prefactor     51.374        77.063        .55932E-04   -1.4273    
  22  norm          .10026        3.4900        .13432E-02   -1.5645    
  23  Prefactor     2.5018        3.7428        .17100E-03   -1.5392    
  24  norm          .10000E-03    4.6222        .15874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.4177        14.888        .14726E-03   -1.5163    
  26  Normalizat    .71487        .20301        .25774E-03   -1.0331    
  27  Prefactor     1.3638        .25861        .25140E-03   -.81429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95829e-08
Minuit parameter uncertainties:
  1  6.6793e-07
  2  0.000872333
  3  3.36465e-06
  4  48.4747
  5  3.44943
  6  4.59543
  7  46.8424
  8  7.14393e-06
  9  2.90339
  10  1.6576e-06
  11  1.65005e-07
  12  9.28065
  13  3.85911
  14  1.09771e-06
  15  17.6977
  16  5.05033e-06
  17  15.7643
  18  1.78001e-05
  19  16.1185
  20  14.7191
  21  77.2127
  22  1.18254
  23  3.7431
  24  1.78745e-06
  25  14.8955
  26  0.203226
  27  0.258852
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.050e-06  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.364e+00  2.589e-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:  7.149e-01  2.032e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449343/likelihoodResults_624240001_624499201_4FGL_J1317.6+3428_daily_bin1485.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) = 5724.0772202
delta logL = -0.00202452656868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5724.07519581
delta logL = -1.30328771775e-07

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 'Index     '    2.5288       1.0000          .0000       10.000    
     3 'Normalizat'    .71490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3638       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5724.075     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-03    478.81        .22382E-03** at limit **
   2  Index         2.4779        5.9709        .50000        .14767E-04
   3  Normalizat    .71487        .94550E-01    .25774E-03   -.58886E-04
   4  Prefactor     1.3638        .12272        .25140E-03   -.40926E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5724.075     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      397 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-03    478.81        .22472E-03** at limit **
   2  Index         2.4779        5.9709        .11907E-04    .14767E-04
   3  Normalizat    .71487        .94550E-01    .11622E-05   -.58886E-04
   4  Prefactor     1.3638        .12272        .31468E-06   -.40926E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5724.075     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      438 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4999        .44763E-04** at limit **
   2  Index         2.3409        5.1481        .50000       -.39267E-07
   3  Normalizat    .71487        .19321        .10309E-04    .51608E-04
   4  Prefactor     1.3638        .25284        .10056E-04    .23741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34088
  Normalizat = 0.714874
  Prefactor  = 1.36381
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.075     FROM HESSE     STATUS=OK            29 CALLS      467 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4087        .89526E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3409        6.2518        .50000       -.56075    
   3  Normalizat    .71487        .19307        .20619E-05   -1.0331    
   4  Prefactor     1.3638        .25270        .20112E-05   -.81429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58764e-12
Minuit parameter uncertainties:
  1  5.82709e-06
  2  104.176
  3  0.193256
  4  0.252933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449343': 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) = 5724.07519521
delta logL = 4.67970494356e-07

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.827e-06  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.341e+00  1.042e+02  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.364e+00  2.529e-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:  7.149e-01  1.933e-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/449343/cmap_HighResolution_624240001_624499201_4FGL_J1317.6+3428_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-07 10:39:44.721216', job_id='449343', GAL2='1.36', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1631036384.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='4.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1485' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 449343: <4FGL_J1317.6+3428_daily_bin1485> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1485> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:26:23 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26: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:26:51 2021
Terminated at Tue Sep  7 10:39:45 2021
Results reported at Tue Sep  7 10:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1485 199.401 34.4676 624240001 624499201 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 :                                   739.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            802 sec.

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

