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


Performing analysis on: 4FGL_J1209.8+1810_weekly_bin759
RA = 182.466, Dec = 18.1776
tmin = 698025601, tmax = 698630401
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='589696', job_status='RUN', time_executed='2023-02-21 03:31:52.534413', time_epoch_executed='1676979112.53' WHERE source_name='4FGL J1209.8+1810' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589696

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589696/ft1_4FGL_J1209.8+1810_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589696/ft2_4FGL_J1209.8+1810_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589696/ft1_4FGL_J1209.8+1810_weekly_bin759.fits outfile=/scratch/kocevski/589696/ft1_filteredMKT_4FGL_J1209.8+1810_weekly_bin759.fits ra=182.466 dec=18.1776 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.59
user 8.21
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589696/ft2_4FGL_J1209.8+1810_weekly_bin759.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/589696/ft1_filteredMKT_4FGL_J1209.8+1810_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/589696/ft1_filtered_4FGL_J1209.8+1810_weekly_bin759.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.55
user 0.38
sys 0.14

Number of photons that the gtmktime cut: 730

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589696/ft1_filtered_4FGL_J1209.8+1810_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/589696/ft2_4FGL_J1209.8+1810_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/589696/ltcube_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.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/589696/ft2_4FGL_J1209.8+1810_weekly_bin759.fits
.....................!
real 27.74
user 27.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589696/ft1_filtered_4FGL_J1209.8+1810_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589696/ft2_4FGL_J1209.8+1810_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/589696/ltcube_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.fits outfile=/scratch/kocevski/589696/expmap_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.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/589696/ltcube_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.fits
.....................!
real 190.97
user 185.48
sys 5.02

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/589696/ft1_filtered_4FGL_J1209.8+1810_weekly_bin759.fits scfile=/scratch/kocevski/589696/ft2_4FGL_J1209.8+1810_weekly_bin759.fits outfile=/scratch/kocevski/589696/cmap_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589696/ft1_filtered_4FGL_J1209.8+1810_weekly_bin759.fits scfile=/scratch/kocevski/589696/ft2_4FGL_J1209.8+1810_weekly_bin759.fits outfile=/scratch/kocevski/589696/cmap_HighResolution_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=182.466 yref=18.1776 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3283       1.0000          .0000       .10000E+07
     2 'Prefactor '    .19788E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19629E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0254       1.0000          .0000       .10000E+07
     5 'Prefactor '    47.694       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.4121       1.0000          .0000       .10000E+07
     7 'norm      '    51.189       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16672E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .76917       1.0000          .0000       .10000E+07
    10 'Prefactor '    .47173E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .35691E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1301       1.0000          .0000       .10000E+07
    13 'Prefactor '    .95710       1.0000          .0000       .10000E+07
    14 'Prefactor '    17.288       1.0000          .0000       .10000E+07
    15 'Prefactor '    .69004E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .65874E-01   1.0000          .0000       .10000E+07
    17 'norm      '    13.432       1.0000          .0000       .10000E+07
    18 'Prefactor '    35.750       1.0000          .0000       .10000E+07
    19 'Prefactor '    15.638       1.0000          .0000       .10000E+07
    20 'Prefactor '    .31422E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    .83546       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1134       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=   7676.369     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1828 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3249        9.6908       -.99566E-07    .14289E-01
   2  Prefactor     .11102E-09    16.107       -.82037E-06** at limit **
   3  Prefactor      .0000        3.9617       -.39620E-08** at limit **
   4  Prefactor     1.0423        2.1731        .16761E-06    .17432E-03
   5  Prefactor     44.324        115.63        .61609E-05    .33855E-02
   6  Prefactor     6.4442        2.2990       -.71671E-07    .78026E-02
   7  norm          51.181        4.2484        .29929E-07    .49242E-03
   8  Prefactor     .10547E-08    7.8085       -.28417E-06** at limit **
   9  Prefactor     .74871        4.5401       -.43701E-06    .77114E-03
  10  Prefactor      .0000        29.254       -.99775E-07** at limit **
  11  Prefactor      .0000        2.2710        .15334E-06** at limit **
  12  Prefactor     2.1296        2.2481        .14975E-06    .91849E-03
  13  Prefactor     .95703        1.3279       -.21039E-08    .87762E-03
  14  Prefactor     17.292        7.9624        .60490E-06   -.18096    
  15  Prefactor      .0000        3.1844        .26678E-06** at limit **
  16  norm          .65766E-01    .16246       -.27745E-07** at limit **
  17  norm          13.494        5.5229       -.11058E-06    .33119E-02
  18  Prefactor     35.749        12.679        .65368E-06    .14460    
  19  Prefactor     15.651        2.0044       -.10140E-06   -.65278E-01
  20  Prefactor     .59397E-08    10.670        .25811E-05** at limit **
  21  Normalizat    .83533        .21260        .25144E-05   -.87462E-07
  22  Prefactor     1.1136        .20969       -.46422E-05    .64548E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32489
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 1.04227
  Prefactor  = 44.3239
  Prefactor  = 6.44422
  norm       = 51.1806
  Prefactor  = 1.05471e-09
  Prefactor  = 0.748709
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.12955
  Prefactor  = 0.957026
  Prefactor  = 17.2925
  Prefactor  = 0
  norm       = 0.0657662
  norm       = 13.4942
  Prefactor  = 35.7492
  Prefactor  = 15.6511
  Prefactor  = 5.93969e-09
  Normalizat = 0.835331
  Prefactor  = 1.11362
 **********
 **   18 **HESSE 
 **********

 FCN=   7676.369     FROM HESSE     STATUS=OK           394 CALLS     2222 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3249        9.8427        .37027E-03   -1.5654    
   2  Prefactor     .11102E-09    16.103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        3.9548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0423        2.2144        .12637E-02   -1.5688    
   5  Prefactor     44.324        115.78        .14481E-03   -1.5575    
   6  Prefactor     6.4442        9.2685        .39613E-03   -1.5657    
   7  norm          51.181        4.2514        .13978E-03   -1.5565    
   8  Prefactor     .10547E-08    7.7958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .74871        4.6158        .55262E-03   -1.5691    
  10  Prefactor      .0000        29.254        .15655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.2488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1296        2.2657        .70615E-03   -1.5679    
  13  Prefactor     .95703        1.3383        .42240E-03   -1.5688    
  14  Prefactor     17.292        25.429        .24061E-03   -1.5625    
  15  Prefactor      .0000        3.1841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65766E-01    .14713        .12044E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.494        5.5382        .27304E-03   -1.5634    
  18  Prefactor     35.749        13.522        .16727E-03   -1.5588    
  19  Prefactor     15.651        10.320        .25301E-03   -1.5629    
  20  Prefactor     .59397E-08    10.619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83533        .17763        .69214E-01   -.98771    
  22  Prefactor     1.1136        .17392        .61227E-01   -.89032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37433e-06
