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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin501
RA = 182.466, Dec = 18.1776
tmin = 369187201, tmax = 369446401
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='375566', job_status='RUN', time_executed='2021-09-05 02:21:10.243123', time_epoch_executed='1630833670.24' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375566

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375566/ft1_4FGL_J1209.8+1810_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375566/ft2_4FGL_J1209.8+1810_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375566/ft1_4FGL_J1209.8+1810_daily_bin501.fits outfile=/scratch/kocevski/375566/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin501.fits ra=182.466 dec=18.1776 rad=12.0 tmin=369187201.0 tmax=369446401.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.44
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375566/ft1_filtered_4FGL_J1209.8+1810_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/375566/ft2_4FGL_J1209.8+1810_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/375566/ltcube_369187201_369446401_4FGL_J1209.8+1810_daily_bin501.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/375566/ft2_4FGL_J1209.8+1810_daily_bin501.fits
.....................!
real 12.82
user 12.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375566/ft1_filtered_4FGL_J1209.8+1810_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/375566/ft2_4FGL_J1209.8+1810_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/375566/ltcube_369187201_369446401_4FGL_J1209.8+1810_daily_bin501.fits outfile=/scratch/kocevski/375566/expmap_369187201_369446401_4FGL_J1209.8+1810_daily_bin501.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/375566/ltcube_369187201_369446401_4FGL_J1209.8+1810_daily_bin501.fits
.....................!
real 190.18
user 185.16
sys 4.67

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/375566/ft1_filtered_4FGL_J1209.8+1810_daily_bin501.fits scfile=/scratch/kocevski/375566/ft2_4FGL_J1209.8+1810_daily_bin501.fits outfile=/scratch/kocevski/375566/cmap_369187201_369446401_4FGL_J1209.8+1810_daily_bin501.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3826       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    174.29       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.399       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3354       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6151       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3397       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .97415       1.0000         .10000E-03   10000.    
    18 'norm      '    .28544       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4737       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16272       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2687       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85166       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=   5667.167     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3216 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4871       -.79866E-08** at limit **
   2  Prefactor     .10000E-03    17.914       -.14191E-07** at limit **
   3  Prefactor     1.2993        48.803        .18641E-04   -.78810E-04
   4  Prefactor     .10000E-03    6.2455        .27391E-07** at limit **
   5  Prefactor     .10000E-03    .65927       -.72179E-07** at limit **
   6  Prefactor     174.07        178.80        .18870E-04    .65014E-04
   7  Prefactor     19.392        11.871       -.50396E-06   -.18264E-04
   8  norm          1.3354        1.0739        .39971E-08   -.34679E-04
   9  Prefactor     .10000E-03    4.4813       -.30054E-07** at limit **
  10  Prefactor     5.6145        3.8820        .17177E-07   -.11984E-03
  11  Prefactor     .10000E-03    24.599       -.84870E-07** at limit **
  12  Prefactor     2.9282        3.1113        .86511E-07   -.55545E-04
  13  Prefactor     2.3397        3.1067        .15694E-06   -.40078E-04
  14  Prefactor     2.4803        1.9918        .90879E-07   -.51624E-04
  15  Prefactor     .10000E-03    10.981       -.27172E-07** at limit **
  16  Prefactor     .10000E-03    1.4669        .35446E-08** at limit **
  17  norm          .97405        .31334        .27812E-07   -.53113E-03
  18  norm          .28728        2.4813        .24311E-06   -.44251E-04
  19  Prefactor     6.4808        6.6732        .10521E-06   -.40064E-04
  20  Prefactor     32.526        15.419       -.76384E-06   -.11791E-03
  21  Prefactor     .10118E-03    21.041        .96189E-06** at limit **
  22  Prefactor     .10000E-03    5.9304        .20695E-07** at limit **
  23  Normalizat    1.2687        .20033       -.23203E-05   -.12474E-03
  24  Prefactor     .85177        .18729        .62383E-06   -.21518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 174.074
  Prefactor  = 19.3923
  norm       = 1.33544
  Prefactor  = 0.0001
  Prefactor  = 5.61449
  Prefactor  = 0.0001
  Prefactor  = 2.92818
  Prefactor  = 2.33971
  Prefactor  = 2.48029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.974047
  norm       = 0.287284
  Prefactor  = 6.48078
  Prefactor  = 32.5265
  Prefactor  = 0.000101182
  Prefactor  = 0.0001
  Normalizat = 1.26873
  Prefactor  = 0.851766
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.167     FROM HESSE     STATUS=OK           409 CALLS     3625 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4944        .15574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2993        50.130        .18503E-02   -1.5480    
   4  Prefactor     .10000E-03    6.3127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1243        .11807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     174.07        179.55        .15283E-03   -1.3062    
   7  Prefactor     19.392        11.877        .90937E-04   -1.4827    
   8  norm          1.3354        1.0583        .67732E-04   -1.5477    
   9  Prefactor     .10000E-03    4.4845        .15564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6145        3.8763        .11714E-03   -1.5234    
  11  Prefactor     .10000E-03    24.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9282        3.0742        .12098E-03   -1.5366    
  13  Prefactor     2.3397        3.0670        .13681E-03   -1.5402    
  14  Prefactor     2.4803        1.9857        .91592E-04   -1.5393    
  15  Prefactor     .10000E-03    10.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4678        .89028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .97405        .31257        .22559E-04   -1.5511    
  18  norm          .28728        10.984        .22555E-02   -1.5601    
  19  Prefactor     6.4808        6.6817        .15774E-03   -1.5199    
  20  Prefactor     32.526        15.419        .70263E-04   -1.4567    
  21  Prefactor     .10118E-03    27.645        .96904E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9958        .17901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2687        .23712        .23964E-03   -.84505    
  24  Prefactor     .85177        .22166        .28570E-03   -.97847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87107e-08
