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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1558
RA = 182.466, Dec = 18.1776
tmin = 643161601, tmax = 643420801
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='382843', job_status='RUN', time_executed='2021-09-05 02:42:59.706955', time_epoch_executed='1630834979.71' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382843/ft1_4FGL_J1209.8+1810_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382843/ft2_4FGL_J1209.8+1810_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382843/ft1_4FGL_J1209.8+1810_daily_bin1558.fits outfile=/scratch/kocevski/382843/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1558.fits ra=182.466 dec=18.1776 rad=12.0 tmin=643161601.0 tmax=643420801.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.53
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382843/ft1_filtered_4FGL_J1209.8+1810_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/382843/ft2_4FGL_J1209.8+1810_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/382843/ltcube_643161601_643420801_4FGL_J1209.8+1810_daily_bin1558.fits outfile=/scratch/kocevski/382843/expmap_643161601_643420801_4FGL_J1209.8+1810_daily_bin1558.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/382843/ltcube_643161601_643420801_4FGL_J1209.8+1810_daily_bin1558.fits
.....................!
real 191.16
user 185.97
sys 4.57

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/382843/ft1_filtered_4FGL_J1209.8+1810_daily_bin1558.fits scfile=/scratch/kocevski/382843/ft2_4FGL_J1209.8+1810_daily_bin1558.fits outfile=/scratch/kocevski/382843/cmap_643161601_643420801_4FGL_J1209.8+1810_daily_bin1558.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382843/ft1_filtered_4FGL_J1209.8+1810_daily_bin1558.fits scfile=/scratch/kocevski/382843/ft2_4FGL_J1209.8+1810_daily_bin1558.fits outfile=/scratch/kocevski/382843/cmap_HighResolution_643161601_643420801_4FGL_J1209.8+1810_daily_bin1558.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10944E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63112       1.0000         .10000E-03   10000.    
     6 'Prefactor '    465.99       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7758       1.0000         .10000E-03   10000.    
     8 'norm      '    29.798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.638       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6091       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.576       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      '    11.791       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.838       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8677       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3880       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86606       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0761       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=   6545.263     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2731 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0299       -.14637E-06** at limit **
   2  Prefactor     .10000E-03    68.491       -.12165E-06** at limit **
   3  Prefactor     .10000E-03    4.6236       -.63266E-07** at limit **
   4  Prefactor     .10000E-03    7.9363       -.53074E-07** at limit **
   5  Prefactor     .63124        1.3767       -.61743E-06   -.16470E-02
   6  Prefactor     465.96        264.79       -.15809E-04    .43652E-05
   7  Prefactor     5.7750        8.9117        .35622E-06   -.62556E-04
   8  norm          29.797        3.2049       -.32477E-06    .22771E-03
   9  Prefactor     11.631        19.221       -.85642E-06   -.49062E-05
  10  Prefactor     4.0159        3.3199        .33870E-06   -.10920E-03
  11  Prefactor     .10000E-03    30.550       -.57374E-06** at limit **
  12  Prefactor     2.6091        2.4522       -.29586E-06   -.23771E-03
  13  Prefactor     1.7785        2.2473       -.23815E-06   -.41851E-03
  14  Prefactor     6.4950        2.6261       -.19521E-07   -.51670E-04
  15  Prefactor     26.558        37.608       -.20148E-04    .34605E-05
  16  Prefactor     .10000E-03    1.7522        .18285E-07** at limit **
  17  norm          .10000E-03    .67394E-01   -.27265E-07** at limit **
  18  norm          11.791        4.5177       -.27538E-06    .49420E-04
  19  Prefactor     16.843        11.589        .33522E-06    .43559E-05
  20  Prefactor     7.8679        7.2116        .75775E-06    .12021E-02
  21  Prefactor     .10000E-03    13.212       -.12926E-06** at limit **
  22  Prefactor     2.3881        4.0342        .60027E-06   -.27890E-03
  23  Normalizat    .86618        .18203        .15647E-05    .93995E-04
  24  Prefactor     1.0760        .18203        .14449E-05    .60889E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.631241
  Prefactor  = 465.956
  Prefactor  = 5.775
  norm       = 29.7973
  Prefactor  = 11.631
  Prefactor  = 4.01588
  Prefactor  = 0.0001
  Prefactor  = 2.60912
  Prefactor  = 1.77852
  Prefactor  = 6.495
  Prefactor  = 26.5581
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.7909
  Prefactor  = 16.8431
  Prefactor  = 7.86791
  Prefactor  = 0.0001
  Prefactor  = 2.38815
  Normalizat = 0.866176
  Prefactor  = 1.07601
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.263     FROM HESSE     STATUS=OK           407 CALLS     3138 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0481        .17719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6270        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .63124        1.3350        .13508E-02   -1.5549    
   6  Prefactor     465.96        264.44        .94887E-04   -1.1357    
   7  Prefactor     5.7750        8.8895        .16712E-03   -1.5227    
   8  norm          29.797        3.1996        .45815E-04   -1.4616    
   9  Prefactor     11.631        19.209        .11743E-03   -1.5026    
  10  Prefactor     4.0159        3.3088        .12728E-03   -1.5307    
  11  Prefactor     .10000E-03    30.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6091        2.4346        .11449E-03   -1.5385    
  13  Prefactor     1.7785        2.2191        .12897E-03   -1.5441    
  14  Prefactor     6.4950        2.6254        .80257E-04   -1.5198    
  15  Prefactor     26.558        37.231        .77709E-04   -1.4677    
  16  Prefactor     .10000E-03    1.7591        .10456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .11286        .40781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.791        4.5169        .10318E-03   -1.5021    
  19  Prefactor     16.843        11.585        .97605E-04   -1.4887    
  20  Prefactor     7.8679        7.3087        .71476E-03   -1.5147    
  21  Prefactor     .10000E-03    13.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3881        4.0078        .20521E-03   -1.5399    
  23  Normalizat    .86618        .21522        .28822E-03   -.97659    
  24  Prefactor     1.0760        .21665        .26823E-03   -.90237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7616e-09
