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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1285
RA = 199.401, Dec = 34.4676
tmin = 572400001, tmax = 572659201
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='449049', job_status='RUN', time_executed='2021-09-07 10:26:26.000160', time_epoch_executed='1631035586.0' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449049/ft1_4FGL_J1317.6+3428_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449049/ft2_4FGL_J1317.6+3428_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449049/ft1_4FGL_J1317.6+3428_daily_bin1285.fits outfile=/scratch/kocevski/449049/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1285.fits ra=199.401 dec=34.4676 rad=12.0 tmin=572400001.0 tmax=572659201.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.70
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449049/ft1_filtered_4FGL_J1317.6+3428_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/449049/ft2_4FGL_J1317.6+3428_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/449049/ltcube_572400001_572659201_4FGL_J1317.6+3428_daily_bin1285.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/449049/ft2_4FGL_J1317.6+3428_daily_bin1285.fits
.....................!
real 16.89
user 16.41
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449049/ft1_filtered_4FGL_J1317.6+3428_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/449049/ft2_4FGL_J1317.6+3428_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/449049/ltcube_572400001_572659201_4FGL_J1317.6+3428_daily_bin1285.fits outfile=/scratch/kocevski/449049/expmap_572400001_572659201_4FGL_J1317.6+3428_daily_bin1285.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/449049/ltcube_572400001_572659201_4FGL_J1317.6+3428_daily_bin1285.fits
.....................!
real 194.39
user 188.62
sys 4.74

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/449049/ft1_filtered_4FGL_J1317.6+3428_daily_bin1285.fits scfile=/scratch/kocevski/449049/ft2_4FGL_J1317.6+3428_daily_bin1285.fits outfile=/scratch/kocevski/449049/cmap_572400001_572659201_4FGL_J1317.6+3428_daily_bin1285.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.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6368.48306946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17747E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.3194       1.0000         .10000E-03   10000.    
    12 'norm      '    40.182       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2556       1.0000         .10000E-03   10000.    
    14 'norm      '    .15961       1.0000         .10000E-03   10000.    
    15 'norm      '    .45386E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.431       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.071       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7695       1.0000         .10000E-03   10000.    
    24 'norm      '    8.9177       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2493       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70162       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=   6368.483     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3338 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9497        7.5676        .25677E-05    .70209E-04
   2  Prefactor     .10025E-03    7.3727        .37168E-06** at limit **
   3  Prefactor     .10000E-03    12.858        .16225E-06** at limit **
   4  Prefactor     .10000E-03    24.959       -.57514E-07** at limit **
   5  Prefactor     .10000E-03    2.2505        .45981E-07** at limit **
   6  norm          .10000E-03    1.1163        .40676E-07** at limit **
   7  Prefactor     .10000E-03    34.707        .13435E-06** at limit **
   8  Prefactor     .10000E-03    5.9689       -.45049E-08** at limit **
   9  norm          .10000E-03    1.9457        .16007E-06** at limit **
  10  Prefactor     .10000E-03    4.2954       -.47426E-07** at limit **
  11  norm          8.3235        5.0602        .85519E-08    .51672E-04
  12  norm          40.186        19.888        .25236E-07    .52939E-04
  13  norm          7.1548        5.6663       -.36605E-06    .21702E-03
  14  norm          .33510        12.461       -.19137E-06    .33450E-03
  15  norm          .10002E-03    11.179       -.84600E-07** at limit **
  16  Prefactor     .10000E-03    1.5973       -.12694E-05** at limit **
  17  Prefactor     .10000E-03    9.7370       -.19176E-05** at limit **
  18  Prefactor     14.304        72.712       -.41752E-06   -.30640E-04
  19  Prefactor     .10000E-03    29.352        .16294E-05** at limit **
  20  Prefactor     8.0373        19.217        .12157E-05    .17264E-04
  21  Prefactor     .10000E-03    17.163       -.83428E-07** at limit **
  22  norm          16.069        3.1907        .14703E-08    .23762E-04
  23  Prefactor     1.7672        3.7501        .81544E-06    .46789E-04
  24  norm          8.9191        10.495        .94802E-07    .65466E-05
  25  Prefactor     .10000E-03    5.7508        .24080E-07** at limit **
  26  Normalizat    1.2497        .17204        .72551E-06   -.35017E-04
  27  Prefactor     .70142        .20352       -.17821E-05    .31805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94967
  Prefactor  = 0.000100247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.32354
  norm       = 40.1864
  norm       = 7.15477
  norm       = 0.335098
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3039
  Prefactor  = 0.0001
  Prefactor  = 8.0373
  Prefactor  = 0.0001
  norm       = 16.0687
  Prefactor  = 1.76715
  norm       = 8.91914
  Prefactor  = 0.0001
  Normalizat = 1.24975
  Prefactor  = 0.701421
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.483     FROM HESSE     STATUS=OK           504 CALLS     3842 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9497        7.5920        .90368E-03   -1.5263    
   2  Prefactor     .10025E-03    10.842        .68750E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2668        .11690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1203        .82336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.9743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9841        .10868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2982        .16152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.3235        5.2051        .13495E-03   -1.5131    
  12  norm          40.186        20.113        .31617E-03   -1.4439    
  13  norm          7.1548        170.03        .10409E-03   -1.5173    
  14  norm          .33510        8038.5        .34161E-02   -1.5592    
  15  norm          .10002E-03    12.369        .95590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5872        .97331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.7347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.304        82.626        .10544E-03   -1.4951    
  19  Prefactor     .10000E-03    29.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0373        19.233        .14145E-03   -1.5141    
  21  Prefactor     .10000E-03    17.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.069        3.2711        .61334E-04   -1.4906    
  23  Prefactor     1.7672        3.8208        .21385E-03   -1.5442    
  24  norm          8.9191        10.541        .13422E-03   -1.5111    
  25  Prefactor     .10000E-03    5.7521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2497        .43178        .21793E-03   -.85079    
  27  Prefactor     .70142        .38670        .33627E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81217e-07
