/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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1707.9+0016_daily_bin395
RA = 256.989, Dec = 0.2731
tmin = 341712001, tmax = 341971201
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='417065', job_status='RUN', time_executed='2021-09-16 17:16:32.476996', time_epoch_executed='1631837792.48' WHERE source_name='4FGL J1707.9+0016' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417065/ft1_4FGL_J1707.9+0016_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417065/ft2_4FGL_J1707.9+0016_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417065/ft1_4FGL_J1707.9+0016_daily_bin395.fits outfile=/scratch/kocevski/417065/ft1_filteredMKT_4FGL_J1707.9+0016_daily_bin395.fits ra=256.989 dec=0.2731 rad=12.0 tmin=341712001.0 tmax=341971201.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.83
user 2.64
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417065/ft1_filtered_4FGL_J1707.9+0016_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/417065/ft2_4FGL_J1707.9+0016_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/417065/ltcube_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.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/417065/ft2_4FGL_J1707.9+0016_daily_bin395.fits
.....................!
real 9.90
user 9.59
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417065/ft1_filtered_4FGL_J1707.9+0016_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/417065/ft2_4FGL_J1707.9+0016_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/417065/ltcube_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.fits outfile=/scratch/kocevski/417065/expmap_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.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/417065/ltcube_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.fits
.....................!
real 154.34
user 150.53
sys 3.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/417065/ft1_filtered_4FGL_J1707.9+0016_daily_bin395.fits scfile=/scratch/kocevski/417065/ft2_4FGL_J1707.9+0016_daily_bin395.fits outfile=/scratch/kocevski/417065/cmap_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417065/ft1_filtered_4FGL_J1707.9+0016_daily_bin395.fits scfile=/scratch/kocevski/417065/ft2_4FGL_J1707.9+0016_daily_bin395.fits outfile=/scratch/kocevski/417065/cmap_HighResolution_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.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.47
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92301       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.322       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0822       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11124E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7900       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1205       1.0000         .10000E-03   10000.    
    14 'norm      '    21.463       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0330       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0161       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=   15287.89     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     1362 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7321        7.8735       -.78805E-05    .23188E-02
   2  Prefactor     8.2403        1.3456        .81372E-06    .12346E-02
   3  Prefactor     .10001E-03    27.097        .33993E-04** at limit **
   4  Prefactor     .10000E-03    9.2203        .11985E-06** at limit **
   5  Prefactor     11.036        6.3032       -.25458E-05   -.20177E-05
   6  Prefactor     .92476        7.3492       -.60316E-06    .86389E-04
   7  Prefactor     38.331        1.9638        .21608E-06   -.21633E-03
   8  Prefactor     2.0822        5.7294       -.61457E-05   -.14912E-03
   9  Prefactor     .10184E-03    379.78       -.17708E-04** at limit **
  10  Prefactor     .10000E-03    41.050        .46357E-05** at limit **
  11  Prefactor     .10001E-03    27.766       -.39267E-04** at limit **
  12  norm          3.7923        1.0462       -.70828E-07   -.80134E-04
  13  norm          1.1211        2.6554       -.38625E-06   -.13630E-03
  14  norm          21.463        1.0701       -.34416E-06   -.33496E-04
  15  norm          .10000E-03    2.7878       -.18189E-06** at limit **
  16  Normalizat    1.0328        .32524        .50983E-05   -.51168E-04
  17  Prefactor     1.0161        .57685E-01   -.51171E-06   -.25927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73206
  Prefactor  = 8.24029
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 11.036
  Prefactor  = 0.924757
  Prefactor  = 38.3307
  Prefactor  = 2.08217
  Prefactor  = 0.000101838
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 3.79231
  norm       = 1.12108
  norm       = 21.4625
  norm       = 0.0001
  Normalizat = 1.03276
  Prefactor  = 1.01611
 **********
 **   18 **HESSE 
 **********

 FCN=   15287.89     FROM HESSE     STATUS=OK           265 CALLS     1627 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7321        461.93        .46067E-02   -1.5273    
   2  Prefactor     8.2403        7.3629        .34916E-02   -1.5134    
   3  Prefactor     .10001E-03    26.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.036        6.3447        .30150E-02   -1.5043    
   6  Prefactor     .92476        7.3386        .12891E-01   -1.5516    
   7  Prefactor     38.331        47.498        .16186E-02   -1.4469    
   8  Prefactor     2.0822        5.7652        .71542E-02   -1.5419    
   9  Prefactor     .10184E-03    381.60        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    27.891        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7923        12.762        .51838E-02   -1.5318    
  13  norm          1.1211        2.7051        .11093E-01   -1.5496    
  14  norm          21.463        12.489        .21614E-02   -1.4781    
  15  norm          .10000E-03    2.7445        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0328        .32931        .16101       -.91941    
  17  Prefactor     1.0161        .55816E-01    .29813E-01   -.92194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62354e-06
