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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin581
RA = 332.474, Dec = -50.4702
tmin = 389923201, tmax = 390182401
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='207619', job_status='RUN', time_executed='2021-09-28 06:19:27.255404', time_epoch_executed='1632835167.26' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207619/ft1_4FGL_J2209.8-5028_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207619/ft2_4FGL_J2209.8-5028_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207619/ft1_4FGL_J2209.8-5028_daily_bin581.fits outfile=/scratch/kocevski/207619/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin581.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=389923201.0 tmax=390182401.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207619/ft1_filtered_4FGL_J2209.8-5028_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/207619/ft2_4FGL_J2209.8-5028_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/207619/ltcube_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.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/207619/ft2_4FGL_J2209.8-5028_daily_bin581.fits
.....................!
real 12.39
user 12.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207619/ft1_filtered_4FGL_J2209.8-5028_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/207619/ft2_4FGL_J2209.8-5028_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/207619/ltcube_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.fits outfile=/scratch/kocevski/207619/expmap_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.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/207619/ltcube_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.fits
.....................!
real 190.61
user 185.44
sys 4.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/207619/ft1_filtered_4FGL_J2209.8-5028_daily_bin581.fits scfile=/scratch/kocevski/207619/ft2_4FGL_J2209.8-5028_daily_bin581.fits outfile=/scratch/kocevski/207619/cmap_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207619/ft1_filtered_4FGL_J2209.8-5028_daily_bin581.fits scfile=/scratch/kocevski/207619/ft2_4FGL_J2209.8-5028_daily_bin581.fits outfile=/scratch/kocevski/207619/cmap_HighResolution_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207619/ft1_filtered_4FGL_J2209.8-5028_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/207619/ft2_4FGL_J2209.8-5028_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207619/Model_4FGL_J2209.8-5028_daily_bin581.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/207619/ft1_filtered_4FGL_J2209.8-5028_daily_bin581.fits.....................!
real 46.86
user 45.41
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3769       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.158       1.0000         .10000E-03   10000.    
     7 'norm      '    .31753E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.346       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5604       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13451E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12926E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8803       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.885       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7813       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3295       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73746       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2008       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=   5764.824     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2998 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2654        .60387E-08** at limit **
   2  Prefactor     .10000E-03    18.992        .80105E-07** at limit **
   3  Prefactor     3.3766        8.1173       -.74402E-06    .84737E-04
   4  Prefactor     12.006        36.285        .55091E-05    .16766E-03
   5  Prefactor     .10000E-03    6.5430        .16550E-07** at limit **
   6  Prefactor     12.158        5.5697       -.29952E-07    .17186E-03
   7  norm          .10054E-03    4.3843        .69813E-06** at limit **
   8  Prefactor     4.8639        13.410        .24082E-05    .34553E-04
   9  Prefactor     39.347        37.234       -.35660E-07    .22647E-04
  10  Prefactor     .10000E-03    5.1892        .49695E-07** at limit **
  11  Prefactor     3.9384        4.1847        .13629E-05   -.29966E-03
  12  Prefactor     .10000E-03    36.543        .82625E-06** at limit **
  13  norm          5.5608        7.6042        .10092E-06   -.40270E-04
  14  Prefactor     .10000E-03    2.4625       -.23022E-07** at limit **
  15  Prefactor     .10000E-03    28.756       -.77265E-06** at limit **
  16  Prefactor     .10000E-03    5.2781       -.30687E-06** at limit **
  17  Prefactor     .10001E-03    25.322       -.57139E-06** at limit **
  18  Prefactor     15.785        14.048       -.99924E-07   -.29738E-04
  19  Prefactor     .10000E-03    49.488        .34378E-06** at limit **
  20  Prefactor     8.8805        9.5871        .15340E-06    .55865E-05
  21  Prefactor     34.898        43.819       -.10298E-05    .14551E-04
  22  Prefactor     9.7791        26.778        .34892E-06   -.83019E-05
  23  norm          3.3313        10.230        .16467E-06   -.16315E-04
  24  Normalizat    .73742        .20910       -.54784E-06    .16712E-03
  25  Prefactor     1.2009        .15774       -.15268E-07    .27458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37662
  Prefactor  = 12.0059
  Prefactor  = 0.0001
  Prefactor  = 12.1577
  norm       = 0.000100538
  Prefactor  = 4.86391
  Prefactor  = 39.3473
  Prefactor  = 0.0001
  Prefactor  = 3.93841
  Prefactor  = 0.0001
  norm       = 5.56075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 15.7846
  Prefactor  = 0.0001
  Prefactor  = 8.88046
  Prefactor  = 34.898
  Prefactor  = 9.77913
  norm       = 3.33125
  Normalizat = 0.737422
  Prefactor  = 1.2009
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.824     FROM HESSE     STATUS=OK           435 CALLS     3433 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3766        8.0343        .22019E-03   -1.5340    
   4  Prefactor     12.006        36.580        .11550E-03   -1.5015    
   5  Prefactor     .10000E-03    6.5471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.158        5.5609        .11466E-03   -1.5010    
   7  norm          .10054E-03    66.856        .25857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8639        13.408        .91193E-03   -1.5267    
   9  Prefactor     39.347        37.267        .63900E-04   -1.4453    
  10  Prefactor     .10000E-03    5.2243        .16879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9384        4.2258        .76726E-03   -1.5311    
  12  Prefactor     .10000E-03    36.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5608        7.5795        .17038E-03   -1.5236    
  14  Prefactor     .10000E-03    2.4981        .11625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.004        .32673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    154.60        .67880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.785        13.503        .10084E-03   -1.4913    
  19  Prefactor     .10000E-03    49.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8805        9.6000        .13450E-03   -1.5112    
  21  Prefactor     34.898        43.372        .67849E-04   -1.4526    
  22  Prefactor     9.7791        26.688        .12813E-03   -1.5082    
  23  norm          3.3313        10.160        .22183E-03   -1.5343    
  24  Normalizat    .73742        .23295        .31078E-03   -1.0243    
  25  Prefactor     1.2009        .17905        .20207E-03   -.86304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37937e-09
