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/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 180 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1713
RA = 182.466, Dec = 18.1776
tmin = 683337601, tmax = 683596801
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='115726', job_status='RUN', time_executed='2022-09-16 16:38:42.285498', time_epoch_executed='1663371522.29' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115726/ft1_4FGL_J1209.8+1810_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115726/ft1_4FGL_J1209.8+1810_daily_bin1713.fits outfile=/scratch/kocevski/115726/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1713.fits ra=182.466 dec=18.1776 rad=12.0 tmin=683337601.0 tmax=683596801.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 2.91
user 2.70
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.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/115726/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/115726/ft1_filtered_4FGL_J1209.8+1810_daily_bin1713.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.44
user 0.30
sys 0.13

Number of photons that the gtmktime cut: 631

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115726/ft1_filtered_4FGL_J1209.8+1810_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/115726/ltcube_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.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/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits
.....................!
real 11.73
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115726/ft1_filtered_4FGL_J1209.8+1810_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/115726/ltcube_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.fits outfile=/scratch/kocevski/115726/expmap_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.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/115726/ltcube_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.fits
.....................!
real 158.02
user 152.55
sys 4.95

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/115726/ft1_filtered_4FGL_J1209.8+1810_daily_bin1713.fits scfile=/scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits outfile=/scratch/kocevski/115726/cmap_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115726/ft1_filtered_4FGL_J1209.8+1810_daily_bin1713.fits scfile=/scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits outfile=/scratch/kocevski/115726/cmap_HighResolution_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.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.49
user 0.34
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/115726/ft1_filtered_4FGL_J1209.8+1810_daily_bin1713.fits', '/scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits', expMap='/scratch/kocevski/115726/expmap_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.fits', expCube='/scratch/kocevski/115726/ltcube_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/115726/Model_4FGL_J1209.8+1810_daily_bin1713.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  0.000e+00  1.000e+06 ( 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/115726/ft1_filtered_4FGL_J1209.8+1810_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/115726/ft2_4FGL_J1209.8+1810_daily_bin1713.fits
Exposure map: /scratch/kocevski/115726/expmap_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.fits
Exposure cube: /scratch/kocevski/115726/ltcube_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/115726/Model_4FGL_J1209.8+1810_daily_bin1713.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) = 7175.29212372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86398E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17039E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.5510       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.2585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13849E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.8922       1.0000          .0000       .10000E+07
     7 'norm      '    30.738       1.0000          .0000       .10000E+07
     8 'Prefactor '    .90999E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.6015       1.0000          .0000       .10000E+07
    10 'Prefactor '    .40150       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.8821       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57899E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9386       1.0000          .0000       .10000E+07
    14 'Prefactor '    54.064       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10386E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .79936E-08   1.0000          .0000       .10000E+07
    17 'norm      '    4.3487       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.463       1.0000          .0000       .10000E+07
    19 'Prefactor '    14.449       1.0000          .0000       .10000E+07
    20 'Prefactor '    .61599E-05   1.0000          .0000       .10000E+07
    21 'Normalizat'    .30336       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.8897       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7175.271     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1553 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    5.5085        .30080E-07** at limit **
   2  Prefactor     .90816E-07    16.679        .15577E-06** at limit **
   3  Prefactor     7.5808        8.0506        .71582E-07    .30120E-01
   4  Prefactor     2.2589        1.6277        .59893E-07    .45642E-02
   5  Prefactor     .12725E-05    117.84       -.21813E-06** at limit **
   6  Prefactor     6.0171        9.5356        .10253E-06   -.71568E-02
   7  norm          30.742        3.6429       -.12945E-07   -.67379E-02
   8  Prefactor     .91038E-08    6.1395        .65013E-07** at limit **
   9  Prefactor     3.6189        4.0163        .27930E-07   -.42123E-03
  10  Prefactor     .10947E-04    39.048       -.23033E-06** at limit **
  11  Prefactor     1.8801        2.5999        .48859E-07    .12528E-02
  12  Prefactor     .18713E-06    14.614        .73524E-06** at limit **
  13  Prefactor     2.9414        2.6145       -.55516E-07   -.15567E-02
  14  Prefactor     53.580        19.547        .25291E-07   -.21461    
  15  Prefactor     .47795E-06    34.663       -.24770E-06** at limit **
  16  norm           .0000        .11821       -.33121E-07** at limit **
  17  norm          4.3513        4.2534        .27284E-07    .30237E-03
  18  Prefactor     13.449        10.663        .32968E-07    .13808E-01
  19  Prefactor     14.370        9.1621        .78089E-07   -.13702    
  20  Prefactor     .13878E-08    3.5767       -.66800E-07** at limit **
  21  Normalizat    .30337        .22296       -.99432E-05   -.14435E-03
  22  Prefactor     1.8896        .23495        .17977E-05   -.19425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 9.08162e-08
  Prefactor  = 7.58075
  Prefactor  = 2.25893
  Prefactor  = 1.27254e-06
  Prefactor  = 6.01708
  norm       = 30.7419
  Prefactor  = 9.10383e-09
  Prefactor  = 3.61889
  Prefactor  = 1.09474e-05
  Prefactor  = 1.88005
  Prefactor  = 1.87128e-07
  Prefactor  = 2.94138
  Prefactor  = 53.5802
  Prefactor  = 4.77951e-07
  norm       = 0
  norm       = 4.35126
  Prefactor  = 13.4494
  Prefactor  = 14.3705
  Prefactor  = 1.38778e-09
  Normalizat = 0.30337
  Prefactor  = 1.88961
 **********
 **   18 **HESSE 
 **********

 FCN=   7175.271     FROM HESSE     STATUS=OK           396 CALLS     1949 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    5.5292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .90816E-07    17.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5808        11.873        .36472E-03   -1.5653    
   4  Prefactor     2.2589        1.6323        .68331E-03   -1.5678    
   5  Prefactor     .12725E-05    118.39        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0171        12.283        .41347E-03   -1.5659    
   7  norm          30.742        3.6630        .18040E-03   -1.5597    
   8  Prefactor     .91038E-08    6.1846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6189        4.0534        .53219E-03   -1.5670    
  10  Prefactor     .10947E-04    82.576        .89313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8801        2.7958        .75847E-03   -1.5681    
  12  Prefactor     .18713E-06    2.4631        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9414        2.6590        .59225E-03   -1.5674    
  14  Prefactor     53.580        36.615        .13601E-03   -1.5562    
  15  Prefactor     .47795E-06    34.454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .74356E-01    .12246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3513        4.2752        .48278E-03   -1.5666    
  18  Prefactor     13.449        10.726        .27273E-03   -1.5635    
  19  Prefactor     14.370        15.480        .26324E-03   -1.5632    
  20  Prefactor     .13878E-08    3.5767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .30337        .23647        .11719       -1.2264    
  22  Prefactor     1.8896        .23718        .53544E-01   -.67139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64898e-06