Minuit parameter uncertainties:
  1  9.8427
  2  8.51076e-05
  3  1.12076e-05
  4  2.21445
  5  115.789
  6  9.26849
  7  4.25144
  8  0.000181751
  9  3.71799
  10  7.99194e-06
  11  4.14657e-06
  12  2.2657
  13  1.33834
  14  25.4287
  15  1.00712e-05
  16  0.147132
  17  5.53823
  18  13.5217
  19  10.3199
  20  0.000501942
  21  0.177758
  22  0.17401
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  0.000e+00  4.147e-06  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.114e+00  1.740e-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.353e-01  1.778e-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: 7.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589696/likelihoodResults_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.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) = 7676.37161506
delta logL = -0.002190354101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7676.36942499
delta logL = -2.84496309177e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70804E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5768       1.0000          .0000       10.000    
     3 'Normalizat'    .83531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1137       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7676.369     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      245 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5397        .42118E-03** at limit **
   2  Index         2.8169        1.2858        .23527E-04     .0000    
   3  Normalizat    .83533        1.1732       -.24887E-04    .21430E-04
   4  Prefactor     1.1136        1.1402        .19038E-04   -.90756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.81693
  Normalizat = 0.835332
  Prefactor  = 1.11362
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7676.369     FROM HESSE     STATUS=FAILED         9 CALLS      254 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .89880        2.0092        .23527E-04   -.45183    
   3  Normalizat    .83533        1.1732       -.24887E-04   -.98771    
   4  Prefactor     1.1136        1.1402        .19038E-04   -.89032    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.41574e-11
Minuit parameter uncertainties:
  1  1.64426e-06
  2  1.30397
  3  1.21202
  4  1.16677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589696': 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): 101
logL (Free Index) = 7676.3694247
delta logL = -2.8194335755e-11

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  0.000e+00  1.644e-06  0.000e+00  1.000e+06 ( 1.000e-12)
285        Index:  2.817e+00  1.304e+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.114e+00  1.167e+00  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.353e-01  1.212e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/589696/cmap_HighResolution_698025601_698630401_4FGL_J1209.8+1810_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2023-02-21 03:44:22.963258', job_id='589696', GAL2='1.11', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1676979862.96', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-2.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='759' AND source_name='4FGL J1209.8+1810' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:44:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 589696: <4FGL_J1209.8+1810_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1209.8+1810_weekly_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 03:30:21 2023
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:30:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:30:22 2023
Terminated at Tue Feb 21 03:44:23 2023
Results reported at Tue Feb 21 03:44:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_weekly_bin759 182.466 18.1776 698025601 698630401 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

