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


Performing analysis on: 4FGL_J1700.0+6830_daily_bin1229
RA = 255.021, Dec = 68.5042
tmin = 557884801, tmax = 558144001
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='291938', job_status='RUN', time_executed='2021-09-16 10:03:26.779302', time_epoch_executed='1631811806.78' WHERE source_name='4FGL J1700.0+6830' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291938/ft1_4FGL_J1700.0+6830_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291938/ft1_4FGL_J1700.0+6830_daily_bin1229.fits outfile=/scratch/kocevski/291938/ft1_filteredMKT_4FGL_J1700.0+6830_daily_bin1229.fits ra=255.021 dec=68.5042 rad=12.0 tmin=557884801.0 tmax=558144001.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.05
user 3.81
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.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/291938/ft1_filteredMKT_4FGL_J1700.0+6830_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/291938/ltcube_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.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/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits
.....................!
real 13.28
user 12.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/291938/ltcube_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.fits outfile=/scratch/kocevski/291938/expmap_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.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/291938/ltcube_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.fits
.....................!
real 190.52
user 185.79
sys 4.11

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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1700.0+6830 @ 255.021 68.5042

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits scfile=/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits outfile=/scratch/kocevski/291938/cmap_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.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=255.021 yref=68.5042 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits scfile=/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits outfile=/scratch/kocevski/291938/cmap_HighResolution_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.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=255.021 yref=68.5042 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/291938/Model_4FGL_J1700.0+6830_daily_bin1229.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/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits...!
real 14.01
user 12.62
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits', '/scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits', expMap='/scratch/kocevski/291938/expmap_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.fits', expCube='/scratch/kocevski/291938/ltcube_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/291938/Model_4FGL_J1700.0+6830_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1700.0+6830'

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  1.232e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
359        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  1.037e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.263e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/291938/ft1_filtered_4FGL_J1700.0+6830_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/291938/ft2_4FGL_J1700.0+6830_daily_bin1229.fits
Exposure map: /scratch/kocevski/291938/expmap_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.fits
Exposure cube: /scratch/kocevski/291938/ltcube_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/291938/Model_4FGL_J1700.0+6830_daily_bin1229.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) = 42.1914991388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12605E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    82.051       1.0000         .10000E-03   10000.    
    27 'Prefactor '    685.69       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .41426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   42.06078     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4821 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    844.90        .17787E-03** at limit **
   2  Prefactor     .10000E-03    1189.0       -.13337E-03** at limit **
   3  Prefactor     .10000E-03    563.92        .34867E-03** at limit **
   4  Prefactor     .10000E-03    1811.9       -.57795E-03** at limit **
   5  norm          .10000E-03    147.81        .11546E-03** at limit **
   6  Prefactor     .10000E-03    6340.7       -.96012E-03** at limit **
   7  Prefactor     .10000E-03    1727.5       -.52806E-03** at limit **
   8  norm          .10000E-03    287.02       -.30943E-04** at limit **
   9  Prefactor     .10000E-03    2192.2       -.77096E-03** at limit **
  10  Prefactor     .10000E-03    329.75        .83906E-04** at limit **
  11  Prefactor     .10000E-03    624.93        .33399E-03** at limit **
  12  norm          .10000E-03    175.12       -.51335E-04** at limit **
  13  Prefactor     .10000E-03    398.31        .23181E-03** at limit **
  14  norm          .10000E-03    9.4090       -.96988E-07** at limit **
  15  Prefactor     .10000E-03    107.16       -.51099E-04** at limit **
  16  Prefactor     .10000E-03    27.527       -.16033E-06** at limit **
  17  Prefactor     .10000E-03    173.83       -.44811E-04** at limit **
  18  Prefactor     .10000E-03    109.74        .14175E-04** at limit **
  19  Prefactor     .10000E-03    218.83       -.15310E-03** at limit **
  20  Prefactor     .10000E-03    207.61       -.14742E-03** at limit **
  21  Prefactor     .10000E-03    1008.9        .27898E-04** at limit **
  22  Prefactor     .10000E-03    6266.0       -.90807E-03** at limit **
  23  norm          .10000E-03    33.990       -.10034E-05** at limit **
  24  norm          .10000E-03    5.9925       -.20808E-06** at limit **
  25  Prefactor     .10000E-03    148.05        .11395E-03** at limit **
  26  norm          82.264        83.803        .34726E-04    .51132E-05
  27  Prefactor     687.12        691.80        .55607E-03   -.40796E-05
  28  Prefactor     .10000E-03    1942.9       -.65001E-03** at limit **
  29  Prefactor     .10000E-03    50.555        .10055E-05** at limit **
  30  Prefactor     .10000E-03    166.97       -.69753E-05** at limit **
  31  Prefactor     .10000E-03    1452.4       -.34373E-03** at limit **
  32  Prefactor     .10000E-03    1409.2       -.31164E-03** at limit **
  33  norm          .10000E-03    32.553        .80658E-06** at limit **
  34  Normalizat    .10000E-01    .41844       -.77218E-06** at limit **
  35  Prefactor     .41419        .42247       -.67408E-05    .36632E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 82.2637
  Prefactor  = 687.123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.414194
 **********
 **   18 **HESSE 
 **********

 FCN=   42.06078     FROM HESSE     STATUS=OK           738 CALLS     5559 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    844.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1189.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    563.92        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1811.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    147.81        .77650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6340.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1727.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    287.02        .10846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2192.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    329.75        .11634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    624.93        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    175.12        .84557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    398.31        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.4090        .19545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    107.16        .66070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.526        .33441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    173.83        .84243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    109.74        .66864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    218.83        .94593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    207.61        .92118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1008.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6266.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    33.987        .37163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.9925        .15597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    148.05        .77712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          82.264        83.814        .22171E-03   -1.3891    
  27  Prefactor     687.12        692.07        .79139E-04   -1.0403    
  28  Prefactor     .10000E-03    1942.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    50.554        .45337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    166.97        .82555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1452.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    1409.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    32.553        .36369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    .41838        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .41419        .42269        .13597E-03   -1.1609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69728e-11