Minuit parameter uncertainties:
  1  94.2642
  2  7.36371
  3  0.000842692
  4  1.98342e-06
  5  6.34511
  6  5.21074
  7  47.5451
  8  5.76672
  9  0.053308
  10  0.000175243
  11  0.00123113
  12  12.7711
  13  2.70544
  14  12.4902
  15  1.0692e-05
  16  0.329963
  17  0.0558196
Done.

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

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  1.018e-04  5.331e-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:  1.016e+00  5.582e-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.033e+00  3.300e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/417065/likelihoodResults_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.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) = 15287.8851299
delta logL = -1.22879246192e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15287.6453777
delta logL = 0.239739949639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20958E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.2808       1.0000          .0000       10.000    
     3 'Normalizat'    .95086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0238       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=   15287.65     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      546 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20458E-03    .40836E-02    .43446E-03** at limit **
   2  Index         6.2877        1.5758        .76747E-01    .49289E-03
   3  Normalizat    .95109        .48047E-01    .16709        .10872E-03
   4  Prefactor     1.0237        .88158E-02    .29711E-01    .23792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000204576
  Index      = 6.28771
  Normalizat = 0.951088
  Prefactor  = 1.02372
 **********
 **   18 **HESSE 
 **********

 FCN=   15287.65     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      581 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20458E-03    .35248E-01    .26771E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2877        7.4522        .69596E-02    .26048    
   3  Normalizat    .95109        .19165        .74296E-03   -.94688    
   4  Prefactor     1.0237        .34463E-01    .13130E-03   -.91943    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11321e-07
Minuit parameter uncertainties:
  1  0.00383986
  2  5.16513
  3  0.191784
  4  0.0344642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417065': 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) = 15287.6453758
delta logL = 0.239741860811

Extracting fit parameters...

4FGL J1707.9+0016
   Spectrum: PowerLaw
248    Prefactor:  2.046e-04  3.840e-03  1.000e-04  1.000e+04 ( 1.000e-15)
249        Index:  6.288e+00  5.165e+00  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.024e+00  3.446e-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:  9.511e-01  1.918e-01  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/417065/cmap_HighResolution_341712001_341971201_4FGL_J1707.9+0016_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-16 17:30:30.624189', job_id='417065', GAL2='1.02', fit_tolerance='1e-08', EG2='0.95', EG='1.03', time_epoch_completed='1631838630.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.40e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='395' AND source_name='4FGL J1707.9+0016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:30:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 417065: <4FGL_J1707.9+0016_daily_bin395> in cluster <slac> Done

Job <4FGL_J1707.9+0016_daily_bin395> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 17:15:30 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 17:15:32 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:15:32 2021
Terminated at Thu Sep 16 17:30:33 2021
Results reported at Thu Sep 16 17:30:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.9+0016_daily_bin395 256.989 0.2731 341712001 341971201 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 :                                   836.11 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             339.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            903 sec.

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

