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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin835
RA = 332.474, Dec = -50.4702
tmin = 455760001, tmax = 456019201
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='209122', job_status='RUN', time_executed='2021-09-28 06:20:51.797725', time_epoch_executed='1632835251.8' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209122/ft1_4FGL_J2209.8-5028_daily_bin835.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209122/ft2_4FGL_J2209.8-5028_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209122/ft1_4FGL_J2209.8-5028_daily_bin835.fits outfile=/scratch/kocevski/209122/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin835.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=455760001.0 tmax=456019201.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.40
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209122/ft1_filtered_4FGL_J2209.8-5028_daily_bin835.fits" evtable="EVENTS" scfile=/scratch/kocevski/209122/ft2_4FGL_J2209.8-5028_daily_bin835.fits sctable="SC_DATA" outfile=/scratch/kocevski/209122/ltcube_455760001_456019201_4FGL_J2209.8-5028_daily_bin835.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/209122/ft2_4FGL_J2209.8-5028_daily_bin835.fits
.....................!
real 12.34
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209122/ft1_filtered_4FGL_J2209.8-5028_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/209122/ft2_4FGL_J2209.8-5028_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/209122/ltcube_455760001_456019201_4FGL_J2209.8-5028_daily_bin835.fits outfile=/scratch/kocevski/209122/expmap_455760001_456019201_4FGL_J2209.8-5028_daily_bin835.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/209122/ltcube_455760001_456019201_4FGL_J2209.8-5028_daily_bin835.fits
.....................!
real 190.04
user 185.18
sys 4.47

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/209122/ft1_filtered_4FGL_J2209.8-5028_daily_bin835.fits scfile=/scratch/kocevski/209122/ft2_4FGL_J2209.8-5028_daily_bin835.fits outfile=/scratch/kocevski/209122/cmap_455760001_456019201_4FGL_J2209.8-5028_daily_bin835.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9853       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.099       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .95006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.925       1.0000         .10000E-03   10000.    
    13 'norm      '    9.1307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8945       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.501       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86436       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0502       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=   6599.471     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3057 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.067       -.38169E-06** at limit **
   2  Prefactor     .10000E-03    53.703        .36379E-05** at limit **
   3  Prefactor     4.0290        6.7521        .27232E-05    .45888E-03
   4  Prefactor     .10000E-03    29.697       -.19058E-05** at limit **
   5  Prefactor     .10000E-03    23.241        .13619E-05** at limit **
   6  Prefactor     4.9854        4.0990       -.32343E-06   -.59651E-04
   7  norm          .10000E-03    2.3621        .67598E-07** at limit **
   8  Prefactor     28.101        16.904        .99086E-07    .26919E-04
   9  Prefactor     .10000E-03    44.422       -.26629E-05** at limit **
  10  Prefactor     .95380        7.9732        .25205E-05   -.42177E-03
  11  Prefactor     .10000E-03    2.0200       -.12998E-05** at limit **
  12  Prefactor     58.906        96.393        .23520E-05    .21887E-04
  13  norm          9.1308        8.1013        .15189E-07    .55922E-04
  14  Prefactor     3.6785        3.3197       -.65840E-07   -.23008E-04
  15  Prefactor     14.383        28.256        .40241E-05    .47520E-04
  16  Prefactor     3.3945        3.2201        .33742E-07    .52485E-05
  17  Prefactor     .10000E-03    4.6091       -.71066E-07** at limit **
  18  Prefactor     .10000E-03    3.3625       -.23743E-07** at limit **
  19  Prefactor     .10000E-03    24.129        .10326E-05** at limit **
  20  Prefactor     2.8953        6.3365        .18285E-06    .13678E-04
  21  Prefactor     10.501        17.638        .95474E-07    .13618E-05
  22  Prefactor     .10000E-03    5.3462        .47476E-06** at limit **
  23  norm          .10000E-03    5.6545       -.81800E-06** at limit **
  24  Normalizat    .86429        .17932       -.32950E-06    .10358E-03
  25  Prefactor     1.0502        .14205       -.28784E-06    .10871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98539
  norm       = 0.0001
  Prefactor  = 28.1008
  Prefactor  = 0.0001
  Prefactor  = 0.953798
  Prefactor  = 0.000100002
  Prefactor  = 58.9063
  norm       = 9.13081
  Prefactor  = 3.67853
  Prefactor  = 14.3829
  Prefactor  = 3.39447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89532
  Prefactor  = 10.5011
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.864288
  Prefactor  = 1.05025
 **********
 **   18 **HESSE 
 **********

 FCN=   6599.471     FROM HESSE     STATUS=OK           427 CALLS     3484 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    53.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0290        7.0107        .10045E-02   -1.5306    
   4  Prefactor     .10000E-03    29.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9854        4.0805        .14132E-03   -1.5261    
   7  norm          .10000E-03    2.4094        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.101        16.897        .75578E-04   -1.4647    
   9  Prefactor     .10000E-03    44.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .95380        24.029        .30939E-02   -1.5513    
  11  Prefactor     .10000E-03    6.3234        .19913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.906        102.85        .52265E-04   -1.4171    
  13  norm          9.1308        8.0940        .13264E-03   -1.5104    
  14  Prefactor     3.6785        3.3182        .13310E-03   -1.5324    
  15  Prefactor     14.383        28.226        .10552E-03   -1.4949    
  16  Prefactor     3.3945        3.2168        .13747E-03   -1.5339    
  17  Prefactor     .10000E-03    4.6114        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3832        .14548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8953        6.3274        .23885E-03   -1.5368    
  21  Prefactor     10.501        17.632        .12364E-03   -1.5060    
  22  Prefactor     .10000E-03    5.3676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.8260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86429        .20723        .26746E-03   -.97727    
  25  Prefactor     1.0502        .16564        .20337E-03   -.91073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07701e-09
