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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin553
RA = 332.474, Dec = -50.4702
tmin = 382665601, tmax = 382924801
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='207574', job_status='RUN', time_executed='2021-09-28 06:16:39.772636', time_epoch_executed='1632834999.77' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207574

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207574/ft1_4FGL_J2209.8-5028_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207574/ft2_4FGL_J2209.8-5028_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207574/ft1_4FGL_J2209.8-5028_daily_bin553.fits outfile=/scratch/kocevski/207574/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin553.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=382665601.0 tmax=382924801.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.36
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207574/ft1_filtered_4FGL_J2209.8-5028_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/207574/ft2_4FGL_J2209.8-5028_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/207574/ltcube_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.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/207574/ft2_4FGL_J2209.8-5028_daily_bin553.fits
.....................!
real 12.16
user 11.69
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207574/ft1_filtered_4FGL_J2209.8-5028_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/207574/ft2_4FGL_J2209.8-5028_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/207574/ltcube_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.fits outfile=/scratch/kocevski/207574/expmap_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.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/207574/ltcube_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.fits
.....................!
real 191.45
user 185.04
sys 5.80

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/207574/ft1_filtered_4FGL_J2209.8-5028_daily_bin553.fits scfile=/scratch/kocevski/207574/ft2_4FGL_J2209.8-5028_daily_bin553.fits outfile=/scratch/kocevski/207574/cmap_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207574/ft1_filtered_4FGL_J2209.8-5028_daily_bin553.fits scfile=/scratch/kocevski/207574/ft2_4FGL_J2209.8-5028_daily_bin553.fits outfile=/scratch/kocevski/207574/cmap_HighResolution_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207574/ft1_filtered_4FGL_J2209.8-5028_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/207574/ft2_4FGL_J2209.8-5028_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207574/Model_4FGL_J2209.8-5028_daily_bin553.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/207574/ft1_filtered_4FGL_J2209.8-5028_daily_bin553.fits.....................!
real 50.87
user 49.30
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7357       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.204       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.832       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.419       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.031       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6807       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2614       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.3843       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95156       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79722       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=   6548.388     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2894 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7346        21.568        .81391E-07    .65133E-05
   2  Prefactor     17.205        33.178       -.42465E-06    .70478E-07
   3  Prefactor     6.6541        7.4470        .21167E-06    .22785E-04
   4  Prefactor     32.834        23.299       -.68355E-07    .24858E-05
   5  Prefactor     17.419        23.067        .55541E-07    .69129E-05
   6  Prefactor     .10000E-03    1.4876       -.98271E-07** at limit **
   7  norm          .10000E-03    1.2952       -.34366E-07** at limit **
   8  Prefactor     .10000E-03    2.6179       -.29090E-07** at limit **
   9  Prefactor     5.7168        34.436       -.59262E-06   -.40353E-05
  10  Prefactor     4.9129        9.2338       -.10701E-06   -.28832E-04
  11  Prefactor     2.2769        3.0275        .12997E-06   -.34314E-04
  12  Prefactor     60.022        78.682        .24787E-05    .14108E-04
  13  norm          .10000E-03    2.2227        .53477E-07** at limit **
  14  Prefactor     .10000E-03    1.0122       -.10540E-06** at limit **
  15  Prefactor     .10000E-03    35.807        .11608E-05** at limit **
  16  Prefactor     9.3949        5.7849        .20239E-06   -.70280E-04
  17  Prefactor     2.6222        86.106        .11313E-05    .35591E-05
  18  Prefactor     15.659        13.075        .22536E-05    .50544E-04
  19  Prefactor     .10000E-03    51.646       -.32927E-05** at limit **
  20  Prefactor     1.2612        4.8008        .26858E-05   -.89964E-05
  21  Prefactor     .10000E-03    16.370       -.59700E-08** at limit **
  22  Prefactor     .10000E-03    7.3759        .71389E-07** at limit **
  23  norm          7.3842        5.2641       -.14559E-07   -.33030E-05
  24  Normalizat    .95167        .16980       -.98525E-06    .14365E-03
  25  Prefactor     .79715        .13137        .91862E-06   -.58302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.73457
  Prefactor  = 17.2052
  Prefactor  = 6.65406
  Prefactor  = 32.8339
  Prefactor  = 17.4188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71675
  Prefactor  = 4.91289
  Prefactor  = 2.27693
  Prefactor  = 60.0218
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.3949
  Prefactor  = 2.6222
  Prefactor  = 15.6591
  Prefactor  = 0.0001
  Prefactor  = 1.26119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.3842
  Normalizat = 0.951673
  Prefactor  = 0.797147
 **********
 **   18 **HESSE 
 **********

 FCN=   6548.388     FROM HESSE     STATUS=OK           431 CALLS     3325 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7346        21.583        .12843E-03   -1.5084    
   2  Prefactor     17.205        33.179        .96562E-04   -1.4878    
   3  Prefactor     6.6541        7.4400        .15555E-03   -1.5192    
   4  Prefactor     32.834        23.271        .69932E-04   -1.4561    
   5  Prefactor     17.419        23.070        .95964E-04   -1.4873    
   6  Prefactor     .10000E-03    1.5058        .96345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3027        .89850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6202        .12787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7168        33.919        .16800E-03   -1.5230    
  10  Prefactor     4.9129        9.1465        .18134E-03   -1.5265    
  11  Prefactor     2.2769        3.0069        .15405E-03   -1.5406    
  12  Prefactor     60.022        78.430        .51784E-04   -1.4157    
  13  norm          .10000E-03    2.2313        .11780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0264        .79491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.3949        5.8056        .13073E-03   -1.5095    
  17  Prefactor     2.6222        87.013        .24888E-03   -1.5384    
  18  Prefactor     15.659        13.101        .10118E-03   -1.4916    
  19  Prefactor     .10000E-03    52.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2612        4.8080        .16715E-02   -1.5483    
  21  Prefactor     .10000E-03    16.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.3842        5.2670        .14760E-03   -1.5164    
  24  Normalizat    .95167        .19684        .24152E-03   -.94667    
  25  Prefactor     .79715        .15137        .21107E-03   -.99834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32962e-09