Minuit parameter uncertainties:
  1  1.31869e-06
  2  2.62602e-07
  3  8.03689
  4  36.6489
  5  1.87553e-06
  6  5.5611
  7  0.012006
  8  13.4166
  9  37.2891
  10  3.58299e-06
  11  4.22611
  12  7.93143e-05
  13  7.58079
  14  1.79895e-06
  15  5.43068e-05
  16  0.000347312
  17  0.00229911
  18  13.5054
  19  2.62884e-05
  20  9.60167
  21  43.4112
  22  26.7204
  23  10.1655
  24  0.233264
  25  0.179141
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  7.931e-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.201e+00  1.791e-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:  7.374e-01  2.333e-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: 6.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207619/likelihoodResults_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.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) = 5764.82382888
delta logL = -0.000130732585603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5764.82369905
delta logL = -8.92890966497e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6320       1.0000          .0000       10.000    
     3 'Normalizat'    .73742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2009       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=   5764.824     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10253E-03    15.433        .18142E-01** at limit **
   2  Index         2.5586        5.7382        .50000        .10592E-04
   3  Normalizat    .73742        .35466E-02    .31078E-03    .58530E-06
   4  Prefactor     1.2009        .28934E-02    .20207E-03   -.77077E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102528
  Index      = 2.55862
  Normalizat = 0.737422
  Prefactor  = 1.2009
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.824     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10253E-03    86.124        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5586        5.0988        .50000       -.51011    
   3  Normalizat    .73742        .84032E-02    .12431E-04   -1.0243    
   4  Prefactor     1.2009        .68554E-02    .80829E-05   -.86304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06042e-09
Minuit parameter uncertainties:
  1  0.0295548
  2  219.531
  3  0.00840317
  4  0.00685537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207619': 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) = 5764.82369855
delta logL = -3.98687916459e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.025e-04  2.955e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.559e+00  2.195e+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.201e+00  6.855e-03  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:  7.374e-01  8.403e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/207619/cmap_HighResolution_389923201_390182401_4FGL_J2209.8-5028_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-09-28 06:31:11.729384', job_id='207619', GAL2='1.20', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632835871.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-3.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='581' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 207619: <4FGL_J2209.8-5028_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin581 332.474 -50.4702 389923201 390182401 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 :                                   696.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

