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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1195
RA = 256.881, Dec = 16.8206
tmin = 549072001, tmax = 549331201
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='412797', job_status='RUN', time_executed='2021-09-16 17:04:55.805761', time_epoch_executed='1631837095.81' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412797/ft1_4FGL_J1707.5+1649_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412797/ft2_4FGL_J1707.5+1649_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412797/ft1_4FGL_J1707.5+1649_daily_bin1195.fits outfile=/scratch/kocevski/412797/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1195.fits ra=256.881 dec=16.8206 rad=12.0 tmin=549072001.0 tmax=549331201.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.94
user 2.72
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412797/ft1_filtered_4FGL_J1707.5+1649_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/412797/ft2_4FGL_J1707.5+1649_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/412797/ltcube_549072001_549331201_4FGL_J1707.5+1649_daily_bin1195.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/412797/ft2_4FGL_J1707.5+1649_daily_bin1195.fits
.....................!
real 15.36
user 14.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412797/ft1_filtered_4FGL_J1707.5+1649_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/412797/ft2_4FGL_J1707.5+1649_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/412797/ltcube_549072001_549331201_4FGL_J1707.5+1649_daily_bin1195.fits outfile=/scratch/kocevski/412797/expmap_549072001_549331201_4FGL_J1707.5+1649_daily_bin1195.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/412797/ltcube_549072001_549331201_4FGL_J1707.5+1649_daily_bin1195.fits
.....................!
real 194.10
user 186.94
sys 5.33

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/412797/ft1_filtered_4FGL_J1707.5+1649_daily_bin1195.fits scfile=/scratch/kocevski/412797/ft2_4FGL_J1707.5+1649_daily_bin1195.fits outfile=/scratch/kocevski/412797/cmap_549072001_549331201_4FGL_J1707.5+1649_daily_bin1195.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412797/ft1_filtered_4FGL_J1707.5+1649_daily_bin1195.fits scfile=/scratch/kocevski/412797/ft2_4FGL_J1707.5+1649_daily_bin1195.fits outfile=/scratch/kocevski/412797/cmap_HighResolution_549072001_549331201_4FGL_J1707.5+1649_daily_bin1195.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    100.84       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63848E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.014       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.635       1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.992       1.0000         .10000E-03   10000.    
    13 'norm      '    8.9624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24142E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0483       1.0000         .10000E-03   10000.    
    16 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .77446       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0783       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=   6090.107     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1881 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     100.79        88.019        .50716E-05    .23217E-05
   2  Prefactor     .10000E-03    97.432       -.54961E-05** at limit **
   3  Prefactor     .10000E-03    17.734       -.65072E-08** at limit **
   4  Prefactor     .10000E-03    12.070       -.46239E-06** at limit **
   5  Prefactor     .10000E-03    15.231        .74151E-06** at limit **
   6  Prefactor     14.718        30.163       -.58463E-07    .63147E-05
   7  Prefactor     13.103        50.523       -.28144E-06    .18348E-05
   8  Prefactor     57.495        86.470       -.40356E-07    .72643E-05
   9  Prefactor     30.996        26.316       -.49967E-08    .10022E-03
  10  Prefactor     29.634        17.910       -.16204E-07    .41180E-04
  11  norm          .10000E-03    1.7640        .56252E-07** at limit **
  12  Prefactor     26.851        47.374        .39061E-06    .86136E-04
  13  norm          8.9578        25.055        .58352E-06    .11339E-03
  14  Prefactor     .10000E-03    272.77       -.94312E-06** at limit **
  15  Prefactor     1.0516        10.931       -.14136E-05    .26774E-03
  16  norm          .10000E-03    42.055       -.84617E-06** at limit **
  17  norm          .10000E-03    28.921        .50399E-07** at limit **
  18  Normalizat    .77467        .30584       -.15080E-05    .93782E-04
  19  Prefactor     1.0782        .12229        .71488E-06    .19071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 100.794
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7178
  Prefactor  = 13.1027
  Prefactor  = 57.4947
  Prefactor  = 30.9964
  Prefactor  = 29.6339
  norm       = 0.0001
  Prefactor  = 26.8511
  norm       = 8.95784
  Prefactor  = 0.0001
  Prefactor  = 1.0516
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.774674
  Prefactor  = 1.07821
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.107     FROM HESSE     STATUS=OK           264 CALLS     2145 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     100.79        89.203        .20018E-03   -1.3697    
   2  Prefactor     .10000E-03    102.84        .21031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.718        30.110        .10447E-03   -1.4941    
   7  Prefactor     13.103        50.467        .11061E-03   -1.4984    
   8  Prefactor     57.495        86.421        .52889E-04   -1.4190    
   9  Prefactor     30.996        26.190        .71947E-04   -1.4594    
  10  Prefactor     29.634        17.902        .73598E-04   -1.4619    
  11  norm          .10000E-03    1.7757        .10118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.851        45.647        .77109E-04   -1.4671    
  13  norm          8.9578        25.264        .13388E-03   -1.5109    
  14  Prefactor     .10000E-03    272.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0516        18.287        .33296E-02   -1.5503    
  16  norm          .10000E-03    42.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    28.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .77467        .33967        .47079E-03   -1.0102    
  19  Prefactor     1.0782        .13832        .16087E-03   -.90166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83201e-10
