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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1072
RA = 332.474, Dec = -50.4702
tmin = 517190401, tmax = 517449601
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='210689', job_status='RUN', time_executed='2021-09-28 06:25:49.498812', time_epoch_executed='1632835549.5' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210689

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210689/ft1_4FGL_J2209.8-5028_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210689/ft2_4FGL_J2209.8-5028_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210689/ft1_4FGL_J2209.8-5028_daily_bin1072.fits outfile=/scratch/kocevski/210689/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1072.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=517190401.0 tmax=517449601.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 4.74
user 4.50
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210689/ft1_filtered_4FGL_J2209.8-5028_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/210689/ft2_4FGL_J2209.8-5028_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/210689/ltcube_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.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/210689/ft2_4FGL_J2209.8-5028_daily_bin1072.fits
.....................!
real 11.99
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210689/ft1_filtered_4FGL_J2209.8-5028_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/210689/ft2_4FGL_J2209.8-5028_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/210689/ltcube_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.fits outfile=/scratch/kocevski/210689/expmap_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.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/210689/ltcube_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.fits
.....................!
real 189.67
user 184.91
sys 4.41

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/210689/ft1_filtered_4FGL_J2209.8-5028_daily_bin1072.fits scfile=/scratch/kocevski/210689/ft2_4FGL_J2209.8-5028_daily_bin1072.fits outfile=/scratch/kocevski/210689/cmap_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210689/ft1_filtered_4FGL_J2209.8-5028_daily_bin1072.fits scfile=/scratch/kocevski/210689/ft2_4FGL_J2209.8-5028_daily_bin1072.fits outfile=/scratch/kocevski/210689/cmap_HighResolution_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210689/ft1_filtered_4FGL_J2209.8-5028_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/210689/ft2_4FGL_J2209.8-5028_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210689/Model_4FGL_J2209.8-5028_daily_bin1072.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/210689/ft1_filtered_4FGL_J2209.8-5028_daily_bin1072.fits.....................!
real 52.04
user 50.71
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0972       1.0000         .10000E-03   10000.    
     7 'norm      '    15.305       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.149       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.823       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9266       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.320       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8874       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9059       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0041       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81139       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=   6993.211     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2913 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.260        .69227E-06** at limit **
   2  Prefactor     .10000E-03    34.883       -.10510E-06** at limit **
   3  Prefactor     7.7117        7.5889        .87911E-06   -.43573E-05
   4  Prefactor     .10000E-03    18.641       -.47248E-06** at limit **
   5  Prefactor     16.228        18.960        .15463E-07   -.25748E-05
   6  Prefactor     4.0972        3.1309        .29063E-06   -.21797E-04
   7  norm          15.305        5.2874        .28264E-07    .21887E-04
   8  Prefactor     22.149        14.227        .30686E-07    .38167E-05
   9  Prefactor     32.324        32.564       -.68531E-06   -.94276E-05
  10  Prefactor     .10000E-03    8.7680        .35115E-06** at limit **
  11  Prefactor     8.4062        4.5038        .12633E-06   -.36959E-04
  12  Prefactor     50.817        84.643        .70213E-06   -.11459E-04
  13  norm          .10000E-03    2.5261       -.36166E-07** at limit **
  14  Prefactor     2.9268        2.7437        .35050E-06   -.63525E-05
  15  Prefactor     .10000E-03    9.7080       -.71923E-06** at limit **
  16  Prefactor     14.575        8.1532        .13211E-06   -.11288E-04
  17  Prefactor     47.326        33.382       -.46800E-06   -.25959E-07
  18  Prefactor     .10000E-03    17.565        .11276E-05** at limit **
  19  Prefactor     9.9129        80.491       -.75662E-05    .51566E-05
  20  Prefactor     .10000E-03    5.2255       -.67261E-07** at limit **
  21  Prefactor     2.9062        40.227        .46081E-05   -.48094E-06
  22  Prefactor     .10000E-03    3.4225        .19699E-08** at limit **
  23  norm          .10000E-03    2.1451       -.45879E-07** at limit **
  24  Normalizat    1.0039        .18229       -.74531E-06   -.14645E-04
  25  Prefactor     .81152        .13288        .24699E-06   -.19100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.71165
  Prefactor  = 0.0001
  Prefactor  = 16.2281
  Prefactor  = 4.09725
  norm       = 15.3045
  Prefactor  = 22.1491
  Prefactor  = 32.324
  Prefactor  = 0.0001
  Prefactor  = 8.4062
  Prefactor  = 50.8168
  norm       = 0.0001
  Prefactor  = 2.92679
  Prefactor  = 0.0001
  Prefactor  = 14.5745
  Prefactor  = 47.3264
  Prefactor  = 0.000100001
  Prefactor  = 9.9129
  Prefactor  = 0.0001
  Prefactor  = 2.90622
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.00389
  Prefactor  = 0.81152
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.211     FROM HESSE     STATUS=OK           429 CALLS     3342 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7117        7.5847        .72202E-03   -1.5152    
   4  Prefactor     .10000E-03    18.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.228        18.960        .99424E-04   -1.4902    
   6  Prefactor     4.0972        3.1261        .62113E-03   -1.5303    
   7  norm          15.305        5.2851        .51190E-03   -1.4925    
   8  Prefactor     22.149        14.227        .85109E-04   -1.4766    
   9  Prefactor     32.324        32.622        .70483E-04   -1.4570    
  10  Prefactor     .10000E-03    8.9523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4062        4.5100        .12178E-03   -1.5128    
  12  Prefactor     50.817        84.383        .56255E-04   -1.4281    
  13  norm          .10000E-03    2.5325        .12980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9268        2.7420        .64379E-03   -1.5366    
  15  Prefactor     .10000E-03    9.7069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.575        8.1660        .10492E-03   -1.4944    
  17  Prefactor     47.326        33.454        .58290E-04   -1.4331    
  18  Prefactor     .10000E-03    18.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9129        80.394        .12744E-03   -1.5078    
  20  Prefactor     .10000E-03    5.4218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.9062        40.307        .11918E-02   -1.5367    
  22  Prefactor     .10000E-03    3.4242        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1455        .11962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0039        .21121        .25862E-03   -.92900    
  25  Prefactor     .81152        .15441        .22256E-03   -.99305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03118e-10
