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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1111
RA = 199.401, Dec = 34.4676
tmin = 527299201, tmax = 527558401
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='448773', job_status='RUN', time_executed='2021-09-07 10:29:38.452706', time_epoch_executed='1631035778.45' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448773/ft1_4FGL_J1317.6+3428_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448773/ft2_4FGL_J1317.6+3428_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448773/ft1_4FGL_J1317.6+3428_daily_bin1111.fits outfile=/scratch/kocevski/448773/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1111.fits ra=199.401 dec=34.4676 rad=12.0 tmin=527299201.0 tmax=527558401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.93
user 4.59
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448773/ft2_4FGL_J1317.6+3428_daily_bin1111.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/448773/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1111.fits evtable="EVENTS" outfile="/scratch/kocevski/448773/ft1_filtered_4FGL_J1317.6+3428_daily_bin1111.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448773/ft1_filtered_4FGL_J1317.6+3428_daily_bin1111.fits" evtable="EVENTS" scfile=/scratch/kocevski/448773/ft2_4FGL_J1317.6+3428_daily_bin1111.fits sctable="SC_DATA" outfile=/scratch/kocevski/448773/ltcube_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.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/448773/ft2_4FGL_J1317.6+3428_daily_bin1111.fits
.....................!
real 16.53
user 15.93
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448773/ft1_filtered_4FGL_J1317.6+3428_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/448773/ft2_4FGL_J1317.6+3428_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/448773/ltcube_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.fits outfile=/scratch/kocevski/448773/expmap_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.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/448773/ltcube_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.fits
.....................!
real 191.56
user 186.58
sys 4.10

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/448773/ft1_filtered_4FGL_J1317.6+3428_daily_bin1111.fits scfile=/scratch/kocevski/448773/ft2_4FGL_J1317.6+3428_daily_bin1111.fits outfile=/scratch/kocevski/448773/cmap_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448773/ft1_filtered_4FGL_J1317.6+3428_daily_bin1111.fits scfile=/scratch/kocevski/448773/ft2_4FGL_J1317.6+3428_daily_bin1111.fits outfile=/scratch/kocevski/448773/cmap_HighResolution_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=199.401 yref=34.4676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.002       1.0000         .10000E-03   10000.    
     6 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.7101       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.002       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4476       1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16267E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3173       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11643E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.199       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1664       1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.203       1.0000         .10000E-03   10000.    
    22 'norm      '    5.5150       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.3952       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2492       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64132       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=   4490.019     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3346 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.838        17.510        .27308E-06   -.14756E-04
   2  Prefactor     .10000E-03    7.0057        .77518E-07** at limit **
   3  Prefactor     .10000E-03    10.296       -.17906E-06** at limit **
   4  Prefactor     30.650        83.793        .36318E-05    .15997E-03
   5  Prefactor     17.006        11.023        .13737E-07   -.11855E-05
   6  norm          .10000E-03    2.5129        .12069E-05** at limit **
   7  Prefactor     .10000E-03    17.640        .12667E-06** at limit **
   8  Prefactor     .10000E-03    32.417        .11522E-05** at limit **
   9  norm          8.7116        5.4524        .52059E-06    .98767E-05
  10  Prefactor     47.016        29.395        .32591E-06    .92925E-04
  11  norm          6.4479        6.6918        .57125E-07    .33838E-04
  12  norm          .10000E-03    9.1949        .43517E-07** at limit **
  13  norm          .10024E-03    3.5152       -.77530E-06** at limit **
  14  norm          4.3221        5.6673       -.74040E-06    .30361E-03
  15  norm          .10000E-03    13.118       -.78705E-07** at limit **
  16  Prefactor     2.3610        3.5168        .86330E-07    .11771E-03
  17  Prefactor     2.2274        35.260        .55839E-06    .50742E-04
  18  Prefactor     .10000E-03    67.053       -.17025E-06** at limit **
  19  Prefactor     17.196        24.175       -.21400E-05   -.47035E-04
  20  Prefactor     3.1644        30.590        .17294E-04    .29265E-04
  21  Prefactor     50.223        79.734        .17228E-05    .33379E-04
  22  norm          5.5155        2.4829       -.88039E-08   -.36743E-04
  23  Prefactor     .10000E-03    1.6401       -.88138E-07** at limit **
  24  norm          .10000E-03    5.9047       -.18735E-07** at limit **
  25  Prefactor     4.3890        28.617        .84898E-06   -.90610E-05
  26  Normalizat    1.2485        .21517       -.24971E-05    .11159E-03
  27  Prefactor     .64199        .24167        .13844E-05   -.44542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6503
  Prefactor  = 17.006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.71156
  Prefactor  = 47.0157
  norm       = 6.44791
  norm       = 0.0001
  norm       = 0.000100245
  norm       = 4.3221
  norm       = 0.0001
  Prefactor  = 2.36097
  Prefactor  = 2.22736
  Prefactor  = 0.0001
  Prefactor  = 17.1961
  Prefactor  = 3.16436
  Prefactor  = 50.2228
  norm       = 5.51554
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.38895
  Normalizat = 1.24855
  Prefactor  = 0.641991
 **********
 **   18 **HESSE 
 **********

 FCN=   4490.019     FROM HESSE     STATUS=OK           484 CALLS     3830 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.838        17.548        .78816E-04   -1.4691    
   2  Prefactor     .10000E-03    7.0216        .17322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.650        83.680        .72485E-04   -1.4600    
   5  Prefactor     17.006        11.019        .97132E-04   -1.4883    
   6  norm          .10000E-03    2.5204        .10356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.7116        5.4513        .59645E-03   -1.5118    
  10  Prefactor     47.016        29.457        .58486E-04   -1.4336    
  11  norm          6.4479        6.6733        .15806E-03   -1.5200    
  12  norm          .10000E-03    9.2114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10024E-03    22.835        .20898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3221        5.2336        .16113E-03   -1.5292    
  15  norm          .10000E-03    13.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3610        3.4422        .13612E-03   -1.5401    
  17  Prefactor     2.2274        33.195        .27582E-03   -1.5409    
  18  Prefactor     .10000E-03    67.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.196        24.246        .96575E-04   -1.4878    
  20  Prefactor     3.1644        30.648        .11388E-02   -1.5352    
  21  Prefactor     50.223        80.122        .56599E-04   -1.4289    
  22  norm          5.5155        2.4849        .34316E-03   -1.5238    
  23  Prefactor     .10000E-03    1.6510        .83784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.9103        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.3890        28.607        .19210E-03   -1.5289    
  26  Normalizat    1.2485        .25338        .22126E-03   -.85116    
  27  Prefactor     .64199        .28182        .34877E-03   -1.0585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13695e-08
