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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1395
RA = 332.474, Dec = -50.4702
tmin = 600912001, tmax = 601171201
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='211737', job_status='RUN', time_executed='2021-09-28 06:32:07.203447', time_epoch_executed='1632835927.2' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211737/ft1_4FGL_J2209.8-5028_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211737/ft2_4FGL_J2209.8-5028_daily_bin1395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211737/ft1_4FGL_J2209.8-5028_daily_bin1395.fits outfile=/scratch/kocevski/211737/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1395.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=600912001.0 tmax=601171201.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.58
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211737/ft1_filtered_4FGL_J2209.8-5028_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/211737/ft2_4FGL_J2209.8-5028_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/211737/ltcube_600912001_601171201_4FGL_J2209.8-5028_daily_bin1395.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/211737/ft2_4FGL_J2209.8-5028_daily_bin1395.fits
.....................!
real 12.13
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211737/ft1_filtered_4FGL_J2209.8-5028_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/211737/ft2_4FGL_J2209.8-5028_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/211737/ltcube_600912001_601171201_4FGL_J2209.8-5028_daily_bin1395.fits outfile=/scratch/kocevski/211737/expmap_600912001_601171201_4FGL_J2209.8-5028_daily_bin1395.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/211737/ltcube_600912001_601171201_4FGL_J2209.8-5028_daily_bin1395.fits
.....................!
real 190.77
user 185.53
sys 4.87

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/211737/ft1_filtered_4FGL_J2209.8-5028_daily_bin1395.fits scfile=/scratch/kocevski/211737/ft2_4FGL_J2209.8-5028_daily_bin1395.fits outfile=/scratch/kocevski/211737/cmap_600912001_601171201_4FGL_J2209.8-5028_daily_bin1395.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.55
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211737/ft1_filtered_4FGL_J2209.8-5028_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/211737/ft2_4FGL_J2209.8-5028_daily_bin1395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211737/Model_4FGL_J2209.8-5028_daily_bin1395.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/211737/ft1_filtered_4FGL_J2209.8-5028_daily_bin1395.fits.....................!
real 43.15
user 41.88
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    197.78       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.484       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1047       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20997E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.801       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33798E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7006       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3472       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80214       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=   5189.754     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     2949 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.302       -.33986E-06** at limit **
   2  Prefactor     197.85        86.021       -.23687E-06   -.15254E-03
   3  Prefactor     13.743        10.157       -.47449E-07   -.47078E-04
   4  Prefactor     .10000E-03    128.23       -.13527E-05** at limit **
   5  Prefactor     17.493        28.601       -.13844E-08   -.74742E-04
   6  Prefactor     8.1079        6.3984       -.11190E-06   -.80005E-04
   7  norm          3.3587        5.5445        .12916E-06   -.76732E-05
   8  Prefactor     9.4760        26.334        .10953E-06   -.28349E-04
   9  Prefactor     .16044E-03    51.721        .13640E-05** at limit **
  10  Prefactor     .10000E-03    16.911        .84747E-05** at limit **
  11  Prefactor     .10000E-03    2.4459        .34203E-06** at limit **
  12  Prefactor     59.066        110.05       -.63620E-05   -.60196E-04
  13  norm          .10000E-03    2.2537        .86512E-07** at limit **
  14  Prefactor     .10000E-03    3.6337        .21231E-06** at limit **
  15  Prefactor     .10000E-03    68.705        .24806E-06** at limit **
  16  Prefactor     .10001E-03    2.8133        .41296E-06** at limit **
  17  Prefactor     .10000E-03    9.1245        .17093E-06** at limit **
  18  Prefactor     .10000E-03    11.410        .36471E-06** at limit **
  19  Prefactor     .10000E-03    31.194        .43583E-07** at limit **
  20  Prefactor     7.7015        8.5145        .10571E-06   -.10959E-04
  21  Prefactor     .10000E-03    14.747        .26028E-07** at limit **
  22  Prefactor     .10000E-03    6.9166        .67392E-07** at limit **
  23  norm          .10000E-03    5.8133        .26778E-07** at limit **
  24  Normalizat    1.3473        .21441       -.12411E-05   -.13616E-03
  25  Prefactor     .80217        .16539       -.14628E-06   -.16175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 197.853
  Prefactor  = 13.7434
  Prefactor  = 0.0001
  Prefactor  = 17.4928
  Prefactor  = 8.10791
  norm       = 3.35871
  Prefactor  = 9.47601
  Prefactor  = 0.00016044
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 59.0663
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.34729
  Prefactor  = 0.802168
 **********
 **   18 **HESSE 
 **********

 FCN=   5189.754     FROM HESSE     STATUS=OK           429 CALLS     3378 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     197.85        85.684        .14364E-03   -1.2885    
   3  Prefactor     13.743        10.152        .10805E-03   -1.4966    
   4  Prefactor     .10000E-03    130.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.493        28.580        .95786E-04   -1.4871    
   6  Prefactor     8.1079        6.3926        .14083E-03   -1.5138    
   7  norm          3.3587        5.5037        .20268E-03   -1.5341    
   8  Prefactor     9.4760        26.226        .13036E-03   -1.5092    
   9  Prefactor     .16044E-03    54.776        .13155       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4919        .11005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.066        114.02        .26160E-03   -1.4169    
  13  norm          .10000E-03    2.2540        .10562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7112        .13403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    68.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    20.700        .23302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7015        8.5287        .14451E-03   -1.5153    
  21  Prefactor     .10000E-03    14.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.8521        .16965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3473        .24894        .25113E-03   -.82166    
  25  Prefactor     .80217        .19193        .24605E-03   -.99648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81806e-10