Minuit parameter uncertainties:
  1  1.60153e-05
  2  8.99706e-06
  3  7.58562
  4  4.98371e-06
  5  18.9672
  6  3.12625
  7  5.2853
  8  14.2293
  9  32.6405
  10  1.57682e-05
  11  4.51021
  12  84.5827
  13  8.66774e-08
  14  2.74208
  15  6.6449e-06
  16  8.16661
  17  33.4676
  18  0.000193685
  19  56.5641
  20  1.472e-06
  21  21.6637
  22  5.3114e-07
  23  2.07257e-07
  24  0.21139
  25  0.15449
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.082e+01  8.458e+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:  8.115e-01  1.545e-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.004e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/210689/likelihoodResults_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.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) = 6993.17140216
delta logL = 0.0399782743625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6993.1696381
delta logL = 0.041742335673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.859       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0590       1.0000          .0000       10.000    
     3 'Normalizat'    1.0103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80814       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=   6993.170     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.859        6418.5        .12363E-02   -.59862E-05
   2  Index         2.0589        5.6038        .25460        .17731E-04
   3  Normalizat    1.0103        .65500E-01    .45827E-01    .14330E-04
   4  Prefactor     .80815        .40167E-01    .43823E-01    .12615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.8589
  Index      = 2.05894
  Normalizat = 1.01031
  Prefactor  = 0.808147
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.170     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.859        107.78        .49454E-04   -1.4083    
   2  Index         2.0589        1.0212        .12190E-01   -.62885    
   3  Normalizat    1.0103        .19315        .25791E-03   -.92686    
   4  Prefactor     .80815        .15114        .22296E-03   -.99429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55777e-10
Minuit parameter uncertainties:
  1  108.102
  2  1.03241
  3  0.193288
  4  0.151213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210689': 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) = 6993.1696381
delta logL = 0.0417423365425

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.586e+01  1.081e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.059e+00  1.032e+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:  8.081e-01  1.512e-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.010e+00  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/210689/cmap_HighResolution_517190401_517449601_4FGL_J2209.8-5028_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-28 06:38:58.073485', job_id='210689', GAL2='0.81', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1632836338.07', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.17e-02', ts2='0.57', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1072' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:38:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 210689: <4FGL_J2209.8-5028_daily_bin1072> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1072> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:34 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:36 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:25:36 2021
Terminated at Tue Sep 28 06:38:58 2021
Results reported at Tue Sep 28 06:38:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1072 332.474 -50.4702 517190401 517449601 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 :                                   775.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

