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


Performing analysis on: 4FGL_J1700.0+6830_monthly_bin109
RA = 255.021, Dec = 68.5042
tmin = 519523201, tmax = 522115201
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='149518', job_status='RUN', time_executed='2021-10-29 20:36:09.440766', time_epoch_executed='1635564969.44' WHERE source_name='4FGL J1700.0+6830' and cadence='monthly' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149518

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

Retrieving the FT1 file...

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

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

Retrieving 448 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149518/ft1_4FGL_J1700.0+6830_monthly_bin109.fits


Retrieving the FT1 file...

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

Retrieving 448 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149518/ft1_4FGL_J1700.0+6830_monthly_bin109.fits outfile=/scratch/kocevski/149518/ft1_filteredMKT_4FGL_J1700.0+6830_monthly_bin109.fits ra=255.021 dec=68.5042 rad=12.0 tmin=519523201.0 tmax=522115201.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 38.20
user 37.25
sys 0.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.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/149518/ft1_filteredMKT_4FGL_J1700.0+6830_monthly_bin109.fits evtable="EVENTS" outfile="/scratch/kocevski/149518/ft1_filtered_4FGL_J1700.0+6830_monthly_bin109.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.83
user 0.64
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149518/ft1_filtered_4FGL_J1700.0+6830_monthly_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/149518/ltcube_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.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/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits
.....................!
real 107.68
user 107.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149518/ft1_filtered_4FGL_J1700.0+6830_monthly_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/149518/ltcube_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.fits outfile=/scratch/kocevski/149518/expmap_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.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/149518/ltcube_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.fits
.....................!
real 192.98
user 188.21
sys 4.31

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/149518/ft1_filtered_4FGL_J1700.0+6830_monthly_bin109.fits scfile=/scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits outfile=/scratch/kocevski/149518/cmap_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.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.77
user 0.59
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149518/ft1_filtered_4FGL_J1700.0+6830_monthly_bin109.fits scfile=/scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits outfile=/scratch/kocevski/149518/cmap_HighResolution_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.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.77
user 0.61
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/149518/ft1_filtered_4FGL_J1700.0+6830_monthly_bin109.fits', '/scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits', expMap='/scratch/kocevski/149518/expmap_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.fits', expCube='/scratch/kocevski/149518/ltcube_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/149518/Model_4FGL_J1700.0+6830_monthly_bin109.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/149518/ft1_filtered_4FGL_J1700.0+6830_monthly_bin109.fits
Spacecraft file(s): /scratch/kocevski/149518/ft2_4FGL_J1700.0+6830_monthly_bin109.fits
Exposure map: /scratch/kocevski/149518/expmap_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.fits
Exposure cube: /scratch/kocevski/149518/ltcube_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/149518/Model_4FGL_J1700.0+6830_monthly_bin109.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) = 72451.8290702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8970       1.0000         .10000E-03   10000.    
     5 'norm      '    8.4663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7951       1.0000         .10000E-03   10000.    
    14 'norm      '    .22060       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7538       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.759       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1385       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6535       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1037       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.6762       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .82432E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.7810       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .39512E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.0618       1.0000         .10000E-03   10000.    
    33 'norm      '    .84781       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .98251       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=   72451.71     FROM MIGRAD    STATUS=CONVERGED   1034 CALLS     4527 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.414        7.0782       -.25797E-07   -.71445E-04
   2  Prefactor     30.016        12.531        .14394E-06   -.71096E-06
   3  Prefactor     .10000E-03    1.9509        .11135E-07** at limit **
   4  Prefactor     9.8972        6.2280        .26829E-07   -.29779E-04
   5  norm          8.4667        1.1586        .13460E-07    .75827E-03
   6  Prefactor     .22540        6.6600       -.96514E-06    .34480E-03
   7  Prefactor     .10000E-03    4.0687       -.34564E-07** at limit **
   8  norm          8.3590        4.5454        .31902E-06   -.10996E-04
   9  Prefactor     7.7138        28.562        .17363E-04    .10621E-05
  10  Prefactor     3.7819        2.2784        .35241E-07   -.14657E-02
  11  Prefactor     .10000E-03    8.4384        .11307E-05** at limit **
  12  norm          10.323        2.8140        .26520E-07   -.31933E-03
  13  Prefactor     2.7960        5.2795       -.65504E-06   -.27630E-04
  14  norm          .22061        .21122       -.10644E-08   -.11496E-02
  15  Prefactor     .10000E-03    .39088       -.37105E-08** at limit **
  16  Prefactor     3.7536        1.0932       -.10895E-06   -.29978E-03
  17  Prefactor     4.7874        3.5827       -.68645E-07   -.29268E-04
  18  Prefactor     .10000E-03    .58391        .15916E-07** at limit **
  19  Prefactor     11.759        9.7744        .68754E-06   -.28862E-05
  20  Prefactor     2.1390        1.1796       -.21629E-07   -.29392E-02
  21  Prefactor     5.8239        13.895        .22654E-06   -.59260E-04
  22  Prefactor     .10000E-03    88.453        .21998E-05** at limit **
  23  norm          2.6535        .65947        .53448E-08   -.44674E-04
  24  norm          1.1037        .20952       -.10270E-07   -.35213E-03
  25  Prefactor     .10000E-03    .89647        .19487E-07** at limit **
  26  norm          5.6761        1.3536       -.91635E-08   -.14072E-03
  27  Prefactor     .10002E-03    1.5193       -.30738E-06** at limit **
  28  Prefactor     .10000E-03    8.1843       -.66789E-06** at limit **
  29  Prefactor     5.7798        1.9109        .41194E-07   -.22835E-02
  30  Prefactor     .10001E-03    1.3841        .13527E-06** at limit **
  31  Prefactor     .10000E-03    6.5962       -.68274E-07** at limit **
  32  Prefactor     6.0448        15.245       -.14415E-04   -.14917E-04
  33  norm          .84798        .60167        .13717E-06    .45012E-03
  34  Normalizat    1.0904        .59213E-01   -.47846E-07    .26604E-03
  35  Prefactor     .98249        .43191E-01    .62163E-07    .91750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4142
  Prefactor  = 30.0158
  Prefactor  = 0.0001
  Prefactor  = 9.89719
  norm       = 8.46668
  Prefactor  = 0.225398
  Prefactor  = 0.0001
  norm       = 8.35899
  Prefactor  = 7.71384
  Prefactor  = 3.78191
  Prefactor  = 0.0001
  norm       = 10.3228
  Prefactor  = 2.79598
  norm       = 0.220611
  Prefactor  = 0.0001
  Prefactor  = 3.75365
  Prefactor  = 4.78737
  Prefactor  = 0.0001
  Prefactor  = 11.7586
  Prefactor  = 2.139
  Prefactor  = 5.82393
  Prefactor  = 0.0001
  norm       = 2.6535
  norm       = 1.10368
  Prefactor  = 0.0001
  norm       = 5.6761
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 5.7798
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 6.0448
  norm       = 0.847984
  Normalizat = 1.09039
  Prefactor  = 0.982493
 **********
 **   18 **HESSE 
 **********

 FCN=   72451.71     FROM HESSE     STATUS=OK           816 CALLS     5343 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.414        7.1026        .59287E-03   -1.5032    
   2  Prefactor     30.016        12.534        .73130E-04   -1.4612    
   3  Prefactor     .10000E-03    1.9837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8972        6.2293        .63687E-03   -1.5079    
   5  norm          8.4667        1.1590        .10275E-03   -1.5126    
   6  Prefactor     .22540        6.1814        .21249       -1.5613    
   7  Prefactor     .10000E-03    4.1092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3590        4.5432        .13866E-03   -1.5130    
   9  Prefactor     7.7138        28.553        .14377E-03   -1.5152    
  10  Prefactor     3.7819        2.4751        .10379E-02   -1.5319    
  11  Prefactor     .10000E-03    8.7715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.323        2.8144        .62354E-03   -1.5065    
  13  Prefactor     2.7960        5.2334        .24335E-03   -1.5374    
  14  norm          .22061        .19809        .10628E-03   -1.5614    
  15  Prefactor     .10000E-03    2.5775        .31071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7536        1.0832        .12287E-03   -1.5320    
  17  Prefactor     4.7874        3.4895        .18386E-03   -1.5270    
  18  Prefactor     .10000E-03    5.3439        .35897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.759        9.6811        .11682E-03   -1.5022    
  20  Prefactor     2.1390        2.0579        .14093E-02   -1.5415    
  21  Prefactor     5.8239        12.990        .83266E-03   -1.5225    
  22  Prefactor     .10000E-03    91.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6535        .65861        .10428E-03   -1.5382    
  24  norm          1.1037        .20790        .50735E-04   -1.5498    
  25  Prefactor     .10000E-03    .91247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.6761        1.3508        .14183E-03   -1.5231    
  27  Prefactor     .10002E-03    1.3855        .11610       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.1912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.7798        2.0518        .83522E-03   -1.5227    
  30  Prefactor     .10001E-03    1.5712        .87974E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.6157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.0448        15.255        .16307E-03   -1.5216    
  33  norm          .84798        .58019        .16549E-03   -1.5524    
  34  Normalizat    1.0904        .69261E-01    .27286E-03   -.90061    
  35  Prefactor     .98249        .50686E-01    .21927E-03   -.93315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58475e-09