Minuit parameter uncertainties:
  1  7.59348
  2  0.00327639
  3  6.17129e-06
  4  6.96137e-05
  5  1.58205e-06
  6  1.31796e-06
  7  0.000112883
  8  4.27467e-06
  9  2.0706e-06
  10  1.20385e-06
  11  5.20535
  12  20.1159
  13  69.9824
  14  104.153
  15  0.000869996
  16  1.01636e-06
  17  6.58996e-06
  18  68.9011
  19  0.000155668
  20  19.2478
  21  6.75032e-06
  22  3.2711
  23  3.82134
  24  10.5434
  25  5.34882e-07
  26  0.43303
  27  0.388189
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.016e-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:  7.014e-01  3.882e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.250e+00  4.330e-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: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449049/likelihoodResults_572400001_572659201_4FGL_J1317.6+3428_daily_bin1285.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) = 6368.48590507
delta logL = -0.00298632969862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6368.48291883
delta logL = -8.26712494018e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5410       1.0000          .0000       10.000    
     3 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70142       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6368.483     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3259        .97495E-03** at limit **
   2  Index         2.5480        6.2456        .50000       -.38898E-04
   3  Normalizat    1.2498        .19873        .21793E-03   -.41733E-05
   4  Prefactor     .70142        .23700        .33627E-03    .27148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.54798
  Normalizat = 1.24975
  Prefactor  = 0.70142
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.483     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6132        .19499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5480        6.2707        .50000       -.51255    
   3  Normalizat    1.2498        .19891        .87173E-05   -.85079    
   4  Prefactor     .70142        .23721        .13451E-04   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44511e-09
Minuit parameter uncertainties:
  1  0.000125331
  2  4.3869
  3  0.199034
  4  0.237557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449049': 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) = 6368.48291862
delta logL = 1.20862750919e-07

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.253e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.548e+00  4.387e+00  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.014e-01  2.376e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.250e+00  1.990e-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/449049/cmap_HighResolution_572400001_572659201_4FGL_J1317.6+3428_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-07 10:39:27.056617', job_id='449049', GAL2='0.70', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631036367.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1285' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:39:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 449049: <4FGL_J1317.6+3428_daily_bin1285> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1285 199.401 34.4676 572400001 572659201 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 :                                   777.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            813 sec.

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

