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


Performing analysis on: 4FGL_J1809.7+2910_daily_bin1088
RA = 272.441, Dec = 29.1709
tmin = 521337601, tmax = 521596801
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='633490', job_status='RUN', time_executed='2021-09-19 19:10:25.476075', time_epoch_executed='1632103825.48' WHERE source_name='4FGL J1809.7+2910' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/633490

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/633490/ft1_4FGL_J1809.7+2910_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/633490/ft1_4FGL_J1809.7+2910_daily_bin1088.fits outfile=/scratch/kocevski/633490/ft1_filteredMKT_4FGL_J1809.7+2910_daily_bin1088.fits ra=272.441 dec=29.1709 rad=12.0 tmin=521337601.0 tmax=521596801.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 5.11
user 4.88
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.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/633490/ft1_filteredMKT_4FGL_J1809.7+2910_daily_bin1088.fits evtable="EVENTS" outfile="/scratch/kocevski/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.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/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/633490/ltcube_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.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/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits
.....................!
real 11.94
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/633490/ltcube_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.fits outfile=/scratch/kocevski/633490/expmap_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.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/633490/ltcube_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.fits
.....................!
real 190.50
user 184.75
sys 5.41

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/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits scfile=/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits outfile=/scratch/kocevski/633490/cmap_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits scfile=/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits outfile=/scratch/kocevski/633490/cmap_HighResolution_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/633490/Model_4FGL_J1809.7+2910_daily_bin1088.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/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits.....................!
real 79.92
user 78.31
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits', '/scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits', expMap='/scratch/kocevski/633490/expmap_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.fits', expCube='/scratch/kocevski/633490/ltcube_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/633490/Model_4FGL_J1809.7+2910_daily_bin1088.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/633490/ft1_filtered_4FGL_J1809.7+2910_daily_bin1088.fits
Spacecraft file(s): /scratch/kocevski/633490/ft2_4FGL_J1809.7+2910_daily_bin1088.fits
Exposure map: /scratch/kocevski/633490/expmap_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.fits
Exposure cube: /scratch/kocevski/633490/ltcube_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/633490/Model_4FGL_J1809.7+2910_daily_bin1088.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) = 8553.90995073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.248       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12258E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36985E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .93547       1.0000         .10000E-03   10000.    
    10 'norm      '    145.04       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.352       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.398       1.0000         .10000E-03   10000.    
    17 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7405       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94815       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95452       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=   8553.869     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2536 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.070       -.21618E-04** at limit **
   2  norm          .10000E-03    93.550        .43698E-04** at limit **
   3  Prefactor     .10000E-03    78.100        .43555E-04** at limit **
   4  Prefactor     28.258        24.346       -.62651E-05    .11918E-03
   5  Prefactor     .10000E-03    27.186       -.85280E-05** at limit **
   6  Prefactor     .10000E-03    32.577        .28547E-04** at limit **
   7  Prefactor     .10001E-03    227.70       -.20438E-03** at limit **
   8  Prefactor     .10000E-03    3.0011       -.33959E-08** at limit **
   9  norm          .92852        2.1372       -.12378E-05   -.25894E-02
  10  norm          145.09        101.81        .30545E-04    .66782E-04
  11  Prefactor     .10000E-03    1.9941       -.49329E-07** at limit **
  12  norm          .10000E-03    3.3610        .67773E-07** at limit **
  13  Prefactor     10.824        7.1738        .18284E-05    .23093E-03
  14  Prefactor     15.306        29.565       -.15451E-04    .70013E-04
  15  norm          8.9531        21.713       -.33249E-06   -.72498E-05
  16  Prefactor     13.396        11.723        .47319E-06    .48969E-04
  17  norm          .10000E-03    42.276       -.32512E-04** at limit **
  18  norm          .10000E-03    2.5173        .17888E-07** at limit **
  19  norm          3.7415        2.3847       -.52794E-07   -.92394E-04
  20  Prefactor     .10000E-03    7.1618       -.66577E-07** at limit **
  21  Prefactor     .10000E-03    36.260        .20378E-05** at limit **
  22  Normalizat    .94810        .24729        .28071E-07    .21976E-03
  23  Prefactor     .95448        .82091E-01    .30101E-06    .59239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.928523
  norm       = 145.087
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8243
  Prefactor  = 15.3063
  norm       = 8.95307
  Prefactor  = 13.3965
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.74151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.948103
  Prefactor  = 0.954476
 **********
 **   18 **HESSE 
 **********

 FCN=   8553.869     FROM HESSE     STATUS=OK           364 CALLS     2900 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    93.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    78.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.258        24.216        .75379E-04   -1.4644    
   5  Prefactor     .10000E-03    27.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    226.95        .19590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0062        .15647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .92852        1.8058        .19417E-02   -1.5515    
  10  norm          145.09        101.72        .16728E-03   -1.3293    
  11  Prefactor     .10000E-03    1.9978        .12753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3628        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.824        7.1538        .12178E-03   -1.5050    
  14  Prefactor     15.306        29.477        .10222E-03   -1.4925    
  15  norm          8.9531        21.709        .13397E-03   -1.5109    
  16  Prefactor     13.396        11.694        .10943E-03   -1.4976    
  17  norm          .10000E-03    42.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5403        .14223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7415        2.3636        .10700E-03   -1.5321    
  20  Prefactor     .10000E-03    7.1827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94810        .27249        .44908E-03   -.94790    
  23  Prefactor     .95448        .91107E-01    .15362E-03   -.94263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37315e-09
