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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1209
RA = 182.466, Dec = 18.1776
tmin = 552700801, tmax = 552960001
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='380722', job_status='RUN', time_executed='2021-09-05 02:36:18.469950', time_epoch_executed='1630834578.47' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380722/ft1_4FGL_J1209.8+1810_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380722/ft1_4FGL_J1209.8+1810_daily_bin1209.fits outfile=/scratch/kocevski/380722/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1209.fits ra=182.466 dec=18.1776 rad=12.0 tmin=552700801.0 tmax=552960001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.98
user 2.76
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.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/380722/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.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.68
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/380722/ltcube_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.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/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits
.....................!
real 13.20
user 12.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/380722/ltcube_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.fits outfile=/scratch/kocevski/380722/expmap_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.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/380722/ltcube_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.fits
.....................!
real 189.88
user 184.96
sys 3.95

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

Setting source of interest to:
4FGL J1209.8+1810 @ 182.466 18.1776

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits scfile=/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits outfile=/scratch/kocevski/380722/cmap_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.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=182.466 yref=18.1776 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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits scfile=/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits outfile=/scratch/kocevski/380722/cmap_HighResolution_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.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=182.466 yref=18.1776 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380722/Model_4FGL_J1209.8+1810_daily_bin1209.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/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits.....................!
real 67.34
user 65.93
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits', '/scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits', expMap='/scratch/kocevski/380722/expmap_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.fits', expCube='/scratch/kocevski/380722/ltcube_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380722/Model_4FGL_J1209.8+1810_daily_bin1209.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1209.8+1810'

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/380722/ft1_filtered_4FGL_J1209.8+1810_daily_bin1209.fits
Spacecraft file(s): /scratch/kocevski/380722/ft2_4FGL_J1209.8+1810_daily_bin1209.fits
Exposure map: /scratch/kocevski/380722/expmap_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.fits
Exposure cube: /scratch/kocevski/380722/ltcube_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380722/Model_4FGL_J1209.8+1810_daily_bin1209.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) = 7879.25116742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.990       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.629       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    117.45       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7361       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.225       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4856       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20038E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2485       1.0000         .10000E-03   10000.    
    18 'norm      '    8.5627       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2294       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7078       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.280       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38451E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68341       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3020       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7879.121     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     3168 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4859        14.949        .99635E-05   -.40723E-03
   2  Prefactor     19.993        34.121        .41432E-07    .68529E-06
   3  Prefactor     16.631        16.654        .31747E-06    .26415E-04
   4  Prefactor     .10000E-03    3.1866       -.44430E-07** at limit **
   5  Prefactor     1.0929        1.2133        .50484E-07    .58725E-04
   6  Prefactor     117.50        125.29       -.36258E-05   -.16106E-03
   7  Prefactor     .10000E-03    5.7917        .16229E-05** at limit **
   8  norm          7.7362        1.8035        .47467E-07   -.37401E-04
   9  Prefactor     13.945        26.872       -.68435E-06   -.67759E-03
  10  Prefactor     .10000E-03    1.3768       -.11396E-06** at limit **
  11  Prefactor     58.206        126.72       -.39624E-05   -.35758E-03
  12  Prefactor     .10000E-03    .65803       -.26923E-07** at limit **
  13  Prefactor     .10000E-03    .62968       -.95668E-08** at limit **
  14  Prefactor     3.4855        1.9337        .53020E-07    .18955E-05
  15  Prefactor     .10000E-03    8.4350       -.16608E-07** at limit **
  16  Prefactor     .10000E-03    3.0715       -.61489E-06** at limit **
  17  norm          2.2485        .33940        .35973E-07    .22374E-02
  18  norm          8.5618        4.4603        .17142E-06    .39794E-03
  19  Prefactor     8.2303        8.9362        .14673E-06   -.14659E-04
  20  Prefactor     1.7093        5.5868        .42392E-06   -.28107E-04
  21  Prefactor     11.282        17.392        .22074E-06   -.21722E-06
  22  Prefactor     .38578E-02    3.6108       -.11541E-05   -.14389E-03
  23  Normalizat    .68336        .17770       -.32784E-05   -.56069E-03
  24  Prefactor     1.3020        .16991        .14137E-05   -.43427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48589
  Prefactor  = 19.9931
  Prefactor  = 16.6313
  Prefactor  = 0.0001
  Prefactor  = 1.09291
  Prefactor  = 117.5
  Prefactor  = 0.000100001
  norm       = 7.73624
  Prefactor  = 13.9447
  Prefactor  = 0.0001
  Prefactor  = 58.2061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.48554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24851
  norm       = 8.56183
  Prefactor  = 8.23027
  Prefactor  = 1.70927
  Prefactor  = 11.2821
  Prefactor  = 0.00385784
  Normalizat = 0.683365
  Prefactor  = 1.302
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.121     FROM HESSE     STATUS=OK           409 CALLS     3577 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4859        15.598        .17604E-02   -1.5464    
   2  Prefactor     19.993        34.132        .89584E-04   -1.4813    
   3  Prefactor     16.631        16.687        .98215E-04   -1.4892    
   4  Prefactor     .10000E-03    3.1949        .15473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0929        1.2129        .45683E-04   -1.5499    
   6  Prefactor     117.50        125.95        .18564E-03   -1.3536    
   7  Prefactor     .10000E-03    34.216        .39779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7362        1.8039        .55208E-04   -1.5152    
   9  Prefactor     13.945        26.718        .10730E-03   -1.4961    
  10  Prefactor     .10000E-03    1.4019        .10168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.206        125.31        .52576E-04   -1.4181    
  12  Prefactor     .10000E-03    .66603        .70283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .63575        .68763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4855        1.9311        .88116E-04   -1.5335    
  15  Prefactor     .10000E-03    8.4380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.307        .29324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2485        .34015        .18930E-04   -1.5408    
  18  norm          8.5618        4.3799        .12735E-03   -1.5123    
  19  Prefactor     8.2303        8.9160        .13975E-03   -1.5134    
  20  Prefactor     1.7093        5.5497        .32173E-03   -1.5446    
  21  Prefactor     11.282        17.354        .11928E-03   -1.5036    
  22  Prefactor     .38578E-02    2.4721        .81026E-01   -1.5696    
  23  Normalizat    .68336        .20519        .31856E-03   -1.0455    
  24  Prefactor     1.3020        .19891        .24449E-03   -.83248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25116e-09
