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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1689
RA = 332.474, Dec = -50.4702
tmin = 677116801, tmax = 677376001
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='994130', job_status='RUN', time_executed='2022-06-20 01:03:52.351384', time_epoch_executed='1655712232.35' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994130/ft1_4FGL_J2209.8-5028_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994130/ft1_4FGL_J2209.8-5028_daily_bin1689.fits outfile=/scratch/kocevski/994130/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1689.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=677116801.0 tmax=677376001.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.75
user 2.54
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.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/994130/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1689.fits evtable="EVENTS" outfile="/scratch/kocevski/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.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.50
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 580

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/994130/ltcube_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.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/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits
.....................!
real 16.60
user 16.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/994130/ltcube_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.fits outfile=/scratch/kocevski/994130/expmap_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.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/994130/ltcube_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.fits
.....................!
real 193.23
user 187.13
sys 5.58

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/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits scfile=/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits outfile=/scratch/kocevski/994130/cmap_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits scfile=/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits outfile=/scratch/kocevski/994130/cmap_HighResolution_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994130/Model_4FGL_J2209.8-5028_daily_bin1689.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/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits....................!
real 49.61
user 47.99
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits', '/scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits', expMap='/scratch/kocevski/994130/expmap_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.fits', expCube='/scratch/kocevski/994130/ltcube_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994130/Model_4FGL_J2209.8-5028_daily_bin1689.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  1.000e-04  1.000e+04 ( 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/994130/ft1_filtered_4FGL_J2209.8-5028_daily_bin1689.fits
Spacecraft file(s): /scratch/kocevski/994130/ft2_4FGL_J2209.8-5028_daily_bin1689.fits
Exposure map: /scratch/kocevski/994130/expmap_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.fits
Exposure cube: /scratch/kocevski/994130/ltcube_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994130/Model_4FGL_J2209.8-5028_daily_bin1689.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) = 6253.58375612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.195       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1261       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12718E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.635       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4323       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.004       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2222       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0826       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.

 FCN=   6253.579     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2881 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.995        44.750        .19741E-06   -.15213E-04
   2  Prefactor     .10000E-03    20.571        .18813E-06** at limit **
   3  Prefactor     18.193        13.638       -.59366E-07   -.62723E-04
   4  Prefactor     .10000E-03    17.478       -.27161E-06** at limit **
   5  Prefactor     67.293        36.030        .13465E-06   -.33325E-04
   6  Prefactor     .10000E-03    4.1692        .19912E-06** at limit **
   7  norm          1.1281        5.9228        .28490E-05   -.41023E-04
   8  Prefactor     .10000E-03    5.4534       -.69104E-07** at limit **
   9  Prefactor     33.934        55.925        .10465E-05    .40503E-04
  10  Prefactor     .10000E-03    15.072        .29239E-05** at limit **
  11  Prefactor     1.5022        4.0033        .11588E-05   -.84417E-04
  12  Prefactor     54.673        96.045        .12009E-05    .71126E-04
  13  norm          1.7817        6.7976        .12249E-05   -.34698E-04
  14  Prefactor     2.4323        3.9193        .49218E-06   -.42876E-04
  15  Prefactor     .10000E-03    17.844       -.18789E-06** at limit **
  16  Prefactor     .10000E-03    3.0001        .59397E-07** at limit **
  17  Prefactor     .10000E-03    16.670       -.21184E-07** at limit **
  18  Prefactor     .10000E-03    6.4626        .38161E-08** at limit **
  19  Prefactor     .10000E-03    80.189       -.43457E-07** at limit **
  20  Prefactor     .10000E-03    8.7196       -.12076E-06** at limit **
  21  Prefactor     24.001        27.543        .71943E-07   -.28467E-04
  22  Prefactor     .10000E-03    4.8149       -.44395E-08** at limit **
  23  norm          .10000E-03    2.9061       -.45914E-08** at limit **
  24  Normalizat    1.2223        .21298       -.15758E-05   -.96926E-04
  25  Prefactor     1.0825        .16939        .19814E-06   -.19347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.9945
  Prefactor  = 0.0001
  Prefactor  = 18.1929
  Prefactor  = 0.0001
  Prefactor  = 67.2932
  Prefactor  = 0.0001
  norm       = 1.12806
  Prefactor  = 0.0001
  Prefactor  = 33.9336
  Prefactor  = 0.0001
  Prefactor  = 1.50216
  Prefactor  = 54.6726
  norm       = 1.78165
  Prefactor  = 2.43231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0007
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.22229
  Prefactor  = 1.08254
 **********
 **   18 **HESSE 
 **********

 FCN=   6253.579     FROM HESSE     STATUS=OK           413 CALLS     3294 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.995        44.760        .49403E-04   -1.4081    
   2  Prefactor     .10000E-03    20.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.193        13.620        .93896E-04   -1.4855    
   4  Prefactor     .10000E-03    17.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.293        36.030        .48927E-04   -1.4065    
   6  Prefactor     .10000E-03    4.2580        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1281        6.0281        .36967E-03   -1.5496    
   8  Prefactor     .10000E-03    5.4587        .18037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.934        55.939        .68806E-04   -1.4542    
  10  Prefactor     .10000E-03    15.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5022        3.9737        .24313E-03   -1.5463    
  12  Prefactor     54.673        95.921        .54267E-04   -1.4228    
  13  norm          1.7817        6.7647        .31350E-03   -1.5441    
  14  Prefactor     2.4323        3.9152        .18870E-03   -1.5396    
  15  Prefactor     .10000E-03    17.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0201        .13372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    80.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.001        27.554        .40879E-03   -1.4728    
  22  Prefactor     .10000E-03    4.8224        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9088        .13166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2223        .24639        .27386E-03   -.85917    
  25  Prefactor     1.0825        .19684        .23732E-03   -.90026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84949e-10