Minuit parameter uncertainties:
  1  7.10314
  2  12.5352
  3  1.03857e-07
  4  6.22973
  5  1.15898
  6  2.36049
  7  5.8211e-07
  8  4.54342
  9  28.6037
  10  2.47516
  11  2.10919e-05
  12  2.81447
  13  5.23426
  14  0.198088
  15  2.59882e-06
  16  1.08325
  17  3.48967
  18  4.27427e-05
  19  9.68236
  20  2.05795
  21  12.9964
  22  5.99687e-05
  23  0.658607
  24  0.207899
  25  3.7999e-07
  26  1.35081
  27  0.000299943
  28  1.76478e-06
  29  2.05186
  30  0.000269433
  31  6.74272e-07
  32  15.265
  33  0.580194
  34  0.0692669
  35  0.050688
Done.

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

Extracting fit parameters...

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  2.206e-01  1.981e-01  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:  9.825e-01  5.069e-02  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.090e+00  6.927e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 255.021 68.504
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.51e-09 +/- 8.54e-09
Energy Flux (Fixed Index): 3.37e-06 +/- 3.03e-06

TS (Fixed Index): 1.58
Ra Dec: 255.021 68.504
Photon Flux Upper Limit: 2.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.01e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149518/likelihoodResults_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 72451.2836845
delta logL = 0.423551780579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 72451.274448
delta logL = 0.432788307953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20051       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8329       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98590       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   72451.27     FROM MIGRAD    STATUS=FAILED        97 CALLS      260 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20049        .21291        .80051E-04    .11166E-02
   2  alpha         2.8328        .76839        .41988E-01    .15261E-02
   3  Normalizat    1.0820        .65334E-01    .27379E-03    .33218E-05
   4  Prefactor     .98590        .49871E-01    .21893E-03   -.83087E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   72451.27     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      331 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20049        .21291        .10248E-04   -1.5618    
   2  alpha         2.8328        .76839        .74454E-03    .13351    
   3  Normalizat    1.0820        .65334E-01    .73699E-04   -.90332    
   4  Prefactor     .98590        .49871E-01    .64556E-04   -.93201    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   72451.27     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      360 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20049        .17791        .16010E-04   -.22723E-04
   2  alpha         2.8328        .64534        .83976E-02    .60698E-04
   3  Normalizat    1.0820        .65266E-01    .10952E-04    .33218E-05
   4  Prefactor     .98590        .49772E-01    .87570E-05   -.83087E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.200491
  alpha      = 2.83279
  Normalizat = 1.082
  Prefactor  = 0.985903
 **********
 **   18 **HESSE 
 **********

 FCN=   72451.27     FROM HESSE     STATUS=OK            25 CALLS      385 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20049        .17356        .64041E-06   -1.5618    
   2  alpha         2.8328        .62964        .16795E-02    .13351    
   3  Normalizat    1.0820        .65206E-01    .21904E-05   -.90332    
   4  Prefactor     .98590        .49725E-01    .87570E-05   -.93201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19376e-14
