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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1078
RA = 256.881, Dec = 16.8206
tmin = 518745601, tmax = 519004801
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='411562', job_status='RUN', time_executed='2021-09-16 16:59:22.572612', time_epoch_executed='1631836762.57' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411562/ft1_4FGL_J1707.5+1649_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411562/ft1_4FGL_J1707.5+1649_daily_bin1078.fits outfile=/scratch/kocevski/411562/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1078.fits ra=256.881 dec=16.8206 rad=12.0 tmin=518745601.0 tmax=519004801.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 4.38
user 4.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.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/411562/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1078.fits evtable="EVENTS" outfile="/scratch/kocevski/411562/ft1_filtered_4FGL_J1707.5+1649_daily_bin1078.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411562/ft1_filtered_4FGL_J1707.5+1649_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/411562/ltcube_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.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/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits
.....................!
real 14.36
user 13.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411562/ft1_filtered_4FGL_J1707.5+1649_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/411562/ltcube_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.fits outfile=/scratch/kocevski/411562/expmap_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.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/411562/ltcube_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.fits
.....................!
real 190.49
user 185.46
sys 4.64

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/411562/ft1_filtered_4FGL_J1707.5+1649_daily_bin1078.fits scfile=/scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits outfile=/scratch/kocevski/411562/cmap_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411562/ft1_filtered_4FGL_J1707.5+1649_daily_bin1078.fits scfile=/scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits outfile=/scratch/kocevski/411562/cmap_HighResolution_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/411562/ft1_filtered_4FGL_J1707.5+1649_daily_bin1078.fits', '/scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits', expMap='/scratch/kocevski/411562/expmap_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.fits', expCube='/scratch/kocevski/411562/ltcube_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/411562/Model_4FGL_J1707.5+1649_daily_bin1078.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/411562/ft1_filtered_4FGL_J1707.5+1649_daily_bin1078.fits
Spacecraft file(s): /scratch/kocevski/411562/ft2_4FGL_J1707.5+1649_daily_bin1078.fits
Exposure map: /scratch/kocevski/411562/expmap_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.fits
Exposure cube: /scratch/kocevski/411562/ltcube_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/411562/Model_4FGL_J1707.5+1649_daily_bin1078.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) = 8275.58568141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1697       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32809E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4440       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.662       1.0000         .10000E-03   10000.    
    13 'norm      '    10.226       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29557E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4171       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81106       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8275.583     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     2186 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.222        30.830        .65691E-04    .24921E-04
   2  Prefactor     .10000E-03    5.7232        .18142E-02** at limit **
   3  Prefactor     9.1704        12.539        .13235E-03    .17351E-04
   4  Prefactor     .20576E-01    3.2351        .50456E-01    .51849E-03
   5  Prefactor     8.1534        8.0402        .14040E-03    .64616E-04
   6  Prefactor     .10000E-03    31.769        .18142E-02** at limit **
   7  Prefactor     .10000E-03    28.413        .18142E-02** at limit **
   8  Prefactor     59.481        78.813        .52019E-04    .39688E-04
   9  Prefactor     8.3579        9.2451        .13866E-03    .65918E-04
  10  Prefactor     3.4436        11.835        .21794E-03    .17006E-04
  11  norm          .10000E-03    .84330        .81382E-03** at limit **
  12  Prefactor     34.663        17.610        .68066E-04   -.25054E-04
  13  norm          10.226        9.3027        .12530E-03   -.52260E-04
  14  Prefactor     .10000E-03    47.668        .18142E-02** at limit **
  15  Prefactor     .10027E-03    25.995        .18578E-02** at limit **
  16  norm          .10000E-03    11.903        .18142E-02** at limit **
  17  norm          .10000E-03    23.123        .18142E-02** at limit **
  18  Normalizat    1.4171        .28589        .34937E-03    .17507E-04
  19  Prefactor     .81109        .10497        .16661E-03    .43943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2216
  Prefactor  = 0.0001
  Prefactor  = 9.1704
  Prefactor  = 0.020576
  Prefactor  = 8.15337
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 59.4808
  Prefactor  = 8.35786
  Prefactor  = 3.44364
  norm       = 0.0001
  Prefactor  = 34.6633
  norm       = 10.2263
  Prefactor  = 0.000100003
  Prefactor  = 0.000100274
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.41711
  Prefactor  = 0.811088
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.583     FROM HESSE     STATUS=OK           258 CALLS     2444 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.222        30.827        .26276E-05   -1.4487    
   2  Prefactor     .10000E-03    5.7235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1704        12.540        .52941E-05   -1.5102    
   4  Prefactor     .20576E-01    3.2110        .50771E-01   -1.5679    
   5  Prefactor     8.1534        8.0395        .56161E-05   -1.5137    
   6  Prefactor     .10000E-03    31.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.481        78.816        .10404E-04   -1.4164    
   9  Prefactor     8.3579        9.2442        .55465E-05   -1.5130    
  10  Prefactor     3.4436        11.835        .87175E-05   -1.5337    
  11  norm          .10000E-03    .84333        .16277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.663        17.602        .27226E-05   -1.4530    
  13  norm          10.226        9.2980        .50121E-05   -1.5068    
  14  Prefactor     .10000E-03    47.670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10027E-03    26.518        .37156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4171        .28618        .13975E-04   -.80135    
  19  Prefactor     .81109        .10507        .66646E-05   -.99321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07675e-08