Minuit parameter uncertainties:
  1  5.96564e-05
  2  0.0025012
  3  11.873
  4  1.63234
  5  0.0245489
  6  12.2835
  7  3.66296
  8  0.000474835
  9  4.05343
  10  0.0601338
  11  2.7958
  12  0.00135786
  13  2.65903
  14  36.6153
  15  0.00811589
  16  1.10396e-06
  17  4.27517
  18  10.7259
  19  15.4798
  20  0.00013971
  21  0.23725
  22  0.237324
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.880e+00  2.796e+00  0.000e+00  1.000e+06 ( 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.890e+00  2.373e-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:  3.034e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/115726/likelihoodResults_683337601_683596801_4FGL_J1209.8+1810_daily_bin1713.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) = 7175.2525374
delta logL = 0.0185745198542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7175.24459609
delta logL = 0.0265158362763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5462       1.0000          .0000       .10000E+07
     2 'Index     '    2.6534       1.0000          .0000       10.000    
     3 'Normalizat'    .29690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8937       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=   7175.245     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5425        47.811        .85664E-03    .79904E-02
   2  Index         2.6552        6.3194        .23030        .58024E-04
   3  Normalizat    .29664        .46397E-01    .11851        .70000E-04
   4  Prefactor     1.8942        .47676E-01    .53494E-01   -.11962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54246
  Index      = 2.65518
  Normalizat = 0.296643
  Prefactor  = 1.89419
 **********
 **   18 **HESSE 
 **********

 FCN=   7175.245     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5425        3.1130        .13257E-04   -1.5683    
   2  Index         2.6552        1.2407        .95968E-02   -.48812    
   3  Normalizat    .29664        .22262        .52469E-03   -1.2304    
   4  Prefactor     1.8942        .23451        .23644E-03   -.67022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40463e-09
Minuit parameter uncertainties:
  1  3.11299
  2  1.25763
  3  0.223283
  4  0.234651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115726': 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) = 7175.24459234
delta logL = 0.0265195849724

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.542e+00  3.113e+00  0.000e+00  1.000e+06 ( 1.000e-12)
285        Index:  2.655e+00  1.258e+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.894e+00  2.347e-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:  2.966e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2022-09-16 16:47:21.258322', job_id='115726', GAL2='1.89', fit_tolerance='1e-08', EG2='0.30', EG='0.30', time_epoch_completed='1663372041.26', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='1.89', dlogl='2.65e-02', ts2='0.72', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1713' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:47:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 115726: <4FGL_J1209.8+1810_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1713> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 16:35:17 2022
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:35:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:35:33 2022
Terminated at Fri Sep 16 16:47:22 2022
Results reported at Fri Sep 16 16:47:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1713 182.466 18.1776 683337601 683596801 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 :                                   520.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            725 sec.

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