Minuit parameter uncertainties:
  1  9.22975e-06
  2  0.00017127
  3  2.82468e-06
  4  2.62924e-05
  5  1.3351
  6  265.135
  7  8.8915
  8  3.19962
  9  19.2195
  10  3.30893
  11  2.69874e-05
  12  2.43474
  13  2.21922
  14  2.62545
  15  37.2633
  16  1.32038e-06
  17  1.19574e-06
  18  4.51704
  19  11.5861
  20  7.30951
  21  1.38549e-05
  22  4.00828
  23  0.215437
  24  0.216828
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.609e+00  2.435e+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:  1.076e+00  2.168e-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:  8.662e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.08e-05

TS (Fixed Index): 2.27
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382843/likelihoodResults_643161601_643420801_4FGL_J1209.8+1810_daily_bin1558.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) = 6545.25238118
delta logL = 0.0109332077809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6545.2481367
delta logL = 0.0151776879911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5653       1.0000          .0000       10.000    
     3 'Normalizat'    .85925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0803       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=   6545.248     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3677        51.498        .66633E-02    .69130E-03
   2  Index         2.5665        6.2266        .16986        .13258E-03
   3  Normalizat    .85919        .73561E-01    .65389E-01   -.25222E-03
   4  Prefactor     1.0803        .61400E-01    .60547E-01   -.32676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36765
  Index      = 2.56651
  Normalizat = 0.859186
  Prefactor  = 1.08032
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.248     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3677        2.8527        .10511E-03   -1.5400    
   2  Index         2.5665        .97299        .92978E-02   -.50831    
   3  Normalizat    .85919        .21417        .28926E-03   -.97909    
   4  Prefactor     1.0803        .21687        .26776E-03   -.90098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76499e-10
Minuit parameter uncertainties:
  1  2.85288
  2  0.981224
  3  0.214384
  4  0.217045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382843': 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) = 6545.24813178
delta logL = 0.015182613557

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.368e+00  2.853e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.567e+00  9.812e-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:  1.080e+00  2.170e-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:  8.592e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.57 +/- 0.98
Photon Flux (Free Index): 4.10e-08 +/- 4.60e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/382843/cmap_HighResolution_643161601_643420801_4FGL_J1209.8+1810_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='1.11e-05', photon_flux_error='3.33e-08', dlogl='1.52e-02', energy_flux='1.15e-05', photon_flux2='4.10e-08', job_status='DONE', time_completed='2021-09-05 02:55:42.191316', photon_index_error2='0.98', photon_index2='2.57', ts='2.27', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.02e-05', EG='0.87', time_epoch_completed='1630835742.19', return_code='0', job_id='382843', GAL2='1.08', EG2='0.86', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.60e-08', ts2='2.29', photon_index='2.41' WHERE bin_id='1558' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 382843: <4FGL_J1209.8+1810_daily_bin1558> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1558> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 02:40:45 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:40:47 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:40:47 2021
Terminated at Sun Sep  5 02:55:42 2021
Results reported at Sun Sep  5 02:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1558 182.466 18.1776 643161601 643420801 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 :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