Minuit parameter uncertainties:
  1  0.173565
  2  0.636622
  3  0.0652106
  4  0.0497272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149518': 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) = 72451.274448
delta logL = 0.432788354097

Extracting fit parameters...

4FGL J1700.0+6830
   Spectrum: LogParabola
358         norm:  2.005e-01  1.736e-01  1.000e-04  1.000e+04 ( 1.000e-11)
359        alpha:  2.833e+00  6.366e-01  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:  9.859e-01  4.973e-02  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.082e+00  6.521e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 255.021 68.504
Photon Index (Free Index): 2.83 +/- 0.64
Photon Flux (Free Index): 1.62e-08 +/- 1.21e-08
Energy Flux (Free Index): 3.69e-06 +/- 2.59e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149518/cmap_HighResolution_519523201_522115201_4FGL_J1700.0+6830_monthly_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-06', comment='SUCCESS', photon_flux='9.51e-09', energy_flux2='3.69e-06', photon_flux_error='8.54e-09', dlogl='4.33e-01', energy_flux='3.37e-06', photon_flux2='1.62e-08', job_status='DONE', time_completed='2021-10-29 23:22:24.487706', photon_index_error2='0.64', photon_index2='2.83', ts='1.58', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.54e-08', energy_flux_error2='2.59e-06', EG='1.09', time_epoch_completed='1635574944.49', return_code='0', job_id='149518', GAL2='0.99', EG2='1.08', return_code2='0', energy_flux_error='3.03e-06', photon_flux_error2='1.21e-08', ts2='2.45', photon_index='2.28' WHERE bin_id='109' AND source_name='4FGL J1700.0+6830' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 29 23:22:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 149518: <4FGL_J1700.0+6830_monthly_bin109> in cluster <slac> Done

Job <4FGL_J1700.0+6830_monthly_bin109> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct 29 20:35:12 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 29 20:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 29 20:35:34 2021
Terminated at Fri Oct 29 23:22:25 2021
Results reported at Fri Oct 29 23:22:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1700.0+6830_monthly_bin109 255.021 68.5042 519523201 522115201 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 :                                   9815.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             407.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10011 sec.
    Turnaround time :                            10033 sec.

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