Minuit parameter uncertainties:
  1  2.34776e-06
  2  4.17113e-06
  3  16.1548
  4  4.74802e-06
  5  4.31339e-05
  6  180.12
  7  11.8784
  8  1.05832
  9  2.70053e-06
  10  3.87644
  11  1.16787e-05
  12  3.07432
  13  3.06724
  14  1.9858
  15  1.38045e-06
  16  6.42853e-07
  17  0.312566
  18  3.5529
  19  6.68244
  20  15.4209
  21  0.0114397
  22  8.82946e-06
  23  0.23732
  24  0.221892
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.928e+00  3.074e+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:  8.518e-01  2.219e-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.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.36e-05

TS (Fixed Index): 1.78
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375566/likelihoodResults_369187201_369446401_4FGL_J1209.8+1810_daily_bin501.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) = 5667.13917382
delta logL = 0.0273399520102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5667.13276309
delta logL = 0.0337506877368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2810       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1502       1.0000          .0000       10.000    
     3 'Normalizat'    1.2794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84515       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=   5667.133     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      248 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2811        3.4299        .13423E-03   -.30855E-03
   2  Index         2.1499        .98827        .98659E-02   -.31768E-04
   3  Normalizat    1.2794        .22177        .23886E-03    .58781E-04
   4  Prefactor     .84518        .21949        .28671E-03    .62294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.2811
  Index      = 2.14989
  Normalizat = 1.27941
  Prefactor  = 0.845175
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.133     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2811        3.3966        .53692E-05   -1.5346    
   2  Index         2.1499        .97807        .39463E-03   -.60653    
   3  Normalizat    1.2794        .22178        .95543E-05   -.84183    
   4  Prefactor     .84518        .21959        .11468E-04   -.98084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00433e-10
Minuit parameter uncertainties:
  1  3.39681
  2  0.987555
  3  0.221949
  4  0.219817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375566': 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) = 5667.13276304
delta logL = 0.0337507344602

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  3.281e+00  3.397e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.150e+00  9.876e-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:  8.452e-01  2.198e-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.279e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.15 +/- 0.99
Photon Flux (Free Index): 3.12e-08 +/- 4.74e-08
Energy Flux (Free Index): 1.54e-05 +/- 2.04e-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/375566/cmap_HighResolution_369187201_369446401_4FGL_J1209.8+1810_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='1.54e-05', photon_flux_error='4.21e-08', dlogl='3.38e-02', energy_flux='1.29e-05', photon_flux2='3.12e-08', job_status='DONE', time_completed='2021-09-05 02:33:28.529763', photon_index_error2='0.99', photon_index2='2.15', ts='1.78', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='2.04e-05', EG='1.27', time_epoch_completed='1630834408.53', return_code='0', job_id='375566', GAL2='0.85', EG2='1.28', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.74e-08', ts2='1.85', photon_index='2.41' WHERE bin_id='501' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:33:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 375566: <4FGL_J1209.8+1810_daily_bin501> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin501> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:20:51 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:20:53 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:20:53 2021
Terminated at Sun Sep  5 02:33:29 2021
Results reported at Sun Sep  5 02:33:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin501 182.466 18.1776 369187201 369446401 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

