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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin41
RA = 199.401, Dec = 34.4676
tmin = 249955201, tmax = 250214401
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='441912', job_status='RUN', time_executed='2021-09-07 10:04:56.278201', time_epoch_executed='1631034296.28' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441912/ft1_4FGL_J1317.6+3428_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441912/ft2_4FGL_J1317.6+3428_daily_bin41.fits


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

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

Done.
real 1.51
user 1.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441912/ft1_filtered_4FGL_J1317.6+3428_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/441912/ft2_4FGL_J1317.6+3428_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/441912/ltcube_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.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/441912/ft2_4FGL_J1317.6+3428_daily_bin41.fits
.....................!
real 15.89
user 15.49
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441912/ft1_filtered_4FGL_J1317.6+3428_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/441912/ft2_4FGL_J1317.6+3428_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/441912/ltcube_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.fits outfile=/scratch/kocevski/441912/expmap_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.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/441912/ltcube_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.fits
.....................!
real 158.01
user 154.07
sys 3.64

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/441912/ft1_filtered_4FGL_J1317.6+3428_daily_bin41.fits scfile=/scratch/kocevski/441912/ft2_4FGL_J1317.6+3428_daily_bin41.fits outfile=/scratch/kocevski/441912/cmap_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.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.47
user 0.30
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441912/ft1_filtered_4FGL_J1317.6+3428_daily_bin41.fits scfile=/scratch/kocevski/441912/ft2_4FGL_J1317.6+3428_daily_bin41.fits outfile=/scratch/kocevski/441912/cmap_HighResolution_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.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.48
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8686       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.762       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4920       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.027       1.0000         .10000E-03   10000.    
    11 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.252       1.0000         .10000E-03   10000.    
    13 'norm      '    27.693       1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .67458E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.700       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.385       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0179       1.0000         .10000E-03   10000.    
    21 'Prefactor '    119.38       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.2115       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.422       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .70271       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2819       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=   6501.066     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3350 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.449        9.1164       -.28120E-08   -.20916E-04
   2  Prefactor     9.1984        7.2399        .10701E-07   -.48453E-05
   3  Prefactor     2.8409        37.669        .59277E-06   -.52825E-05
   4  Prefactor     .10000E-03    28.190        .15945E-06** at limit **
   5  Prefactor     8.8711        7.2764        .32904E-06    .31161E-03
   6  norm          .10000E-03    1.4512       -.19916E-07** at limit **
   7  Prefactor     28.760        39.106       -.35247E-06   -.32877E-04
   8  Prefactor     3.4956        12.920        .23867E-06   -.29072E-04
   9  norm          .10000E-03    .97943       -.24454E-08** at limit **
  10  Prefactor     11.044        17.227        .72269E-06    .12221E-03
  11  norm          .10000E-03    3.1809        .80625E-07** at limit **
  12  norm          22.251        16.847        .31673E-07   -.11312E-04
  13  norm          27.701        5.8907       -.34714E-07   -.28300E-03
  14  norm          .10000E-03    3.9020       -.75101E-07** at limit **
  15  norm          .10000E-03    11.313        .26205E-07** at limit **
  16  Prefactor     .41048E-01    1.8090       -.33653E-07    .11431E-03
  17  Prefactor     12.729        12.383       -.37820E-06   -.18150E-03
  18  Prefactor     .10000E-03    21.030       -.40980E-07** at limit **
  19  Prefactor     13.383        11.300        .65979E-07   -.25868E-05
  20  Prefactor     5.0145        17.221        .29963E-06   -.16891E-04
  21  Prefactor     119.39        70.500        .15752E-05    .13905E-03
  22  norm          .10000E-03    .86252        .78870E-09** at limit **
  23  Prefactor     .10000E-03    3.4197       -.16307E-07** at limit **
  24  norm          7.2105        10.900        .20129E-05   -.25133E-03
  25  Prefactor     12.422        15.184        .56626E-07   -.18848E-04
  26  Normalizat    .70261        .16483       -.55161E-06    .63738E-07
  27  Prefactor     1.2821        .20292        .11871E-08   -.24262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4495
  Prefactor  = 9.19844
  Prefactor  = 2.84086
  Prefactor  = 0.0001
  Prefactor  = 8.87114
  norm       = 0.0001
  Prefactor  = 28.7603
  Prefactor  = 3.49561
  norm       = 0.0001
  Prefactor  = 11.0441
  norm       = 0.0001
  norm       = 22.2506
  norm       = 27.701
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0410477
  Prefactor  = 12.7285
  Prefactor  = 0.0001
  Prefactor  = 13.3834
  Prefactor  = 5.01453
  Prefactor  = 119.394
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.21048
  Prefactor  = 12.4217
  Normalizat = 0.702607
  Prefactor  = 1.28208
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.066     FROM HESSE     STATUS=OK           498 CALLS     3848 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.449        9.1196        .11353E-03   -1.5002    
   2  Prefactor     9.1984        7.2406        .13214E-03   -1.5101    
   3  Prefactor     2.8409        37.336        .24071E-03   -1.5371    
   4  Prefactor     .10000E-03    28.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8711        7.3049        .13459E-03   -1.5112    
   6  norm          .10000E-03    1.4576        .94802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.760        39.191        .74704E-04   -1.4635    
   8  Prefactor     3.4956        12.895        .21637E-03   -1.5334    
   9  norm          .10000E-03    .98604        .77919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.044        17.265        .12065E-03   -1.5043    
  11  norm          .10000E-03    3.1980        .14008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.251        16.850        .84913E-04   -1.4764    
  13  norm          27.701        5.9577        .76129E-04   -1.4655    
  14  norm          .10000E-03    3.9100        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .41048E-01    7.0682        .31785E-01   -1.5667    
  17  Prefactor     12.729        13.156        .11240E-03   -1.4994    
  18  Prefactor     .10000E-03    21.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.383        11.286        .10948E-03   -1.4976    
  20  Prefactor     5.0145        17.199        .17951E-03   -1.5260    
  21  Prefactor     119.39        73.413        .36830E-04   -1.3518    
  22  norm          .10000E-03    .89174        .14610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5706        .29073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.2105        11.453        .74684E-03   -1.5171    
  25  Prefactor     12.422        15.183        .56826E-03   -1.5003    
  26  Normalizat    .70261        .20035        .26762E-03   -1.0379    
  27  Prefactor     1.2821        .24732        .26081E-03   -.83841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70658e-09
