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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin585
RA = 199.401, Dec = 34.4676
tmin = 390960001, tmax = 391219201
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='445816', job_status='RUN', time_executed='2021-09-07 10:17:41.488703', time_epoch_executed='1631035061.49' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445816/ft1_4FGL_J1317.6+3428_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445816/ft2_4FGL_J1317.6+3428_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445816/ft1_4FGL_J1317.6+3428_daily_bin585.fits outfile=/scratch/kocevski/445816/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin585.fits ra=199.401 dec=34.4676 rad=12.0 tmin=390960001.0 tmax=391219201.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.56
user 4.19
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445816/ft2_4FGL_J1317.6+3428_daily_bin585.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/445816/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/445816/ft1_filtered_4FGL_J1317.6+3428_daily_bin585.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445816/ft1_filtered_4FGL_J1317.6+3428_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/445816/ft2_4FGL_J1317.6+3428_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/445816/ltcube_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.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/445816/ft2_4FGL_J1317.6+3428_daily_bin585.fits
.....................!
real 16.71
user 16.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445816/ft1_filtered_4FGL_J1317.6+3428_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/445816/ft2_4FGL_J1317.6+3428_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/445816/ltcube_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.fits outfile=/scratch/kocevski/445816/expmap_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.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/445816/ltcube_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.fits
.....................!
real 191.88
user 186.10
sys 5.24

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/445816/ft1_filtered_4FGL_J1317.6+3428_daily_bin585.fits scfile=/scratch/kocevski/445816/ft2_4FGL_J1317.6+3428_daily_bin585.fits outfile=/scratch/kocevski/445816/cmap_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445816/ft1_filtered_4FGL_J1317.6+3428_daily_bin585.fits scfile=/scratch/kocevski/445816/ft2_4FGL_J1317.6+3428_daily_bin585.fits outfile=/scratch/kocevski/445816/cmap_HighResolution_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.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/445816/ft1_filtered_4FGL_J1317.6+3428_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/445816/ft2_4FGL_J1317.6+3428_daily_bin585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445816/Model_4FGL_J1317.6+3428_daily_bin585.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/445816/ft1_filtered_4FGL_J1317.6+3428_daily_bin585.fits.....................!
real 51.60
user 50.10
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.1031       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2632       1.0000         .10000E-03   10000.    
     6 'norm      '    4.8984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4573       1.0000         .10000E-03   10000.    
    14 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.835       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30701E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.936       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.279       1.0000         .10000E-03   10000.    
    22 'norm      '    14.059       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6448       1.0000         .10000E-03   10000.    
    24 'norm      '    3.3924       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82307       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=   6111.007     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3240 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6429        .17771E-07** at limit **
   2  Prefactor     9.1032        8.2759        .43060E-07   -.24623E-05
   3  Prefactor     6.5809        11.092        .55594E-06    .82551E-04
   4  Prefactor     .10000E-03    40.178       -.12926E-06** at limit **
   5  Prefactor     8.2635        6.4333       -.34313E-07   -.12291E-03
   6  norm          4.8986        3.7804        .40042E-07   -.22572E-04
   7  Prefactor     .10001E-03    91.131        .87557E-05** at limit **
   8  Prefactor     .10000E-03    16.019       -.22642E-05** at limit **
   9  norm          .10000E-03    1.9853        .52536E-09** at limit **
  10  Prefactor     .10000E-03    19.263        .15514E-05** at limit **
  11  norm          .10000E-03    4.3556       -.24483E-07** at limit **
  12  norm          .10000E-03    8.6535       -.26873E-06** at limit **
  13  norm          6.4551        3.5380       -.14218E-06   -.57186E-03
  14  norm          .10000E-03    3.1188        .24475E-06** at limit **
  15  norm          10.836        14.116        .54877E-07   -.14982E-05
  16  Prefactor     .10000E-03    1.1631        .33799E-07** at limit **
  17  Prefactor     .10118E-03    11.057        .34910E-05** at limit **
  18  Prefactor     .10000E-03    12.727        .10734E-05** at limit **
  19  Prefactor     .10000E-03    7.2749        .52272E-07** at limit **
  20  Prefactor     18.938        21.592        .22188E-06   -.14613E-04
  21  Prefactor     51.279        51.946       -.76990E-07   -.65042E-05
  22  norm          14.059        2.9095       -.20967E-07   -.60773E-04
  23  Prefactor     5.6450        3.6009        .20888E-06    .97846E-04
  24  norm          3.3938        15.338        .52611E-05    .26605E-03
  25  Prefactor     .10000E-03    18.635        .40359E-06** at limit **
  26  Normalizat    1.0702        .16646       -.56886E-06   -.28807E-03
  27  Prefactor     .82318        .20059        .24326E-07   -.17397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.1032
  Prefactor  = 6.5809
  Prefactor  = 0.0001
  Prefactor  = 8.26345
  norm       = 4.89856
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.45514
  norm       = 0.0001
  norm       = 10.836
  Prefactor  = 0.0001
  Prefactor  = 0.000101181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9384
  Prefactor  = 51.2787
  norm       = 14.0588
  Prefactor  = 5.64495
  norm       = 3.39385
  Prefactor  = 0.0001
  Normalizat = 1.07019
  Prefactor  = 0.823183
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.007     FROM HESSE     STATUS=OK           486 CALLS     3726 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6576        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1032        8.2782        .13284E-03   -1.5104    
   3  Prefactor     6.5809        11.092        .78216E-03   -1.5195    
   4  Prefactor     .10000E-03    40.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2635        6.4235        .13947E-03   -1.5133    
   6  norm          4.8986        3.7782        .12840E-03   -1.5265    
   7  Prefactor     .10001E-03    91.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0125        .10753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.4758        .31828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.7022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4551        3.5056        .10279E-03   -1.5200    
  14  norm          .10000E-03    3.1417        .13456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.836        14.113        .12172E-03   -1.5049    
  16  Prefactor     .10000E-03    1.1788        .82193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10118E-03    78.293        .34915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.938        21.613        .92040E-04   -1.4837    
  21  Prefactor     51.279        52.034        .56005E-04   -1.4275    
  22  norm          14.059        2.9120        .58587E-04   -1.4958    
  23  Prefactor     5.6450        3.6027        .11414E-03   -1.5233    
  24  norm          3.3938        15.855        .10983E-02   -1.5339    
  25  Prefactor     .10000E-03    18.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0702        .19704        .21746E-03   -.90715    
  27  Prefactor     .82318        .23716        .30295E-03   -.98879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45723e-08
