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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1709
RA = 332.474, Dec = -50.4702
tmin = 682300801, tmax = 682560001
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='240589', job_status='RUN', time_executed='2022-09-16 23:44:18.206334', time_epoch_executed='1663397058.21' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240589

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240589/ft1_4FGL_J2209.8-5028_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240589/ft1_4FGL_J2209.8-5028_daily_bin1709.fits outfile=/scratch/kocevski/240589/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1709.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=682300801.0 tmax=682560001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.83
user 3.50
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.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/240589/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/240589/ltcube_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.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/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits
.....................!
real 15.20
user 14.72
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/240589/ltcube_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.fits outfile=/scratch/kocevski/240589/expmap_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.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/240589/ltcube_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.fits
.....................!
real 191.90
user 185.59
sys 5.85

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits scfile=/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits outfile=/scratch/kocevski/240589/cmap_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.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=332.474 yref=-50.4702 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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits scfile=/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits outfile=/scratch/kocevski/240589/cmap_HighResolution_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.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=332.474 yref=-50.4702 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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240589/Model_4FGL_J2209.8-5028_daily_bin1709.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/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits.....................!
real 46.36
user 44.96
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits', '/scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits', expMap='/scratch/kocevski/240589/expmap_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.fits', expCube='/scratch/kocevski/240589/ltcube_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/240589/Model_4FGL_J2209.8-5028_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/240589/ft1_filtered_4FGL_J2209.8-5028_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/240589/ft2_4FGL_J2209.8-5028_daily_bin1709.fits
Exposure map: /scratch/kocevski/240589/expmap_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.fits
Exposure cube: /scratch/kocevski/240589/ltcube_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/240589/Model_4FGL_J2209.8-5028_daily_bin1709.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) = 5922.61016531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34514E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.6189       1.0000          .0000       .10000E+07
     3 'Prefactor '    .39759E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.453       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.2391       1.0000          .0000       .10000E+07
     6 'norm      '    .16733E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    24.045       1.0000          .0000       .10000E+07
     8 'Prefactor '    .82054E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.7518       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.455       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37278E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .59037E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .41038E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .15858E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.9015       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22074E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.6981       1.0000          .0000       .10000E+07
    18 'Prefactor '    32.227       1.0000          .0000       .10000E+07
    19 'Prefactor '    10.552       1.0000          .0000       .10000E+07
    20 'norm      '    .79123E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    .84127       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5922.562     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1424 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93092E-06    25.372        .41831E-05** at limit **
   2  Prefactor     5.7117        7.3443       -.78200E-06   -.60164E-03
   3  Prefactor     .16376E-07    10.763        .25492E-05** at limit **
   4  Prefactor     16.338        2.9561       -.45858E-06    .20500E-02
   5  Prefactor     1.2388        3.1193       -.51050E-07   -.11811E-02
   6  norm          .31705E-05    12.827        .53064E-06** at limit **
   7  Prefactor     24.036        14.617       -.11566E-05   -.60996E-02
   8  Prefactor     .18681E-05    15.012        .19820E-05** at limit **
   9  Prefactor     9.7086        9.7527        .70483E-06   -.58058E-03
  10  Prefactor     15.566        5.9850       -.22457E-06   -.64393E-03
  11  Prefactor     .30365E-07    275.96        .12305E-04** at limit **
  12  norm          .27756E-09    3.0169        .88490E-06** at limit **
  13  Prefactor     .14988E-08    4.4119       -.53530E-07** at limit **
  14  Prefactor      .0000        32.366        .29721E-05** at limit **
  15  Prefactor     3.6513        7.7323       -.54163E-06   -.34377E-03
  16  Prefactor     .23703E-07    41.340       -.86719E-05** at limit **
  17  Prefactor     5.6863        6.0791        .60479E-06    .45689E-03
  18  Prefactor     33.997        40.088       -.90087E-06    .72798E-02
  19  Prefactor     10.718        16.972       -.97608E-06   -.10357E-01
  20  norm          .12379E-07    8.8874        .19036E-05** at limit **
  21  Normalizat    .84194        .24532        .24108E-04   -.12088E-03
  22  Prefactor     1.2407        .18917       -.27006E-04   -.11382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.30922e-07
  Prefactor  = 5.71172
  Prefactor  = 1.63758e-08
  Prefactor  = 16.3377
  Prefactor  = 1.23884
  norm       = 3.17052e-06
  Prefactor  = 24.0358
  Prefactor  = 1.86812e-06
  Prefactor  = 9.70865
  Prefactor  = 15.5658
  Prefactor  = 3.03646e-08
  norm       = 2.77556e-10
  Prefactor  = 1.4988e-09
  Prefactor  = 0
  Prefactor  = 3.65131
  Prefactor  = 2.37033e-08
  Prefactor  = 5.68635
  Prefactor  = 33.9965
  Prefactor  = 10.7183
  norm       = 1.2379e-08
  Normalizat = 0.841941
  Prefactor  = 1.24074
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.562     FROM HESSE     STATUS=OK           394 CALLS     1818 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93092E-06    29.067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7117        7.3738        .42356E-03   -1.5660    
   3  Prefactor     .16376E-07    10.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.338        30.005        .24665E-03   -1.5627    
   5  Prefactor     1.2388        3.1745        .10074E-02   -1.5686    
   6  norm          .31705E-05    3.6399        .53045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.036        14.672        .20398E-03   -1.5610    
   8  Prefactor     .18681E-05    22.484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7086        9.7478        .32065E-03   -1.5646    
  10  Prefactor     15.566        5.9901        .25450E-03   -1.5629    
  11  Prefactor     .30365E-07    276.14        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .27756E-09    3.0242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14988E-08    4.4030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        32.152        .17326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6513        7.7148        .51056E-03   -1.5670    
  16  Prefactor     .23703E-07    41.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6863        6.0815        .42056E-03   -1.5660    
  18  Prefactor     33.997        40.362        .17618E-03   -1.5591    
  19  Prefactor     10.718        17.091        .30820E-03   -1.5642    
  20  norm          .12379E-07    8.9356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84194        .21456        .70030E-01   -.98531    
  22  Prefactor     1.2407        .16599        .33719E-01   -.85087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54658e-07
