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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin949
RA = 332.474, Dec = -50.4702
tmin = 485308801, tmax = 485568001
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='210498', job_status='RUN', time_executed='2021-09-28 06:26:05.719884', time_epoch_executed='1632835565.72' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210498

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210498/ft1_4FGL_J2209.8-5028_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210498/ft1_4FGL_J2209.8-5028_daily_bin949.fits outfile=/scratch/kocevski/210498/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin949.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.69
user 5.40
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.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/210498/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin949.fits evtable="EVENTS" outfile="/scratch/kocevski/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/210498/ltcube_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.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/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits
.....................!
real 11.78
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/210498/ltcube_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.fits outfile=/scratch/kocevski/210498/expmap_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.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/210498/ltcube_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.fits
.....................!
real 190.60
user 185.59
sys 4.59

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/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits scfile=/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits outfile=/scratch/kocevski/210498/cmap_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits scfile=/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits outfile=/scratch/kocevski/210498/cmap_HighResolution_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210498/Model_4FGL_J2209.8-5028_daily_bin949.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/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits.....................!
real 56.64
user 55.20
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits', '/scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits', expMap='/scratch/kocevski/210498/expmap_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.fits', expCube='/scratch/kocevski/210498/ltcube_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/210498/Model_4FGL_J2209.8-5028_daily_bin949.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/210498/ft1_filtered_4FGL_J2209.8-5028_daily_bin949.fits
Spacecraft file(s): /scratch/kocevski/210498/ft2_4FGL_J2209.8-5028_daily_bin949.fits
Exposure map: /scratch/kocevski/210498/expmap_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.fits
Exposure cube: /scratch/kocevski/210498/ltcube_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/210498/Model_4FGL_J2209.8-5028_daily_bin949.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) = 7509.25339711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.140       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.960       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53316       1.0000         .10000E-03   10000.    
     7 'norm      '    18.398       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .86569       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.357       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3719       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9004       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.5581       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99072       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0491       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=   7509.220     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2929 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.138        17.263        .10104E-06   -.11875E-04
   2  Prefactor     34.948        32.892       -.17043E-06   -.31688E-04
   3  Prefactor     9.1241        7.2080        .66198E-06    .25831E-03
   4  Prefactor     .10000E-03    14.772       -.25756E-08** at limit **
   5  Prefactor     33.798        21.563        .22156E-07   -.20153E-04
   6  Prefactor     .52994        3.9465        .25901E-05   -.32866E-03
   7  norm          18.396        5.6786       -.62291E-07   -.16003E-03
   8  Prefactor     6.2745        13.428        .31814E-06   -.22995E-04
   9  Prefactor     18.017        35.662       -.21211E-05   -.10429E-03
  10  Prefactor     .10000E-03    3.1878       -.14724E-06** at limit **
  11  Prefactor     7.6470        4.7943        .11457E-06   -.97349E-04
  12  Prefactor     .10000E-03    38.277       -.47392E-06** at limit **
  13  norm          .10000E-03    2.1053       -.11567E-07** at limit **
  14  Prefactor     .86649        3.0071        .12778E-05   -.16943E-03
  15  Prefactor     .10000E-03    22.135       -.34777E-07** at limit **
  16  Prefactor     9.2416        5.7610       -.39237E-06   -.41909E-03
  17  Prefactor     5.4943        45.702       -.15663E-05   -.58991E-04
  18  Prefactor     26.386        16.802        .23495E-06   -.17393E-04
  19  Prefactor     .10000E-03    55.632        .90419E-07** at limit **
  20  Prefactor     1.3726        3.3844        .50635E-06   -.89487E-04
  21  Prefactor     2.8583        55.950        .57403E-05    .60019E-04
  22  Prefactor     .10000E-03    7.0206       -.63527E-08** at limit **
  23  norm          8.5580        6.3046       -.15470E-06   -.69507E-04
  24  Normalizat    .99063        .19066       -.18477E-07   -.18610E-03
  25  Prefactor     1.0492        .14475       -.85895E-06   -.13438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1381
  Prefactor  = 34.9485
  Prefactor  = 9.12407
  Prefactor  = 0.0001
  Prefactor  = 33.798
  Prefactor  = 0.529943
  norm       = 18.3963
  Prefactor  = 6.27451
  Prefactor  = 18.017
  Prefactor  = 0.0001
  Prefactor  = 7.64704
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.866487
  Prefactor  = 0.0001
  Prefactor  = 9.24158
  Prefactor  = 5.49427
  Prefactor  = 26.3856
  Prefactor  = 0.0001
  Prefactor  = 1.37261
  Prefactor  = 2.85835
  Prefactor  = 0.0001
  norm       = 8.55805
  Normalizat = 0.99063
  Prefactor  = 1.04922
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.220     FROM HESSE     STATUS=OK           433 CALLS     3362 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.138        17.261        .10293E-03   -1.4930    
   2  Prefactor     34.948        32.927        .67776E-04   -1.4525    
   3  Prefactor     9.1241        7.3016        .13267E-03   -1.5104    
   4  Prefactor     .10000E-03    14.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.798        21.559        .68925E-04   -1.4545    
   6  Prefactor     .52994        4.2340        .33398E-03   -1.5562    
   7  norm          18.396        5.6789        .93376E-04   -1.4850    
   8  Prefactor     6.2745        13.419        .16022E-03   -1.5207    
   9  Prefactor     18.017        36.058        .94259E-04   -1.4859    
  10  Prefactor     .10000E-03    3.2000        .15097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6470        4.8029        .14072E-03   -1.5155    
  12  Prefactor     .10000E-03    38.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1071        .12279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .86649        3.0313        .26607E-03   -1.5522    
  15  Prefactor     .10000E-03    22.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.2416        5.7867        .13186E-03   -1.5100    
  17  Prefactor     5.4943        45.012        .16992E-03   -1.5239    
  18  Prefactor     26.386        16.597        .78031E-04   -1.4680    
  19  Prefactor     .10000E-03    55.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3726        3.3294        .24421E-03   -1.5474    
  21  Prefactor     2.8583        58.500        .23859E-03   -1.5370    
  22  Prefactor     .10000E-03    7.0450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.5580        6.3093        .13703E-03   -1.5123    
  24  Normalizat    .99063        .21580        .28552E-03   -.93345    
  25  Prefactor     1.0492        .16374        .22355E-03   -.91106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22396e-10
