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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin72
RA = 256.881, Dec = 16.8206
tmin = 257990401, tmax = 258249601
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='405710', job_status='RUN', time_executed='2021-09-16 16:38:17.368913', time_epoch_executed='1631835497.37' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405710

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405710/ft1_4FGL_J1707.5+1649_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405710/ft2_4FGL_J1707.5+1649_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405710/ft1_4FGL_J1707.5+1649_daily_bin72.fits outfile=/scratch/kocevski/405710/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin72.fits ra=256.881 dec=16.8206 rad=12.0 tmin=257990401.0 tmax=258249601.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 1.54
user 1.24
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405710/ft2_4FGL_J1707.5+1649_daily_bin72.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/405710/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/405710/ft1_filtered_4FGL_J1707.5+1649_daily_bin72.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.56
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405710/ft1_filtered_4FGL_J1707.5+1649_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/405710/ft2_4FGL_J1707.5+1649_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/405710/ltcube_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.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/405710/ft2_4FGL_J1707.5+1649_daily_bin72.fits
.....................!
real 16.32
user 15.64
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405710/ft1_filtered_4FGL_J1707.5+1649_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/405710/ft2_4FGL_J1707.5+1649_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/405710/ltcube_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.fits outfile=/scratch/kocevski/405710/expmap_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.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/405710/ltcube_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.fits
.....................!
real 192.29
user 187.08
sys 4.69

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/405710/ft1_filtered_4FGL_J1707.5+1649_daily_bin72.fits scfile=/scratch/kocevski/405710/ft2_4FGL_J1707.5+1649_daily_bin72.fits outfile=/scratch/kocevski/405710/cmap_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405710/ft1_filtered_4FGL_J1707.5+1649_daily_bin72.fits scfile=/scratch/kocevski/405710/ft2_4FGL_J1707.5+1649_daily_bin72.fits outfile=/scratch/kocevski/405710/cmap_HighResolution_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89316E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.946       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1194       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11139       1.0000         .10000E-03   10000.    
    13 'norm      '    6.4267       1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6732       1.0000         .10000E-03   10000.    
    16 'norm      '    15.463       1.0000         .10000E-03   10000.    
    17 'norm      '    .54920       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1708       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90353       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=   9110.082     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     2267 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.733        .18142E-02** at limit **
   2  Prefactor     1.2060        14.643        .20604E-02   -.15934E-03
   3  Prefactor     .10000E-03    11.225        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.5934        .14927E-02** at limit **
   5  Prefactor     7.6518        6.2744        .14500E-03    .51749E-05
   6  Prefactor     .10000E-03    117.82        .61744E-02** at limit **
   7  Prefactor     .10000E-03    17.920        .18142E-02** at limit **
   8  Prefactor     47.199        61.168        .58520E-04    .15775E-04
   9  Prefactor     3.1054        6.9489        .22956E-03    .20502E-04
  10  Prefactor     .10000E-03    5.1148        .18142E-02** at limit **
  11  norm          .10000E-03    1.1644        .19823E-03** at limit **
  12  Prefactor     .76686E-02    13.485        .79913E-01    .34979E-03
  13  norm          6.4230        9.2227        .15832E-03    .17952E-04
  14  Prefactor     66.463        78.546        .49236E-04    .25399E-04
  15  Prefactor     1.6737        2.7647        .91961E-03   -.23704E-03
  16  norm          15.464        14.529        .10185E-03   -.25002E-04
  17  norm          .45425        36.361        .21473        .17390E-03
  18  Normalizat    1.1708        .26473        .37349E-03    .18032E-03
  19  Prefactor     .90352        .10161        .15610E-03    .31019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.20596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.1986
  Prefactor  = 3.10541
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00766863
  norm       = 6.42297
  Prefactor  = 66.4633
  Prefactor  = 1.67368
  norm       = 15.4645
  norm       = 0.454246
  Normalizat = 1.17083
  Prefactor  = 0.903519
 **********
 **   18 **HESSE 
 **********

 FCN=   9110.082     FROM HESSE     STATUS=OK           274 CALLS     2541 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2060        14.636        .82417E-04   -1.5488    
   3  Prefactor     .10000E-03    11.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5941        .29853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6518        6.2736        .57998E-05   -1.5155    
   6  Prefactor     .10000E-03    122.88        .24697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.199        61.168        .11704E-04   -1.4333    
   9  Prefactor     3.1054        6.9473        .91826E-05   -1.5356    
  10  Prefactor     .10000E-03    5.1157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1644        .39645E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .76686E-02    12.102        .85429E-01   -1.5691    
  13  norm          6.4230        9.2156        .63328E-05   -1.5201    
  14  Prefactor     66.463        78.546        .98471E-05   -1.4076    
  15  Prefactor     1.6737        2.7595        .36784E-04   -1.5449    
  16  norm          15.464        14.530        .40742E-05   -1.4921    
  17  norm          .45425        36.355        .21477       -1.5573    
  18  Normalizat    1.1708        .26488        .14939E-04   -.87509    
  19  Prefactor     .90352        .10165        .31220E-04   -.96018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31678e-09
Minuit parameter uncertainties:
  1  1.42972e-05
  2  8.40473
  3  7.87023e-06
  4  1.11429e-06
  5  6.2741
  6  0.000231579
  7  6.63513e-06
  8  61.2497
  9  6.94913
  10  2.62608e-06
  11  2.40867e-06
  12  0.605427
  13  9.21766
  14  78.6689
  15  2.75973
  16  14.5328
  17  8.13175
  18  0.265181
  19  0.101674
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  2.626e-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.035e-01  1.017e-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.171e+00  2.652e-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: 6.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405710/likelihoodResults_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.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) = 9110.08342608
delta logL = -0.000931792428673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9110.08249418
delta logL = 1.0588519217e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2333       1.0000          .0000       10.000    
     3 'Normalizat'    1.1708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90353       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=   9110.082     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10164E-03    58.866        .18142E-02** at limit **
   2  Index         2.1626        7.7157        .50000        .25364E-04
   3  Normalizat    1.1708        .18978E-01    .37349E-03    .58809E-04
   4  Prefactor     .90352        .71153E-02    .15610E-03   -.51242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101642
  Index      = 2.16259
  Normalizat = 1.17083
  Prefactor  = 0.903519
 **********
 **   18 **HESSE 
 **********

 FCN=   9110.082     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10164E-03    258.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1626        6.9851        .50000       -.60344    
   3  Normalizat    1.1708        .41706E-01    .14939E-04   -.87509    
   4  Prefactor     .90352        .15635E-01    .31220E-04   -.96018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.60613e-08
Minuit parameter uncertainties:
  1  0.0414265
  2  643.26
  3  0.041707
  4  0.0156351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405710': 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) = 9110.08249379
delta logL = 4.94055711897e-07

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.016e-04  4.143e-02  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.163e+00  6.433e+02  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.035e-01  1.564e-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.171e+00  4.171e-02  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/405710/cmap_HighResolution_257990401_258249601_4FGL_J1707.5+1649_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-16 16:51:27.102653', job_id='405710', GAL2='0.90', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631836287.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='72' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 405710: <4FGL_J1707.5+1649_daily_bin72> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin72> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 16:35:21 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:36:01 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:36:01 2021
Terminated at Thu Sep 16 16:51:27 2021
Results reported at Thu Sep 16 16:51:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin72 256.881 16.8206 257990401 258249601 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 :                                   789.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            966 sec.

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