Minuit parameter uncertainties:
  1  17.5518
  2  8.73351e-07
  3  5.63062e-05
  4  84.0031
  5  11.0208
  6  7.07207e-06
  7  7.31563e-05
  8  0.000223785
  9  5.4516
  10  29.4664
  11  6.6741
  12  4.55462e-05
  13  0.00473217
  14  5.23419
  15  1.5783e-05
  16  3.44252
  17  17.2084
  18  1.6432e-05
  19  24.2598
  20  19.7089
  21  80.2945
  22  2.48498
  23  1.57296e-06
  24  3.11898e-06
  25  22.4256
  26  0.253632
  27  0.282442
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  2.361e+00  3.443e+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:  6.420e-01  2.824e-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.249e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448773/likelihoodResults_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.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) = 4490.00325394
delta logL = 0.0160585294752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4490.00043115
delta logL = 0.0188813200975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6061       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3105       1.0000          .0000       10.000    
     3 'Normalizat'    1.2546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63694       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=   4490.000     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6032        183.25        .63175E-02    .14263E-03
   2  Index         2.3092        6.0700        .24263       -.18382E-05
   3  Normalizat    1.2544        .10507        .49948E-01   -.47390E-04
   4  Prefactor     .63707        .96305E-01    .79036E-01    .16055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6032
  Index      = 2.30916
  Normalizat = 1.25442
  Prefactor  = 0.637073
 **********
 **   18 **HESSE 
 **********

 FCN=   4490.000     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6032        3.6724        .14390E-03   -1.5385    
   2  Index         2.3092        1.1101        .13000E-01   -.56826    
   3  Normalizat    1.2544        .24089        .22082E-03   -.84937    
   4  Prefactor     .63707        .27992        .34999E-03   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3027e-11
Minuit parameter uncertainties:
  1  3.67267
  2  1.12335
  3  0.241104
  4  0.28054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448773': 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) = 4490.00042951
delta logL = 0.0188829578101

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  2.603e+00  3.673e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.309e+00  1.123e+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:  6.371e-01  2.805e-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.254e+00  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
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/448773/cmap_HighResolution_527299201_527558401_4FGL_J1317.6+3428_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-07 10:40:22.864864', job_id='448773', GAL2='0.64', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631036422.86', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.89e-02', ts2='0.91', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1111' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:40:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 448773: <4FGL_J1317.6+3428_daily_bin1111> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1111> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:30 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:25:32 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:25:32 2021
Terminated at Tue Sep  7 10:40:23 2021
Results reported at Tue Sep  7 10:40:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1111 199.401 34.4676 527299201 527558401 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 :                                   642.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             238.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