Minuit parameter uncertainties:
  1  2.9101e-05
  2  6.81299e-05
  3  3.53335e-05
  4  24.2239
  5  4.14251e-05
  6  0.000174556
  7  0.00261548
  8  3.99479e-06
  9  1.80591
  10  101.844
  11  1.2067e-05
  12  1.81176e-05
  13  7.15438
  14  29.5046
  15  21.728
  16  11.6964
  17  2.34106e-05
  18  2.18203e-06
  19  2.36365
  20  3.97584e-07
  21  1.8213e-06
  22  0.27289
  23  0.091122
Done.

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

Extracting fit parameters...

4FGL J1809.7+2910
   Spectrum: LogParabola
339         norm:  1.000e-04  1.812e-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.545e-01  9.112e-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:  9.481e-01  2.729e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/633490/likelihoodResults_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.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) = 8553.87059193
delta logL = -0.00141407333467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8553.86917788
delta logL = -1.77788024303e-08

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     '    1.7588       1.0000          .0000       5.0000    
     3 'Normalizat'    .94816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95446       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8553.869     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      247 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    690.79        .16567E-02** at limit **
   2  alpha         1.6464        3.5580        .17484       -.40315E-08
   3  Normalizat    .94810        .15132        .44908E-03   -.20708E-04
   4  Prefactor     .95448        .52384E-01    .15362E-03   -.76224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64641
  Normalizat = 0.948102
  Prefactor  = 0.954476
 **********
 **   18 **HESSE 
 **********

 FCN=   8553.869     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3928        .33134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6464        2.9800        .69935E-02   -.34844    
   3  Normalizat    .94810        .25979        .17963E-04   -.94790    
   4  Prefactor     .95448        .90004E-01    .61449E-05   -.94263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52285e-12
Minuit parameter uncertainties:
  1  5.62276e-06
  2  226.116
  3  0.26014
  4  0.0900184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/633490': 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) = 8553.86917773
delta logL = 1.29371983348e-07

Extracting fit parameters...

4FGL J1809.7+2910
   Spectrum: LogParabola
339         norm:  1.000e-04  5.623e-06  1.000e-04  1.000e+04 ( 1.000e-13)
340        alpha:  1.646e+00  2.261e+02  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.545e-01  9.002e-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:  9.481e-01  2.601e-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/633490/cmap_HighResolution_521337601_521596801_4FGL_J1809.7+2910_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-05', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2021-09-19 19:25:37.080062', job_id='633490', GAL2='0.95', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632104737.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.76' WHERE bin_id='1088' AND source_name='4FGL J1809.7+2910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 19:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 633490: <4FGL_J1809.7+2910_daily_bin1088> in cluster <slac> Done

Job <4FGL_J1809.7+2910_daily_bin1088> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 19 19:10:16 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 19:10:17 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:10:17 2021
Terminated at Sun Sep 19 19:25:37 2021
Results reported at Sun Sep 19 19:25:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1809.7+2910_daily_bin1088 272.441 29.1709 521337601 521596801 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 :                                   907.28 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             347.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