Minuit parameter uncertainties:
  1  21.6005
  2  33.2148
  3  7.44108
  4  23.2779
  5  23.0816
  6  1.59474e-06
  7  7.50443e-07
  8  2.94408e-07
  9  27.8738
  10  9.14907
  11  3.00709
  12  78.5651
  13  4.65587e-06
  14  8.97124e-07
  15  2.53363e-05
  16  5.80596
  17  30.2577
  18  13.103
  19  0.000319891
  20  4.80945
  21  2.60158e-05
  22  5.52892e-06
  23  5.26728
  24  0.196991
  25  0.151446
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.002e+01  7.857e+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:  7.971e-01  1.514e-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.517e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 7.18e-06 +/- 9.40e-06

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

Saving results to:
/scratch/kocevski/207574/likelihoodResults_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.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) = 6548.03853196
delta logL = 0.349924459173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6547.97129087
delta logL = 0.417165544112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.417       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4806       1.0000          .0000       10.000    
     3 'Normalizat'    .97230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78504       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=   6547.971     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 62.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.409        82.262       -.79780E-05    .39196E-03
   2  Index         1.4806        .43007        .92647E-05    .36063E-03
   3  Normalizat    .97229        .15555       -.30624E-06   -.24239E-03
   4  Prefactor     .78505        .12594        .14145E-06    .21723E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.4092
  Index      = 1.4806
  Normalizat = 0.972291
  Prefactor  = 0.785048
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.971     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.409        99.243        .20790E-03   -1.3772    
   2  Index         1.4806        .64022        .11166E-01   -.78084    
   3  Normalizat    .97229        .17997        .23925E-03   -.93965    
   4  Prefactor     .78505        .14579        .21243E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35004e-09
Minuit parameter uncertainties:
  1  99.4196
  2  0.643736
  3  0.180086
  4  0.145863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207574': 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) = 6547.97129087
delta logL = 0.417165551166

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  9.341e+01  9.942e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.481e+00  6.437e-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:  7.850e-01  1.459e-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.723e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 1.48 +/- 0.64
Photon Flux (Free Index): 8.86e-09 +/- 1.14e-08
Energy Flux (Free Index): 2.99e-05 +/- 5.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/207574/cmap_HighResolution_382665601_382924801_4FGL_J2209.8-5028_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='2.99e-05', photon_flux_error='2.76e-08', dlogl='4.17e-01', energy_flux='7.18e-06', photon_flux2='8.86e-09', job_status='DONE', time_completed='2021-09-28 06:29:02.571491', photon_index_error2='0.64', photon_index2='1.48', ts='1.10', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.45e-08', energy_flux_error2='5.18e-05', EG='0.95', time_epoch_completed='1632835742.57', return_code='0', job_id='207574', GAL2='0.79', EG2='0.97', return_code2='0', energy_flux_error='9.40e-06', photon_flux_error2='1.14e-08', ts2='1.94', photon_index='2.37' WHERE bin_id='553' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:29:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 207574: <4FGL_J2209.8-5028_daily_bin553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin553 332.474 -50.4702 382665601 382924801 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            801 sec.

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

