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


Performing analysis on: 4FGL_J1707.9+0016_daily_bin667
RA = 256.989, Dec = 0.2731
tmin = 412214401, tmax = 412473601
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='418443', job_status='RUN', time_executed='2021-09-16 17:23:48.886345', time_epoch_executed='1631838228.89' WHERE source_name='4FGL J1707.9+0016' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418443

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418443/ft1_4FGL_J1707.9+0016_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418443/ft1_4FGL_J1707.9+0016_daily_bin667.fits outfile=/scratch/kocevski/418443/ft1_filteredMKT_4FGL_J1707.9+0016_daily_bin667.fits ra=256.989 dec=0.2731 rad=12.0 tmin=412214401.0 tmax=412473601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.23
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.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/418443/ft1_filteredMKT_4FGL_J1707.9+0016_daily_bin667.fits evtable="EVENTS" outfile="/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/418443/ltcube_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.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/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits
.....................!
real 13.25
user 12.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/418443/ltcube_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.fits outfile=/scratch/kocevski/418443/expmap_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.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/418443/ltcube_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.fits
.....................!
real 191.58
user 186.19
sys 4.94

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 202 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1707.9+0016 @ 256.989 0.2731

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits scfile=/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits outfile=/scratch/kocevski/418443/cmap_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.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=256.989 yref=0.2731 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits scfile=/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits outfile=/scratch/kocevski/418443/cmap_HighResolution_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.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=256.989 yref=0.2731 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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/418443/Model_4FGL_J1707.9+0016_daily_bin667.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits......................!
real 26.63
user 25.31
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits', '/scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits', expMap='/scratch/kocevski/418443/expmap_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.fits', expCube='/scratch/kocevski/418443/ltcube_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/418443/Model_4FGL_J1707.9+0016_daily_bin667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1707.9+0016'

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  8.322e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
249        Index:  2.077e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  4.388e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/418443/ft1_filtered_4FGL_J1707.9+0016_daily_bin667.fits
Spacecraft file(s): /scratch/kocevski/418443/ft2_4FGL_J1707.9+0016_daily_bin667.fits
Exposure map: /scratch/kocevski/418443/expmap_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.fits
Exposure cube: /scratch/kocevski/418443/ltcube_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/418443/Model_4FGL_J1707.9+0016_daily_bin667.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) = 1605.70320715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    862.02       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24886E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20191E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48181E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.495       1.0000         .10000E-03   10000.    
     9 'Prefactor '    900.72       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.868       1.0000         .10000E-03   10000.    
    11 'Prefactor '    207.09       1.0000         .10000E-03   10000.    
    12 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12917E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .10056E-01   1.0000         .10000E-01   10.000    
    17 'Prefactor '    .64562       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1605.603     FROM MIGRAD    STATUS=CONVERGED     74 CALLS     1383 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     862.01        1.0237       -.91833E-09    .20691E-02
   2  Prefactor     .11385E-03    211.48       -.15590E-05** at limit **
   3  Prefactor     .44937E-02    21.578       -.10602E-05    .33974E-02
   4  Prefactor     .85042E-02    1.1793       -.23488E-06    .82516E-03
   5  Prefactor     .10000E-03    5.8914        .11734E-05** at limit **
   6  Prefactor     9.4770        9.2657       -.11702E-06   -.55206E-02
   7  Prefactor     .15535E-03    2.5099       -.31487E-06** at limit **
   8  Prefactor     26.517        11.348       -.11326E-06   -.53448E-02
   9  Prefactor     900.72        1.0099       -.60555E-09    .15105E-02
  10  Prefactor     33.881        2.2122       -.14420E-07    .17542E-02
  11  Prefactor     207.10        2.7235        .21031E-07   -.12114E-01
  12  norm          .10000E-03    11.666       -.12704E-05** at limit **
  13  norm          .10000E-03    3.5129        .11324E-06** at limit **
  14  norm          .10001E-03    33.089        .20516E-05** at limit **
  15  norm          .10000E-03    11.057        .64718E-06** at limit **
  16  Normalizat    .10000E-01    2.1907       -.24708E-04** at limit **
  17  Prefactor     .64574        .84528E-01   -.24902E-05   -.62934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 862.014
  Prefactor  = 0.000113855
  Prefactor  = 0.00449373
  Prefactor  = 0.0085042
  Prefactor  = 0.0001
  Prefactor  = 9.47696
  Prefactor  = 0.00015535
  Prefactor  = 26.5175
  Prefactor  = 900.715
  Prefactor  = 33.881
  Prefactor  = 207.104
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.645743
 **********
 **   18 **HESSE 
 **********

 FCN=   1605.603     FROM HESSE     STATUS=OK           253 CALLS     1636 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     862.01        549.83        .35630E-03   -.97481    
   2  Prefactor     .11385E-03    31.125        .91468E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44937E-02    944.23        .90712E-02   -1.5695    
   4  Prefactor     .85042E-02    7295.3        .90712E-02   -1.5690    
   5  Prefactor     .10000E-03    5.8859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4770        16.867        .32583E-02   -1.5092    
   7  Prefactor     .15535E-03    599.84        .10588E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.517        17.010        .19457E-02   -1.4678    
   9  Prefactor     900.72        718.40        .34930E-03   -.96116    
  10  Prefactor     33.881        27.675        .17214E-02   -1.4543    
  11  Prefactor     207.10        183.71        .70221E-03   -1.2820    
  12  norm          .10000E-03    11.645        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    32.907        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .10000E-01    1.0657        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .64574        .11036        .28089E-01   -1.0569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05251e-06