Minuit parameter uncertainties:
  1  6.88832e-06
  2  0.000176368
  3  7.01213
  4  3.10965e-05
  5  4.09744e-05
  6  4.08072
  7  1.47399e-06
  8  16.9
  9  0.000197566
  10  9.57856
  11  0.000248768
  12  103.164
  13  8.09493
  14  3.31838
  15  28.2517
  16  3.21696
  17  2.97965e-06
  18  1.27297e-06
  19  3.23217e-05
  20  6.32883
  21  17.6408
  22  6.47359e-06
  23  6.48001e-06
  24  0.207418
  25  0.165725
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.891e+01  1.032e+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.050e+00  1.657e-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:  8.643e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/209122/likelihoodResults_455760001_456019201_4FGL_J2209.8-5028_daily_bin835.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) = 6598.60379105
delta logL = 0.866948959493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6598.60161507
delta logL = 0.869124936377

Fit tolerance = 1e-08

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

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

 FCN=   6598.602     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      304 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0288        94.765        .37750E-02    .38471E-03
   2  Index         3.9221        2.4848        .11742        .18969E-03
   3  Normalizat    .80269        .53394E-01    .62541E-01   -.13613E-04
   4  Prefactor     1.0814        .42999E-01    .38340E-01   -.16501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.02885
  Index      = 3.92205
  Normalizat = 0.802687
  Prefactor  = 1.08138
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.602     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      335 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0288        180.00        .14913E-03   -1.5178    
   2  Index         3.9221        3.9713        .40748E-02   -.21730    
   3  Normalizat    .80269        .18793        .27663E-03   -.99969    
   4  Prefactor     1.0814        .15249        .20068E-03   -.90064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.08511e-10
Minuit parameter uncertainties:
  1  71.3793
  2  4.63806
  3  0.188082
  4  0.152551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209122': 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) = 6598.60161412
delta logL = 0.869125885459

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.029e+00  7.138e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.922e+00  4.638e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.081e+00  1.526e-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:  8.027e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.92 +/- 4.64
Photon Flux (Free Index): 6.60e-08 +/- 5.35e-08
Energy Flux (Free Index): 1.00e-05 +/- 8.62e-06

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/209122/cmap_HighResolution_455760001_456019201_4FGL_J2209.8-5028_daily_bin835.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='8.69e-01', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-09-28 06:33:37.465822', photon_index_error2='4.64', photon_index2='3.92', ts='0.66', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='8.62e-06', EG='0.86', time_epoch_completed='1632836017.47', return_code='0', job_id='209122', GAL2='1.08', EG2='0.80', return_code2='102', photon_flux_error2='5.35e-08', ts2='2.52', photon_index='2.37' WHERE bin_id='835' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:33:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 209122: <4FGL_J2209.8-5028_daily_bin835> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin835> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:32 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:33 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:20:33 2021
Terminated at Tue Sep 28 06:33:38 2021
Results reported at Tue Sep 28 06:33:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin835 332.474 -50.4702 455760001 456019201 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 :                                   761.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

