/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 42 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 = 7547
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1054
RA = 182.466, Dec = 18.1776
tmin = 512524801, tmax = 512784001
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='380454', job_status='RUN', time_executed='2021-09-05 02:36:39.303156', time_epoch_executed='1630834599.3' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380454

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380454/ft1_4FGL_J1209.8+1810_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380454/ft1_4FGL_J1209.8+1810_daily_bin1054.fits outfile=/scratch/kocevski/380454/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1054.fits ra=182.466 dec=18.1776 rad=12.0 tmin=512524801.0 tmax=512784001.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.70
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.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/380454/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1054.fits evtable="EVENTS" outfile="/scratch/kocevski/380454/ft1_filtered_4FGL_J1209.8+1810_daily_bin1054.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.56
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380454/ft1_filtered_4FGL_J1209.8+1810_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/380454/ltcube_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.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/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits
.....................!
real 12.57
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380454/ft1_filtered_4FGL_J1209.8+1810_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/380454/ltcube_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.fits outfile=/scratch/kocevski/380454/expmap_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.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/380454/ltcube_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.fits
.....................!
real 191.91
user 186.24
sys 4.03

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/380454/ft1_filtered_4FGL_J1209.8+1810_daily_bin1054.fits scfile=/scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits outfile=/scratch/kocevski/380454/cmap_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380454/ft1_filtered_4FGL_J1209.8+1810_daily_bin1054.fits scfile=/scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits outfile=/scratch/kocevski/380454/cmap_HighResolution_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380454/ft1_filtered_4FGL_J1209.8+1810_daily_bin1054.fits', '/scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits', expMap='/scratch/kocevski/380454/expmap_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.fits', expCube='/scratch/kocevski/380454/ltcube_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380454/Model_4FGL_J1209.8+1810_daily_bin1054.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/380454/ft1_filtered_4FGL_J1209.8+1810_daily_bin1054.fits
Spacecraft file(s): /scratch/kocevski/380454/ft2_4FGL_J1209.8+1810_daily_bin1054.fits
Exposure map: /scratch/kocevski/380454/expmap_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.fits
Exposure cube: /scratch/kocevski/380454/ltcube_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380454/Model_4FGL_J1209.8+1810_daily_bin1054.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) = 6029.48608612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    41.674       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1996       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15447E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.341       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0455       1.0000         .10000E-03   10000.    
    17 'norm      '    .34719       1.0000         .10000E-03   10000.    
    18 'norm      '    10.923       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5585       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4366       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3919       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66779       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6029.483     FROM MIGRAD    STATUS=CONVERGED    974 CALLS     3534 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.663        .36285E-03** at limit **
   2  Prefactor     41.676        40.613        .62097E-04   -.10216E-03
   3  Prefactor     .10000E-03    36.059        .18142E-02** at limit **
   4  Prefactor     .10000E-03    3.0106        .13138E-02** at limit **
   5  Prefactor     2.1997        1.6517        .83675E-04    .74129E-03
   6  Prefactor     .10001E-03    77.545        .24401    ** at limit **
   7  Prefactor     .10000E-03    2.2584        .11394E-02** at limit **
   8  norm          1.9255        1.4761        .79763E-04    .14517E-02
   9  Prefactor     .10000E-03    5.8552        .18142E-02** at limit **
  10  Prefactor     .10000E-03    1.1756        .81966E-03** at limit **
  11  Prefactor     .10000E-03    21.709        .18142E-02** at limit **
  12  Prefactor     7.4499        3.3720        .91457E-04   -.23655E-03
  13  Prefactor     .10000E-03    3.9812        .21632E-02** at limit **
  14  Prefactor     5.5231        3.0710        .96335E-04    .28559E-03
  15  Prefactor     16.344        16.398        .99077E-04    .10384E-03
  16  Prefactor     6.0456        5.0500        .15273E-03   -.22115E-03
  17  norm          .34720        .21832        .27874E-04    .17872E-02
  18  norm          10.923        5.2487        .11745E-03    .26948E-04
  19  Prefactor     .10000E-03    5.0834        .17078E-02** at limit **
  20  Prefactor     5.5583        10.616        .17041E-03    .13376E-03
  21  Prefactor     .10003E-03    131.78        .18142E-02** at limit **
  22  Prefactor     9.4361        8.6455        .13046E-03    .26492E-04
  23  Normalizat    1.3919        .22683        .23829E-03    .33239E-03
  24  Prefactor     .66765        .20894        .31407E-03    .26135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 41.676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19974
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.92546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44986
  Prefactor  = 0.0001
  Prefactor  = 5.52313
  Prefactor  = 16.3438
  Prefactor  = 6.04564
  norm       = 0.347199
  norm       = 10.923
  Prefactor  = 0.0001
  Prefactor  = 5.55835
  Prefactor  = 0.000100025
  Prefactor  = 9.43611
  Normalizat = 1.39194
  Prefactor  = 0.667651
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.483     FROM HESSE     STATUS=OK           383 CALLS     3917 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.664        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.676        40.614        .12419E-04   -1.4416    
   3  Prefactor     .10000E-03    36.080        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0108        .26276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1997        1.6517        .33470E-05   -1.5411    
   6  Prefactor     .10001E-03    77.882        .24291       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2584        .22787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9255        1.4760        .31905E-05   -1.5430    
   9  Prefactor     .10000E-03    5.8555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1757        .16393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4499        3.3707        .36583E-05   -1.5162    
  13  Prefactor     .10000E-03    3.9919        .43264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5231        3.0709        .38534E-05   -1.5238    
  15  Prefactor     16.344        16.399        .39631E-05   -1.4899    
  16  Prefactor     6.0456        5.0501        .61093E-05   -1.5216    
  17  norm          .34720        .21832        .11150E-05   -1.5590    
  18  norm          10.923        5.2487        .23490E-04   -1.5047    
  19  Prefactor     .10000E-03    5.0837        .34157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5583        10.616        .68162E-05   -1.5236    
  21  Prefactor     .10003E-03    131.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4361        8.6456        .52183E-05   -1.5094    
  23  Normalizat    1.3919        .22699        .47659E-04   -.80862    
  24  Prefactor     .66765        .20911        .12563E-04   -1.0481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2782e-10
