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


Performing analysis on: 4FGL_J1809.7+2910_daily_bin1029
RA = 272.441, Dec = 29.1709
tmin = 506044801, tmax = 506304001
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='632238', job_status='RUN', time_executed='2021-09-19 19:08:12.431153', time_epoch_executed='1632103692.43' WHERE source_name='4FGL J1809.7+2910' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632238/ft1_4FGL_J1809.7+2910_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632238/ft1_4FGL_J1809.7+2910_daily_bin1029.fits outfile=/scratch/kocevski/632238/ft1_filteredMKT_4FGL_J1809.7+2910_daily_bin1029.fits ra=272.441 dec=29.1709 rad=12.0 tmin=506044801.0 tmax=506304001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.19
user 2.98
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.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/632238/ft1_filteredMKT_4FGL_J1809.7+2910_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.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.40
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/632238/ltcube_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.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/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits
.....................!
real 8.84
user 8.57
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/632238/ltcube_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.fits outfile=/scratch/kocevski/632238/expmap_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.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/632238/ltcube_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.fits
.....................!
real 141.65
user 138.31
sys 3.11

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

Setting source of interest to:
4FGL J1809.7+2910 @ 272.441 29.1709

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits scfile=/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits outfile=/scratch/kocevski/632238/cmap_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.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=272.441 yref=29.1709 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.45
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits scfile=/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits outfile=/scratch/kocevski/632238/cmap_HighResolution_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.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=272.441 yref=29.1709 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.44
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/632238/Model_4FGL_J1809.7+2910_daily_bin1029.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/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits.....................!
real 59.84
user 58.79
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits', '/scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits', expMap='/scratch/kocevski/632238/expmap_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.fits', expCube='/scratch/kocevski/632238/ltcube_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/632238/Model_4FGL_J1809.7+2910_daily_bin1029.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1809.7+2910'

4FGL J1809.7+2910
   Spectrum: LogParabola
339         norm:  1.835e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
340        alpha:  1.763e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
341         beta:  1.007e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  2.273e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/632238/ft1_filtered_4FGL_J1809.7+2910_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/632238/ft2_4FGL_J1809.7+2910_daily_bin1029.fits
Exposure map: /scratch/kocevski/632238/expmap_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.fits
Exposure cube: /scratch/kocevski/632238/ltcube_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/632238/Model_4FGL_J1809.7+2910_daily_bin1029.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) = 9073.51570651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    50.606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.63       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.991       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1001       1.0000         .10000E-03   10000.    
    10 'norm      '    6.0106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0591       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5109       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4600       1.0000         .10000E-03   10000.    
    15 'norm      '    25.244       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8384       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0407       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9073.514     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2487 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.453        .10038E-06** at limit **
   2  norm          50.615        49.848        .10902E-05    .59760E-04
   3  Prefactor     100.64        84.975        .98900E-06    .27886E-04
   4  Prefactor     .10000E-03    15.523       -.24798E-05** at limit **
   5  Prefactor     23.537        31.815        .80180E-07   -.63102E-06
   6  Prefactor     44.989        32.955       -.66623E-06   -.30403E-04
   7  Prefactor     .10000E-03    35.156       -.11675E-05** at limit **
   8  Prefactor     .10000E-03    2.1870        .30266E-07** at limit **
   9  norm          2.1002        1.6136       -.25134E-08    .87433E-04
  10  norm          5.9335        111.89       -.24423E-04   -.13102E-03
  11  Prefactor     6.0591        4.0946        .13052E-06    .15527E-03
  12  norm          .10000E-03    3.1577       -.29253E-06** at limit **
  13  Prefactor     7.5110        4.4858       -.66769E-06   -.21433E-03
  14  Prefactor     2.4592        44.521        .24578E-04   -.13775E-03
  15  norm          25.244        23.822       -.24947E-07   -.70910E-05
  16  Prefactor     .10000E-03    2.2964        .21625E-07** at limit **
  17  norm          .10000E-03    38.502        .37920E-06** at limit **
  18  norm          .10000E-03    .56519        .26149E-07** at limit **
  19  norm          .10000E-03    .34768        .33350E-07** at limit **
  20  Prefactor     6.8382        9.5530        .24750E-06   -.29219E-04
  21  Prefactor     .10000E-03    47.897        .13556E-05** at limit **
  22  Normalizat    1.0408        .21556       -.99757E-07   -.10559E-03
  23  Prefactor     .92764        .77334E-01   -.62600E-06   -.73168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 50.6152
  Prefactor  = 100.642
  Prefactor  = 0.000100001
  Prefactor  = 23.5367
  Prefactor  = 44.9888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10016
  norm       = 5.93352
  Prefactor  = 6.05912
  norm       = 0.0001
  Prefactor  = 7.51103
  Prefactor  = 2.45922
  norm       = 25.2436
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.83825
  Prefactor  = 0.0001
  Normalizat = 1.04075
  Prefactor  = 0.927642
 **********
 **   18 **HESSE 
 **********

 FCN=   9073.514     FROM HESSE     STATUS=OK           364 CALLS     2851 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          50.615        49.894        .56375E-04   -1.4284    
   3  Prefactor     100.64        85.167        .40076E-04   -1.3698    
   4  Prefactor     .10000E-03    15.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.537        31.813        .82566E-04   -1.4737    
   6  Prefactor     44.989        33.010        .59773E-04   -1.4365    
   7  Prefactor     .10000E-03    35.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1915        .13756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1002        1.6090        .10309E-03   -1.5418    
  10  norm          5.9335        124.89        .16378E-03   -1.5221    
  11  Prefactor     6.0591        4.1011        .15368E-03   -1.5216    
  12  norm          .10000E-03    3.1653        .16540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5110        4.4890        .14634E-03   -1.5160    
  14  Prefactor     2.4592        46.924        .13038E-02   -1.5394    
  15  norm          25.244        23.827        .79729E-04   -1.4703    
  16  Prefactor     .10000E-03    2.3046        .14095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    38.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .56689        .69930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .34983        .54842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8382        9.5645        .15343E-03   -1.5185    
  21  Prefactor     .10000E-03    48.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0408        .24174        .38734E-03   -.91677    
  23  Prefactor     .92764        .86945E-01    .15015E-03   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2979e-09
