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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1462
RA = 332.474, Dec = -50.4702
tmin = 618278401, tmax = 618537601
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='211834', job_status='RUN', time_executed='2021-09-28 06:31:13.151490', time_epoch_executed='1632835873.15' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211834

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211834/ft1_4FGL_J2209.8-5028_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211834/ft2_4FGL_J2209.8-5028_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211834/ft1_4FGL_J2209.8-5028_daily_bin1462.fits outfile=/scratch/kocevski/211834/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1462.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=618278401.0 tmax=618537601.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 2.83
user 2.64
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211834/ft1_filtered_4FGL_J2209.8-5028_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/211834/ft2_4FGL_J2209.8-5028_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/211834/ltcube_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.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/211834/ft2_4FGL_J2209.8-5028_daily_bin1462.fits
.....................!
real 8.76
user 8.48
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211834/ft1_filtered_4FGL_J2209.8-5028_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/211834/ft2_4FGL_J2209.8-5028_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/211834/ltcube_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.fits outfile=/scratch/kocevski/211834/expmap_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.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/211834/ltcube_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.fits
.....................!
real 143.81
user 140.01
sys 3.54

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/211834/ft1_filtered_4FGL_J2209.8-5028_daily_bin1462.fits scfile=/scratch/kocevski/211834/ft2_4FGL_J2209.8-5028_daily_bin1462.fits outfile=/scratch/kocevski/211834/cmap_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.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.45
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211834/ft1_filtered_4FGL_J2209.8-5028_daily_bin1462.fits scfile=/scratch/kocevski/211834/ft2_4FGL_J2209.8-5028_daily_bin1462.fits outfile=/scratch/kocevski/211834/cmap_HighResolution_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26545E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.327       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82913       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.821       1.0000         .10000E-03   10000.    
    13 'norm      '    .16047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    91.358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9294       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8708       1.0000         .10000E-03   10000.    
    19 'Prefactor '    123.00       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36500E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62469       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3082       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=   5907.572     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     3341 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.852       -.14528E-07** at limit **
   2  Prefactor     .10000E-03    17.173        .49276E-06** at limit **
   3  Prefactor     15.443        9.6171        .17079E-06   -.46478E-04
   4  Prefactor     .10000E-03    46.679        .19280E-05** at limit **
   5  Prefactor     .10000E-03    19.081        .45605E-06** at limit **
   6  Prefactor     .10000E-03    2.4924        .48439E-06** at limit **
   7  norm          .10000E-03    3.6710        .87709E-06** at limit **
   8  Prefactor     .10000E-03    6.0308        .32628E-06** at limit **
   9  Prefactor     95.336        48.981       -.21724E-06   -.18151E-03
  10  Prefactor     3.4825        10.090       -.61627E-06   -.20507E-03
  11  Prefactor     .82874        2.8939       -.16316E-06   -.56064E-04
  12  Prefactor     12.212        384.45        .82616E-05    .11014E-04
  13  norm          .10008E-03    12.397       -.94432E-07** at limit **
  14  Prefactor     7.1531        6.3123        .18943E-06   -.23353E-03
  15  Prefactor     91.357        65.431       -.10370E-06   -.57475E-04
  16  Prefactor     3.9290        3.8564       -.21000E-07   -.21448E-03
  17  Prefactor     .10000E-03    43.323        .13813E-05** at limit **
  18  Prefactor     9.8689        12.613       -.19681E-06   -.18045E-03
  19  Prefactor     122.98        98.067       -.31370E-06   -.42798E-04
  20  Prefactor     .10066E-03    74.010       -.96227E-05** at limit **
  21  Prefactor     .10000E-03    32.445        .84062E-06** at limit **
  22  Prefactor     .10000E-03    6.1883        .19417E-06** at limit **
  23  norm          .10000E-03    3.4659        .69117E-07** at limit **
  24  Normalizat    .62457        .22075       -.71383E-05   -.51653E-03
  25  Prefactor     1.3082        .17595        .29020E-05   -.39914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.4428
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 95.3361
  Prefactor  = 3.48251
  Prefactor  = 0.828741
  Prefactor  = 12.212
  norm       = 0.000100079
  Prefactor  = 7.15311
  Prefactor  = 91.3571
  Prefactor  = 3.92899
  Prefactor  = 0.000100002
  Prefactor  = 9.86894
  Prefactor  = 122.983
  Prefactor  = 0.000100663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.624565
  Prefactor  = 1.3082
 **********
 **   18 **HESSE 
 **********

 FCN=   5907.572     FROM HESSE     STATUS=OK           431 CALLS     3772 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.528        .50889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.443        9.6224        .10192E-03   -1.4922    
   4  Prefactor     .10000E-03    47.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5648        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7720        .14460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     95.336        48.937        .41166E-04   -1.3752    
  10  Prefactor     3.4825        10.117        .21593E-03   -1.5335    
  11  Prefactor     .82874        2.8716        .23242E-03   -1.5526    
  12  Prefactor     12.212        382.80        .11652E-03   -1.5009    
  13  norm          .10008E-03    17.221        .31896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1531        6.2980        .14998E-03   -1.5173    
  15  Prefactor     91.357        65.406        .42042E-04   -1.3793    
  16  Prefactor     3.9290        3.8594        .14464E-03   -1.5312    
  17  Prefactor     .10000E-03    43.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8689        12.581        .12754E-03   -1.5080    
  19  Prefactor     122.98        98.016        .18146E-03   -1.3485    
  20  Prefactor     .10066E-03    10.845        .63775E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4721        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .62457        .23576        .33705E-03   -1.0695    
  25  Prefactor     1.3082        .18556        .19799E-03   -.83064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96959e-09