Minuit parameter uncertainties:
  1  6.63409e-07
  2  8.2792
  3  11.0956
  4  6.87011e-06
  5  6.42402
  6  3.77835
  7  0.0014153
  8  0.000151024
  9  1.88688e-08
  10  0.000112511
  11  2.49244e-06
  12  1.98514e-05
  13  3.50573
  14  2.11116e-05
  15  14.1174
  16  1.4711e-06
  17  0.0192583
  18  6.93233e-05
  19  1.48734e-06
  20  21.6223
  21  52.0798
  22  2.91207
  23  3.60288
  24  14.677
  25  3.13881e-05
  26  0.19717
  27  0.23746
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.471e-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:  8.232e-01  2.375e-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.070e+00  1.972e-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: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445816/likelihoodResults_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.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) = 6111.01093549
delta logL = -0.00401337081166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6111.00692201
delta logL = 1.01532350527e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5203       1.0000          .0000       10.000    
     3 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82320       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=   6111.007     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4970        .82871E-02** at limit **
   2  Index         2.1456        8.9223        .50000        .15373E-06
   3  Normalizat    1.0702        .87365E-02    .21746E-03   -.22266E-02
   4  Prefactor     .82318        .10857E-01    .30295E-03   -.16112E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14558
  Normalizat = 1.07019
  Prefactor  = 0.823179
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.007     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.311        .87637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1456        6.0624        .50000       -.60758    
   3  Normalizat    1.0702        .31565E-01    .43491E-04   -.90715    
   4  Prefactor     .82318        .39227E-01    .60591E-04   -.98880    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09255e-09
Minuit parameter uncertainties:
  1  1.58803e-05
  2  494.405
  3  0.0315658
  4  0.0392286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445816': 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) = 6111.00691738
delta logL = 4.73394447909e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.588e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.146e+00  4.944e+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:  8.232e-01  3.923e-02  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.070e+00  3.157e-02  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/445816/cmap_HighResolution_390960001_391219201_4FGL_J1317.6+3428_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-07 10:30:26.785943', job_id='445816', GAL2='0.82', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631035826.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='585' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 445816: <4FGL_J1317.6+3428_daily_bin585> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin585> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 10:15:17 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:15:22 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:15:22 2021
Terminated at Tue Sep  7 10:30:27 2021
Results reported at Tue Sep  7 10:30:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin585 199.401 34.4676 390960001 391219201 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 :                                   763.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            910 sec.

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

