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


Performing analysis on: 4FGL_J1707.9+0016_daily_bin971
RA = 256.989, Dec = 0.2731
tmin = 491011201, tmax = 491270401
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='419963', job_status='RUN', time_executed='2021-09-16 17:26:37.039286', time_epoch_executed='1631838397.04' WHERE source_name='4FGL J1707.9+0016' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419963/ft1_4FGL_J1707.9+0016_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419963/ft1_4FGL_J1707.9+0016_daily_bin971.fits outfile=/scratch/kocevski/419963/ft1_filteredMKT_4FGL_J1707.9+0016_daily_bin971.fits ra=256.989 dec=0.2731 rad=12.0 tmin=491011201.0 tmax=491270401.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 2.95
user 2.74
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.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/419963/ft1_filteredMKT_4FGL_J1707.9+0016_daily_bin971.fits evtable="EVENTS" outfile="/scratch/kocevski/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.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.44
user 0.28
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/419963/ltcube_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.fits outfile=/scratch/kocevski/419963/expmap_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.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/419963/ltcube_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.fits
.....................!
real 158.22
user 152.61
sys 4.47

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/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.fits scfile=/scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.fits outfile=/scratch/kocevski/419963/cmap_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.fits scfile=/scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.fits outfile=/scratch/kocevski/419963/cmap_HighResolution_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.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.49
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419963/Model_4FGL_J1707.9+0016_daily_bin971.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/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.fits.....................!
real 111.08
user 109.66
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.fits', '/scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.fits', expMap='/scratch/kocevski/419963/expmap_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.fits', expCube='/scratch/kocevski/419963/ltcube_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/419963/Model_4FGL_J1707.9+0016_daily_bin971.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/419963/ft1_filtered_4FGL_J1707.9+0016_daily_bin971.fits
Spacecraft file(s): /scratch/kocevski/419963/ft2_4FGL_J1707.9+0016_daily_bin971.fits
Exposure map: /scratch/kocevski/419963/expmap_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.fits
Exposure cube: /scratch/kocevski/419963/ltcube_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/419963/Model_4FGL_J1707.9+0016_daily_bin971.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) = 14873.2341549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    119.19       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.787       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15333E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.3442       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .44696E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4517       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0019       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.

 FCN=   14873.21     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1598 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     119.16        92.912       -.22829E-04    .62628E-06
   2  Prefactor     .10000E-03    9.6231        .38715E-05** at limit **
   3  Prefactor     .10000E-03    5.2272       -.10424E-06** at limit **
   4  Prefactor     .10000E-03    9.7800       -.39538E-05** at limit **
   5  Prefactor     10.440        7.7147       -.85682E-06   -.79310E-04
   6  Prefactor     .10000E-03    1.7389       -.51318E-07** at limit **
   7  Prefactor     21.785        29.182       -.12774E-05   -.74068E-05
   8  Prefactor     .10000E-03    4.4959       -.86416E-07** at limit **
   9  Prefactor     .10000E-03    81.368        .59352E-04** at limit **
  10  Prefactor     9.2143        14.346       -.15346E-05    .13027E-04
  11  Prefactor     .10000E-03    103.16       -.71252E-04** at limit **
  12  norm          9.3334        12.581       -.86772E-05    .13335E-03
  13  norm          .10000E-03    1.3698        .51187E-08** at limit **
  14  norm          .10093E-03    5.6365       -.53571E-07** at limit **
  15  norm          .10000E-03    6.1759       -.17073E-07** at limit **
  16  Normalizat    1.4519        .32487        .78917E-05   -.23535E-04
  17  Prefactor     1.0018        .55674E-01   -.42192E-06    .57724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 119.16
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4395
  Prefactor  = 0.0001
  Prefactor  = 21.7847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.2143
  Prefactor  = 0.000100002
  norm       = 9.33343
  norm       = 0.0001
  norm       = 0.000100929
  norm       = 0.0001
  Normalizat = 1.45185
  Prefactor  = 1.00182
 **********
 **   18 **HESSE 
 **********

 FCN=   14873.21     FROM HESSE     STATUS=OK           221 CALLS     1819 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     119.16        93.119        .18430E-03   -1.3520    
   2  Prefactor     .10000E-03    9.9470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.440        7.7817        .12399E-03   -1.5062    
   6  Prefactor     .10000E-03    1.7432        .15703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.785        29.197        .85813E-04   -1.4774    
   8  Prefactor     .10000E-03    4.5300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    81.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2143        14.349        .13198E-03   -1.5101    
  11  Prefactor     .10000E-03    102.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.3334        12.440        .13110E-03   -1.5097    
  13  norm          .10000E-03    1.3872        .13937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10093E-03    56.058        .55489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.3147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.4519        .35325        .64043E-03   -.79140    
  17  Prefactor     1.0018        .60886E-01    .13751E-03   -.92669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52666e-08
Minuit parameter uncertainties:
  1  93.2334
  2  3.33672e-05
  3  9.28107e-06
  4  9.13195e-06
  5  7.78241
  6  3.26257e-06
  7  29.2164
  8  1.77845e-05
  9  3.64711e-05
  10  14.3539
  11  0.0008467
  12  12.4433
  13  1.50368e-06
  14  0.0144491
  15  1.70837e-05
  16  0.353848
  17  0.0608904
Done.

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

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  3.647e-05  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:  1.002e+00  6.089e-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.452e+00  3.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.989 0.273
Photon Flux Upper Limit: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/419963/likelihoodResults_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.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) = 14873.2148479
delta logL = -5.83774799452e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14873.214795
delta logL = -5.41437839274e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1861       1.0000          .0000       10.000    
     3 'Normalizat'    1.4519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0018       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.

 FCN=   14873.21     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.894        .10443E-01** at limit **
   2  Index         2.1833        5.7432        .50000        .53597E-05
   3  Normalizat    1.4519        .41945E-02    .14419        .12699E-04
   4  Prefactor     1.0018        .77022E-03    .31117E-01    .15153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.18327
  Normalizat = 1.45185
  Prefactor  = 1.00182
 **********
 **   18 **HESSE 
 **********

 FCN=   14873.21     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    203.36        .20887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1833        8.0111        .50000       -.59843    
   3  Normalizat    1.4519        .14560E-01    .64042E-03   -.79140    
   4  Prefactor     1.0018        .26874E-02    .13751E-03   -.92669    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.8921e-08
Minuit parameter uncertainties:
  1  0.00270397
  2  202.305
  3  0.0145602
  4  0.0026874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419963': 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) = 14873.2147897
delta logL = -1.18467141874e-07

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  2.704e-03  1.000e-04  1.000e+04 ( 1.000e-15)
249        Index:  2.183e+00  2.023e+02  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:  1.002e+00  2.687e-03  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.452e+00  1.456e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.989 0.273

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/419963/cmap_HighResolution_491011201_491270401_4FGL_J1707.9+0016_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2021-09-16 17:39:57.940889', job_id='419963', GAL2='1.00', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631839197.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='971' AND source_name='4FGL J1707.9+0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 419963: <4FGL_J1707.9+0016_daily_bin971> in cluster <slac> Done

Job <4FGL_J1707.9+0016_daily_bin971> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 17:25:33 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 17:25:34 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:25:34 2021
Terminated at Thu Sep 16 17:39:58 2021
Results reported at Thu Sep 16 17:39:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.9+0016_daily_bin971 256.989 0.2731 491011201 491270401 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 :                                   798.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             315.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