Minuit parameter uncertainties:
  1  17.267
  2  32.944
  3  7.30231
  4  5.94403e-06
  5  21.5642
  6  2.99585
  7  5.6791
  8  13.4257
  9  36.1018
  10  6.46391e-06
  11  4.80313
  12  4.86828e-05
  13  4.59548e-07
  14  3.03184
  15  9.76178e-06
  16  5.78702
  17  31.4839
  18  16.6
  19  2.06732e-05
  20  3.32982
  21  25.8908
  22  1.25923e-06
  23  6.3098
  24  0.215987
  25  0.163815
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.868e-05  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.049e+00  1.638e-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:  9.906e-01  2.160e-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: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210498/likelihoodResults_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.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) = 7509.21990761
delta logL = -0.000124269214211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7509.21978378
delta logL = -4.43576027465e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6762       1.0000          .0000       10.000    
     3 'Normalizat'    .99063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0492       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=   7509.220     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10162E-03    180.78        .18142E-02** at limit **
   2  Index         2.6177        7.2166        .50000        .78953E-05
   3  Normalizat    .99063        .10982E-01    .28551E-03   -.46986E-05
   4  Prefactor     1.0492        .88681E-02    .22355E-03    .82893E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101623
  Index      = 2.61767
  Normalizat = 0.990631
  Prefactor  = 1.04922
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.220     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10162E-03    771.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6177        8.5002        .50000       -.49663    
   3  Normalizat    .99063        .23414E-01    .11421E-04   -.93345    
   4  Prefactor     1.0492        .18908E-01    .89421E-05   -.91106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12655e-09
Minuit parameter uncertainties:
  1  0.0716996
  2  683.157
  3  0.0234144
  4  0.0189079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210498': 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): 102
logL (Free Index) = 7509.2197837
delta logL = -3.56718373951e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.016e-04  7.170e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.618e+00  6.832e+02  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.049e+00  1.891e-02  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:  9.906e-01  2.341e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/210498/cmap_HighResolution_485308801_485568001_4FGL_J2209.8-5028_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-28 06:40:19.384042', job_id='210498', GAL2='1.05', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632836419.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-3.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='949' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 210498: <4FGL_J2209.8-5028_daily_bin949> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin949> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:18 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:25:20 2021
Terminated at Tue Sep 28 06:40:19 2021
Results reported at Tue Sep 28 06:40:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin949 332.474 -50.4702 485308801 485568001 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 :                                   819.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

