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


Performing analysis on: 4FGL_J1709.7+4318_daily_bin1171
RA = 257.432, Dec = 43.3109
tmin = 542851201, tmax = 543110401
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='430950', job_status='RUN', time_executed='2021-09-16 18:05:40.365342', time_epoch_executed='1631840740.37' WHERE source_name='4FGL J1709.7+4318' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430950

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430950/ft1_4FGL_J1709.7+4318_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430950/ft1_4FGL_J1709.7+4318_daily_bin1171.fits outfile=/scratch/kocevski/430950/ft1_filteredMKT_4FGL_J1709.7+4318_daily_bin1171.fits ra=257.432 dec=43.3109 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.57
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.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/430950/ft1_filteredMKT_4FGL_J1709.7+4318_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.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.45
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/430950/ltcube_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.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/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits
.....................!
real 1.85
user 1.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/430950/ltcube_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.fits outfile=/scratch/kocevski/430950/expmap_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.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/430950/ltcube_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.fits
.....................!
real 190.37
user 185.38
sys 4.67

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1709.7+4318 @ 257.432 43.3109

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits scfile=/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits outfile=/scratch/kocevski/430950/cmap_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.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=257.432 yref=43.3109 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.51
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits scfile=/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits outfile=/scratch/kocevski/430950/cmap_HighResolution_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.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=257.432 yref=43.3109 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.52
user 0.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430950/Model_4FGL_J1709.7+4318_daily_bin1171.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/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits............................!
real 17.14
user 15.88
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits', '/scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits', expMap='/scratch/kocevski/430950/expmap_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.fits', expCube='/scratch/kocevski/430950/ltcube_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430950/Model_4FGL_J1709.7+4318_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1709.7+4318'

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.018e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430950/ft1_filtered_4FGL_J1709.7+4318_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/430950/ft2_4FGL_J1709.7+4318_daily_bin1171.fits
Exposure map: /scratch/kocevski/430950/expmap_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.fits
Exposure cube: /scratch/kocevski/430950/ltcube_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430950/Model_4FGL_J1709.7+4318_daily_bin1171.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) = 587.890882014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41911E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28423E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .71726       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25169E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14413E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    65.118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1431       1.0000         .10000E-03   10000.    
    16 'norm      '    6.1687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .47135E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12168E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12718       1.0000         .10000E-03   10000.    
    23 'norm      '    75.683       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3413       1.0000         .10000E-03   10000.    
    25 'norm      '    11.551       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .45280E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    43.769       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14769E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .59077E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.961       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .53814E-02   1.0000         .10000E-03   10000.    
    32 'norm      '    .28717E-02   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   587.8668     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     4180 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9848        .40388E-08** at limit **
   2  Prefactor     .10000E-03    31.524        .23228E-06** at limit **
   3  Prefactor     .10000E-03    4.7962       -.15206E-07** at limit **
   4  norm          .10000E-03    87.035        .19018E-06** at limit **
   5  norm          .71738        .47788       -.43662E-07    .36360E-03
   6  norm          6.2162        783.50       -.76580E-05   -.34203E-05
   7  Prefactor     .10000E-03    84.663       -.65533E-06** at limit **
   8  Prefactor     .10000E-03    13.070       -.64026E-08** at limit **
   9  norm          64.291        359.84        .13130E-05    .15570E-05
  10  Prefactor     .10000E-03    1.5393       -.19967E-07** at limit **
  11  Prefactor     .10000E-03    1.4493       -.17918E-07** at limit **
  12  Prefactor     1.2529        24.899       -.90638E-06    .17125E-04
  13  Prefactor     .10000E-03    3.6561       -.12322E-06** at limit **
  14  Prefactor     .10000E-03    40.018        .13332E-06** at limit **
  15  norm          5.1230        5.6392       -.76650E-07    .32526E-04
  16  norm          6.2369        4.5680       -.12380E-06    .12579E-03
  17  Prefactor     .10000E-03    14.300        .97102E-08** at limit **
  18  norm          .10000E-03    .92052       -.14635E-08** at limit **
  19  norm          .10000E-03    15.377       -.77786E-07** at limit **
  20  norm          .10000E-03    2.6669        .31916E-07** at limit **
  21  Prefactor     .10000E-03    13.412        .66465E-07** at limit **
  22  Prefactor     .10000E-03    201.37       -.12693E-05** at limit **
  23  norm          75.787        33.976       -.59283E-06    .31304E-04
  24  Prefactor     .10000E-03    213.54       -.10301E-06** at limit **
  25  norm          11.690        22.006       -.33113E-06    .61206E-05
  26  Prefactor     .10000E-03    112.57        .11853E-05** at limit **
  27  Prefactor     43.941        30.049       -.29477E-06    .27074E-04
  28  Prefactor     .10000E-03    181.73       -.29080E-06** at limit **
  29  Prefactor     .10000E-03    98.298        .73105E-06** at limit **
  30  Prefactor     22.913        68.684       -.64332E-06    .68493E-05
  31  Prefactor     .10000E-03    34.989        .26964E-06** at limit **
  32  norm          .10000E-03    39.369        .50095E-06** at limit **
  33  Normalizat    .10000E-01    .48534        .12164E-04** at limit **
  34  Prefactor     1.0375        .25152       -.16761E-05    .20605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.717384
  norm       = 6.2162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 64.2908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.12302
  norm       = 6.23694
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 75.7873
  Prefactor  = 0.0001
  norm       = 11.6904
  Prefactor  = 0.0001
  Prefactor  = 43.9408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9129
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.0375
 **********
 **   18 **HESSE 
 **********

 FCN=   587.8668     FROM HESSE     STATUS=OK           716 CALLS     4896 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9851        .74861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.529        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7992        .51881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    87.088        .18328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .71738        .47850        .13261E-04   -1.5539    
   6  norm          6.2162        824.26        .16795E-02   -1.5209    
   7  Prefactor     .10000E-03    84.875        .18296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.109        .85457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          64.291        383.24        .24866E-03   -1.4103    
  10  Prefactor     .10000E-03    1.5425        .29363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4512        .28500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2529        24.217        .21296E-03   -1.5484    
  13  Prefactor     .10000E-03    3.6549        .45277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.073        .14993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1230        5.6418        .58749E-04   -1.5255    
  16  norm          6.2369        4.5042        .39230E-04   -1.5208    
  17  Prefactor     .10000E-03    14.337        .89550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .92107        .22725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.380        .92893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6805        .38676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.446        .86753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    201.17        .19280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          75.787        33.906        .23078E-03   -1.3965    
  24  Prefactor     .10000E-03    213.67        .18921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.690        22.017        .11787E-03   -1.5024    
  26  Prefactor     .10000E-03    112.69        .19336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     43.941        30.066        .60598E-04   -1.4381    
  28  Prefactor     .10000E-03    181.73        .18193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    98.349        .18963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     22.913        68.754        .81833E-04   -1.4750    
  31  Prefactor     .10000E-03    35.052        .14015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    39.529        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .80822        .10337E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.0375        .26262        .17750E-03   -.91490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26657e-11