Minuit parameter uncertainties:
  1  9.12057
  2  7.24128
  3  20.6132
  4  3.87889e-05
  5  7.30567
  6  4.73524e-07
  7  39.2264
  8  12.9048
  9  5.46425e-07
  10  17.2725
  11  7.327e-06
  12  16.8539
  13  5.95786
  14  2.69488e-06
  15  7.2985e-06
  16  1.0761
  17  13.1585
  18  2.1762e-06
  19  11.288
  20  17.2155
  21  73.4695
  22  5.20164e-07
  23  5.95387e-06
  24  11.4566
  25  15.1874
  26  0.20056
  27  0.247545
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.105e-02  1.076e+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.282e+00  2.475e-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.026e-01  2.006e-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: 8.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441912/likelihoodResults_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.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) = 6500.55453397
delta logL = 0.511677122195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6500.54619958
delta logL = 0.520011518465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31791E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4910       1.0000          .0000       10.000    
     3 'Normalizat'    .64953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3277       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=   6500.546     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      250 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31459E-01    .52007        .32955E-02   -.41384E-02
   2  Index         5.4977        3.1721        .13259       -.20251E-04
   3  Normalizat    .64947        .31140E-01    .62605E-01   -.15854E-03
   4  Prefactor     1.3278        .40054E-01    .58073E-01   -.12439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0314592
  Index      = 5.49766
  Normalizat = 0.649468
  Prefactor  = 1.32777
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.546     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31459E-01    1.7715        .15017E-03   -1.5673    
   2  Index         5.4977        7.7471        .71987E-02    .99696E-01
   3  Normalizat    .64947        .12782        .27697E-03   -1.0592    
   4  Prefactor     1.3278        .16237        .25679E-03   -.82485    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.30163e-10
Minuit parameter uncertainties:
  1  0.471404
  2  8.12509
  3  0.127877
  4  0.162433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441912': 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) = 6500.54619611
delta logL = 0.520014987694

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.146e-02  4.714e-01  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  5.498e+00  8.125e+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:  1.328e+00  1.624e-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:  6.495e-01  1.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 199.401 34.468
Photon Index (Free Index): 5.50 +/- 8.13
Photon Flux (Free Index): 4.54e-08 +/- 4.78e-08
Energy Flux (Free Index): 5.81e-06 +/- 7.77e-06

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/441912/cmap_HighResolution_249955201_250214401_4FGL_J1317.6+3428_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', comment='SUCCESS', energy_flux2='5.81e-06', dlogl='5.20e-01', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-07 10:15:44.357068', photon_index_error2='8.13', photon_index2='5.50', ts='0.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='8.91e-08', energy_flux_error2='7.77e-06', EG='0.70', time_epoch_completed='1631034944.36', return_code='0', job_id='441912', GAL2='1.33', EG2='0.65', return_code2='102', photon_flux_error2='4.78e-08', ts2='1.10', photon_index='2.53' WHERE bin_id='41' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:15:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 441912: <4FGL_J1317.6+3428_daily_bin41> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin41> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 10:01:00 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:02:40 2021
Terminated at Tue Sep  7 10:15:45 2021
Results reported at Tue Sep  7 10:15:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin41 199.401 34.4676 249955201 250214401 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            885 sec.

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

