/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 102 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin55
RA = 182.466, Dec = 18.1776
tmin = 253584001, tmax = 253843201
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='373707', job_status='RUN', time_executed='2021-09-05 02:17:26.310433', time_epoch_executed='1630833446.31' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373707/ft1_4FGL_J1209.8+1810_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373707/ft2_4FGL_J1209.8+1810_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373707/ft1_4FGL_J1209.8+1810_daily_bin55.fits outfile=/scratch/kocevski/373707/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin55.fits ra=182.466 dec=18.1776 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.59
user 1.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373707/ft1_filtered_4FGL_J1209.8+1810_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/373707/ft2_4FGL_J1209.8+1810_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/373707/ltcube_253584001_253843201_4FGL_J1209.8+1810_daily_bin55.fits outfile=/scratch/kocevski/373707/expmap_253584001_253843201_4FGL_J1209.8+1810_daily_bin55.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/373707/ltcube_253584001_253843201_4FGL_J1209.8+1810_daily_bin55.fits
.....................!
real 192.43
user 184.92
sys 5.07

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/373707/ft1_filtered_4FGL_J1209.8+1810_daily_bin55.fits scfile=/scratch/kocevski/373707/ft2_4FGL_J1209.8+1810_daily_bin55.fits outfile=/scratch/kocevski/373707/cmap_253584001_253843201_4FGL_J1209.8+1810_daily_bin55.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373707/ft1_filtered_4FGL_J1209.8+1810_daily_bin55.fits scfile=/scratch/kocevski/373707/ft2_4FGL_J1209.8+1810_daily_bin55.fits outfile=/scratch/kocevski/373707/cmap_HighResolution_253584001_253843201_4FGL_J1209.8+1810_daily_bin55.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0778       1.0000         .10000E-03   10000.    
     6 'Prefactor '    90.171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2859       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0789       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12877E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8679       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.731       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5236       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33511       1.0000         .10000E-03   10000.    
    18 'norm      '    6.6455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.372       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.835       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92052       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77085       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=   4995.121     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2719 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2998        .41827E-06** at limit **
   2  Prefactor     28.642        28.702       -.27204E-06    .24101E-04
   3  Prefactor     .10000E-03    4.1691        .67426E-07** at limit **
   4  Prefactor     20.758        12.602       -.34656E-06    .36858E-04
   5  Prefactor     3.0781        1.8512       -.97645E-07    .32003E-04
   6  Prefactor     89.965        170.26        .68295E-05    .35322E-05
   7  Prefactor     1.3027        17.984       -.73833E-05   -.12601E-04
   8  norm          4.0790        1.4798       -.52711E-07    .32946E-04
   9  Prefactor     .10000E-03    41.896       -.13757E-04** at limit **
  10  Prefactor     1.8684        2.7729       -.10016E-07   -.17489E-05
  11  Prefactor     69.627        75.375        .44789E-05    .84344E-04
  12  Prefactor     .10000E-03    1.4520        .11570E-06** at limit **
  13  Prefactor     4.5248        3.0682       -.18312E-06    .27886E-04
  14  Prefactor     2.4190        2.4833       -.25068E-07    .11723E-04
  15  Prefactor     .10000E-03    10.525       -.22675E-07** at limit **
  16  Prefactor     .10000E-03    3.4332        .13273E-06** at limit **
  17  norm          .33512        .22174       -.31368E-07   -.13531E-03
  18  norm          6.6468        5.4979       -.23211E-06    .18039E-04
  19  Prefactor     .10000E-03    4.9594        .10003E-06** at limit **
  20  Prefactor     18.373        13.119       -.16370E-06    .73535E-05
  21  Prefactor     20.835        22.851       -.34294E-06    .13920E-04
  22  Prefactor     .10000E-03    3.0989        .16110E-06** at limit **
  23  Normalizat    .92032        .18937        .38510E-05    .86554E-04
  24  Prefactor     .77101        .17443       -.26238E-05    .28640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.6416
  Prefactor  = 0.0001
  Prefactor  = 20.7583
  Prefactor  = 3.07808
  Prefactor  = 89.9651
  Prefactor  = 1.30267
  norm       = 4.07901
  Prefactor  = 0.0001
  Prefactor  = 1.86843
  Prefactor  = 69.6274
  Prefactor  = 0.0001
  Prefactor  = 4.52479
  Prefactor  = 2.41898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.335124
  norm       = 6.6468
  Prefactor  = 0.0001
  Prefactor  = 18.3727
  Prefactor  = 20.8348
  Prefactor  = 0.0001
  Normalizat = 0.920318
  Prefactor  = 0.771008
 **********
 **   18 **HESSE 
 **********

 FCN=   4995.121     FROM HESSE     STATUS=OK           405 CALLS     3124 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.642        28.714        .74862E-04   -1.4637    
   3  Prefactor     .10000E-03    4.1713        .14093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.758        12.602        .87915E-04   -1.4796    
   5  Prefactor     3.0781        1.8521        .71522E-04   -1.5357    
   6  Prefactor     89.965        169.55        .21158E-03   -1.3808    
   7  Prefactor     1.3027        17.895        .39093E-03   -1.5480    
   8  norm          4.0790        1.4805        .50218E-04   -1.5304    
   9  Prefactor     .10000E-03    42.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8684        2.7415        .13672E-03   -1.5435    
  11  Prefactor     69.627        76.344        .24035E-03   -1.4037    
  12  Prefactor     .10000E-03    2.5425        .16037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5248        2.9945        .94747E-04   -1.5283    
  14  Prefactor     2.4190        2.4708        .10653E-03   -1.5397    
  15  Prefactor     .10000E-03    10.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4448        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33512        .21732        .25607E-04   -1.5592    
  18  norm          6.6468        5.4931        .14199E-03   -1.5192    
  19  Prefactor     .10000E-03    4.9731        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.373        13.115        .93443E-04   -1.4850    
  21  Prefactor     20.835        22.852        .87749E-04   -1.4795    
  22  Prefactor     .10000E-03    3.1208        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92032        .20953        .23553E-03   -.95750    
  24  Prefactor     .77101        .19328        .25236E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6341e-10
