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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin861
RA = 256.881, Dec = 16.8206
tmin = 462499201, tmax = 462758401
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='411249', job_status='RUN', time_executed='2021-09-16 16:56:27.966795', time_epoch_executed='1631836587.97' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='861'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411249/ft1_4FGL_J1707.5+1649_daily_bin861.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411249/ft2_4FGL_J1707.5+1649_daily_bin861.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411249/ft1_4FGL_J1707.5+1649_daily_bin861.fits outfile=/scratch/kocevski/411249/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin861.fits ra=256.881 dec=16.8206 rad=12.0 tmin=462499201.0 tmax=462758401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.58
user 3.32
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411249/ft1_filtered_4FGL_J1707.5+1649_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/411249/ft2_4FGL_J1707.5+1649_daily_bin861.fits sctable="SC_DATA" expcube=/scratch/kocevski/411249/ltcube_462499201_462758401_4FGL_J1707.5+1649_daily_bin861.fits outfile=/scratch/kocevski/411249/expmap_462499201_462758401_4FGL_J1707.5+1649_daily_bin861.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/411249/ltcube_462499201_462758401_4FGL_J1707.5+1649_daily_bin861.fits
.....................!
real 193.84
user 188.24
sys 4.80

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/411249/ft1_filtered_4FGL_J1707.5+1649_daily_bin861.fits scfile=/scratch/kocevski/411249/ft2_4FGL_J1707.5+1649_daily_bin861.fits outfile=/scratch/kocevski/411249/cmap_462499201_462758401_4FGL_J1707.5+1649_daily_bin861.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411249/ft1_filtered_4FGL_J1707.5+1649_daily_bin861.fits scfile=/scratch/kocevski/411249/ft2_4FGL_J1707.5+1649_daily_bin861.fits outfile=/scratch/kocevski/411249/cmap_HighResolution_462499201_462758401_4FGL_J1707.5+1649_daily_bin861.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9381       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9046       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1270       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9562       1.0000         .10000E-03   10000.    
    16 'norm      '    .21329E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3204       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94756       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=   10991.21     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1914 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.349        40.907        .70099E-06    .72237E-04
   2  Prefactor     4.9379        15.741        .30735E-05    .44310E-03
   3  Prefactor     19.520        20.846        .78934E-07   -.14349E-04
   4  Prefactor     .10000E-03    7.2432       -.25859E-06** at limit **
   5  Prefactor     .10000E-03    7.4335       -.11711E-06** at limit **
   6  Prefactor     5.5308        35.491        .48341E-05    .87651E-04
   7  Prefactor     14.883        23.552        .15237E-06    .38402E-05
   8  Prefactor     .10000E-03    28.120       -.36316E-06** at limit **
   9  Prefactor     3.9052        7.4159        .17075E-05    .37778E-03
  10  Prefactor     .10000E-03    5.1044        .32238E-07** at limit **
  11  norm          23.471        4.9864       -.42954E-06   -.12627E-02
  12  Prefactor     5.1273        11.935        .19973E-06    .50578E-04
  13  norm          .10000E-03    3.5345       -.13554E-08** at limit **
  14  Prefactor     .10000E-03    40.902       -.20379E-05** at limit **
  15  Prefactor     6.9563        3.5542        .76376E-07    .12419E-03
  16  norm          .10025E-03    16.265       -.49982E-05** at limit **
  17  norm          .10000E-03    95.449        .11750E-05** at limit **
  18  Normalizat    1.3205        .24615       -.46315E-06    .21377E-04
  19  Prefactor     .94754        .85652E-01   -.32616E-06    .20930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.349
  Prefactor  = 4.93793
  Prefactor  = 19.5202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53078
  Prefactor  = 14.8834
  Prefactor  = 0.0001
  Prefactor  = 3.90517
  Prefactor  = 0.0001
  norm       = 23.4706
  Prefactor  = 5.12733
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.95629
  norm       = 0.000100255
  norm       = 0.0001
  Normalizat = 1.32053
  Prefactor  = 0.947537
 **********
 **   18 **HESSE 
 **********

 FCN=   10991.21     FROM HESSE     STATUS=OK           272 CALLS     2186 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.349        41.104        .12449E-03   -1.5064    
   2  Prefactor     4.9379        16.450        .90495E-03   -1.5264    
   3  Prefactor     19.520        20.950        .90653E-04   -1.4824    
   4  Prefactor     .10000E-03    7.4151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5308        36.179        .17046E-03   -1.5238    
   7  Prefactor     14.883        23.553        .10381E-03   -1.4936    
   8  Prefactor     .10000E-03    28.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9052        7.4862        .20418E-03   -1.5313    
  10  Prefactor     .10000E-03    5.1152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.471        5.0222        .82680E-04   -1.4739    
  12  Prefactor     5.1273        11.920        .17756E-03   -1.5255    
  13  norm          .10000E-03    3.5381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9563        3.5461        .13094E-03   -1.5180    
  16  norm          .10025E-03    39.007        .48930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    95.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3205        .29710        .41188E-03   -.82955    
  19  Prefactor     .94754        .10361        .17016E-03   -.94499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54459e-09
Minuit parameter uncertainties:
  1  41.2164
  2  16.4648
  3  20.9581
  4  5.16467e-05
  5  3.07735e-05
  6  28.3159
  7  23.5675
  8  7.98383e-05
  9  7.488
  10  6.60385e-06
  11  5.02225
  12  11.9252
  13  7.7163e-08
  14  0.000329863
  15  3.54622
  16  0.00630594
  17  0.000367725
  18  0.297481
  19  0.103633
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  6.604e-06  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:  9.475e-01  1.036e-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.321e+00  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411249/likelihoodResults_462499201_462758401_4FGL_J1707.5+1649_daily_bin861.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) = 10991.208387
delta logL = -0.000931614213187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10991.2074553
delta logL = 3.78840923076e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2419       1.0000          .0000       10.000    
     3 'Normalizat'    1.3205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94754       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=   10991.21     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2055        .18142E-02** at limit **
   2  Index         2.2298        6.1144        .50000        .19993E-04
   3  Normalizat    1.3205        .28129        .41188E-03    .96055E-05
   4  Prefactor     .94754        .10128        .17016E-03    .24319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.22977
  Normalizat = 1.32053
  Prefactor  = 0.947537
 **********
 **   18 **HESSE 
 **********

 FCN=   10991.21     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2298        6.1145        .50000       -.58722    
   3  Normalizat    1.3205        .28154        .16475E-04   -.82956    
   4  Prefactor     .94754        .10137        .68064E-05   -.94499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97593e-10
Minuit parameter uncertainties:
  1  0.00020741
  2  4.16247
  3  0.281869
  4  0.101392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411249': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10991.2074552
delta logL = 1.14387148642e-07

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  2.074e-04  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.230e+00  4.162e+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.475e-01  1.014e-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.321e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.881 16.821

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/411249/cmap_HighResolution_462499201_462758401_4FGL_J1707.5+1649_daily_bin861.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-16 17:10:13.680689', job_id='411249', GAL2='0.95', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631837413.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='861' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 411249: <4FGL_J1707.5+1649_daily_bin861> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin861> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 16 16:55:24 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:56:12 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:56:12 2021
Terminated at Thu Sep 16 17:10:14 2021
Results reported at Thu Sep 16 17:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin861 256.881 16.8206 462499201 462758401 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 :                                   824.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            890 sec.

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

