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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1437
RA = 332.474, Dec = -50.4702
tmin = 611798401, tmax = 612057601
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='211797', job_status='RUN', time_executed='2021-09-28 06:30:52.858736', time_epoch_executed='1632835852.86' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211797/ft1_4FGL_J2209.8-5028_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211797/ft2_4FGL_J2209.8-5028_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211797/ft1_4FGL_J2209.8-5028_daily_bin1437.fits outfile=/scratch/kocevski/211797/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1437.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=611798401.0 tmax=612057601.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.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211797/ft1_filtered_4FGL_J2209.8-5028_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/211797/ft2_4FGL_J2209.8-5028_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/211797/ltcube_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.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/211797/ft2_4FGL_J2209.8-5028_daily_bin1437.fits
.....................!
real 11.63
user 11.30
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211797/ft1_filtered_4FGL_J2209.8-5028_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/211797/ft2_4FGL_J2209.8-5028_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/211797/ltcube_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.fits outfile=/scratch/kocevski/211797/expmap_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.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/211797/ltcube_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.fits
.....................!
real 190.24
user 185.19
sys 4.68

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/211797/ft1_filtered_4FGL_J2209.8-5028_daily_bin1437.fits scfile=/scratch/kocevski/211797/ft2_4FGL_J2209.8-5028_daily_bin1437.fits outfile=/scratch/kocevski/211797/cmap_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211797/ft1_filtered_4FGL_J2209.8-5028_daily_bin1437.fits scfile=/scratch/kocevski/211797/ft2_4FGL_J2209.8-5028_daily_bin1437.fits outfile=/scratch/kocevski/211797/cmap_HighResolution_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211797/ft1_filtered_4FGL_J2209.8-5028_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/211797/ft2_4FGL_J2209.8-5028_daily_bin1437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211797/Model_4FGL_J2209.8-5028_daily_bin1437.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/211797/ft1_filtered_4FGL_J2209.8-5028_daily_bin1437.fits.....................!
real 54.66
user 53.24
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0583       1.0000         .10000E-03   10000.    
     7 'norm      '    .14993E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0058       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.147       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1351       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9502       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.470       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8581       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84354       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99055       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=   7338.329     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2907 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.799        21.914        .89821E-06   -.21310E-05
   2  Prefactor     35.437        54.078        .84601E-06    .31387E-05
   3  Prefactor     10.625        8.0923        .14276E-06    .68568E-05
   4  Prefactor     12.564        23.986        .21542E-05   -.56672E-05
   5  Prefactor     18.487        21.142       -.18732E-05    .53641E-05
   6  Prefactor     3.0579        2.6550       -.54841E-07   -.85226E-05
   7  norm          .10000E-03    19.392        .41642E-05** at limit **
   8  Prefactor     4.0050        5.0358        .10799E-06   -.14979E-06
   9  Prefactor     33.147        32.093       -.74026E-07    .46487E-05
  10  Prefactor     .10000E-03    4.3574       -.93058E-07** at limit **
  11  Prefactor     .10000E-03    .98545       -.51798E-07** at limit **
  12  Prefactor     .10000E-03    43.017        .16450E-05** at limit **
  13  norm          .10000E-03    5.2566       -.11329E-06** at limit **
  14  Prefactor     4.1354        3.2284       -.99894E-07    .42028E-04
  15  Prefactor     .10000E-03    17.680       -.16502E-05** at limit **
  16  Prefactor     3.9504        4.4614       -.81525E-06    .19513E-06
  17  Prefactor     .10000E-03    6.5943        .39064E-07** at limit **
  18  Prefactor     .10000E-03    2.2808       -.76652E-07** at limit **
  19  Prefactor     10.461        39.745       -.30490E-05    .26396E-05
  20  Prefactor     11.082        7.4142       -.20589E-06    .25657E-04
  21  Prefactor     4.8578        32.592       -.41283E-06    .11987E-05
  22  Prefactor     .10000E-03    8.2678       -.25079E-06** at limit **
  23  norm          .10000E-03    2.6292        .40478E-11** at limit **
  24  Normalizat    .84357        .16337        .12292E-05    .16693E-04
  25  Prefactor     .99048        .12896        .20526E-06    .11876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7994
  Prefactor  = 35.4375
  Prefactor  = 10.6255
  Prefactor  = 12.5641
  Prefactor  = 18.4868
  Prefactor  = 3.05793
  norm       = 0.0001
  Prefactor  = 4.00498
  Prefactor  = 33.1475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.13539
  Prefactor  = 0.0001
  Prefactor  = 3.95041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4608
  Prefactor  = 11.0824
  Prefactor  = 4.85781
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.843572
  Prefactor  = 0.990476
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.329     FROM HESSE     STATUS=OK           431 CALLS     3338 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.799        21.896        .92433E-04   -1.4841    
   2  Prefactor     35.437        54.109        .67324E-04   -1.4517    
   3  Prefactor     10.625        8.0821        .12291E-03   -1.5056    
   4  Prefactor     12.564        23.972        .11286E-03   -1.4999    
   5  Prefactor     18.487        21.136        .93066E-04   -1.4848    
   6  Prefactor     3.0579        2.6557        .12517E-03   -1.5358    
   7  norm          .10000E-03    19.021        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0050        5.0306        .20150E-03   -1.5308    
   9  Prefactor     33.147        32.129        .69600E-04   -1.4556    
  10  Prefactor     .10000E-03    4.3925        .17446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .99425        .83037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1354        3.2275        .12888E-03   -1.5301    
  15  Prefactor     .10000E-03    17.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9504        4.4639        .90951E-03   -1.5310    
  17  Prefactor     .10000E-03    6.6033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2852        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.461        39.729        .12383E-03   -1.5061    
  20  Prefactor     11.082        7.4163        .12035E-03   -1.5042    
  21  Prefactor     4.8578        32.578        .18251E-03   -1.5267    
  22  Prefactor     .10000E-03    8.3282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6331        .13566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84357        .18614        .26743E-03   -.98472    
  25  Prefactor     .99048        .14901        .20553E-03   -.93048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09619e-11
