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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1039
RA = 182.466, Dec = 18.1776
tmin = 508636801, tmax = 508896001
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='380429', job_status='RUN', time_executed='2021-09-05 02:38:25.939731', time_epoch_executed='1630834705.94' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380429/ft1_4FGL_J1209.8+1810_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380429/ft2_4FGL_J1209.8+1810_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380429/ft1_4FGL_J1209.8+1810_daily_bin1039.fits outfile=/scratch/kocevski/380429/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1039.fits ra=182.466 dec=18.1776 rad=12.0 tmin=508636801.0 tmax=508896001.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.74
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380429/ft1_filtered_4FGL_J1209.8+1810_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/380429/ft2_4FGL_J1209.8+1810_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/380429/ltcube_508636801_508896001_4FGL_J1209.8+1810_daily_bin1039.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/380429/ft2_4FGL_J1209.8+1810_daily_bin1039.fits
.....................!
real 13.15
user 12.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380429/ft1_filtered_4FGL_J1209.8+1810_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/380429/ft2_4FGL_J1209.8+1810_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/380429/ltcube_508636801_508896001_4FGL_J1209.8+1810_daily_bin1039.fits outfile=/scratch/kocevski/380429/expmap_508636801_508896001_4FGL_J1209.8+1810_daily_bin1039.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/380429/ltcube_508636801_508896001_4FGL_J1209.8+1810_daily_bin1039.fits
.....................!
real 192.27
user 186.45
sys 5.15

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/380429/ft1_filtered_4FGL_J1209.8+1810_daily_bin1039.fits scfile=/scratch/kocevski/380429/ft2_4FGL_J1209.8+1810_daily_bin1039.fits outfile=/scratch/kocevski/380429/cmap_508636801_508896001_4FGL_J1209.8+1810_daily_bin1039.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380429/ft1_filtered_4FGL_J1209.8+1810_daily_bin1039.fits scfile=/scratch/kocevski/380429/ft2_4FGL_J1209.8+1810_daily_bin1039.fits outfile=/scratch/kocevski/380429/cmap_HighResolution_508636801_508896001_4FGL_J1209.8+1810_daily_bin1039.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.58
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.750       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    98.532       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0433       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.701       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7759       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13370E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1938       1.0000         .10000E-03   10000.    
    17 'norm      '    .46539       1.0000         .10000E-03   10000.    
    18 'norm      '    10.786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.667       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85250E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2692       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71688       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=   6164.228     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2741 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8142        .20932E-06** at limit **
   2  Prefactor     32.619        52.283        .10484E-05   -.11580E-04
   3  Prefactor     .10000E-03    8.0579        .15254E-06** at limit **
   4  Prefactor     .10000E-03    8.4867       -.26240E-06** at limit **
   5  Prefactor     1.8885        1.5408        .14357E-07   -.13449E-04
   6  Prefactor     98.496        138.29        .36880E-05   -.95611E-05
   7  Prefactor     .10000E-03    5.3304       -.38278E-06** at limit **
   8  norm          2.0433        1.3295        .73061E-08   -.59893E-04
   9  Prefactor     18.705        18.927        .18858E-05   -.43288E-04
  10  Prefactor     .10000E-03    .93286       -.11834E-07** at limit **
  11  Prefactor     .10000E-03    35.999       -.57295E-06** at limit **
  12  Prefactor     4.3964        3.1393       -.72812E-07   -.35014E-04
  13  Prefactor     6.7765        3.7887        .21768E-06   -.54888E-04
  14  Prefactor     .10000E-03    1.1261        .11360E-06** at limit **
  15  Prefactor     .10000E-03    12.828        .41560E-07** at limit **
  16  Prefactor     3.1933        5.3889        .30586E-05   -.52391E-04
  17  norm          .46539        .28307       -.39494E-08   -.16581E-04
  18  norm          10.786        5.9708       -.61991E-06   -.60703E-04
  19  Prefactor     .10000E-03    15.772        .11576E-05** at limit **
  20  Prefactor     .10000E-03    6.4970        .38081E-07** at limit **
  21  Prefactor     40.655        28.500       -.95403E-06   -.10497E-04
  22  Prefactor     .10000E-03    6.0714        .40028E-06** at limit **
  23  Normalizat    1.2689        .19277        .55587E-06   -.36285E-04
  24  Prefactor     .71721        .17300       -.16006E-05   -.93339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.6188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88849
  Prefactor  = 98.4961
  Prefactor  = 0.0001
  norm       = 2.04333
  Prefactor  = 18.7052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39635
  Prefactor  = 6.77651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19334
  norm       = 0.465391
  norm       = 10.7863
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.6548
  Prefactor  = 0.0001
  Normalizat = 1.26889
  Prefactor  = 0.717208
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.228     FROM HESSE     STATUS=OK           403 CALLS     3144 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.619        52.547        .70019E-04   -1.4565    
   3  Prefactor     .10000E-03    8.0709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8885        1.5366        .84992E-04   -1.5433    
   6  Prefactor     98.496        138.42        .20249E-03   -1.3720    
   7  Prefactor     .10000E-03    5.3894        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0433        1.3237        .70626E-04   -1.5422    
   9  Prefactor     18.705        18.923        .92617E-04   -1.4843    
  10  Prefactor     .10000E-03    .93487        .74038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3964        3.1310        .10805E-03   -1.5289    
  13  Prefactor     6.7765        3.7881        .52409E-03   -1.5187    
  14  Prefactor     .10000E-03    2.4935        .16181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1933        5.4065        .10874E-02   -1.5351    
  17  norm          .46539        .27660        .30507E-04   -1.5572    
  18  norm          10.786        5.9663        .12199E-03   -1.5051    
  19  Prefactor     .10000E-03    16.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.655        28.510        .62857E-04   -1.4432    
  22  Prefactor     .10000E-03    21.169        .37278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2689        .22744        .24160E-03   -.84500    
  24  Prefactor     .71721        .20216        .29363E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11713e-10