Minuit parameter uncertainties:
  1  9.51271e-06
  2  28.7278
  3  1.34853e-06
  4  12.6034
  5  1.85215
  6  170.48
  7  9.65941
  8  1.48051
  9  5.0718e-06
  10  2.74171
  11  76.4513
  12  3.48699e-05
  13  2.99458
  14  2.47088
  15  6.42273e-06
  16  5.6516e-06
  17  0.217322
  18  5.49348
  19  1.8383e-06
  20  13.1172
  21  22.8614
  22  2.69568e-06
  23  0.209718
  24  0.193452
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.487e-05  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.710e-01  1.935e-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:  9.203e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/373707/likelihoodResults_253584001_253843201_4FGL_J1209.8+1810_daily_bin55.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4995.12328525
delta logL = -0.00187691214796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4995.12140862
delta logL = -2.83983354166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4617       1.0000          .0000       10.000    
     3 'Normalizat'    .91995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77143       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=   4994.571     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      316 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .41187E-02    .34774E-03** at limit **
   2  Index         7.8716        3.0048        .20010        .85319E-04
   3  Normalizat    .87143        .37995E-01    .45156E-01   -.28273E-04
   4  Prefactor     .80213        .37527E-01    .43344E-01   -.13296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.87161
  Normalizat = 0.871426
  Prefactor  = 0.802132
 **********
 **   18 **HESSE 
 **********

 FCN=   4994.571     FROM HESSE     STATUS=OK            33 CALLS      349 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17723E-02    .11125E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8716        .55477        .71432E-02    .61178    
   3  Normalizat    .87143        .19855        .24103E-03   -.97472    
   4  Prefactor     .80213        .19480        .24792E-03   -.99650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20955e-09
Minuit parameter uncertainties:
  1  1.71948e-09
  2  0.556487
  3  0.198718
  4  0.194968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373707': 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) = 4994.5708447
delta logL = 0.550563638896

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.719e-09  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  7.872e+00  5.565e-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.021e-01  1.950e-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.714e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 182.466 18.178
Photon Index (Free Index): 7.87 +/- 0.56
Photon Flux (Free Index): 4.30e-08 +/- 4.78e-08
Energy Flux (Free Index): 5.00e-06 +/- 5.53e-06

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/373707/cmap_HighResolution_253584001_253843201_4FGL_J1209.8+1810_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', comment='SUCCESS', energy_flux2='5.00e-06', dlogl='5.51e-01', photon_flux2='4.30e-08', job_status='DONE', time_completed='2021-09-05 02:27:57.152505', photon_index_error2='0.56', photon_index2='7.87', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='6.91e-08', energy_flux_error2='5.53e-06', EG='0.92', time_epoch_completed='1630834077.15', return_code='0', job_id='373707', GAL2='0.80', EG2='0.87', return_code2='0', photon_flux_error2='4.78e-08', ts2='1.15', photon_index='2.41' WHERE bin_id='55' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:27:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 373707: <4FGL_J1209.8+1810_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin55 182.466 18.1776 253584001 253843201 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 :                                   626.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            744 sec.

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