Minuit parameter uncertainties:
  1  21.9051
  2  54.1841
  3  8.08291
  4  23.9902
  5  21.1449
  6  2.65579
  7  5.64198e-06
  8  5.03112
  9  32.1459
  10  1.18996e-05
  11  1.55796e-06
  12  4.10598e-05
  13  7.32485e-06
  14  3.22761
  15  6.50963e-07
  16  4.46424
  17  4.66194e-06
  18  1.06632e-06
  19  39.8292
  20  7.41688
  21  25.1796
  22  1.14229e-05
  23  9.15953e-07
  24  0.186279
  25  0.149076
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.106e-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:  9.905e-01  1.491e-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.436e-01  1.863e-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: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211797/likelihoodResults_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.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) = 7338.32922046
delta logL = -0.000110719885015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7338.3291097
delta logL = 4.59685907117e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3083       1.0000          .0000       10.000    
     3 'Normalizat'    .84358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99048       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=   7338.329     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      260 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.779        .18142E-02** at limit **
   2  Index         2.2923        6.0600        .50000        .29196E-05
   3  Normalizat    .84357        .17474        .26743E-03    .55618E-03
   4  Prefactor     .99048        .14531        .20553E-03    .83238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29233
  Normalizat = 0.843573
  Prefactor  = 0.990477
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.329     FROM HESSE     STATUS=OK            29 CALLS      289 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2923        6.1461        .50000       -.57226    
   3  Normalizat    .84357        .17487        .53485E-04   -.98472    
   4  Prefactor     .99048        .14541        .41106E-04   -.93048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3296e-10
Minuit parameter uncertainties:
  1  0.000276715
  2  4.2358
  3  0.174982
  4  0.145472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211797': 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) = 7338.32910969
delta logL = 5.8626937971e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.767e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.292e+00  4.236e+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:  9.905e-01  1.455e-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.436e-01  1.750e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/211797/cmap_HighResolution_611798401_612057601_4FGL_J2209.8-5028_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-28 06:45:55.046028', job_id='211797', GAL2='0.99', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632836755.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.86e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1437' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:45:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 211797: <4FGL_J2209.8-5028_daily_bin1437> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1437> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:29 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:31 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:31 2021
Terminated at Tue Sep 28 06:45:55 2021
Results reported at Tue Sep 28 06:45:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1437 332.474 -50.4702 611798401 612057601 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 :                                   789.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

