aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache us/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 66 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 = 7492
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1679
RA = 182.466, Dec = 18.1776
tmin = 674524801, tmax = 674784001
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='426479', job_status='RUN', time_executed='2022-05-21 03:28:37.594532', time_epoch_executed='1653128917.59' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426479/ft1_4FGL_J1209.8+1810_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426479/ft2_4FGL_J1209.8+1810_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426479/ft1_4FGL_J1209.8+1810_daily_bin1679.fits outfile=/scratch/kocevski/426479/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1679.fits ra=182.466 dec=18.1776 rad=12.0 tmin=674524801.0 tmax=674784001.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 376.39
user 3.38
sys 0.28

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

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

Number of photons that the gtmktime cut: 565

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426479/ft1_filtered_4FGL_J1209.8+1810_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/426479/ft2_4FGL_J1209.8+1810_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/426479/ltcube_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.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/426479/ft2_4FGL_J1209.8+1810_daily_bin1679.fits
.....................!
real 604.38
user 12.86
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426479/ft1_filtered_4FGL_J1209.8+1810_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/426479/ft2_4FGL_J1209.8+1810_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/426479/ltcube_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.fits outfile=/scratch/kocevski/426479/expmap_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.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/426479/ltcube_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.fits
.....................!
real 1397.78
user 187.67
sys 5.16

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/426479/ft1_filtered_4FGL_J1209.8+1810_daily_bin1679.fits scfile=/scratch/kocevski/426479/ft2_4FGL_J1209.8+1810_daily_bin1679.fits outfile=/scratch/kocevski/426479/cmap_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.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 286.17
user 0.39
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426479/ft1_filtered_4FGL_J1209.8+1810_daily_bin1679.fits scfile=/scratch/kocevski/426479/ft2_4FGL_J1209.8+1810_daily_bin1679.fits outfile=/scratch/kocevski/426479/cmap_HighResolution_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.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 334.50
user 0.39
sys 0.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    57.873       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28467E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2502       1.0000         .10000E-03   10000.    
     8 'norm      '    11.339       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5367       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .81596       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4729       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8397       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.902       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0149       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0916       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=   6272.938     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2781 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.429       -.19871E-06** at limit **
   2  Prefactor     33.393        37.963       -.17630E-07   -.14819E-04
   3  Prefactor     57.921        29.464       -.72740E-06   -.25715E-03
   4  Prefactor     .10003E-03    6.5168       -.26755E-06** at limit **
   5  Prefactor     .56889        1.5659        .12220E-05    .15950E-03
   6  Prefactor     .10000E-03    138.02        .14954E-05** at limit **
   7  Prefactor     6.2514        6.9995        .19280E-06    .12322E-04
   8  norm          11.339        2.3623        .10347E-07   -.34880E-03
   9  Prefactor     .10000E-03    5.9718        .43608E-07** at limit **
  10  Prefactor     .10000E-03    1.6744       -.83986E-07** at limit **
  11  Prefactor     42.780        50.198        .10551E-05    .14814E-04
  12  Prefactor     1.5360        2.3365        .27560E-06   -.46977E-05
  13  Prefactor     .10000E-03    .99147        .40892E-07** at limit **
  14  Prefactor     .10000E-03    1.2536       -.70471E-07** at limit **
  15  Prefactor     .10000E-03    20.641       -.29045E-07** at limit **
  16  Prefactor     .10000E-03    2.8641        .44355E-07** at limit **
  17  norm          .81586        .30819        .24393E-07   -.35600E-03
  18  norm          2.4729        4.1434        .57969E-06    .31259E-04
  19  Prefactor     3.8200        14.243        .18198E-06   -.33566E-04
  20  Prefactor     .10000E-03    3.9129       -.99532E-08** at limit **
  21  Prefactor     33.958        43.718        .15166E-05    .54228E-04
  22  Prefactor     .10000E-03    3.4498       -.31666E-07** at limit **
  23  Normalizat    1.0154        .21260       -.28155E-05   -.42683E-04
  24  Prefactor     1.0912        .19678        .15738E-05   -.18926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.3928
  Prefactor  = 57.921
  Prefactor  = 0.000100034
  Prefactor  = 0.568886
  Prefactor  = 0.0001
  Prefactor  = 6.25144
  norm       = 11.339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7797
  Prefactor  = 1.53599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.81586
  norm       = 2.47294
  Prefactor  = 3.82001
  Prefactor  = 0.0001
  Prefactor  = 33.9581
  Prefactor  = 0.0001
  Normalizat = 1.01544
  Prefactor  = 1.09118
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.938     FROM HESSE     STATUS=OK           403 CALLS     3184 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.393        37.985        .69332E-04   -1.4552    
   3  Prefactor     57.921        29.462        .52735E-04   -1.4184    
   4  Prefactor     .10003E-03    61.993        .38894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56889        1.6056        .15173E-02   -1.5557    
   6  Prefactor     .10000E-03    138.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2514        6.9971        .16057E-03   -1.5208    
   8  norm          11.339        2.3622        .52992E-04   -1.5034    
   9  Prefactor     .10000E-03    5.9795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6913        .99992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.780        50.188        .30650E-03   -1.4399    
  12  Prefactor     1.5360        2.3033        .14229E-03   -1.5460    
  13  Prefactor     .10000E-03    .99738        .76953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3447        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8699        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .81586        .30589        .25369E-04   -1.5527    
  18  norm          2.4729        4.1098        .19937E-03   -1.5393    
  19  Prefactor     3.8200        14.291        .20596E-03   -1.5317    
  20  Prefactor     .10000E-03    3.9169        .15300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.958        44.207        .68823E-04   -1.4542    
  22  Prefactor     .10000E-03    3.4660        .14365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0154        .23408        .27750E-03   -.92515    
  24  Prefactor     1.0912        .22172        .26666E-03   -.89749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82952e-10