Minuit parameter uncertainties:
  1  0.0104038
  2  7.37385
  3  0.000841764
  4  30.0052
  5  3.17446
  6  0.0067942
  7  14.6725
  8  0.0129619
  9  9.74779
  10  5.99011
  11  0.00579269
  12  5.52273e-05
  13  0.000161112
  14  1.10286e-05
  15  7.71478
  16  0.00198788
  17  6.08153
  18  40.362
  19  17.0913
  20  0.000665859
  21  0.214779
  22  0.166059
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.036e-08  5.793e-03  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.241e+00  1.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.419e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240589/likelihoodResults_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.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) = 5922.56344035
delta logL = -0.00175610994029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5922.52772843
delta logL = 0.0339558125233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8333       1.0000          .0000       .10000E+07
     2 'Index     '    3.6502       1.0000          .0000       10.000    
     3 'Normalizat'    .82712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5922.528     FROM MIGRAD    STATUS=FAILED        80 CALLS      260 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8352        2102.3        .24156E-04    .49262E-02
   2  Index         3.6498        8.1273        .10489E-01    .26215E-03
   3  Normalizat    .82712        .19100        .31227E-03    .72629E-03
   4  Prefactor     1.2468        .15399        .21034E-03    .72713E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5922.528     FROM SIMPLEX   STATUS=UNCHANGED    101 CALLS      361 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8352        2102.3        .59843E-04    .49262E-02
   2  Index         3.6498        8.1273        .19603E-02    .26215E-03
   3  Normalizat    .82712        .19100        .16163E-03    .72629E-03
   4  Prefactor     1.2468        .15399        .41134E-04    .72713E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5922.528     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      389 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8377        51.992        .96622E-06    .88624E-02
   2  Index         3.6494        3.2027        .41957E-03    .17335E-03
   3  Normalizat    .82712        .23484        .62454E-04    .78132E-03
   4  Prefactor     1.2468        .18719        .42069E-04    .78127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83767
  Index      = 3.64942
  Normalizat = 0.827117
  Prefactor  = 1.24675
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.528     FROM HESSE     STATUS=OK            23 CALLS      412 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8377        49.521        .37370E-06   -1.5674    
   2  Index         3.6494        3.1396        .83913E-04   -.27351    
   3  Normalizat    .82712        .23489        .12491E-04   -.99071    
   4  Prefactor     1.2468        .18722        .84137E-05   -.84904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68935e-09
Minuit parameter uncertainties:
  1  23.7087
  2  3.42013
  3  0.235175
  4  0.187319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240589': 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) = 5922.5277284
delta logL = 0.0339558458927

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.838e+00  2.371e+01  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  3.649e+00  3.420e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.247e+00  1.873e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.271e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

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/240589/cmap_HighResolution_682300801_682560001_4FGL_J2209.8-5028_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2022-09-16 23:53:41.778745', job_id='240589', GAL2='1.25', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1663397621.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.40e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1709' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:53:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 240589: <4FGL_J2209.8-5028_daily_bin1709> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1709> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 23:40:32 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:41:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:41:37 2022
Terminated at Fri Sep 16 23:53:42 2022
Results reported at Fri Sep 16 23:53:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1709 332.474 -50.4702 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            790 sec.

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