Minuit parameter uncertainties:
  1  1.16962e-06
  2  9.62921e-06
  3  1.0545e-05
  4  2.18378e-05
  5  0.478502
  6  145.251
  7  3.2179e-05
  8  1.98411e-05
  9  317.028
  10  2.34981e-06
  11  1.68877e-06
  12  11.0212
  13  4.82559e-06
  14  2.34236e-05
  15  5.64242
  16  4.50439
  17  1.19282e-05
  18  4.27639e-07
  19  1.75416e-05
  20  2.85904e-07
  21  3.77913e-06
  22  0.000183701
  23  33.9147
  24  0.000282545
  25  22.0321
  26  9.24974e-05
  27  30.0761
  28  7.04156e-06
  29  5.28667e-05
  30  68.9927
  31  2.7862e-05
  32  7.31276e-05
  33  7.57703e-06
  34  0.262944
Done.

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

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.000e-04  4.276e-07  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  1.037e+00  2.629e-01  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  1.000e-02  7.577e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 257.432 43.311
Photon Flux Upper Limit: 2.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430950/likelihoodResults_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.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) = 587.867219981
delta logL = -0.000418708887992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 587.866800764
delta logL = 5.07875938638e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1994       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0375       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+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=   587.8668     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      241 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    198.31        .22904E-02** at limit **
   2  alpha         1.7088        3.5601        .16613        .27911E-07
   3  Normalizat    .10000E-01    .49786        .10337E-01** at limit **
   4  Prefactor     1.0375        .17844        .17750E-03   -.13883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70881
  Normalizat = 0.01
  Prefactor  = 1.0375
 **********
 **   18 **HESSE 
 **********

 FCN=   587.8668     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0517        .24292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7088        3.1088        .66454E-02   -.32201    
   3  Normalizat    .10000E-01    .80862        .20674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0375        .22827        .35499E-04   -.91490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51203e-12
Minuit parameter uncertainties:
  1  1.17175e-06
  2  132.935
  3  3.69064e-07
  4  0.228482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430950': 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) = 587.866794532
delta logL = 6.74078091834e-06

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.000e-04  1.172e-06  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  1.709e+00  1.329e+02  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  1.037e+00  2.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  1.000e-02  3.691e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 257.432 43.311

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/430950/cmap_HighResolution_542851201_543110401_4FGL_J1709.7+4318_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-05', job_status='DONE', photon_flux_upper_limit='2.21e-07', time_completed='2021-09-16 18:11:50.227705', job_id='430950', GAL2='1.04', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631841110.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1171' AND source_name='4FGL J1709.7+4318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 18:11:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 430950: <4FGL_J1709.7+4318_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1709.7+4318_daily_bin1171> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 18:05:29 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 18:05:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 18:05:31 2021
Terminated at Thu Sep 16 18:11:50 2021
Results reported at Thu Sep 16 18:11:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1709.7+4318_daily_bin1171 257.432 43.3109 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1709.7+4318 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   373.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   379 sec.
    Turnaround time :                            381 sec.

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