Minuit parameter uncertainties:
  1  0.000180976
  2  40.6405
  3  0.000104091
  4  1.96543e-05
  5  1.65169
  6  0.00130492
  7  8.27077e-06
  8  1.47607
  9  2.04786e-05
  10  5.30525e-06
  11  6.01801e-05
  12  3.37082
  13  1.38613e-05
  14  3.07095
  15  16.4036
  16  5.05041
  17  0.218316
  18  5.24894
  19  6.13273e-05
  20  10.6197
  21  0.00365457
  22  8.64673
  23  0.227158
  24  0.209354
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  7.450e+00  3.371e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.677e-01  2.094e-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:  1.392e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.44
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 4.61e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.49e-05

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) = 6029.12733249
delta logL = 0.355694099287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6029.08924621
delta logL = 0.393780378449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7824       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0537       1.0000          .0000       10.000    
     3 'Normalizat'    1.4232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64986       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6029.089     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7825        4.1793        .10484E-03   -.78788E-03
   2  Index         2.0539        .39289        .61816E-02   -.14433E-03
   3  Normalizat    1.4232        .22198        .23618E-03    .44372E-04
   4  Prefactor     .64989        .20875        .31788E-03    .34834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.78247
  Index      = 2.05386
  Normalizat = 1.42318
  Prefactor  = 0.649888
 **********
 **   18 **HESSE 
 **********

 FCN=   6029.089     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7825        4.1690        .41938E-05   -1.5115    
   2  Index         2.0539        .39173        .24726E-03   -.63010    
   3  Normalizat    1.4232        .22210        .47235E-04   -.79961    
   4  Prefactor     .64989        .20887        .12715E-04   -1.0552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16722e-10
Minuit parameter uncertainties:
  1  4.1691
  2  0.39235
  3  0.22225
  4  0.209122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380454': 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) = 6029.08924614
delta logL = 0.393780450195

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  8.782e+00  4.169e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.054e+00  3.923e-01  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:  6.499e-01  2.091e-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:  1.423e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.18
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.05 +/- 0.39
Photon Flux (Free Index): 7.37e-08 +/- 4.79e-08
Energy Flux (Free Index): 4.48e-05 +/- 2.94e-05

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/380454/cmap_HighResolution_512524801_512784001_4FGL_J1209.8+1810_daily_bin1054.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='4.48e-05', photon_flux_error='4.61e-08', dlogl='3.94e-01', energy_flux='3.29e-05', photon_flux2='7.37e-08', job_status='DONE', time_completed='2021-09-05 02:48:24.422885', photon_index_error2='0.39', photon_index2='2.05', ts='10.44', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='1.39', time_epoch_completed='1630835304.42', return_code='0', job_id='380454', GAL2='0.65', EG2='1.42', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.79e-08', ts2='11.18', photon_index='2.41' WHERE bin_id='1054' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:48:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 380454: <4FGL_J1209.8+1810_daily_bin1054> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1054> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 02:35:42 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:35:44 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:35:44 2021
Terminated at Sun Sep  5 02:48:25 2021
Results reported at Sun Sep  5 02:48:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1054 182.466 18.1776 512524801 512784001 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 :                                   688.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             287.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