Minuit parameter uncertainties:
  1  44.7826
  2  9.15581e-05
  3  13.6227
  4  8.92225e-05
  5  36.0418
  6  2.56635e-07
  7  5.21598
  8  9.35898e-06
  9  56.0255
  10  1.93626e-05
  11  3.97437
  12  96.1931
  13  6.76764
  14  3.91563
  15  6.44006e-05
  16  2.18754e-06
  17  2.86825e-05
  18  1.01304e-05
  19  7.34186e-06
  20  6.00043e-06
  21  27.5683
  22  5.17118e-06
  23  5.2983e-07
  24  0.246628
  25  0.196972
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.467e+01  9.619e+01  1.000e-04  1.000e+04 ( 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.083e+00  1.970e-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:  1.222e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994130/likelihoodResults_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.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) = 6253.55615535
delta logL = 0.0224810028931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6253.54610702
delta logL = 0.0325293315127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.566       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6635       1.0000          .0000       10.000    
     3 'Normalizat'    1.2157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0855       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.

 FCN=   6253.546     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      253 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.586        111.73        .62935E-04    .12789E-03
   2  Index         2.6652        1.4138        .97424E-02    .10631E-03
   3  Normalizat    1.2153        .23810        .27452E-03    .87934E-03
   4  Prefactor     1.0857        .19459        .23702E-03    .10504E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.5857
  Index      = 2.66516
  Normalizat = 1.21535
  Prefactor  = 1.08569
 **********
 **   18 **HESSE 
 **********

 FCN=   6253.546     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.586        94.333        .12587E-04   -1.4433    
   2  Index         2.6652        1.1969        .38970E-03   -.48586    
   3  Normalizat    1.2153        .23789        .54905E-04   -.86130    
   4  Prefactor     1.0857        .19447        .47403E-04   -.89925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21013e-09
Minuit parameter uncertainties:
  1  94.6831
  2  1.21204
  3  0.2381
  4  0.194592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994130': 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) = 6253.54610409
delta logL = 0.0325322585886

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.059e+01  9.468e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.665e+00  1.212e+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.086e+00  1.946e-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:  1.215e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
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/994130/cmap_HighResolution_677116801_677376001_4FGL_J2209.8-5028_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2022-06-20 01:16:03.538231', job_id='994130', GAL2='1.09', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1655712963.54', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.25e-02', ts2='0.50', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1689' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:16:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 994130: <4FGL_J2209.8-5028_daily_bin1689> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 01:00:32 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 01:02:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 01:02:27 2022
Terminated at Mon Jun 20 01:16:04 2022
Results reported at Mon Jun 20 01:16:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1689 332.474 -50.4702 677116801 677376001 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 :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            932 sec.

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

