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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin460
RA = 256.881, Dec = 16.8206
tmin = 358560001, tmax = 358819201
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='407389', job_status='RUN', time_executed='2021-09-16 16:44:23.857495', time_epoch_executed='1631835863.86' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/407389

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/407389/ft1_4FGL_J1707.5+1649_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/407389/ft1_4FGL_J1707.5+1649_daily_bin460.fits outfile=/scratch/kocevski/407389/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin460.fits ra=256.881 dec=16.8206 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.26
user 5.00
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.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/407389/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin460.fits evtable="EVENTS" outfile="/scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/407389/ltcube_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.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/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits
.....................!
real 14.04
user 13.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/407389/ltcube_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.fits outfile=/scratch/kocevski/407389/expmap_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.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/407389/ltcube_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.fits
.....................!
real 191.76
user 186.04
sys 5.18

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

Setting source of interest to:
4FGL J1707.5+1649 @ 256.881 16.8206

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits scfile=/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits outfile=/scratch/kocevski/407389/cmap_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.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.881 yref=16.8206 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits scfile=/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits outfile=/scratch/kocevski/407389/cmap_HighResolution_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.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.881 yref=16.8206 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/407389/Model_4FGL_J1707.5+1649_daily_bin460.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/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits.....................!
real 68.81
user 67.39
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits', '/scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits', expMap='/scratch/kocevski/407389/expmap_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.fits', expCube='/scratch/kocevski/407389/ltcube_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/407389/Model_4FGL_J1707.5+1649_daily_bin460.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1707.5+1649'

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.274e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/407389/ft1_filtered_4FGL_J1707.5+1649_daily_bin460.fits
Spacecraft file(s): /scratch/kocevski/407389/ft2_4FGL_J1707.5+1649_daily_bin460.fits
Exposure map: /scratch/kocevski/407389/expmap_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.fits
Exposure cube: /scratch/kocevski/407389/ltcube_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/407389/Model_4FGL_J1707.5+1649_daily_bin460.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) = 8370.318762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13142E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6250       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14109E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1698       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2455       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88379       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8370.316     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1888 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.603        30.403       -.60429E-06   -.52622E-06
   2  Prefactor     .10000E-03    7.1803        .44256E-06** at limit **
   3  Prefactor     5.3969        13.631        .28476E-05    .15965E-04
   4  Prefactor     .10000E-03    4.3860        .54842E-07** at limit **
   5  Prefactor     .10000E-03    3.4853        .20272E-06** at limit **
   6  Prefactor     9.7801        13.622       -.67084E-07   -.23742E-05
   7  Prefactor     36.302        31.079        .37766E-07   -.36583E-05
   8  Prefactor     38.497        63.902        .62626E-05    .81181E-05
   9  Prefactor     13.626        9.1031        .52416E-07    .10510E-03
  10  Prefactor     1.6298        25.177        .18527E-04    .32765E-05
  11  norm          .10000E-03    1.3972        .15350E-07** at limit **
  12  Prefactor     .10000E-03    42.505       -.13407E-05** at limit **
  13  norm          .10000E-03    7.8597        .30142E-07** at limit **
  14  Prefactor     .10000E-03    63.107        .47406E-06** at limit **
  15  Prefactor     4.1681        3.4602        .27121E-06    .39535E-03
  16  norm          .10000E-03    4.3064        .58741E-08** at limit **
  17  norm          .10000E-03    40.092        .14860E-05** at limit **
  18  Normalizat    1.2453        .24080       -.32541E-05    .12599E-03
  19  Prefactor     .88384        .88665E-01    .48419E-06    .32648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6032
  Prefactor  = 0.0001
  Prefactor  = 5.39691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.78009
  Prefactor  = 36.3017
  Prefactor  = 38.4975
  Prefactor  = 13.6259
  Prefactor  = 1.62983
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.16807
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.24533
  Prefactor  = 0.883842
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.316     FROM HESSE     STATUS=OK           266 CALLS     2154 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.603        30.400        .62916E-04   -1.4433    
   2  Prefactor     .10000E-03    7.2420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3969        13.680        .86496E-03   -1.5243    
   4  Prefactor     .10000E-03    4.5038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.304        .32858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7801        13.622        .12813E-03   -1.5082    
   7  Prefactor     36.302        31.103        .33259E-03   -1.4502    
   8  Prefactor     38.497        63.890        .64559E-04   -1.4466    
   9  Prefactor     13.626        9.0635        .10850E-03   -1.4970    
  10  Prefactor     1.6298        25.265        .16594E-02   -1.5453    
  11  norm          .10000E-03    1.4274        .10558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.8786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1681        3.4516        .14564E-03   -1.5300    
  16  norm          .10000E-03    4.3081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    40.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2453        .28848        .36219E-03   -.85213    
  19  Prefactor     .88384        .10751        .15989E-03   -.96708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19219e-11