Minuit parameter uncertainties:
  1  1.82639e-05
  2  49.9353
  3  85.2706
  4  0.000213836
  5  31.8361
  6  33.0232
  7  0.00019338
  8  6.24313e-07
  9  1.60901
  10  54.5743
  11  4.10133
  12  2.36829e-05
  13  4.48922
  14  21.5036
  15  23.8355
  16  3.10949e-06
  17  6.53928e-05
  18  6.20465e-08
  19  4.50181e-09
  20  9.56661
  21  0.000227431
  22  0.242
  23  0.0869577
Done.

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

Extracting fit parameters...

4FGL J1809.7+2910
   Spectrum: LogParabola
339         norm:  1.000e-04  2.368e-05  1.000e-04  1.000e+04 ( 1.000e-13)
340        alpha:  1.763e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
341         beta:  1.007e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  2.273e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  9.276e-01  8.696e-02  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.041e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 272.441 29.171
Photon Flux Upper Limit: 3.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632238/likelihoodResults_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.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) = 9073.5150426
delta logL = -0.00150235979527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9073.51354112
delta logL = -8.78255377756e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7663       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9073.514     FROM MIGRAD    STATUS=FAILED       183 CALLS      328 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6357        .40056E-01** at limit **
   2  alpha         3.1894        2.7541        .17461       -.10048E-03
   3  Normalizat    1.0407        .22764E-01    .38734E-03   -.13678E-04
   4  Prefactor     .92764        .84002E-02    .15015E-03    .43916E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9073.514     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      489 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6357        .58837E-03** at limit **
   2  alpha         3.1894        2.7541        .76949E-05   -.10048E-03
   3  Normalizat    1.0407        .22764E-01    .20520E-06   -.13678E-04
   4  Prefactor     .92764        .84002E-02    .23574E-07    .43916E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9073.503     FROM MIGRAD    STATUS=FAILED       188 CALLS      677 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17646E-01    6.5397        .12704E-01    .36341E-02
   2  alpha         4.0346        2.7882        .50000       -.66063E-04
   3  Normalizat    1.0334        .13269        .30987E-05    .67507E-04
   4  Prefactor     .92860        .35123E-01    .12012E-05    .18172E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0176458
  alpha      = 4.03464
  Normalizat = 1.03342
  Prefactor  = 0.928599
 **********
 **   18 **HESSE 
 **********

 FCN=   9073.503     FROM HESSE     STATUS=OK            31 CALLS      708 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17646E-01    .52350        .43388E-03   -1.5681    
   2  alpha         4.0346        2.5705        .66268E-01    2.4807    
   3  Normalizat    1.0334        .24169        .61974E-06   -.91919    
   4  Prefactor     .92860        .87672E-01    .24024E-06   -.95149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20061e-07
Minuit parameter uncertainties:
  1  0.19168
  2  3.44604
  3  0.241943
  4  0.0876849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632238': 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): 1
logL (Free Index) = 9073.50337484
delta logL = 0.0101654018308

Extracting fit parameters...

4FGL J1809.7+2910
   Spectrum: LogParabola
339         norm:  1.765e-02  1.917e-01  1.000e-04  1.000e+04 ( 1.000e-13)
340        alpha:  4.035e+00  3.446e+00  0.000e+00  5.000e+00 ( 1.000e+00)
341         beta:  1.007e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
342           Eb:  2.273e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  9.286e-01  8.768e-02  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  1.033e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 272.441 29.171

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/632238/cmap_HighResolution_506044801_506304001_4FGL_J1809.7+2910_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', job_status='DONE', photon_flux_upper_limit='3.42e-08', time_completed='2021-09-19 19:20:53.740496', job_id='632238', GAL2='0.93', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1632104453.74', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.02e-02', ts2='0.02', photon_index_error='0.00', photon_index='1.76' WHERE bin_id='1029' AND source_name='4FGL J1809.7+2910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 19:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 632238: <4FGL_J1809.7+2910_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1809.7+2910_daily_bin1029> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 19 19:05:37 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 19:05:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 19:05:38 2021
Terminated at Sun Sep 19 19:20:54 2021
Results reported at Sun Sep 19 19:20:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1809.7+2910_daily_bin1029 272.441 29.1709 506044801 506304001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1809.7+2910 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

