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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin75
RA = 256.881, Dec = 16.8206
tmin = 258768001, tmax = 259027201
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='405714', job_status='RUN', time_executed='2021-09-16 16:39:56.176711', time_epoch_executed='1631835596.18' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405714

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405714/ft1_4FGL_J1707.5+1649_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405714/ft2_4FGL_J1707.5+1649_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405714/ft1_4FGL_J1707.5+1649_daily_bin75.fits outfile=/scratch/kocevski/405714/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin75.fits ra=256.881 dec=16.8206 rad=12.0 tmin=258768001.0 tmax=259027201.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.16
user 0.95
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405714/ft1_filtered_4FGL_J1707.5+1649_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/405714/ft2_4FGL_J1707.5+1649_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/405714/ltcube_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.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/405714/ft2_4FGL_J1707.5+1649_daily_bin75.fits
.....................!
real 10.20
user 9.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405714/ft1_filtered_4FGL_J1707.5+1649_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/405714/ft2_4FGL_J1707.5+1649_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/405714/ltcube_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.fits outfile=/scratch/kocevski/405714/expmap_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.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/405714/ltcube_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.fits
.....................!
real 191.30
user 185.94
sys 4.73

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/405714/ft1_filtered_4FGL_J1707.5+1649_daily_bin75.fits scfile=/scratch/kocevski/405714/ft2_4FGL_J1707.5+1649_daily_bin75.fits outfile=/scratch/kocevski/405714/cmap_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.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.50
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405714/ft1_filtered_4FGL_J1707.5+1649_daily_bin75.fits scfile=/scratch/kocevski/405714/ft2_4FGL_J1707.5+1649_daily_bin75.fits outfile=/scratch/kocevski/405714/cmap_HighResolution_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5912       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.203       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5774       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.954       1.0000         .10000E-03   10000.    
    13 'norm      '    23.303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.350       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13226E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97328       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0256       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=   8855.598     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1851 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5331        96.430       -.14249E-03    .13872E-04
   2  Prefactor     .10001E-03    8.0229        .11496E-05** at limit **
   3  Prefactor     2.6739        20.560       -.42821E-05   -.11260E-03
   4  Prefactor     7.3034        6.4021       -.65546E-06   -.14535E-03
   5  Prefactor     .10000E-03    1.2973       -.39652E-06** at limit **
   6  Prefactor     .10000E-03    15.279        .17650E-05** at limit **
   7  Prefactor     24.203        27.022       -.11265E-05    .94112E-05
   8  Prefactor     .10000E-03    79.918        .16701E-04** at limit **
   9  Prefactor     .10000E-03    3.1529       -.47881E-06** at limit **
  10  Prefactor     6.5746        13.751       -.19697E-05   -.46499E-04
  11  norm          .10000E-03    .93099        .11109E-07** at limit **
  12  Prefactor     25.960        15.999       -.23647E-05    .17826E-03
  13  norm          23.312        12.586        .36031E-06    .26390E-03
  14  Prefactor     49.357        81.508        .88236E-05    .25769E-04
  15  Prefactor     .10000E-03    1.4259       -.62066E-06** at limit **
  16  norm          .10000E-03    5.0064       -.28195E-06** at limit **
  17  norm          .10000E-03    31.573       -.92257E-06** at limit **
  18  Normalizat    .97320        .25609        .67835E-05    .31785E-03
  19  Prefactor     1.0257        .93206E-01    .22492E-06    .10443E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53306
  Prefactor  = 0.000100007
  Prefactor  = 2.67385
  Prefactor  = 7.30342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.57461
  norm       = 0.0001
  Prefactor  = 25.9604
  norm       = 23.3121
  Prefactor  = 49.3571
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.973195
  Prefactor  = 1.02568
 **********
 **   18 **HESSE 
 **********

 FCN=   8855.598     FROM HESSE     STATUS=OK           262 CALLS     2113 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5331        97.763        .25348E-03   -1.5390    
   2  Prefactor     .10001E-03    8.1407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6739        20.630        .24923E-03   -1.5381    
   4  Prefactor     7.3034        6.4076        .14841E-03   -1.5167    
   5  Prefactor     .10000E-03    1.2999        .10466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.203        27.026        .81422E-04   -1.4724    
   8  Prefactor     .10000E-03    80.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1720        .16314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5746        13.745        .15647E-03   -1.5195    
  11  norm          .10000E-03    .93635        .88655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.960        15.850        .78633E-04   -1.4688    
  13  norm          23.312        12.317        .82977E-04   -1.4742    
  14  Prefactor     49.357        81.571        .57084E-04   -1.4302    
  15  Prefactor     .10000E-03    7.1052        .20525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.0114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    31.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97320        .30277        .42713E-03   -.93934    
  19  Prefactor     1.0257        .11195        .15485E-03   -.91878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46801e-09
Minuit parameter uncertainties:
  1  31.5281
  2  0.000470683
  3  14.8609
  4  6.4082
  5  5.80918e-06
  6  2.71219e-05
  7  27.0399
  8  0.000208291
  9  9.20257e-06
  10  13.752
  11  3.42433e-06
  12  15.8526
  13  12.3188
  14  81.7562
  15  0.000110134
  16  1.73769e-05
  17  1.96545e-05
  18  0.3033
  19  0.111977
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  6.575e+00  1.375e+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.026e+00  1.120e-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:  9.732e-01  3.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/405714/likelihoodResults_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.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) = 8855.53563345
delta logL = 0.06254299805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8855.5254411
delta logL = 0.0727353440725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9745       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6436       1.0000          .0000       10.000    
     3 'Normalizat'    .95818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0283       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=   8855.525     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      220 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9745        255.65        .45078E-02    .84972E-03
   2  Index         2.6436        3.6612        .17590        .17919E-03
   3  Normalizat    .95812        .65277E-01    .97096E-01   -.26485E-03
   4  Prefactor     1.0283        .22749E-01    .41394E-01   -.55226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.97452
  Index      = 2.6436
  Normalizat = 0.958122
  Prefactor  = 1.02833
 **********
 **   18 **HESSE 
 **********

 FCN=   8855.525     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9745        14.030        .18031E-03   -1.5262    
   2  Index         2.6436        1.2911        .10075E-01   -.49074    
   3  Normalizat    .95812        .29788        .43014E-03   -.94447    
   4  Prefactor     1.0283        .11018        .15466E-03   -.91791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04074e-09
Minuit parameter uncertainties:
  1  14.0396
  2  1.31033
  3  0.2984
  4  0.110209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405714': 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) = 8855.52544109
delta logL = 0.0727353591392

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  4.975e+00  1.404e+01  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.644e+00  1.310e+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:  1.028e+00  1.102e-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:  9.581e-01  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/405714/cmap_HighResolution_258768001_259027201_4FGL_J1707.5+1649_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-16 16:51:35.995636', job_id='405714', GAL2='1.03', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1631836296.0', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.27e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='75' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 405714: <4FGL_J1707.5+1649_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin75 256.881 16.8206 258768001 259027201 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 :                                   700.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            974 sec.

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