Minuit parameter uncertainties:
  1  89.3223
  2  0.000483361
  3  1.79241e-06
  4  1.3098e-05
  5  2.6912e-05
  6  30.1406
  7  50.6318
  8  86.6108
  9  26.1994
  10  17.9051
  11  2.48937e-07
  12  45.7068
  13  25.2943
  14  4.23389e-05
  15  8.77339
  16  1.68297e-05
  17  9.55804e-06
  18  0.340601
  19  0.138365
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.963e+01  1.791e+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:  1.078e+00  1.384e-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:  7.747e-01  3.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.49
Ra Dec: 256.881 16.821
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 9.48e-08 +/- 5.73e-08
Energy Flux (Fixed Index): 3.87e-05 +/- 2.34e-05

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) = 6089.54817066
delta logL = 0.558555209054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6089.527783
delta logL = 0.578942868085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.856       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7202       1.0000          .0000       10.000    
     3 'Normalizat'    .80063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0777       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=   6089.528     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.872        23.204        .68869E-04    .21460E-04
   2  Index         1.7205        .49996        .78525E-02   -.52380E-05
   3  Normalizat    .80107        .33162        .46391E-03   -.43866E-05
   4  Prefactor     1.0776        .13306        .16098E-03    .24094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8721
  Index      = 1.7205
  Normalizat = 0.801074
  Prefactor  = 1.07761
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.528     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.872        23.360        .27548E-05   -1.4543    
   2  Index         1.7205        .50329        .31410E-03   -.71537    
   3  Normalizat    .80107        .33177        .18556E-04   -1.0003    
   4  Prefactor     1.0776        .13314        .32196E-04   -.90185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17476e-10
Minuit parameter uncertainties:
  1  23.3663
  2  0.504789
  3  0.332614
  4  0.133179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412797': 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) = 6089.52778152
delta logL = 0.578944347021

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  3.387e+01  2.337e+01  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  1.720e+00  5.048e-01  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:  1.078e+00  1.332e-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:  8.011e-01  3.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.65
Ra Dec: 256.881 16.821
Photon Index (Free Index): 1.72 +/- 0.50
Photon Flux (Free Index): 4.53e-08 +/- 4.90e-08
Energy Flux (Free Index): 6.94e-05 +/- 6.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/412797/cmap_HighResolution_549072001_549331201_4FGL_J1707.5+1649_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.48e-08', energy_flux2='6.94e-05', photon_flux_error='5.73e-08', dlogl='5.79e-01', energy_flux='3.87e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-09-16 17:13:56.172892', photon_index_error2='0.50', photon_index2='1.72', ts='10.49', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='6.91e-05', EG='0.77', time_epoch_completed='1631837636.17', return_code='0', job_id='412797', GAL2='1.08', EG2='0.80', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='4.90e-08', ts2='11.65', photon_index='2.25' WHERE bin_id='1195' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:13:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 412797: <4FGL_J1707.5+1649_daily_bin1195> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1195> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 17:00:31 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 17:02:18 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:02:18 2021
Terminated at Thu Sep 16 17:13:57 2021
Results reported at Thu Sep 16 17:13:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1195 256.881 16.8206 549072001 549331201 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 :                                   538.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            806 sec.

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