Minuit parameter uncertainties:
  1  553.411
  2  0.0415538
  3  4.14065
  4  13.6654
  5  6.90467e-05
  6  16.8753
  7  0.368167
  8  17.0134
  9  726.165
  10  27.686
  11  184.219
  12  6.5574e-05
  13  4.90829e-06
  14  0.000981609
  15  3.51423e-05
  16  2.07332e-05
  17  0.110397
Done.

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

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  9.007e+02  7.262e+02  1.000e-04  1.000e+04 ( 1.000e-15)
249        Index:  2.077e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  4.388e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  6.457e-01  1.104e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
698   Normalization:  1.000e-02  2.073e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.49
Ra Dec: 256.989 0.273
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 2.15e-07 +/- 1.73e-07
Energy Flux (Fixed Index): 1.24e-04 +/- 1.00e-04

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) = 1604.97179587
delta logL = 0.630768187628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1604.97179023
delta logL = 0.630773824067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2041.0       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4289       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+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=   1604.972     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      280 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2039.7        1793.0        .49623E-04   -.25201E-06
   2  Index         1.4286        .57854        .53461E-02    .39176E-05
   3  Normalizat    .10000E-01    2.1699        .16085E-01** at limit **
   4  Prefactor     .65134        .78901E-01    .12372E-03   -.23661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2039.68
  Index      = 1.42864
  Normalizat = 0.01
  Prefactor  = 0.651344
 **********
 **   18 **HESSE 
 **********

 FCN=   1604.972     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2039.7        1781.0        .99245E-05   -.63362    
   2  Index         1.4286        .57444        .21385E-03   -.79558    
   3  Normalizat    .10000E-01    2.1768        .32170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .65134        .78575E-01    .49489E-05   -1.0547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38775e-12
Minuit parameter uncertainties:
  1  1844.8
  2  0.577047
  3  1.14126e-05
  4  0.078588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418443': 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) = 1604.97178917
delta logL = 0.630774881953

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  2.040e+03  1.845e+03  1.000e-04  1.000e+04 ( 1.000e-15)
249        Index:  1.429e+00  5.770e-01  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  4.388e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  6.513e-01  7.859e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
698   Normalization:  1.000e-02  1.141e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.72
Ra Dec: 256.989 0.273
Photon Index (Free Index): 1.43 +/- 0.58
Photon Flux (Free Index): 1.00e-07 +/- 1.18e-07
Energy Flux (Free Index): 4.02e-04 +/- 5.73e-04

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/418443/cmap_HighResolution_412214401_412473601_4FGL_J1707.9+0016_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.15e-07', energy_flux2='4.02e-04', photon_flux_error='1.73e-07', dlogl='6.31e-01', energy_flux='1.24e-04', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-16 17:30:06.435435', photon_index_error2='0.58', photon_index2='1.43', ts='6.49', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='5.73e-04', EG='0.01', time_epoch_completed='1631838606.44', return_code='0', job_id='418443', GAL2='0.65', EG2='0.01', return_code2='0', energy_flux_error='1.00e-04', photon_flux_error2='1.18e-07', ts2='7.72', photon_index='2.08' WHERE bin_id='667' AND source_name='4FGL J1707.9+0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 418443: <4FGL_J1707.9+0016_daily_bin667> in cluster <slac> Done

Job <4FGL_J1707.9+0016_daily_bin667> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 17:20:17 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 17:20:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 17:20:18 2021
Terminated at Thu Sep 16 17:30:07 2021
Results reported at Thu Sep 16 17:30:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.9+0016_daily_bin667 256.989 0.2731 412214401 412473601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1707.9+0016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   378.22 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             230.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            590 sec.

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