Minuit parameter uncertainties:
  1  3.09363e-05
  2  85.7383
  3  10.1534
  4  0.000280295
  5  28.6026
  6  6.39315
  7  5.50456
  8  26.2582
  9  0.115183
  10  0.000187968
  11  2.0087e-06
  12  114.449
  13  3.18391e-07
  14  4.73375e-06
  15  3.89089e-05
  16  0.000683883
  17  1.69353e-06
  18  6.41853e-06
  19  1.54714e-06
  20  8.53003
  21  6.65801e-06
  22  2.89879e-06
  23  8.37502e-07
  24  0.249164
  25  0.192087
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.907e+01  1.144e+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:  8.022e-01  1.921e-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:  1.347e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211737/likelihoodResults_600912001_601171201_4FGL_J2209.8-5028_daily_bin1395.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) = 5189.67838543
delta logL = 0.0752812991441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5189.6758074
delta logL = 0.0778593276273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.81       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0273       1.0000          .0000       10.000    
     3 'Normalizat'    1.3533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79591       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=   5189.676     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      301 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.89        193.76        .19456E-03    .29800E-04
   2  Index         2.0273        .78537        .97748E-02   -.15205E-04
   3  Normalizat    1.3535        .24312        .25062E-03   -.13831E-03
   4  Prefactor     .79589        .19073        .24689E-03    .30161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.888
  Index      = 2.02725
  Normalizat = 1.35347
  Prefactor  = 0.795891
 **********
 **   18 **HESSE 
 **********

 FCN=   5189.676     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.89        186.99        .77826E-05   -1.3637    
   2  Index         2.0273        .75815        .39099E-03   -.63670    
   3  Normalizat    1.3535        .24324        .50124E-04   -.81984    
   4  Prefactor     .79589        .19079        .98755E-05   -.99880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96776e-10
Minuit parameter uncertainties:
  1  188.034
  2  0.762719
  3  0.243446
  4  0.190944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211737': 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) = 5189.67580677
delta logL = 0.0778599558498

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.069e+02  1.880e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.027e+00  7.627e-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.959e-01  1.909e-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:  1.353e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/211737/cmap_HighResolution_600912001_601171201_4FGL_J2209.8-5028_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-28 06:43:20.830130', job_id='211737', GAL2='0.80', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632836600.83', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='7.79e-02', ts2='0.48', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1395' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 211737: <4FGL_J2209.8-5028_daily_bin1395> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1395> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:25 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:27 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:30:27 2021
Terminated at Tue Sep 28 06:43:21 2021
Results reported at Tue Sep 28 06:43:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1395 332.474 -50.4702 600912001 601171201 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 :                                   659.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