Minuit parameter uncertainties:
  1  9.63138
  2  34.1656
  3  16.6919
  4  4.82385e-06
  5  1.21295
  6  126.241
  7  0.000287288
  8  1.80388
  9  26.7406
  10  8.95674e-06
  11  125.879
  12  1.28464e-06
  13  5.66885e-07
  14  1.93115
  15  5.34113e-06
  16  8.63017e-05
  17  0.340148
  18  4.38006
  19  8.91742
  20  5.55142
  21  17.3621
  22  0.192774
  23  0.205421
  24  0.199023
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.285e-06  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.302e+00  1.990e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  6.834e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380722/likelihoodResults_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.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) = 7879.12743254
delta logL = -0.006849289397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7879.12058339
delta logL = -1.39820258482e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3976       1.0000          .0000       10.000    
     3 'Normalizat'    .68333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3021       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7879.121     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      221 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7660        .90712E-02** at limit **
   2  Index         1.9490        8.9693        .50000       -.49138E-05
   3  Normalizat    .68337        .91579E-02    .71974E-01    .27550E-04
   4  Prefactor     1.3020        .94430E-02    .55298E-01   -.11763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94904
  Normalizat = 0.683369
  Prefactor  = 1.302
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.121     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      252 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.873        .75941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9490        8.6354        .50000       -.65630    
   3  Normalizat    .68337        .38234E-01    .31857E-03   -1.0455    
   4  Prefactor     1.3020        .39488E-01    .24449E-03   -.83248    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54374e-07
Minuit parameter uncertainties:
  1  6.67436e-05
  2  441.429
  3  0.0382353
  4  0.039489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380722': 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): 102
logL (Free Index) = 7879.12057302
delta logL = 1.02297162812e-05

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.674e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  1.949e+00  4.414e+02  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.302e+00  3.949e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  6.834e-01  3.824e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.466 18.178

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/380722/cmap_HighResolution_552700801_552960001_4FGL_J1209.8+1810_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-09-05 02:51:05.260359', job_id='380722', GAL2='1.30', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630835465.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.02e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1209' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:51:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 380722: <4FGL_J1209.8+1810_daily_bin1209> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1209> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 02:36:02 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:36:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 02:36:04 2021
Terminated at Sun Sep  5 02:51:06 2021
Results reported at Sun Sep  5 02:51:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1209 182.466 18.1776 552700801 552960001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.8+1810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   874.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