Minuit parameter uncertainties:
  1  3.31597e-06
  2  2.96014e-06
  3  5.43651e-06
  4  1.64402e-05
  5  9.20405e-07
  6  3.46087e-05
  7  1.4618e-05
  8  3.39399e-07
  9  2.46153e-05
  10  9.98482e-07
  11  5.30413e-06
  12  4.89841e-07
  13  2.97603e-06
  14  2.30839e-08
  15  4.01798e-07
  16  7.17838e-09
  17  8.16764e-07
  18  1.0797e-08
  19  1.49203e-06
  20  1.87033e-06
  21  1.6236e-06
  22  3.28786e-05
  23  0.00017403
  24  1.01759e-08
  25  3.8937e-06
  26  83.9345
  27  701.003
  28  0.000210467
  29  3.04638e-07
  30  1.17203e-05
  31  0.00021398
  32  1.12061e-05
  33  3.306e-06
  34  2.44353e-06
  35  0.425927
Done.

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

Extracting fit parameters...

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  1.000e-04  2.308e-08  1.000e-04  1.000e+04 ( 1.000e-11)
359        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  1.037e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.263e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  4.142e-01  4.259e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.000e-02  2.444e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 255.021 68.504
Photon Flux Upper Limit: 2.43e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291938/likelihoodResults_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.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) = 42.061223982
delta logL = -0.000444172040758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 42.060779785
delta logL = 2.49714418032e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2629       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+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=   42.06078     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      229 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2234.6        .19774E-02** at limit **
   2  alpha         1.5831        2.8280        .16555        .40335E-07
   3  Normalizat    .10000E-01    .26632        .13127E-02** at limit **
   4  Prefactor     .41419        .33708        .13597E-03    .15677E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.58306
  Normalizat = 0.01
  Prefactor  = 0.414194
 **********
 **   18 **HESSE 
 **********

 FCN=   42.06078     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.479        .22509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5831        3.9504        .66220E-02   -.37554    
   3  Normalizat    .10000E-01    .41838        .26254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41419        .42240        .54388E-05   -1.1609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43723e-11
Minuit parameter uncertainties:
  1  2.01292e-05
  2  417.736
  3  5.63441e-07
  4  0.425631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291938': 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) = 42.0607785032
delta logL = 1.30677148746e-06

Extracting fit parameters...

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  1.000e-04  2.013e-05  1.000e-04  1.000e+04 ( 1.000e-11)
359        alpha:  1.583e+00  4.177e+02  0.000e+00  5.000e+00 ( 1.000e+00)
360         beta:  1.037e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.263e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  4.142e-01  4.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.000e-02  5.634e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 255.021 68.504

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/291938/cmap_HighResolution_557884801_558144001_4FGL_J1700.0+6830_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-04', job_status='DONE', photon_flux_upper_limit='2.43e-06', time_completed='2021-09-16 10:09:11.965930', job_id='291938', GAL2='0.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631812151.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='1.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1229' AND source_name='4FGL J1700.0+6830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 10:09:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 291938: <4FGL_J1700.0+6830_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1700.0+6830_daily_bin1229> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 10:00:23 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 10:00:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 10:00:36 2021
Terminated at Thu Sep 16 10:09:12 2021
Results reported at Thu Sep 16 10:09:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1700.0+6830_daily_bin1229 255.021 68.5042 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1700.0+6830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   344.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            529 sec.

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