Minuit parameter uncertainties:
  1  0.000486511
  2  9.10057e-05
  3  9.62332
  4  0.00079668
  5  0.00019089
  6  4.61087e-05
  7  9.24897e-05
  8  4.38061e-05
  9  48.9574
  10  10.1224
  11  2.87212
  12  137.717
  13  0.00233222
  14  6.29858
  15  65.4573
  16  3.85964
  17  0.000582886
  18  12.5839
  19  98.1459
  20  0.00536556
  21  0.000223999
  22  3.34105e-05
  23  7.47673e-06
  24  0.236143
  25  0.185654
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.221e+01  1.377e+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.308e+00  1.857e-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:  6.246e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211834/likelihoodResults_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.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) = 5907.49519209
delta logL = 0.0769244084531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5907.49137756
delta logL = 0.0807389370493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.882       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7747       1.0000          .0000       10.000    
     3 'Normalizat'    .62917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3013       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=   5907.491     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      264 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.880        160.74        .50604E-04    .21702E-04
   2  Index         1.7747        1.0078        .13909E-01    .24029E-04
   3  Normalizat    .62921        .21953        .33584E-03   -.20108E-04
   4  Prefactor     1.3013        .18218        .19839E-03   -.48847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.8798
  Index      = 1.77468
  Normalizat = 0.629215
  Prefactor  = 1.30127
 **********
 **   18 **HESSE 
 **********

 FCN=   5907.491     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.880        159.92        .10121E-04   -1.4120    
   2  Index         1.7747        1.0031        .55636E-03   -.70111    
   3  Normalizat    .62921        .21961        .13434E-04   -1.0676    
   4  Prefactor     1.3013        .18226        .39678E-04   -.83269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31868e-11
Minuit parameter uncertainties:
  1  161.031
  2  1.01504
  3  0.219918
  4  0.182346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211834': 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) = 5907.49137755
delta logL = 0.0807389550355

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.288e+01  1.610e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.775e+00  1.015e+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.301e+00  1.823e-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:  6.292e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/211834/cmap_HighResolution_618278401_618537601_4FGL_J2209.8-5028_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-28 06:40:38.123711', job_id='211834', GAL2='1.30', fit_tolerance='1e-08', EG2='0.63', EG='0.62', time_epoch_completed='1632836438.12', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='8.07e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1462' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 211834: <4FGL_J2209.8-5028_daily_bin1462> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1462 332.474 -50.4702 618278401 618537601 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 :                                   538.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            606 sec.

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