Minuit parameter uncertainties:
  1  1.66704e-05
  2  38.0123
  3  29.4695
  4  0.00289096
  5  1.60567
  6  0.000263603
  7  6.99797
  8  2.36223
  9  1.57483e-06
  10  6.78688e-07
  11  50.2381
  12  2.30345
  13  2.57954e-09
  14  2.26742e-05
  15  4.89762e-06
  16  3.6437e-06
  17  0.305894
  18  4.11027
  19  14.304
  20  1.54347e-06
  21  44.2498
  22  1.81612e-06
  23  0.234314
  24  0.22191
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.536e+00  2.303e+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.091e+00  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.015e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/426479/likelihoodResults_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.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) = 6272.92282021
delta logL = 0.0154498508782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6272.92023473
delta logL = 0.0180353303131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7060       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1324       1.0000          .0000       10.000    
     3 'Normalizat'    1.0235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0857       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=   6272.920     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      226 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7041        57.404        .80484E-02    .48732E-03
   2  Index         2.1305        6.0629        .38728       -.32726E-05
   3  Normalizat    1.0237        .44084E-01    .62561E-01   -.66128E-04
   4  Prefactor     1.0856        .39929E-01    .60427E-01   -.42119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70405
  Index      = 2.13049
  Normalizat = 1.02368
  Prefactor  = 1.08563
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.920     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7041        2.5975        .15218E-03   -1.5447    
   2  Index         2.1305        1.2998        .10054E-01   -.61126    
   3  Normalizat    1.0237        .22370        .27669E-03   -.92241    
   4  Prefactor     1.0856        .22109        .26723E-03   -.89927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25e-11
Minuit parameter uncertainties:
  1  2.5977
  2  1.32271
  3  0.223908
  4  0.221278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426479': 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) = 6272.9202332
delta logL = 0.0180368655911

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.704e+00  2.598e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.130e+00  1.323e+00  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.086e+00  2.213e-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.024e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
Ra Dec: 182.466 18.178

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/426479/cmap_HighResolution_674524801_674784001_4FGL_J1209.8+1810_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-05-21 04:59:21.102441', job_id='426479', GAL2='1.09', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1653134361.1', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.80e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1679' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 04:59:21 PDT 2022

;

Database successfully updated.


Analysis Complete.


Sat May 21 01:38:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 426525: <4FGL_J1209.8+1810_daily_bin1679> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:06:31 2022
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:59:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:59:38 2022
Terminated at Sat May 21 01:40:20 2022
Results reported at Sat May 21 01:40:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1679 182.466 18.1776 674524801 674784001 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 :                                   830.28 sec.
    Max Memory :                                 620 MB
    Average Memory :                             169.99 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2442 sec.
    Turnaround time :                            5629 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 426479: <4FGL_J1209.8+1810_daily_bin1679> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1679> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat May 21 00:06:29 2022
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:58:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:58:57 2022
Terminated at Sat May 21 05:01:34 2022
Results reported at Sat May 21 05:01:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1679 182.466 18.1776 674524801 674784001 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 :                                   741.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             108.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14557 sec.
    Turnaround time :                            17705 sec.

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