Minuit parameter uncertainties:
  1  30.412
  2  6.9495e-05
  3  13.6882
  4  6.13687e-06
  5  9.43473e-06
  6  13.6261
  7  31.1171
  8  64.0042
  9  9.06445
  10  12.8399
  11  1.50461e-06
  12  0.000202521
  13  6.80551e-06
  14  1.3772e-05
  15  3.45175
  16  7.07889e-07
  17  1.98683e-06
  18  0.28885
  19  0.107535
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.630e+00  1.284e+01  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.838e-01  1.075e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.245e+00  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/407389/likelihoodResults_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.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) = 8369.57069238
delta logL = 0.745042545472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8369.56109281
delta logL = 0.75464211233

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8369.561     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49145        6.2666        .11244E-01    .12868E-02
   2  Index         4.0356        2.3087        .99403E-01    .20087E-03
   3  Normalizat    1.1612        .51852E-01    .84259E-01    .10337E-05
   4  Prefactor     .90037        .19734E-01    .45011E-01   -.26789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.49145
  Index      = 4.03563
  Normalizat = 1.16115
  Prefactor  = 0.90037
 **********
 **   18 **HESSE 
 **********

 FCN=   8369.561     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49145        18.281        .55738E-03   -1.5568    
   2  Index         4.0356        6.9009        .54533E-02   -.19409    
   3  Normalizat    1.1612        .20040        .37307E-03   -.87812    
   4  Prefactor     .90037        .75680E-01    .15848E-03   -.96128    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08083e-06
Minuit parameter uncertainties:
  1  5.99601
  2  5.24773
  3  0.20053
  4  0.0756884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/407389': 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) = 8369.56109112
delta logL = 0.754643800203

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  4.914e-01  5.996e+00  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  4.036e+00  5.248e+00  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.004e-01  7.569e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.161e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 256.881 16.821
Photon Index (Free Index): 4.04 +/- 5.25
Photon Flux (Free Index): 7.45e-08 +/- 6.20e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.27e-05

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/407389/cmap_HighResolution_358560001_358819201_4FGL_J1707.5+1649_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='7.55e-01', photon_flux2='7.45e-08', job_status='DONE', time_completed='2021-09-16 16:56:29.473407', photon_index_error2='5.25', photon_index2='4.04', ts='0.02', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.27e-05', EG='1.25', time_epoch_completed='1631836589.47', return_code='0', job_id='407389', GAL2='0.90', EG2='1.16', return_code2='102', photon_flux_error2='6.20e-08', ts2='1.60', photon_index='2.25' WHERE bin_id='460' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:56:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 407389: <4FGL_J1707.5+1649_daily_bin460> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin460> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 16:40:47 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:44:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 16:44:04 2021
Terminated at Thu Sep 16 16:56:30 2021
Results reported at Thu Sep 16 16:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin460 256.881 16.8206 358560001 358819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1707.5+1649 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            943 sec.

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

