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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin598
RA = 332.474, Dec = -50.4702
tmin = 394329601, tmax = 394588801
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='207645', job_status='RUN', time_executed='2021-09-28 06:19:38.009499', time_epoch_executed='1632835178.01' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207645

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207645/ft1_4FGL_J2209.8-5028_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207645/ft2_4FGL_J2209.8-5028_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207645/ft1_4FGL_J2209.8-5028_daily_bin598.fits outfile=/scratch/kocevski/207645/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin598.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=394329601.0 tmax=394588801.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 7.42
user 7.14
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207645/ft2_4FGL_J2209.8-5028_daily_bin598.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/207645/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/207645/ft1_filtered_4FGL_J2209.8-5028_daily_bin598.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207645/ft1_filtered_4FGL_J2209.8-5028_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/207645/ft2_4FGL_J2209.8-5028_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/207645/ltcube_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.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/207645/ft2_4FGL_J2209.8-5028_daily_bin598.fits
.....................!
real 11.42
user 11.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207645/ft1_filtered_4FGL_J2209.8-5028_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/207645/ft2_4FGL_J2209.8-5028_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/207645/ltcube_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.fits outfile=/scratch/kocevski/207645/expmap_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.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/207645/ltcube_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.fits
.....................!
real 190.43
user 185.75
sys 4.37

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/207645/ft1_filtered_4FGL_J2209.8-5028_daily_bin598.fits scfile=/scratch/kocevski/207645/ft2_4FGL_J2209.8-5028_daily_bin598.fits outfile=/scratch/kocevski/207645/cmap_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207645/ft1_filtered_4FGL_J2209.8-5028_daily_bin598.fits scfile=/scratch/kocevski/207645/ft2_4FGL_J2209.8-5028_daily_bin598.fits outfile=/scratch/kocevski/207645/cmap_HighResolution_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.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/207645/ft1_filtered_4FGL_J2209.8-5028_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/207645/ft2_4FGL_J2209.8-5028_daily_bin598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207645/Model_4FGL_J2209.8-5028_daily_bin598.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/207645/ft1_filtered_4FGL_J2209.8-5028_daily_bin598.fits.....................!
real 43.50
user 42.29
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33003E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23913E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5858       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47138E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15711E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89826E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    143.53       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.777       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.307       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2134       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6841       1.0000         .10000E-03   10000.    
    23 'norm      '    19.862       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91705       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1667       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=   5515.579     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     2926 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2633        .18768E-06** at limit **
   2  Prefactor     .10079E-03    37.378        .83266E-05** at limit **
   3  Prefactor     3.9001        10.878        .82057E-06    .12846E-03
   4  Prefactor     .10000E-03    27.128        .62808E-06** at limit **
   5  Prefactor     .10000E-03    88.891        .46013E-05** at limit **
   6  Prefactor     9.5839        5.7098       -.39782E-06    .12994E-03
   7  norm          4.4791        3.6156       -.47906E-07   -.27344E-03
   8  Prefactor     .10002E-03    12.388       -.45744E-06** at limit **
   9  Prefactor     .10002E-03    110.11       -.13614E-06** at limit **
  10  Prefactor     .10001E-03    27.294       -.16196E-04** at limit **
  11  Prefactor     .10000E-03    3.3648        .48672E-06** at limit **
  12  Prefactor     143.28        118.32       -.26242E-05    .40042E-04
  13  norm          .10000E-03    2.5438        .30979E-07** at limit **
  14  Prefactor     .10000E-03    2.6417        .54110E-06** at limit **
  15  Prefactor     52.778        44.596        .49386E-07   -.26583E-04
  16  Prefactor     10.306        7.5319       -.11968E-06    .96691E-04
  17  Prefactor     .10000E-03    10.693        .30556E-06** at limit **
  18  Prefactor     6.2118        11.996        .13774E-06    .60205E-04
  19  Prefactor     .10000E-03    68.885       -.24248E-06** at limit **
  20  Prefactor     .10000E-03    3.2452        .18442E-06** at limit **
  21  Prefactor     .10000E-03    17.348        .18483E-06** at limit **
  22  Prefactor     5.6823        17.360        .40956E-06    .19927E-04
  23  norm          19.863        12.822        .36039E-07   -.89254E-05
  24  Normalizat    .91745        .21352        .15888E-05    .95584E-05
  25  Prefactor     1.1663        .16112       -.37407E-05   -.85712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100794
  Prefactor  = 3.90005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.58389
  norm       = 4.47911
  Prefactor  = 0.000100017
  Prefactor  = 0.00010002
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 143.285
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.7783
  Prefactor  = 10.3062
  Prefactor  = 0.0001
  Prefactor  = 6.21179
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68234
  norm       = 19.8628
  Normalizat = 0.917446
  Prefactor  = 1.16626
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.579     FROM HESSE     STATUS=OK           435 CALLS     3361 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10079E-03    33.878        .14160       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9001        10.874        .20440E-03   -1.5313    
   4  Prefactor     .10000E-03    27.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    92.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5839        5.7006        .12943E-03   -1.5089    
   7  norm          4.4791        3.6047        .12303E-03   -1.5285    
   8  Prefactor     .10002E-03    98.746        .50208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    110.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    28.503        .39146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5384        .26662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     143.28        118.65        .16815E-03   -1.3308    
  13  norm          .10000E-03    2.5449        .11569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6842        .11813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     52.778        44.623        .55209E-04   -1.4254    
  16  Prefactor     10.306        7.5507        .12480E-03   -1.5066    
  17  Prefactor     .10000E-03    10.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2118        11.995        .16105E-03   -1.5209    
  19  Prefactor     .10000E-03    68.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2511        .13069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6823        17.361        .16848E-03   -1.5231    
  23  norm          19.863        12.817        .89871E-04   -1.4816    
  24  Normalizat    .91745        .24317        .29461E-03   -.95850    
  25  Prefactor     1.1663        .18999        .21219E-03   -.87376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7131e-09