Minuit parameter uncertainties:
  1  30.8401
  2  1.01012e-05
  3  12.5436
  4  0.512854
  5  8.04053
  6  1.39555e-05
  7  0.000246522
  8  78.9544
  9  9.2458
  10  11.8434
  11  4.65039e-06
  12  17.6043
  13  9.29932
  14  0.000703299
  15  0.00539389
  16  1.96529e-05
  17  6.05762e-05
  18  0.286501
  19  0.105091
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  3.444e+00  1.184e+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.111e-01  1.051e-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.417e+00  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/411562/likelihoodResults_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8275.10918214
delta logL = 0.474288568792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8275.10795401
delta logL = 0.475516695395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74366       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7675       1.0000          .0000       10.000    
     3 'Normalizat'    1.3589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82249       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=   8275.108     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      310 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74824        10.742        .12228E-01    .11620E-02
   2  Index         3.7648        2.0580        .14986        .13113E-03
   3  Normalizat    1.3589        .46403E-01    .80293E-01   -.26551E-03
   4  Prefactor     .82249        .17360E-01    .44009E-01   -.68825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.748243
  Index      = 3.76484
  Normalizat = 1.35892
  Prefactor  = 0.82249
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.108     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      341 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74824        41.422        .81509E-04   -1.5535    
   2  Index         3.7648        6.8813        .54534E-02   -.24962    
   3  Normalizat    1.3589        .24431        .35541E-03   -.81824    
   4  Prefactor     .82249        .90524E-01    .16550E-03   -.98905    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.67669e-07
Minuit parameter uncertainties:
  1  11.1418
  2  6.54552
  3  0.244518
  4  0.0905403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411562': 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) = 8275.10795291
delta logL = 0.475517796913

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  7.482e-01  1.114e+01  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  3.765e+00  6.546e+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:  8.225e-01  9.054e-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.359e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 256.881 16.821
Photon Index (Free Index): 3.76 +/- 6.55
Photon Flux (Free Index): 6.05e-08 +/- 6.40e-08
Energy Flux (Free Index): 9.47e-06 +/- 1.47e-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/411562/cmap_HighResolution_518745601_519004801_4FGL_J1707.5+1649_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', energy_flux2='9.47e-06', dlogl='4.76e-01', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-09-16 17:11:45.632378', photon_index_error2='6.55', photon_index2='3.76', ts='0.09', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.47e-05', EG='1.42', time_epoch_completed='1631837505.63', return_code='0', job_id='411562', GAL2='0.82', EG2='1.36', return_code2='102', photon_flux_error2='6.40e-08', ts2='1.08', photon_index='2.25' WHERE bin_id='1078' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:11:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 411562: <4FGL_J1707.5+1649_daily_bin1078> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1078> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 16 16:55:46 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:59:07 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:59:07 2021
Terminated at Thu Sep 16 17:11:46 2021
Results reported at Thu Sep 16 17:11:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1078 256.881 16.8206 518745601 519004801 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 :                                   741.56 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            960 sec.

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