Minuit parameter uncertainties:
  1  6.1368e-06
  2  52.6219
  3  5.06876e-06
  4  8.00964e-06
  5  1.5366
  6  138.874
  7  3.89728e-05
  8  1.3237
  9  18.9293
  10  3.92624e-07
  11  0.000169537
  12  3.13114
  13  3.78828
  14  6.58445e-06
  15  5.29549e-06
  16  5.40735
  17  0.276606
  18  5.96661
  19  0.000225033
  20  3.89254e-06
  21  28.52
  22  0.000107172
  23  0.227619
  24  0.202365
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  4.396e+00  3.131e+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:  7.172e-01  2.024e-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.269e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.38e-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) = 6164.2175742
delta logL = 0.0102619397658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6164.21401902
delta logL = 0.0138171122189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1453       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5138       1.0000          .0000       10.000    
     3 'Normalizat'    1.2624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72099       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=   6164.214     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      245 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1451        3.3936        .10232E-03    .14680E-02
   2  Index         2.5140        .64524        .75358E-02    .17175E-03
   3  Normalizat    1.2628        .21815        .24206E-03   -.10552E-03
   4  Prefactor     .72075        .20290        .29295E-03   -.13847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.14511
  Index      = 2.51395
  Normalizat = 1.2628
  Prefactor  = 0.720753
 **********
 **   18 **HESSE 
 **********

 FCN=   6164.214     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1451        3.2687        .40929E-05   -1.5301    
   2  Index         2.5140        .62097        .30143E-03   -.52038    
   3  Normalizat    1.2628        .21811        .48411E-04   -.84684    
   4  Prefactor     .72075        .20292        .11718E-04   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61276e-10
Minuit parameter uncertainties:
  1  3.26881
  2  0.623112
  3  0.218264
  4  0.20313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380429': 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) = 6164.21401692
delta logL = 0.013819219138

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  4.145e+00  3.269e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.514e+00  6.231e-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:  7.208e-01  2.031e-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.263e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.51 +/- 0.62
Photon Flux (Free Index): 6.62e-08 +/- 5.66e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.30e-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/380429/cmap_HighResolution_508636801_508896001_4FGL_J1209.8+1810_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='1.89e-05', photon_flux_error='4.28e-08', dlogl='1.38e-02', energy_flux='1.94e-05', photon_flux2='6.62e-08', job_status='DONE', time_completed='2021-09-05 02:49:30.212936', photon_index_error2='0.62', photon_index2='2.51', ts='4.19', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.27', time_epoch_completed='1630835370.21', return_code='0', job_id='380429', GAL2='0.72', EG2='1.26', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.66e-08', ts2='4.24', photon_index='2.41' WHERE bin_id='1039' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:49:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 380429: <4FGL_J1209.8+1810_daily_bin1039> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1039 182.466 18.1776 508636801 508896001 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 :                                   635.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