Minuit parameter uncertainties:
  1  4.11582e-05
  2  0.0103793
  3  10.8794
  4  0.000242416
  5  0.000246176
  6  5.70087
  7  3.60488
  8  0.00260624
  9  0.00295193
  10  0.00102248
  11  4.37936e-05
  12  118.847
  13  2.82166e-06
  14  6.23895e-05
  15  44.6509
  16  7.55138
  17  5.80633e-05
  18  11.9997
  19  0.000452835
  20  2.40773e-05
  21  5.23513e-05
  22  17.3763
  23  12.819
  24  0.24346
  25  0.190104
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.433e+02  1.188e+02  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.166e+00  1.901e-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.174e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.42e-05

TS (Fixed Index): 2.29
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207645/likelihoodResults_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.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) = 5515.57340568
delta logL = 0.00586328827831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5515.56624472
delta logL = 0.0130242488367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    124.12       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4852       1.0000          .0000       10.000    
     3 'Normalizat'    .91262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1688       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=   5515.566     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     124.10        178.16        .36129E-04    .12996E-03
   2  Index         2.4855        .80521        .62408E-02    .11843E-03
   3  Normalizat    .91231        .23677        .29533E-03   -.34830E-03
   4  Prefactor     1.1690        .18881        .21198E-03   -.58866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 124.097
  Index      = 2.48549
  Normalizat = 0.912315
  Prefactor  = 1.16905
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.566     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     124.10        159.52        .72258E-05   -1.3475    
   2  Index         2.4855        .72061        .24963E-03   -.52695    
   3  Normalizat    .91231        .23653        .59067E-04   -.96029    
   4  Prefactor     1.1690        .18868        .42395E-04   -.87289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2599e-10
Minuit parameter uncertainties:
  1  160.08
  2  0.72399
  3  0.236798
  4  0.188792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207645': 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) = 5515.56624376
delta logL = 0.0130252045801

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.241e+02  1.601e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.485e+00  7.240e-01  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.169e+00  1.888e-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.123e-01  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.49 +/- 0.72
Photon Flux (Free Index): 5.42e-08 +/- 4.93e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.47e-05

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/207645/cmap_HighResolution_394329601_394588801_4FGL_J2209.8-5028_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='1.60e-05', photon_flux_error='4.18e-08', dlogl='1.30e-02', energy_flux='1.71e-05', photon_flux2='5.42e-08', job_status='DONE', time_completed='2021-09-28 06:31:15.163901', photon_index_error2='0.72', photon_index2='2.49', ts='2.29', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.47e-05', EG='0.92', time_epoch_completed='1632835875.16', return_code='0', job_id='207645', GAL2='1.17', EG2='0.91', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.93e-08', ts2='2.32', photon_index='2.37' WHERE bin_id='598' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 207645: <4FGL_J2209.8-5028_daily_bin598> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:49 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:51 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:15:51 2021
Terminated at Tue Sep 28 06:31:15 2021
Results reported at Tue Sep 28 06:31:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin598 332.474 -50.4702 394329601 394588801 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 :                                   693.04 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             239.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

